apeiros_ changed the topic of #ruby to: Ruby 2.0.0-p0: http://ruby-lang.org (Ruby 1.9.3-p392) || Paste >3 lines of text on http://gist.github.com
<GreatSUN> louism2__: not that I know
crimezone20xx has quit [Ping timeout: 252 seconds]
<GreatSUN> louism2__: or ...
<GreatSUN> louism2__: can you nopaste your code?
emergion has joined #ruby
celestius has quit [Quit: Computer has gone to sleep.]
<havenwood> louism2__: nope
jjbohn has joined #ruby
<GreatSUN> oh havenwood :-)
<GreatSUN> maybe you can help me
<louism2__> havenwood: so I would have to explicitly make the rescue block return false?
<GreatSUN> I have a hash and need to walk through if I reached the level where I can get a value instead of another hash, I need to set some value according to the value I got to the same path I have been walking through
<havenwood> louism2__: yes
nari has joined #ruby
w400z has quit [Quit: Computer has gone to sleep.]
<louism2__> havenwood: thanks
<GreatSUN> havenwood: do you have an idea how to do that?
sepp2k has quit [Remote host closed the connection]
<havenwood> GreatSUN: Not sure I get it. Could you give an example input and expected output?
tjbiddle_ has joined #ruby
bigoldrock has quit [Ping timeout: 245 seconds]
lobak_ has quit [Quit: No Ping reply in 180 seconds.]
lobak has joined #ruby
tjbiddle_ has quit [Client Quit]
<GreatSUN> myHash['keylevel1']['keylevel2']['keylevel3'] = 'test1'
<GreatSUN> destHash['keylevel1']['keylevel2']['keylevel3'] = 'result1'
<GreatSUN> while the keys and also the levels can differ
<GreatSUN> and instead of only keylevel3 there could be a couple of keys containing values
dustint has quit [Ping timeout: 246 seconds]
bpfh has quit [Quit: Saindo]
<GreatSUN> havenwood: look at this http://nopaste.info/b3e3929be7.html
<GreatSUN> this is how "far" I am till now
w400z has joined #ruby
emergion has quit [Ping timeout: 264 seconds]
<GreatSUN> not pretty sure if this is the right way
tjbiddle has quit [Ping timeout: 248 seconds]
EPIK has joined #ruby
<Spooner> GreatSUN, !destvalue.is_a?(String)
<GreatSUN> Spooner: yeah, ok
<Spooner> I like this: "The user was too lazy to give a description"
<GreatSUN> Spooner: hehe
<GreatSUN> sorry
<GreatSUN> it's late over here
<havenwood> So you want to recursively crawl a hash until you find a particular key, then you set just that one keys' value?
BSaboia has quit [Read error: Connection reset by peer]
<GreatSUN> and my night will be over in about 5 hours ;-)
bubblehead has joined #ruby
louism2__ has left #ruby ["Leaving"]
<GreatSUN> havenwood: kind of... I use the value to detect what value to set at the same path into another hash
Guedes0 has quit [Ping timeout: 245 seconds]
<GreatSUN> Spooner: so, any ideas on the rest?
momomomomo has quit [Ping timeout: 240 seconds]
<havenwood> GreatSUN: So recursively crawl hash to find key, and return the value and tree location?
bradleyprice has quit [Remote host closed the connection]
Sicp has quit [Quit: Leaving]
bean has quit [Quit: Computer has gone to sleep.]
<havenwood> GreatSUN: Stop on first matched key?
<GreatSUN> havenwood: that's easy, cause the method does it already in my opinion
<GreatSUN> havenwood: but how do I set the detected value in the same path in another variable(hash)?
<GreatSUN> havenwood: nope
<GreatSUN> walk through the whole hash
<GreatSUN> and set all detected values to the according tree-paths into another variable
swounding60 has quit [Ping timeout: 248 seconds]
<GreatSUN> The main problem is, I can save the path into an array, but how do I access the other variable then at this path?
freeayu has joined #ruby
mlpinit has joined #ruby
tylersmith has quit [Quit: tylersmith]
mengu has quit [Quit: This computer has gone to sleep]
<havenwood> GreatSUN: So you want a mirror hash, that just contains the found key/value pairs? Or you want a list of the found values with where they came from?
cobragoat has quit [Remote host closed the connection]
bean has joined #ruby
<GreatSUN> havenwood: it is not a real copy
<GreatSUN> havenwood: else it would be an ease
matayam has quit [Remote host closed the connection]
mellowMike has joined #ruby
<GreatSUN> havenwood: it is first of all only a copy of the key structure, but not of the values
DrShoggoth has joined #ruby
<GreatSUN> ah the rest is not interfearing
i_s has quit [Quit: i_s]
maxmanders has joined #ruby
<GreatSUN> havenwood: you understand what I mean?
prime- has quit [Quit: ZNC - http://znc.in]
mlpinit has quit [Quit: mlpinit]
prime_ has joined #ruby
maxmanders has quit [Client Quit]
tobyo has quit [Ping timeout: 264 seconds]
jjbohn has quit [Quit: Leaving...]
<havenwood> GreatSUN: Almost, I think. Just not quite sure on how you want the list of matching keys and their locations stored.
<GreatSUN> right now I store the keys in an array where the array-key is the level of the key
<GreatSUN> but I don't know if there might be some other/better solution
dustint has joined #ruby
<GreatSUN> and neither I know how to set the result-value to the saved tree-path into the other variable
<GreatSUN> I am missing an automated
<GreatSUN> destHash[keyPath[0]][keyPath[1]] = myNewValue
Hanmac has quit [Ping timeout: 264 seconds]
<GreatSUN> which could be needed without the second or with a third keyPath
jurassic_ has quit [Quit: jurassic_]
jgrevich has quit [Read error: No route to host]
jurassic_ has joined #ruby
joofsh has quit [Remote host closed the connection]
blaines has quit [Quit: Computer has gone to sleep.]
jbueza has quit [Quit: Leaving.]
dagnachew has quit [Quit: Leaving]
MehLaptop has quit [Remote host closed the connection]
freeayu has quit [Ping timeout: 264 seconds]
etcetera has quit []
jjbohn has joined #ruby
jjbohn has quit [Client Quit]
<havenwood> GreatSUN: I can't think of anything obvious.
ffranz has quit [Quit: Leaving]
jdolitsky has quit [Quit: Leaving]
prime_ is now known as primex
primex has quit [Changing host]
primex has joined #ruby
mikeg has quit [Quit: Leaving]
sambao21 has quit [Quit: Computer has gone to sleep.]
etcetera has joined #ruby
jurassic_ has quit [Quit: jurassic_]
<GreatSUN> havenwood: what do you think about this one: http://nopaste.info/3da08fc0af.html
<GreatSUN> could this be a working solution?
primex is now known as prime
idkazuma has quit [Remote host closed the connection]
_wtw_ has quit [Remote host closed the connection]
<GreatSUN> or is there an error in what I am thinking about?
kpshek has joined #ruby
kpshek has quit [Client Quit]
jurassic_ has joined #ruby
pioz has joined #ruby
tbrock has quit [Quit: Computer has gone to sleep.]
hashmal has quit [Quit: Computer has gone to sleep.]
pioz has quit [Client Quit]
freeayu has joined #ruby
pioz has joined #ruby
instinkt has joined #ruby
predator117 has joined #ruby
marcdel has quit [Ping timeout: 245 seconds]
kofno has joined #ruby
predator217 has quit [Ping timeout: 240 seconds]
s00pcan has quit [Quit: Lost terminal]
daniel_- has quit [Ping timeout: 264 seconds]
s00pcan has joined #ruby
Hanmac has joined #ruby
marcdel has joined #ruby
tomsthumb has quit [Quit: Leaving.]
heliumsocket has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
dallasm has joined #ruby
<jurassic_> hey rubyists
toekutr has joined #ruby
<pioz> hey
<jurassic_> Besides string interpolation (which only works for double quotes), is there any reason to favor double quotes over single quotes?
jonathanwallace has joined #ruby
kofno has quit [Ping timeout: 248 seconds]
c0rn has quit [Quit: Computer has gone to sleep.]
<havenwood> jurassic_: I use single quotes unless there is actually a need for double.
<pioz> Summary: no speed difference; this collaborative ruby style guide recommends using 'string' unless interpolation is needed.
<pioz> :D
<jurassic_> Cool, thanks. Easier to type, too :)
<pioz> yep
slainer68 has quit [Remote host closed the connection]
jjbohn has joined #ruby
mattbl has joined #ruby
generalissimo has joined #ruby
lolzie has joined #ruby
ferdev has quit [Quit: ferdev]
<lolzie> Is there any particular common convention of invoking self.method rather than just method(), within a class?
<lolzie> I like it more but wouldn't want to offend future Rubyists I work with by bringing other language idioms into my code for no reason other than tradition. hehe
<Spooner> lolzie, You only _need_ it with self.attr = 4
ArchBeOS has joined #ruby
ArchBeOS has quit [Changing host]
ArchBeOS has joined #ruby
<lolzie> Spooner: I'm talking stylistic convention/clarity rather than necessity
ArchBeOS has left #ruby [#ruby]
NiteRain has quit [Ping timeout: 264 seconds]
Guedes0 has joined #ruby
<pioz> i use always self.method
<Spooner> Don't if you don't need it ;) Occasionally, it is clearer to use it. Mostly I don't see people using it.
jgrevich has joined #ruby
twoism has quit [Remote host closed the connection]
dustint has quit [Ping timeout: 264 seconds]
pioz has quit [Quit: Linkinus - http://linkinus.com]
<oxez> Correct me if I'm wrong, but if 'method' is private, self.method doesn't work?
<Spooner> Indeed it does not, oxez
<oxez> So that'D be a good reason not to use it :P
`p has quit [Remote host closed the connection]
jean-louis has joined #ruby
jean-louis has left #ruby [#ruby]
`p has joined #ruby
<lolzie> oxez: you have won me over :)
etcetera has quit []
<oxez> yay
yshh has joined #ruby
Giorgio has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
Faris6 has quit [Ping timeout: 252 seconds]
robscomputer has quit [Remote host closed the connection]
MehLaptop has joined #ruby
rking has joined #ruby
Es0teric has joined #ruby
GreatSUN has quit [Quit: bye for now...]
Xeago has joined #ruby
LennyLinux has quit [Remote host closed the connection]
banjara has quit [Quit: Leaving.]
bricker is now known as bricker`work
Es0teric has quit [Remote host closed the connection]
banjara has joined #ruby
wargasm has left #ruby [#ruby]
ephemerian has quit [Quit: Leaving.]
Faris6 has joined #ruby
Xeago has quit [Remote host closed the connection]
wargasm has joined #ruby
<wargasm> i'm such an idiot
<wargasm> i just registered gasm_zzz instead of wargasm
<wargasm> shit wrong channel
freeayu has quit [Ping timeout: 246 seconds]
<sam113102> can I define a method_missing function inside a module and include it inside another module?
mattbl has quit [Quit: This computer has gone to sleep]
SCommette has joined #ruby
<sam113102> c-can I
gaahrdner has joined #ruby
jeremywrowe has joined #ruby
jgrevich has quit [Read error: Connection reset by peer]
<havenwood> Oh, GreatSUN left. Had solved his problem. >.>
Targen has joined #ruby
joofsh has joined #ruby
nari has quit [Ping timeout: 248 seconds]
kofno has joined #ruby
Voodoofish430 has quit [Quit: Leaving.]
<sam113102> c-can I
reset has quit [Quit: Leaving...]
mockra has quit [Remote host closed the connection]
tomsthumb has joined #ruby
<havenwood> sam113102: Try it!
<sam113102> I did
<sam113102> it doesn't seem to work, not sure if it's because I'm doing it wrong or because it's not supposed to work
jfelchner1 has joined #ruby
jfelchner has quit [Ping timeout: 252 seconds]
chessguy has quit [Remote host closed the connection]
flayer has joined #ruby
aytch_ is now known as aytch
<havenwood> sam113102: It does work.
<welandB> Can I have a class AND a module named the same thing where the class utilizes functionality provided by other classes in the module?
<havenwood> sam113102: If you want it to be runnable on the module you're including it in, put it inside a `class << self` block.
<havenwood> welandB: nope
hogeo has joined #ruby
h4mz1d has joined #ruby
<havenwood> welandB: A constant (class or module name) points only at a class OR a module.
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
<welandB> Alrighty, thanks.
<welandB> Would there be a way to get a multi-tiered namespace like in other languages?
<sam113102> havenwood: put what inside that
matayam has joined #ruby
<welandB> For instance if I wanted to use Car::Driver::Navigation.current_location?
<bnagy> welandB: the namespace is multi-tiered
<bnagy> you can have eg A::B and C::B where one B is a class and one is a module or whatever
<Spooner> welandB, Use modules for namespaces. module Car; module Driver; class Navigation; end; end; end
<havenwood> ^
<welandB> My noobness sickens me.
<welandB> Thanks folks.
maxmanders has joined #ruby
<bnagy> just that constants within any namespace are unique, and class / module names are constants
<sam113102> havenwood: ?
<welandB> I'll just implement the nested modules within another file to maintain some semblance of order.
mattbl has joined #ruby
marcdel has quit []
Spooner has quit [Remote host closed the connection]
maxmande_ has joined #ruby
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
matayam has quit [Ping timeout: 248 seconds]
<havenwood> Taco Tuesday, i'm off to get tacos and beer!
havenwood has quit [Remote host closed the connection]
<welandB> Funny, it's taco tuesday here, too.
tcopp has joined #ruby
stevechiagozie has quit [Quit: Computer has gone to sleep.]
havenwood has joined #ruby
banjara has quit [Quit: Leaving.]
maxmanders has quit [Ping timeout: 248 seconds]
<sam113102> havenwood: why does it work?
mmitchell has quit [Remote host closed the connection]
mmitchell has joined #ruby
<bnagy> because class << self kind of drops you into the class object itself ( called eigenclass or metaclass or singleton class or ... )
<bnagy> so then when you include in that context the methods are added to the class object, not to instances of the class
mellowMike has quit [Ping timeout: 245 seconds]
havenwood has quit [Ping timeout: 245 seconds]
<lewix> things you learn...
emmanuelux has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
angusiguess has quit [Ping timeout: 252 seconds]
idkazuma has joined #ruby
Gues_____ has joined #ruby
<bnagy> if you want it for classes, though, just extend the module, don't piss about with class << self
alainus has joined #ruby
<alainus> when using bootstrap to create a view, how can i insert </div><div class="row-fluid"> (meaning to start a new row), every time the counter reaches the number of spans i want for each row?
<bnagy> ... actually I think extend is always better that that code :)
<bnagy> alainus: try one of the rails channels
<alainus> bnagy, isn't that a programatic question regarding a ruby loop and a counter ?
heliumsocket has quit [Quit: heliumsocket]
<bnagy> no idea because I don't know what a view or a bootstrap or a div or a span is
maxmande_ has quit [Ping timeout: 248 seconds]
Domon has joined #ruby
markalanevans has quit [Ping timeout: 264 seconds]
<bnagy> so it's unclear which part of the process you're finding difficult
<alainus> then, how can i insert a string every time the counter reaches a predefined number of counts?
hamakn has joined #ruby
reset has joined #ruby
<bnagy> myabe do_something if counter % 100 == 0
<alainus> thanks
jgrevich has joined #ruby
banjara has joined #ruby
kofno has quit [Remote host closed the connection]
bricker`LA has joined #ruby
chessguy has joined #ruby
sleetdrop has joined #ruby
r126l_ is now known as r126l
tomsthumb has quit [Quit: Leaving.]
angusiguess has joined #ruby
slainer68 has joined #ruby
jurassic_ has quit [Quit: jurassic_]
dmerrick has quit [Quit: dmerrick]
heliumsocket has joined #ruby
lolzie has quit [Quit: Page closed]
_veer has joined #ruby
_veer has quit [Changing host]
_veer has joined #ruby
slainer68 has quit [Ping timeout: 252 seconds]
kofno has joined #ruby
ThePicard is now known as ThePicard90033
fir_ed has joined #ruby
fir_ed is now known as GIANT_CHICKEN
<peteyg_> When iterating in something like .each, .map or any other enumerable, is there a built-in shortcut handle for which element the current iteration is on? Kind of like how $! is a shortcut variable for the exception that's currently being caught?
<banisterfiend> peteyg_: nup, u gotta use each_with_index
sleetdrop has quit [Quit: Computer has gone to sleep.]
nari has joined #ruby
<bnagy> banisterfiend!
<peteyg_> banisterfiend: Okeys. Thanks
<bnagy> what you doing up, dude, or are you back in civilisation?
<banisterfiend> bnagy: about to sleep :P
<bnagy> haha ok
<banisterfiend> hehe
banisterfiend is now known as banister`sleep
<banister`sleep> nite
<lewix> banister`sleep:
<bnagy> \o
mrsolo has quit [Quit: Leaving]
ttt has joined #ruby
<lewix> oh he went to bed
codesoda has joined #ruby
jjbohn has quit [Quit: Leaving...]
jurassic_ has joined #ruby
josefrichter has joined #ruby
SCommette has quit [Quit: SCommette]
mercwithamouth has quit [Ping timeout: 240 seconds]
<awkwords> hi guys, i have some academic stuff im working on
jgrevich has quit [Read error: No route to host]
Guest13330 has quit [Quit: Leaving.]
sleetdrop has joined #ruby
NiteRain has joined #ruby
<awkwords> so this will spit out the value of 50 over the dimes,pennis,quarters and nickels.
joast has joined #ruby
SCommette has joined #ruby
<bnagy> I see we have different definitions of the word 'academic'
<bnagy> also, it took four times before I read 'penies' as not 'penises'
<awkwords> I would like to scale this script to also give me info like, how many pennies and quarters it would taketo make 60
<awkwords> err to make 50
<awkwords> and i have no idea where to start on that.
<bnagy> :|
<bnagy> 1/number_you_already_have ?
bean has quit [Quit: Computer has gone to sleep.]
<awkwords> bnagy: sorry i dont follow?
<bnagy> dude
<bnagy> 50 / 25 is 2/1 ( 0.5 )
<bnagy> 1/0.5 is 2
<bnagy> because arithmetic
jblack has quit [Ping timeout: 264 seconds]
tomsthumb has joined #ruby
PanPan has joined #ruby
w400z has quit []
mahmoudimus has quit [Quit: Computer has gone to sleep.]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
<awkwords> bnagy: still not following
v0n has quit [Ping timeout: 252 seconds]
<breakingthings> awkwords: calculators.
postmodern has quit [Quit: Leaving]
mahmoudimus has joined #ruby
jjbohn has joined #ruby
<awkwords> your advice is to use a calculator?
<bnagy> awkwords: if a quarter is half ( 1/2 ) of 50, then to find out how many quarters you need to make 50 you take the reciprocal
<bnagy> which is basically turning it upside down, but to make ruby do it, it's 1 / x
jaimef is now known as fsbot
<bnagy> so step 1 will get you, say 0.1 for dimes, a dime is 1/10th of 50c. then 1 / 0.1 will get you 10, which is the other number you want
jjbohn has quit [Client Quit]
rezzack has quit [Quit: Leaving.]
rezzack has joined #ruby
<awkwords> bnagy: could you show me an example?
fsbot is now known as jaimef
<bnagy> >> x=50.0 / 5; [x, 1/x]
<bnagy> oh screw you eval bot
kofno has quit [Remote host closed the connection]
shevy has quit [Read error: Operation timed out]
<breakingthings> lol
ner0x has quit [Quit: Leaving]
<breakingthings> this concept isn't too complicated
freeayu has joined #ruby
<breakingthings> follow me through this
Hanmac2 has joined #ruby
mercwithamouth has joined #ruby
<breakingthings> total = 50; quarter = 25; dime = 10; nickel = 5; penny = 1;
<breakingthings> quarters_needed = total / quarter; dimes_needed = total / dime; nickels_needed = total / nickel; pennies_needed = total / penny;
<breakingthings> and in more detail,
<breakingthings> quarters_needed = 50 / 25;
<breakingthings> 50 / 25 = 2
<breakingthings> 2 quarters are needed to reach 50
<mercwithamouth> o_O
<breakingthings> ???? magic
tomsthumb has quit [Read error: Connection timed out]
spaz76 has joined #ruby
rezzack has quit [Ping timeout: 248 seconds]
tomsthumb has joined #ruby
Hanmac1 has quit [Ping timeout: 252 seconds]
nga4 has quit []
superninkendo has joined #ruby
w400z has joined #ruby
Targen has quit [Ping timeout: 264 seconds]
ner0x has joined #ruby
bigoldrock has joined #ruby
sleetdrop has quit [Ping timeout: 248 seconds]
mattbl has quit [Quit: This computer has gone to sleep]
ryanf_ is now known as ryanf
sleetdrop has joined #ruby
wmoxam has quit [Ping timeout: 264 seconds]
v0n has joined #ruby
<lewix> dont break things
jgrevich has joined #ruby
shevy has joined #ruby
jimeh has quit [Quit: Computer has gone to sleep.]
gchristensen has joined #ruby
Pochacco has joined #ruby
averiso has joined #ruby
d2dchat has quit [Remote host closed the connection]
h4mz1d has quit [Ping timeout: 246 seconds]
<gchristensen> hi, I'm trying to use require_relative, but I'm getting a LoadError, saying it cannot infer basepath: https://gist.github.com/grahamc/ea1ab1d3b5a3f9bf388a line five being require_relative 'lib/foobar/about'
mattbl has joined #ruby
v0n has quit [Ping timeout: 245 seconds]
<Pochacco> Can someone tell me what the = sign does inside the function parameter
forced_request has quit [Read error: Connection reset by peer]
<gchristensen> (I'm running ruby 2.0.0)
gabrielrotbart has quit [Remote host closed the connection]
<waxjar> Pochacco: assign a default value to an argument
<bnagy> gchristensen: it doesn't work in irb
tobyo has joined #ruby
<Pochacco> ty
jpfuentes2 has joined #ruby
finishingmove has joined #ruby
<gchristensen> bnagy: wht doesn't work in irb?
<gchristensen> bnagy: I got this error when running `bundle install
alainus is now known as alainus[-_-]
mmitchell has quit [Remote host closed the connection]
Guest53570 has quit [Ping timeout: 255 seconds]
gabrielrotbart has joined #ruby
josefrichter has quit [Quit: josefrichter]
bean has joined #ruby
io_syl has quit [Ping timeout: 248 seconds]
joofsh has quit [Remote host closed the connection]
havenwood has joined #ruby
jgrevich has quit [Read error: No route to host]
hadees has joined #ruby
jdunck has quit [Quit: Computer has gone to sleep.]
<breakingthings> Can one initialize an object from a method other than 'new'?
MehLaptop has quit [Remote host closed the connection]
<Nom-> breakingthings: You can write class methods that do instantiation.. but generally they'll get an object from new and then do something else with it
<breakingthings> Nom-: as in, a self.meth that calls self.new? Or something like that, I'm not wholly sure I grasp static methods in ruby.
<Nom-> Yep
daniel_hinojosa has joined #ruby
<breakingthings> That does make sense I suppose.
<breakingthings> Thanks.
<breakingthings> On that same note, I guess, do you think it would be strange to do so; here's an example of what I'm thinking:
<Nom-> I've done it in a few places... particularly in FFI code which wraps a C Library
<breakingthings> I have a Message class for an irc bot (yay learning exercises), that I expect to mostly use by sending it a line to parse into it's structure
<breakingthings> I was thinking it makes sense to do Message.parse("some line") as opposed to Message.new("some line")
reset has quit [Ping timeout: 245 seconds]
<Nom-> Although the other way you can do it is by passing a hash to #new and change logic based on which keys are present
brandon has joined #ruby
brandon is now known as Guest70829
<breakingthings> Hmm… That would seem strange in this case… Message.new { parse: line }
jamie_ca_ has joined #ruby
<breakingthings> Thing is I don't really know that I'll have any other use than parse here
akashj87__ has quit [Quit: leaving]
<breakingthings> I could probably get away with just having an optional argument in initialize that would do the same thing as parse
<Nom-> You could look at extract_options!
twoism has joined #ruby
<breakingthings> so I guess it comes down to, as a matter of personal preference would you rather:
<breakingthings> Message.new / Message.new line
<breakingthings> Message.new / Message.parse line
bubblehead has quit [Remote host closed the connection]
<breakingthings> Well, I'm not using ActiveSupport...
<Nom-> That function is about 3 lines of Ruby from memory :)
<breakingthings> But even so I just don't know that I would need that functionality
<havenwood> breakingthings: How bout: Message.call line
<breakingthings> havenwood: what's the logic behind call?
<havenwood> breakingthings: Is it parsing?
<breakingthings> It would be parsing a line into a Message object
<havenwood> breakingthings: If you end up refactoring, #call lends itself to being proc'ifyed
<havenwood> breakingthings: Message.read or Message.get, how would you say it in English?
<breakingthings> Mmm… neither.
<havenwood> breakingthings: My vote: Message.nomnom
<breakingthings> Or maybe, I dunno.
* breakingthings is confuse
tewlz has quit [Quit: Lost terminal]
jamie_ca_ has quit [Quit: Computer has gone to sleep.]
<breakingthings> havenwood: 10/10 nobel peace prize for solving this problem, who knows what north korea might have done if we waited another few minutes
tylersmith has joined #ruby
<havenwood> breakingthings: get/put, parse/dump, read/write <- all those frequently
<breakingthings> I feel parse is closest
<havenwood> s/all/i seem to see
jetblack has quit [Remote host closed the connection]
idkazuma has quit [Remote host closed the connection]
<breakingthings> but again it was more of is it common to see a method like this that is an alternate instantiation, or would it be more rubby-like to have an alternate way for #new to provide this functionality
macmartine has joined #ruby
<breakingthings> Message.new "this line would be parsed" vs. the more explicitly read Message.parse "this line would be parsed"
<havenwood> breakingthings: We're talking about a module, not a class, right?
<breakingthings> A class
maletor has joined #ruby
jetblack has joined #ruby
<breakingthings> Message would have properties, such as :sender :target :command, etc
statix_ has quit [Read error: Connection reset by peer]
<amh345> anyone know if net-ssh supports multi factor authentication?
instinkt has quit [Read error: Connection reset by peer]
<breakingthings> Message.parse "some raw message" would create a new Message object with these properties parsed from the raw message
stat1x has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
ikea_meatballs has joined #ruby
<havenwood> breakingthings: If you use Message.parse, use a module with `class << self` rather than a class. If you don't need to instantiate, better to use a module. Actually, even if you want to use `new`, still use a module self.method rather than class--again, unless you need instantiation.
brianpWins has joined #ruby
chriskk has quit [Quit: chriskk]
* breakingthings hits itself in confusion!
mmitchell has joined #ruby
<havenwood> breakingthings: Basically, it is fine to: module MyModule; def self.new; 'hi' end end
rburton- has quit [Quit: Leaving...]
<breakingthings> right, I know
ikea_meatballs is now known as Not_Ikea_Meatbal
<breakingthings> Oooooh
v0n has joined #ruby
<breakingthings> So, instead of having a class that has these methods and creates an instance
<breakingthings> Instead, have a module that has a parse method that simply… I guess, creates a Struct and returns that?
akashj87 has joined #ruby
mephux has quit [Excess Flood]
Vert has quit [Read error: Connection reset by peer]
* breakingthings is quite confused
mmitchell has quit [Ping timeout: 240 seconds]
kofno has joined #ruby
mephux has joined #ruby
45PAAAP98 has joined #ruby
jeremywrowe has quit [Ping timeout: 245 seconds]
Opettaja has quit [Quit: WeeChat 0.4.0]
Vert has joined #ruby
45PAAAP98 has quit [Remote host closed the connection]
idkazuma has joined #ruby
idkazuma has quit [Read error: Connection reset by peer]
tcopp has quit [Ping timeout: 245 seconds]
idkazuma has joined #ruby
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
kofno has quit [Ping timeout: 248 seconds]
<Inside> bog.
<Inside> how is '\\\''.length = 2
mattbl has quit [Quit: This computer has gone to sleep]
<gchristensen> Inside: the \ is an escape character, so \\ becomes a literal \, and \' becomes a literal '
<Inside> yessh.. but the string is equal to "\\'"
<gchristensen> Inside: >> puts '\\\''
<gchristensen> \'
<Inside> hrnhrn
<Inside> irb(main):099:0> f = '\\\''
<Inside> => "\\'"
<gchristensen> when it sends it back to you its quoting it again so its valid Ruby
<Inside> ahhh I see.
<gchristensen> s/quoting/escaping/
macmartine has quit [Quit: Computer has gone to sleep.]
havenwood has quit [Ping timeout: 245 seconds]
<gchristensen> Inside: and since its using double-quotes, it doesn't need to escape the '
<Inside> I see. makes a lot more sense now, thanks
<gchristensen> you're welcome
mattbl has joined #ruby
rupee has quit [Quit: Leaving]
twoism has quit [Remote host closed the connection]
jgrevich has joined #ruby
jgrevich has quit [Client Quit]
Gues_____ has quit [Quit: Textual IRC Client: www.textualapp.com]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
akashj87 has quit [Ping timeout: 264 seconds]
hadees has quit [Ping timeout: 264 seconds]
benlieb has joined #ruby
hadees has joined #ruby
bordicon has quit [Ping timeout: 246 seconds]
baba has joined #ruby
averiso has quit [Quit: Computer has gone to sleep.]
fire has quit [Ping timeout: 245 seconds]
tcopp has joined #ruby
mikurubeam has joined #ruby
ARCADIVS has joined #ruby
hadees has quit [Quit: hadees]
etcetera has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
mockra has joined #ruby
gaahrdner has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
gaahrdner has joined #ruby
mephux has quit [Excess Flood]
mmitchell has joined #ruby
Targen has joined #ruby
rburton- has joined #ruby
Guest76424 has joined #ruby
amh345 has left #ruby [#ruby]
akashj87 has joined #ruby
etcetera has quit []
hadees has joined #ruby
gaahrdner has quit [Ping timeout: 245 seconds]
awkwords has quit [Ping timeout: 264 seconds]
love_color_text has joined #ruby
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
generalissimo has quit [Remote host closed the connection]
macmartine has joined #ruby
superninkendo1 has joined #ruby
mmitchell has quit [Ping timeout: 245 seconds]
bigmac has joined #ruby
rburton- has quit [Ping timeout: 246 seconds]
momomomomo has joined #ruby
superninkendo has quit [Read error: Connection reset by peer]
Guest76424 has quit [Excess Flood]
mephux_ has joined #ruby
superninkendo has joined #ruby
superninkendo1 has quit [Ping timeout: 252 seconds]
freeayu has quit [Read error: Connection reset by peer]
sdavis has quit [Quit: sdavis]
banister`sleep has quit [Read error: Connection reset by peer]
banister`sleep has joined #ruby
codesoda has quit [Remote host closed the connection]
luckyruby has quit [Remote host closed the connection]
hemanth_ is now known as hemanth
averiso has joined #ruby
Paradox has joined #ruby
ner0x has quit [Quit: Leaving]
markalanevans has joined #ruby
Guedes0 has quit [Ping timeout: 264 seconds]
girija has joined #ruby
Beoran__ has joined #ruby
v0n has quit [Ping timeout: 264 seconds]
wedgeV_ has quit [Ping timeout: 248 seconds]
codesoda has joined #ruby
danslo has joined #ruby
danslo has quit [Client Quit]
Beoran_ has quit [Ping timeout: 245 seconds]
freeayu has joined #ruby
wedgeV has joined #ruby
markalanevans has quit [Quit: markalanevans]
banister`sleep has quit [Read error: Connection reset by peer]
aapzak_ has quit [Ping timeout: 245 seconds]
banister`sleep has joined #ruby
punchfac_ has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
aapzak has joined #ruby
hadees has quit [Ping timeout: 264 seconds]
benlieb has quit [Quit: benlieb]
hadees has joined #ruby
banister`sleep has quit [Read error: Connection reset by peer]
banister`sleep has joined #ruby
mephux_ is now known as mephux
baba has quit [Quit: WeeChat 0.4.0]
etcetera has joined #ruby
kofno has joined #ruby
yacks has joined #ruby
brianpWins has quit [Quit: brianpWins]
Bry8Star_ has joined #ruby
pygmael has joined #ruby
Bry8Star has quit [Ping timeout: 276 seconds]
twoism has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
momomomomo has quit [Quit: momomomomo]
codesoda has quit [Remote host closed the connection]
kofno has quit [Ping timeout: 248 seconds]
mattbl has joined #ruby
browndawg has joined #ruby
generalissimo has joined #ruby
w400z has quit []
end_guy has quit [Ping timeout: 276 seconds]
Inside has quit [Ping timeout: 264 seconds]
rburton- has joined #ruby
end_guy has joined #ruby
ryanf has quit [Quit: leaving]
superninkendo has quit [Read error: Connection reset by peer]
superninkendo has joined #ruby
twoism has quit [Remote host closed the connection]
twoism has joined #ruby
drale2k has quit [Quit: Leaving...]
drale2k has joined #ruby
julian-delphiki has joined #ruby
fire has joined #ruby
tylersmith has quit [Quit: tylersmith]
ckrailo has joined #ruby
jgrevich has joined #ruby
bean has quit [Ping timeout: 246 seconds]
brhelwig has quit [Remote host closed the connection]
sayan has joined #ruby
finishingmove has quit [Quit: Nettalk6 - www.ntalk.de]
hadees has quit [Quit: hadees]
marcdel has joined #ruby
Skofo has joined #ruby
tommyvyo has quit [Quit:]
Domon has quit [Remote host closed the connection]
SCommette has quit [Quit: SCommette]
rburton- has quit [Quit: Leaving...]
v0n has joined #ruby
bigmac has quit [Remote host closed the connection]
decoponio has joined #ruby
io_syl has joined #ruby
radic has quit [Disconnected by services]
radic_ has joined #ruby
angusiguess has quit [Ping timeout: 246 seconds]
Vert has quit [Remote host closed the connection]
gaahrdner has joined #ruby
jbueza has joined #ruby
sebastorama has quit [Ping timeout: 252 seconds]
g4mm4 has quit [Remote host closed the connection]
idkazuma has quit [Remote host closed the connection]
chessguy has quit [Remote host closed the connection]
gaahrdner has quit [Ping timeout: 245 seconds]
etcetera has quit []
motorush has joined #ruby
chessguy has joined #ruby
wallerdev has quit [Quit: wallerdev]
breakingthings has quit []
ryanf has joined #ruby
aedornm has quit [Remote host closed the connection]
jgrevich has quit [Quit: jgrevich]
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mattbl has quit [Quit: This computer has gone to sleep]
Faris6 has quit [Ping timeout: 248 seconds]
brhelwig has joined #ruby
bradleyprice has joined #ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
aedornm has joined #ruby
mellowMike has joined #ruby
mattbl has joined #ruby
jonahR has joined #ruby
chessguy has quit [Remote host closed the connection]
vlad_sta_ has quit [Remote host closed the connection]
jonahR has quit [Read error: Connection reset by peer]
SCommette has joined #ruby
robscomputer has joined #ruby
divout has joined #ruby
v0n has quit [Read error: Connection reset by peer]
Evixion` has joined #ruby
Evixion` has quit [Client Quit]
robscomp_ has joined #ruby
angusiguess has joined #ruby
v0n has joined #ruby
robscomp_ has quit [Client Quit]
gabrielr_ has joined #ruby
robscomp_ has joined #ruby
gabrielrotbart has quit [Read error: Connection reset by peer]
yashshah_ has joined #ruby
kofno has joined #ruby
robscomp_ has quit [Client Quit]
robscomputer_ has joined #ruby
robscomputer has quit [Ping timeout: 252 seconds]
jonathanwallace has quit [Ping timeout: 252 seconds]
Evixion has quit [Ping timeout: 264 seconds]
robscomputer_ has quit [Client Quit]
girija has quit [Ping timeout: 245 seconds]
robscomputer has joined #ruby
robbyoconnor has joined #ruby
v0n has quit [Read error: Operation timed out]
kofno has quit [Ping timeout: 248 seconds]
huoxito has quit [Quit: Leaving]
Domon has joined #ruby
mellowMike has quit [Ping timeout: 248 seconds]
yashshah_ has quit [Ping timeout: 246 seconds]
angusiguess has quit [Ping timeout: 240 seconds]
brianpWins has joined #ruby
bean has joined #ruby
robbyoconnor has quit [Remote host closed the connection]
nomenkun has joined #ruby
robbyoconnor has joined #ruby
rburton- has joined #ruby
dallasm has quit [Remote host closed the connection]
h8R has quit [Ping timeout: 256 seconds]
Asher2 has joined #ruby
Asher has quit [Read error: Connection reset by peer]
Asher2 has quit [Client Quit]
girija has joined #ruby
dhruvasagar has joined #ruby
Asher has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
Asher has quit [Client Quit]
robbyoconnor has quit [Ping timeout: 245 seconds]
r0bby has joined #ruby
Asher has joined #ruby
jamie_ca_ has joined #ruby
dhruvasagar has joined #ruby
tonini has joined #ruby
yashshah_ has joined #ruby
haxrbyte_ has quit [Remote host closed the connection]
haxrbyte has joined #ruby
wargasm has quit [Read error: Connection reset by peer]
maxmanders has joined #ruby
jamie_ca_ has quit [Ping timeout: 245 seconds]
wargasm has joined #ruby
jonathanwallace has joined #ruby
bean has quit [Quit: Computer has gone to sleep.]
mockra has quit [Remote host closed the connection]
arya_ has joined #ruby
maxmanders has quit [Ping timeout: 246 seconds]
uris has quit [Quit: Leaving]
maxmanders has joined #ruby
yashshah_ has quit [Read error: Connection reset by peer]
yashshah- has joined #ruby
thecreators has joined #ruby
cantonic has joined #ruby
jamie_ca_ has joined #ruby
maletor has joined #ruby
r0bby has quit [Read error: Connection reset by peer]
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
jonathanwallace has quit [Ping timeout: 256 seconds]
<shevy> oh well
marcdel has quit [Ping timeout: 248 seconds]
<shevy> time to abandon gtk2 ...
mercwithamouth has quit [Ping timeout: 264 seconds]
robbyoconnor has joined #ruby
afex_ has joined #ruby
marcdel has joined #ruby
maxmande_ has joined #ruby
yashshah- has quit [Ping timeout: 245 seconds]
afex has quit [Ping timeout: 248 seconds]
afex_ is now known as afex
ph^ has quit [Remote host closed the connection]
maxmanders has quit [Ping timeout: 245 seconds]
Evixion has joined #ruby
maxmanders has joined #ruby
maxmande_ has quit [Ping timeout: 245 seconds]
kcantwel has joined #ruby
sambio has quit []
marcdel has quit [Ping timeout: 248 seconds]
a_a_g has joined #ruby
daniel_hinojosa has quit [Quit: Leaving.]
generalissimo has quit [Remote host closed the connection]
arya_ has quit [Ping timeout: 248 seconds]
codesoda has joined #ruby
tvw has joined #ruby
marcdel has joined #ruby
maxmanders has quit [Ping timeout: 248 seconds]
icole has quit [Remote host closed the connection]
jekotia has quit [Quit: ChatZilla 0.9.90-rdmsoft [XULRunner 18.0.2/20130201065344]]
arya_ has joined #ruby
dmiller has quit [Read error: Operation timed out]
Opettaja has joined #ruby
Morkel has joined #ruby
ananthakumaran has joined #ruby
kcantwel has quit [Quit: Computer has gone to sleep.]
codesoda has quit [Remote host closed the connection]
codesoda has joined #ruby
brianpWins has quit [Quit: brianpWins]
codesoda has quit [Read error: Connection reset by peer]
ph^ has joined #ruby
codesoda has joined #ruby
kofno has joined #ruby
genta has joined #ruby
SCommette has quit [Quit: SCommette]
angusiguess has joined #ruby
cobragoat has joined #ruby
twoism has quit [Ping timeout: 245 seconds]
kofno has quit [Ping timeout: 248 seconds]
motorush has quit [Ping timeout: 245 seconds]
afex has quit [Remote host closed the connection]
afex has joined #ruby
angusiguess has quit [Ping timeout: 246 seconds]
hemanth_ has joined #ruby
a_a_g1 has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
ananthakumaran has quit [Read error: Connection reset by peer]
yacks has quit [Read error: Operation timed out]
dhruvasagar has quit [Ping timeout: 248 seconds]
a_a_g has quit [Read error: Connection reset by peer]
fire has quit [Ping timeout: 245 seconds]
sayan has quit [Ping timeout: 248 seconds]
dawkirst has quit [Ping timeout: 252 seconds]
jurassic_ has quit [Quit: jurassic_]
casheew has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
casheew has joined #ruby
ananthakumaran has joined #ruby
codesoda has quit [Remote host closed the connection]
codesoda has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
casheew has quit [Read error: Connection reset by peer]
ananthakumaran has quit [Client Quit]
yacks has joined #ruby
larissa has quit [Quit: Leaving]
casheew has joined #ruby
ananthakumaran has joined #ruby
codesoda has quit [Ping timeout: 245 seconds]
razibog has joined #ruby
yacks has quit [Max SendQ exceeded]
braoru has joined #ruby
ananthakumaran1 has joined #ruby
bradleyprice has quit [Remote host closed the connection]
ananthakumaran has quit [Ping timeout: 246 seconds]
casheew has quit [Read error: Connection reset by peer]
yacks has joined #ruby
dmiller has joined #ruby
matayam has joined #ruby
casheew has joined #ruby
tcopp has quit [Ping timeout: 256 seconds]
yacks has quit [Max SendQ exceeded]
gabrielr_ has quit [Remote host closed the connection]
yacks has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
fire has joined #ruby
yacks has quit [Max SendQ exceeded]
casheew has quit [Read error: Connection reset by peer]
yacks has joined #ruby
yacks has quit [Max SendQ exceeded]
yacks has joined #ruby
mahmoudimus has joined #ruby
dmiller has quit [Ping timeout: 240 seconds]
casheew has joined #ruby
aganov has joined #ruby
zigomir has joined #ruby
casheew has quit [Read error: Connection reset by peer]
fixl has joined #ruby
yacks has quit [Ping timeout: 252 seconds]
anirudh24seven has joined #ruby
yacks has joined #ruby
jurassic_ has joined #ruby
yacks has quit [Read error: Connection reset by peer]
yacks has joined #ruby
yacks has quit [Max SendQ exceeded]
yacks has joined #ruby
yacks has quit [Max SendQ exceeded]
codesoda has joined #ruby
apeiros_ has quit [Remote host closed the connection]
ritek has quit [Quit: Bye]
Pochacco has quit [Quit: Pochacco]
casheew has joined #ruby
brhelwig has quit [Ping timeout: 264 seconds]
sayan has joined #ruby
alienvenom has quit [Ping timeout: 264 seconds]
alienvenom has joined #ruby
ryanf has quit [Quit: leaving]
v__ has joined #ruby
v__ has left #ruby [#ruby]
sayan has quit [Read error: Connection reset by peer]
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
puppeh has joined #ruby
yacks has joined #ruby
casheew has quit [Read error: Connection reset by peer]
razibog has quit [Ping timeout: 264 seconds]
yacks has quit [Max SendQ exceeded]
yacks has joined #ruby
ferdev has joined #ruby
yacks has quit [Max SendQ exceeded]
lewix has quit [Remote host closed the connection]
codesoda has quit [Read error: Connection reset by peer]
banjara has quit [Quit: Leaving.]
casheew has joined #ruby
tagrudev has joined #ruby
samuel02 has joined #ruby
Guest__ has joined #ruby
casheew has quit [Read error: Connection reset by peer]
kzrl has quit [Ping timeout: 246 seconds]
Mon_Ouie has quit [Ping timeout: 264 seconds]
kzrl has joined #ruby
miso1337 has joined #ruby
casheew has joined #ruby
kofno has joined #ruby
ferdev has quit [Quit: ferdev]
arya_ has quit [Ping timeout: 248 seconds]
nomenkun has quit [Remote host closed the connection]
rburton- has quit [Quit: Linkinus - http://linkinus.com]
bradleyprice has joined #ruby
kofno has quit [Ping timeout: 248 seconds]
toekutr has quit [Remote host closed the connection]
tomsthumb has quit [Read error: Connection reset by peer]
arya has joined #ruby
tobyo has quit [Ping timeout: 264 seconds]
a_a_g1 has quit [Quit: Leaving.]
Hanmac has quit [Quit: Leaving.]
mahmoudimus is now known as mahmoudimus|away
jamie_ca_ has quit [Quit: Computer has gone to sleep.]
tomsthumb has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
angusiguess has joined #ruby
Morkel_ has joined #ruby
mattbl has joined #ruby
Morkel has quit [Ping timeout: 246 seconds]
Morkel_ is now known as Morkel
marcdel has quit []
cableray has quit [Quit: cableray]
Vainoharhainen has joined #ruby
yacks has joined #ruby
codecop has joined #ruby
yacks has quit [Max SendQ exceeded]
Not_Ikea_Meatbal has quit [Quit: Not_Ikea_Meatbal]
yacks has joined #ruby
Targen has quit [Ping timeout: 252 seconds]
moted has quit [Ping timeout: 240 seconds]
yacks has quit [Max SendQ exceeded]
tevio has joined #ruby
goganchic has joined #ruby
akemrir has joined #ruby
tevio has quit [Remote host closed the connection]
xpen has joined #ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
Nahra has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
Fallacy has joined #ruby
justsee_ has joined #ruby
Nahra has joined #ruby
yacks has joined #ruby
emergion has joined #ruby
yacks has quit [Max SendQ exceeded]
punchfacechamp has joined #ruby
emergion has quit [Client Quit]
yacks has joined #ruby
BizarreCake has joined #ruby
pduin has joined #ruby
goganchic has left #ruby [#ruby]
punchfacechamp has quit [Remote host closed the connection]
francisfish has joined #ruby
yacks has quit [Max SendQ exceeded]
thecreators has quit [Quit: thecreators]
Guest__ is now known as shellox
shellox is now known as shellox_
justsee has quit [Quit: Linkinus - http://linkinus.com]
charliesome_ has joined #ruby
justsee_ has quit [Quit: leaving]
jfelchner1 has quit [Ping timeout: 264 seconds]
<ericmathison> Would someone mind clarifying the difference between MiniTest and Test::Unit?
justsee has joined #ruby
<ericmathison> After looking around at various articles I'm still confused
codecop has quit [Ping timeout: 240 seconds]
agarie has quit [Remote host closed the connection]
<ericmathison> Is MiniTest just the standard library version or...
justsee has quit [Changing host]
justsee has joined #ruby
francisfish has quit [Remote host closed the connection]
dawkirst has joined #ruby
yacks has joined #ruby
Hanmac has joined #ruby
yacks has quit [Max SendQ exceeded]
justsee has quit [Client Quit]
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
razibog has joined #ruby
emergion has joined #ruby
dangerousdave has joined #ruby
codecop has joined #ruby
arya has quit [Ping timeout: 248 seconds]
mafolz has joined #ruby
piotr has joined #ruby
jurassic_ has quit [Quit: jurassic_]
tonini has quit [Remote host closed the connection]
peterhellberg has joined #ruby
brhelwig has joined #ruby
arya has joined #ruby
hamed_r has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
bradleyprice has quit [Remote host closed the connection]
anirudh24seven has quit [Ping timeout: 252 seconds]
anderse has joined #ruby
atyz has joined #ruby
charliesome_ is now known as charliesome
xbob has joined #ruby
francisfish has joined #ruby
dr_bob has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
eldariof has joined #ruby
cantonic has quit [Read error: Connection reset by peer]
kristofers has joined #ruby
anirudh24seven has joined #ruby
angusiguess has quit [Ping timeout: 245 seconds]
mrmist has quit [Quit: leaving]
jfelchner1 has joined #ruby
threesome has quit [Ping timeout: 246 seconds]
arya has quit [Ping timeout: 248 seconds]
mattbl has joined #ruby
tonini has joined #ruby
wargasm1 has joined #ruby
mahmoudimus|away has quit [Quit: Computer has gone to sleep.]
arturaz has joined #ruby
mrmist has joined #ruby
wargasm has quit [Ping timeout: 264 seconds]
aytch has quit [Remote host closed the connection]
kofno has joined #ruby
arya has joined #ruby
dangerousdave has quit [Quit: Leaving...]
icole has joined #ruby
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
kofno has quit [Ping timeout: 248 seconds]
atno has quit [Remote host closed the connection]
gestahlt has joined #ruby
<gestahlt> Hi
<gestahlt> I need to create a multi dimensional hash. Im a bit stuck there
<gestahlt> I need this for creating a tree with key-value pairs
maligree has quit [Ping timeout: 252 seconds]
blaxter has joined #ruby
<gestahlt> What would be the best approach?
jimeh has joined #ruby
mikewintermute has joined #ruby
<bnagy> {root: {a: {b: 1, c: 2}}}
<gestahlt> here is what i try to get
<gestahlt> thanks bnagy, gonna try that
Axsuul has quit [Ping timeout: 245 seconds]
<dawkirst> silly question: is it okay to require gems in a class definition (or is it *supposed* to be required there)?
tomsthumb has quit [Read error: Connection reset by peer]
bubblehead has joined #ruby
<gestahlt> bnagy: can root have a value?
brhelwig has quit [Remote host closed the connection]
<bnagy> dawkirst: _usually_ requires are at the top of the file
<bnagy> but that's probably because usually people try to stick with one class / module per file
<dawkirst> bnagy, makes a lot of sense, thanks
<bnagy> you can require anywhere you want, though
Al_ has joined #ruby
tomsthumb has joined #ruby
osvico has quit [Ping timeout: 256 seconds]
<bnagy> gestahlt: root does have a value, there - it's value is the hash {a: {b: 1, c: 2}}
<bnagy> *its
Cork has quit [Read error: Operation timed out]
<bnagy> stupid fingers
<gestahlt> bnagy: Ah this one is also a good question. Is it good "ruby practice" to stick with one class / module per file? Im used to have several classes in one file in my VB days. When i wrote librarys that were shared accross my software i had several classes in one file. Seems uncommon in ruby tho
mattbl has quit [Quit: This computer has gone to sleep]
<bnagy> most people do
Cork has joined #ruby
<gestahlt> bnagy: Yes, but can root have another value beside the hash?
<gestahlt> bnagy: See the gist
hamed_r has quit [Quit: Leaving]
<bnagy> a hash is a key value store, one key, one value
<bnagy> but the value can be another hash, or an array, or a collection of pithy swedish haiku
<gestahlt> bnagy: Ah right.. so i have to store duplicate information to achieve my goal? I want to create a disk layout file, preferably in yaml. I need to use it as a config file and read it later again, so it must be easy to parse
pi3r has joined #ruby
<bnagy> that gist looks like it's already valid yaml
atmosx has joined #ruby
<Hanmac> dawkirst: i also require stuff inside my methods so its only require when you really need it
ephemerian has joined #ruby
nari has quit [Ping timeout: 245 seconds]
<gestahlt> bnagy: Yeah it should be. I just need to create a yaml in this style. I thought the right way to do it is with nested hashes. The information for the content i already got
anderse has quit [Quit: anderse]
afei has joined #ruby
daniel_- has joined #ruby
rdark has joined #ruby
afei has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
k610 has joined #ruby
afei has joined #ruby
emergion has joined #ruby
ukd1 has quit [Ping timeout: 248 seconds]
nga4 has joined #ruby
ukd1 has joined #ruby
sayan has joined #ruby
wargasm1 has quit [Ping timeout: 264 seconds]
mikewintermute has quit [Quit: mikewintermute]
chussenot has joined #ruby
mikewintermute has joined #ruby
bubblehead has quit [Ping timeout: 264 seconds]
icole has quit [Remote host closed the connection]
wargasm has joined #ruby
Guest80121 is now known as UukGoblin
jaygen_ has joined #ruby
<Fallacy> What does '\\1' do in gsub?
jaygen has quit [Read error: Operation timed out]
<Hanmac> Fallacy: $1
<Hanmac> its the first group of regexmatch
nari has joined #ruby
arya has quit [Ping timeout: 248 seconds]
maxmanders has joined #ruby
maxmande_ has joined #ruby
arya has joined #ruby
akashj87 has quit [Quit: leaving]
mattbl has joined #ruby
mengu_ has joined #ruby
maxmanders has quit [Ping timeout: 264 seconds]
adambeynon has joined #ruby
afei has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
peta_ has joined #ruby
<peta_> hi guys
daniel_- has quit [Ping timeout: 264 seconds]
Skofo has quit [Ping timeout: 256 seconds]
<peta_> stupid question … I use a module X with an overly long name. Everything I use a class of it I have to type MyLongModuleName::MyClass … is there a way to skip the module name?
mattbl has quit [Client Quit]
<peta_> I am aware of potential pitfalls when multiple modules with same class names are around
threesome has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
nomenkun has joined #ruby
brhelwig has joined #ruby
HashNuke has joined #ruby
<HashNuke> hey all
<bnagy> include MySuparLongThing
io_syl has quit [Quit: Computer has gone to sleep.]
<HashNuke> How do I connect to bluetooth devices in Ruby? (I only need discover other bluetooth devices that are active).
<bnagy> probably the same way you would do it in any HLL
<bnagy> script a commandline utility and parse the output, or wrap a native lib
<HashNuke> I've been looking the Socket class (assuming that's where I should be looking)
drale2k has quit [Quit: Leaving...]
<Hanmac> peta_ you could asign your module into another constant
peta_ has quit [Remote host closed the connection]
jimeh has quit [Quit: Bye.]
peta_ has joined #ruby
reactormonk has quit [Ping timeout: 272 seconds]
idkazuma has joined #ruby
jimeh has joined #ruby
<peta_> bnagy: thx. will this have any negative sideeffects in terms of performance/memory consumption?
sayan has quit [Read error: Connection reset by peer]
<bnagy> uh... no, for sane values of 'any'
angusiguess has joined #ruby
nomenkun_ has joined #ruby
nomenkun has quit [Ping timeout: 246 seconds]
icole has joined #ruby
angusiguess has quit [Ping timeout: 264 seconds]
arya has quit [Ping timeout: 248 seconds]
<peta_> ok sir
<peta_> :)
<peta_> And what will happen when two classes with the same name collide? Will the one defined last have precedence?
buscon has joined #ruby
br4ndon has joined #ruby
ukd1 has quit [Remote host closed the connection]
crazed has quit [Ping timeout: 240 seconds]
ARCADIVS has quit [Quit: WeeChat 0.3.8]
ukd1 has joined #ruby
HashNuke has quit [Quit: Computer has gone to sleep.]
srm` has quit [Quit: WeeChat 0.4.0-dev]
arya has joined #ruby
mikurubeam has quit [Ping timeout: 252 seconds]
reactormonk has joined #ruby
hbpoison has joined #ruby
Faris6 has joined #ruby
josefrichter_ has joined #ruby
emergion has joined #ruby
kofno has joined #ruby
grier has quit [Ping timeout: 276 seconds]
grier has joined #ruby
crazed has joined #ruby
mikewintermute has quit [Quit: mikewintermute]
kofno has quit [Ping timeout: 248 seconds]
HashNuke has joined #ruby
timonv has joined #ruby
arya has quit [Ping timeout: 248 seconds]
elaptics`away is now known as elaptics
slainer68 has joined #ruby
idkazuma has quit [Remote host closed the connection]
giabboo has joined #ruby
swistak35 has quit [Ping timeout: 264 seconds]
<giabboo> hi guys and girls
<giabboo> im getting this error when i try to start a ruby app
<giabboo> /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:89:in `exit': no implicit conversion from nil to integer (TypeError)
duosrx has joined #ruby
arya has joined #ruby
<Hanmac> giabboo: gist us your code what you did
<giabboo> it's not my app =)
<giabboo> maybe i better ask on puppet channel
apeiros_ has joined #ruby
jprovazn has joined #ruby
burgestrand has joined #ruby
crazed has quit [Ping timeout: 264 seconds]
burgestrand has quit [Client Quit]
burgestrand has joined #ruby
hbpoison has quit [Ping timeout: 248 seconds]
dhruvasagar has quit [Ping timeout: 256 seconds]
anirudh24seven has quit [Ping timeout: 252 seconds]
atno has joined #ruby
dhruvasagar has joined #ruby
Mattx has joined #ruby
timmow has joined #ruby
anirudh24seven has joined #ruby
h8R has joined #ruby
Matip has quit [Ping timeout: 240 seconds]
atmosx has quit [Quit: And so the story goes…]
emergion has quit [Quit: Computer has gone to sleep.]
miso1337 has quit [Quit: afk]
Zai00 has joined #ruby
jaygen has joined #ruby
cantonic has joined #ruby
jaygen_ has quit [Read error: Operation timed out]
DonRichie has joined #ruby
witchdoc has quit [Quit: bye]
<giabboo> nobody can help me there
<giabboo> Hanmac this is the line the error is related to
cobragoat has quit [Remote host closed the connection]
<giabboo> exit(yield)
cobragoat has joined #ruby
hashmal has joined #ruby
ismell has quit [Quit: Lost terminal]
<razibog> giabboo: i googled and this seems like a good and appropriate answer: Your error is coming from the C code inside the Ruby interpreter. A core class, implemented in C, is being handed a nil when it expects an Integer. It may have a #to_i but it doesn't have a#to_int and so the result is the TypeError.
<razibog> may be that yield expects an int, but gets a nil, and can't convert
ukd1 has quit [Remote host closed the connection]
<giabboo> so it's a code bug
<Hanmac> giabboo how do you use puppet?
<giabboo> i'm using in a test environment at the moment
<giabboo> but it was working fine i guess before a system update
<bnagy> so exit yield wants to exit with a status code
<giabboo> i'm running CentOS
<bnagy> but the block that's being provided to that method is returning nil I guess
<giabboo> i wanna do some clean in the puppet certificates
<giabboo> and see if this will fix the issue wait
peta_ has left #ruby [#ruby]
nga4 has quit [Ping timeout: 245 seconds]
banister`sleep has quit [Ping timeout: 246 seconds]
piotr_ has joined #ruby
cobragoat has quit [Ping timeout: 245 seconds]
piotr has quit [Ping timeout: 248 seconds]
HashNuke has quit [Quit: Textual IRC Client: www.textualapp.com]
<bnagy> giabboo: is there a full backtrace?
banister`sleep has joined #ruby
<Hanmac> centos ... the cause of all outdated problems ...
<bnagy> cause we would need to know what calls run_in_fork
skattyadz has joined #ruby
atno has quit [Remote host closed the connection]
<giabboo> Hanmac, i come from debian, i have to say CentOS is not that bad :P
<giabboo> bnagy, how can i provice you a backtrace ?
<bnagy> usually when the interpreter exits it gives you one
<Hanmac> in newer versions debian, and in current versions of ubuntu, 1.9.1 is marked as default
<dawkirst> is there an alternative to remove trailing "\r\n" characters with gsub?
<bnagy> some error from foo.rb line 28 from blah.rb line 125 etc etc
<Hanmac> dawkirst: you can use strip
<bnagy> or possibly rstrip
crazed has joined #ruby
<bnagy> but you would probably have to map it by line
<dawkirst> Hanmac, bnagy thanks
yacks has joined #ruby
nari has quit [Ping timeout: 264 seconds]
yacks has quit [Max SendQ exceeded]
<giabboo> bnagy, wait let me hack it a big im worried it was a SSL certificate issue
hmarr has joined #ruby
angusiguess has joined #ruby
superninkendo has quit [Read error: Connection reset by peer]
superninkendo has joined #ruby
Giorgio has joined #ruby
justsee has quit [Quit: leaving]
justsee has joined #ruby
xpen has quit [Ping timeout: 252 seconds]
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
hbpoison has joined #ruby
<giabboo> hey guys, regenerating the ssl solved the issue
<giabboo> *ssl cert
gyre007 has joined #ruby
gyre007 has quit [Max SendQ exceeded]
gyre007 has joined #ruby
casheew has quit [Read error: Connection reset by peer]
browndawg has quit [Quit: Leaving.]
Domon has quit [Remote host closed the connection]
<bnagy> lol
atno has joined #ruby
Al_ has quit [Quit: Al_]
eldariof has quit [Read error: No route to host]
kofno has joined #ruby
casheew has joined #ruby
angusiguess has quit [Ping timeout: 245 seconds]
akashj87 has joined #ruby
clocKwize has joined #ruby
arya has quit [Ping timeout: 248 seconds]
Domon has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
kofno has quit [Ping timeout: 248 seconds]
ananthakumaran has joined #ruby
averiso has quit [Quit: Computer has gone to sleep.]
mklappstuhl has joined #ruby
Gadgetoid has quit [Ping timeout: 256 seconds]
jetblack has quit [Ping timeout: 252 seconds]
Mon_Ouie has joined #ruby
ananthakumaran1 has quit [Ping timeout: 256 seconds]
pyro111 has joined #ruby
hbpoison has quit [Ping timeout: 264 seconds]
sepp2k has joined #ruby
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
Domon has quit [Remote host closed the connection]
atno has quit [Remote host closed the connection]
Al_ has joined #ruby
Gruu_ has joined #ruby
zeroXten has joined #ruby
casheew has quit [Read error: Connection reset by peer]
<zeroXten> hi. what is the "correct" way of "expanding" an array so that ["a","b"].zip(["c"]) actually looks like [["a","c"],["b","c"]] ?
casheew has joined #ruby
banister`sleep has quit [Ping timeout: 256 seconds]
Domon has joined #ruby
BizarreCake has quit [Ping timeout: 264 seconds]
Gadgetoid has joined #ruby
browndawg has joined #ruby
<Hanmac> zeroXten: ["a","b"].zip(["c"].cycle)
<zeroXten> god I love ruby
<zeroXten> that is awesome
shellox_ has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
moos3 has joined #ruby
casheew has quit [Read error: Connection reset by peer]
love_color_text has quit [Remote host closed the connection]
casheew has joined #ruby
miso1337 has joined #ruby
amaya_the has joined #ruby
chussenot has quit [Quit: chussenot]
<Gadgetoid> Does a good ruby cheatsheet exist?
tonini has quit [Read error: Connection reset by peer]
tonini has joined #ruby
atyz has quit [Quit: Leaving...]
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
atno has joined #ruby
BizarreCake has joined #ruby
Sicp has joined #ruby
tevio has joined #ruby
<A124> Gadgetoid: Sheet for what?
<A124> Ruby is not about syntax only
<A124> Syntax is just the paint on a car
atno has quit [Remote host closed the connection]
francisfish has quit [Read error: Connection timed out]
Domon has quit [Remote host closed the connection]
atno has joined #ruby
banister`sleep has joined #ruby
francisfish has joined #ruby
davetherat has quit [Remote host closed the connection]
atno has quit [Remote host closed the connection]
davetherat has joined #ruby
atyz has joined #ruby
<Gadgetoid> A124: Cheat sheets are rarely concerned with syntax in my experience
PanPan has quit [Quit: ChatZilla 0.9.90 [Firefox 19.0.2/20130307023931]]
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
<Hanmac> Gadgetoid: .. what are "Cheat sheets"? are you looking for CheatCodes in ruby? :P
shirokuro11 has joined #ruby
<Gadgetoid> Hanmac: Haha, Ruby alternative to the Konami code
<Gadgetoid> Hanmac: generally they're a single-page, printer-friendly quick reference to the nuances of a language
<Hanmac> Gadgetoid: you can try this: https://en.wikibooks.org/wiki/Ruby_Programming/Syntax
tonini has quit [Remote host closed the connection]
<Gadgetoid> Hanmac: That's the sort of information I'm after, thanks, just not in a pretty enough format. Fix incoming.
maxmande_ has quit [Ping timeout: 245 seconds]
maxmande_ has joined #ruby
skattyadz has quit [Quit: skattyadz]
sleetdrop has quit [Ping timeout: 245 seconds]
Gruu_ has quit [Quit: Gruu_]
yshh has quit [Remote host closed the connection]
robustus|Off has joined #ruby
casheew has quit [Read error: Connection reset by peer]
robustus has quit [Ping timeout: 276 seconds]
casheew has joined #ruby
hbpoison has joined #ruby
love_color_text has joined #ruby
Faris7 has joined #ruby
bluOxigen has joined #ruby
Faris6 has quit [Ping timeout: 264 seconds]
hamakn has quit [Remote host closed the connection]
<BadQuanta> Can someone point me to an explanation as to why the search path/load path of ruby requires statements never check the directory the file the require is declared in?
hbpoison has quit [Ping timeout: 245 seconds]
<BadQuanta> It just seems off to me to have to do: require File.expand_path() at all.
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
casheew has quit [Read error: Connection reset by peer]
<BadQuanta> Considering how OFTEN this is done, and the fact that autoload isn't any smarter out of the box, I just don't get it.
casheew has joined #ruby
<BadQuanta> It'd be cool if I could give autoload relative paths from the current __FILE__.
kofno has joined #ruby
<BadQuanta> And I'm tempted to overload the method to do just that (by looking for requires that start with ./ and ignoring all the other ones.)
ph^ has quit [Ping timeout: 246 seconds]
<Hanmac> BadQuanta: because its a security leak
<Gadgetoid> BadQuanta: I just do require './becauseimlazy.rb'
hamakn has joined #ruby
<BadQuanta> ./ isn't working for me.
<Hanmac> Gadgetoid: this is a security leak too
<BadQuanta> Hanmac: I kinda get that argument already. I thought about that. But if I'm including code in that directory, can I not trust that directory at all?
<charliesome> BadQuanta: File.expand_path is ok
<lupine> OK, I have a DL::Ptr to a wchar_t - is there a way I can convert this into a Ruby string without needing to wrap and call wcslen myself?
<charliesome> but ./ is not becasue it relies on the current directory
<lupine> (I have to use DL, FFI isn't an option, unfortunately)
<BadQuanta> charliesome, Yeah.
icole has quit [Remote host closed the connection]
<BadQuanta> Can someone explain to me in more detail why it's a security issue?
<charliesome> check out require_relative
<charliesome> BadQuanta: say you have a setuid ruby program
<Hanmac> BadQuanta: if some function changes the current directory, then your require may point to bad and evil files
<charliesome> if you use ./ then i can elevate my own privileges by starting that program in another directory
<lupine> BadQuanta, it ups a file writing vulnerability to a code execution vulnerability
<BadQuanta> True.
<charliesome> that has my evil file in it
<BadQuanta> But is that not true of all of my ruby directories?
<charliesome> BadQuanta: not necessarily
<BadQuanta> This is something that is packaged as a gem.
<lupine> it's just a general hygiene thing
<BadQuanta> My gem lives where all the other gems live.
<charliesome> BadQuanta: maybe the gem is installed by root, owned by root, all the files are owned by root
<Gadgetoid> If my code has been compromised then it might lead to my code being compromised?
amaya_the has quit [Read error: Connection reset by peer]
<lupine> BadQuanta, in gems, you can't guess where you're going to end up being installed, and how your files are going to be arranged
<lupine> assume your load path has been set up correctly, and for the love of god, don't mess with it
<BadQuanta> Well, so far you guys haven't really convinced me it is a credible threat. I mean, yes it is possible, but I don't see how that attack vector is different from simply modifying some other ruby file someone knows I require.
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
casheew has quit [Read error: Connection reset by peer]
<BadQuanta> And here is my logic for local directory as FIRST loadpath location check: 1) It is intuitive for programmers and saves typing. 2) If I have that ruby file in my local directory, I probably meant to load that and NOT the system install of that file.
thone has joined #ruby
<BadQuanta> Dunno... just how I look at it.
<Hanmac> BadQuanta: because gems are often installed with root rights, so the files can only be changed with root rights too, but if there is some local file interfering than then you have problems
<BadQuanta> I'm talking about __FILE__ local.. not CWD local.
<BadQuanta> So local would have to be in the root-only gem directory.
vlad_starkov has joined #ruby
<BadQuanta> I'm saying, check the directory the __FILE__ is located in, not current working directory.
wmoxam has joined #ruby
<BadQuanta> Or perhaps you knew that already and I misunderstood your reply.
<BadQuanta> And BTW, I'm fine with RTFM if someone can point me in the right direction if there is already a thorough explanation. Perhaps there is a mailing list post?
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby
<BadQuanta> I've googled but couldn't find it.
<BadQuanta> I've searched google groups for the ruby chats too.
<Hanmac> BadQuanta: for short: dont mess with the loadpath, dont write 1.8 only stuff, and throw your 1.8ruby away its outdated
thone_ has quit [Ping timeout: 240 seconds]
<BadQuanta> Ok. I'm writing 1.9.3, so why is it significant that I throw away 1.8?
<BadQuanta> Is there something I don't know about 1.9 or 2 that fixes what I'm complaining about?
dayepa1 has quit [Quit: dayepa1]
atno has joined #ruby
dayepa_ has quit [Quit: 전 이만 갑니다.]
atno has quit [Remote host closed the connection]
nari has joined #ruby
<BadQuanta> Anywho.. I've had my rant and I appreciate the response. I do get the security threat, perhaps not deeply enough to respect it, but from my point of view it is not worth the programmer aggravation/agitation?
casheew has joined #ruby
* Gadgetoid adds require_local into his pryrc
<BadQuanta> Thanks guys. :)
<Hanmac> BadQuanta: 1.8 will not get any support anymore in a few months
<lupine> BadQuanta, making assumptions about path hierarchy in gems is a lot of programmer aggravation
<lupine> quite aside from any security issues
swingha has joined #ruby
<BadQuanta> Funny, I've never seen . part of my load path.
Faris7 has quit [Ping timeout: 248 seconds]
<BadQuanta> Or perhaps I picked up the expand_path idiom very early, because I always thought it was required.
<BadQuanta> I did not know 1.8 used to do that.
<Hanmac> BadQuanta: for sample in C there are TWO include directives ... #include "" and #include <> ... use require_relative and require the same way
<lupine> ruby -e 'puts $LOAD_PATH.include?(".").to_s'
baba has joined #ruby
<BadQuanta> Whoa.. require_relative?
<lupine> our company is, ahem, "looking forward" to ruby1.8 being obsoleted
dayepa1 has joined #ruby
<lupine> so many legacy projects. so little times.
fire has quit [Ping timeout: 245 seconds]
<BadQuanta> I don't blame you, I've been on 1.9 for a long time..
<lupine> we're barely using 1.9; it's a serious issue
dayepa has joined #ruby
<lupine> some of our code is a SyntaxError on ruby1.9
ritek has joined #ruby
amaya_the has joined #ruby
<BadQuanta> All my projects are little contracts, so I don't build up much legacy code. Often just reimplement.
<Hanmac> lupine it happens in case <x> when <y> there was a shortfrom using ":" but it was changed to use more clearly ";"
GIANT_CHICKEN has quit [Ping timeout: 248 seconds]
obfuscate2 has joined #ruby
<lupine> yeah, there's a fair bit of that
<lupine> but there's also the valid-escaping-in-a-string-literal changes
<lupine> that was exciting to discover
sayan has joined #ruby
fir_ed has joined #ruby
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
ArchBeOS has joined #ruby
ArchBeOS has quit [Changing host]
ArchBeOS has joined #ruby
Loaft has quit [Read error: Connection reset by peer]
slainer68 has quit [Remote host closed the connection]
sambao21 has joined #ruby
obfuscate2 is now known as jnoob22
g4mm4 has joined #ruby
skattyadz has joined #ruby
Faris7 has joined #ruby
refd has joined #ruby
refd has quit [Max SendQ exceeded]
jonathanwallace has joined #ruby
peta_ has joined #ruby
<peta_> hi
sambao21 has quit [Ping timeout: 248 seconds]
dustint has joined #ruby
chussenot has joined #ruby
<peta_> can I use a heredoc/nowdoc as a parameter inside a function call?
<tobiasvl> yes
ericmathison has quit [Ping timeout: 245 seconds]
<peta_> then my mistake is somewhere else :) thx
arya has joined #ruby
<tobiasvl> you can post a gist of the code if you want
<peta_> got it
<peta_> the syntax highlighter breaks when using heredocs as param for a function call. so I didn't notice that I forgot a closing quote
Hanmac has quit [Ping timeout: 245 seconds]
hbpoison has joined #ruby
atno has joined #ruby
browndawg has quit [Quit: Leaving.]
Hanmac has joined #ruby
josefrichter_ has quit [Quit: josefrichter_]
akemrir has quit [Quit: WeeChat 0.4.0]
lkba has joined #ruby
akemrir has joined #ruby
Fallacy has quit [Quit: Leaving]
<tobiasvl> aha
chussenot has quit [Quit: chussenot]
mmitchell has joined #ruby
<peta_> (TextMate's Ruby bundle. I will commit a fix for that when I have some idle time)
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<lupine> does anyone know if windows demands that wchar_t is always little-endian, or always big-endian, or if it's platform-dependent?
<lupine> (and if it's the latter, anyone know the quickest way to determine that?)
<lupine> actually, I can do that
mmitchell has quit [Remote host closed the connection]
sayan has quit [Read error: Connection reset by peer]
atyz has quit [Quit: Leaving...]
<lupine> actually, UCS-2 is apparently meant to be big-endian
mark_locklear has joined #ruby
carraroj has joined #ruby
ArchBeOS has left #ruby ["Leaving"]
lessless has joined #ruby
hbpoison has quit [Ping timeout: 240 seconds]
arya has quit [Ping timeout: 245 seconds]
vlad_sta_ has joined #ruby
jon_w has joined #ruby
peta_ has quit [Quit: peta_]
decoponio has quit [Quit: Take to stop a load on my PC]
<lessless> is it possible to 'decompose' an array into single variables, so if def func [1,2,3] end existing_array << *func() => [1,2,3]
vlad_st__ has joined #ruby
<lessless> ?
vlad_st__ has quit [Read error: Connection reset by peer]
<lupine> a, b, c= func() ?
polymar has joined #ruby
<lupine> ah, I see. yes, that Just Work
wolcanus has joined #ruby
sonda has joined #ruby
vlad_starkov has quit [Ping timeout: 246 seconds]
<lupine> the only thing to note is that it's a syntaxerror to do it on .<< - it works for .push()
arya has joined #ruby
sdavis has joined #ruby
yacks has joined #ruby
polymar has quit [Remote host closed the connection]
vlad_sta_ has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby
eldariof has joined #ruby
<lessless> lol, yeah, the problem was '<<' operator :D
maxmande_ has quit [Quit: Computer has gone to sleep.]
yacks has quit [Max SendQ exceeded]
vlad_starkov has quit [Read error: Connection reset by peer]
yacks has joined #ruby
vlad_starkov has joined #ruby
jetblack has joined #ruby
casheew has quit [Read error: Connection reset by peer]
br4ndon has joined #ruby
casheew has joined #ruby
maxmanders has joined #ruby
yacks has quit [Max SendQ exceeded]
sdavis has quit [Client Quit]
BizarreCake has quit [Ping timeout: 252 seconds]
yacks has joined #ruby
carloslopes has joined #ruby
<lupine> and despite that, I'm getting utf16-le out
slainer68 has joined #ruby
<lupine> joy
yacks has quit [Read error: Connection reset by peer]
BizarreCake has joined #ruby
supki has joined #ruby
br4ndon has quit [Client Quit]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
yshh has joined #ruby
Faris7 has quit [Quit: Faris7]
razibog has quit [Ping timeout: 248 seconds]
slainer68 has quit [Ping timeout: 248 seconds]
jeremywrowe has joined #ruby
jeremywrowe has quit [Changing host]
jeremywrowe has joined #ruby
atyz has joined #ruby
yshh has quit [Ping timeout: 240 seconds]
invisime has joined #ruby
ph^ has joined #ruby
atno has quit [Remote host closed the connection]
ner0x has joined #ruby
<apeiros_> lupine: ary.concat(other_ary)
joofsh has joined #ruby
<lupine> that might be a bit slower
<lupine> barely worth mentioning though
<apeiros_> lupine: slower than?
<apeiros_> it is faster than pushing individual elements, it is also faster than push(*ary)
<lupine> concat() returns a new array, doesn't it?
<apeiros_> lupine: no
<apeiros_> and even if it would, that doesn't mean it'd be slower
<lupine> ah, so it doesn't. silly memory
jjbohn has joined #ruby
browndawg has joined #ruby
<lupine> yes, concat is better, then
sayan has joined #ruby
tonini has joined #ruby
wmoxam has quit [Ping timeout: 245 seconds]
ph^ has quit [Ping timeout: 264 seconds]
hbpoison has joined #ruby
geekbri has joined #ruby
icole has joined #ruby
jeremywrowe has quit [Ping timeout: 246 seconds]
sayan has quit [Max SendQ exceeded]
Catbuntu has joined #ruby
sayan has joined #ruby
divout has quit [Remote host closed the connection]
idealhack has joined #ruby
krawchyk has joined #ruby
pavilionXP has joined #ruby
hbpoison has quit [Ping timeout: 245 seconds]
icole has quit [Ping timeout: 264 seconds]
sayan has quit [Max SendQ exceeded]
Morrolan has quit [Ping timeout: 252 seconds]
sayan has joined #ruby
slainer68 has joined #ruby
Morrolan has joined #ruby
banister`sleep has quit [Read error: Connection reset by peer]
banister`sleep has joined #ruby
sayan has quit [Max SendQ exceeded]
rdark has quit [Ping timeout: 245 seconds]
sayan has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
rdark has joined #ruby
sayan has quit [Max SendQ exceeded]
Sicp has quit [Ping timeout: 246 seconds]
<ericwood> >> puts "hi"
<ericwood> > puts "hi"
joofsh has quit [Remote host closed the connection]
<Mon_Ouie> eval-in isn't here ;)
<ericwood> :(
hashmal has quit [Ping timeout: 264 seconds]
* lupine is *almost there* with his winapi call
<lupine> 5 hours is far too much time
mljsimone has joined #ruby
gyre007 has quit [Ping timeout: 252 seconds]
solidoodlesuppor has joined #ruby
br4ndon has joined #ruby
duosrx has quit [Remote host closed the connection]
etcetera has joined #ruby
Mon_Ouie has quit [Ping timeout: 240 seconds]
gyre007 has joined #ruby
gyre007 has quit [Max SendQ exceeded]
kosai03 has joined #ruby
gyre007 has joined #ruby
etcetera has quit [Client Quit]
tommyvyo has joined #ruby
kosai03 has quit [Client Quit]
jjbohn is now known as jjbohn|afk
TooTubular has joined #ruby
Spooner_ has joined #ruby
NiteRain has quit [Ping timeout: 246 seconds]
dEPy has joined #ruby
sleetdrop has joined #ruby
yeltzooo6 has quit [K-Lined]
josefrichter has joined #ruby
hamakn has quit [Remote host closed the connection]
jgarvey has joined #ruby
xpen has joined #ruby
jjbohn|afk is now known as jjbohn
hamakn has joined #ruby
_veer has quit [Ping timeout: 248 seconds]
popapusha has joined #ruby
rudisimo has joined #ruby
xpen has quit [Remote host closed the connection]
_carloslopes has joined #ruby
xpen has joined #ruby
yeltzooo has joined #ruby
hydrozen has joined #ruby
carloslopes has quit [Ping timeout: 248 seconds]
<popapusha> http://pastebin.com/9fDSC6Lz <-- can someone help me understand this ruby function.. im trying to rewrite it in python but its not going so well :/
amaya_the has quit [Quit: ChatZilla 0.9.89 [Firefox 19.0.2/20130307023931]]
m8 has joined #ruby
sayan has joined #ruby
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
<popapusha> so say i have foo = bar.slice!(0, 4) would that set foo to the first 4 characters of bar and cut off the first 4 chars of bar?
sayan has quit [Max SendQ exceeded]
hiyakashi has joined #ruby
<gchristensen> popapusha: why don't you open up irb and try it out?
g4mm4 has quit [Remote host closed the connection]
jlast has joined #ruby
<popapusha> well thats an option but the pc im on doesnt have ruby installed.. i can install it but i was already on irc so i thought id ask the simple question
v0n has joined #ruby
justsee has quit [Ping timeout: 240 seconds]
tcopp has joined #ruby
tonini has quit [Remote host closed the connection]
breakingthings has joined #ruby
_nitti has joined #ruby
jpfuentes2 has joined #ruby
adkron has joined #ruby
baba has quit [Ping timeout: 264 seconds]
tonini has joined #ruby
<Hanmac> popapusha: the ruby code is also evil because it changes the parameterstring
<popapusha> ok thats what i think through me off
hogeo has quit [Remote host closed the connection]
averiso has joined #ruby
v0n has quit [Ping timeout: 252 seconds]
tonini has quit [Remote host closed the connection]
wmoxam has joined #ruby
<popapusha> so if bar = "abcdefg" and i had foo = bar.slice!(0, 4) foo would eq abcd and then bar would become = "efg"?
m8 has quit [Quit: Sto andando via]
duosrx has joined #ruby
sambio has joined #ruby
<Hanmac> yep
pothibo has joined #ruby
<popapusha> ok thank you
polymar has joined #ruby
baba has joined #ruby
<Hanmac> about the % 4 while loop ... it chould be better with this: slen += 3 - (slen - 1) % 4
<popapusha> this is where i like ruby better than python.. python will require me to set a new var to modify the str
wmoxam has quit [Ping timeout: 264 seconds]
Goles has quit [Quit: Computer has gone to sleep.]
mmitchell has joined #ruby
<popapusha> ah i see it would be faster that way
<dEPy> any1 here involved in a startup?
sleetdrop has quit [Ping timeout: 252 seconds]
sleetdrop has joined #ruby
jjbohn has quit [Quit: Leaving...]
nga4 has joined #ruby
clocKwize has quit [Quit: clocKwize]
lewix has joined #ruby
cha1tanya has quit [Quit: Leaving]
EPIK has quit [Ping timeout: 264 seconds]
huoxito has joined #ruby
cmarques has joined #ruby
apeiros_ has quit [Remote host closed the connection]
clocKwize has joined #ruby
dhruvasagar has joined #ruby
binaryplease has joined #ruby
sailias has joined #ruby
Coolhand has quit [Remote host closed the connection]
duosrx has quit [Ping timeout: 272 seconds]
hbpoison has joined #ruby
kpshek has joined #ruby
atno has joined #ruby
polymar_ has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
_maes_ has joined #ruby
banister`sleep has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
love_color_text has quit [Remote host closed the connection]
polymar has quit [Ping timeout: 264 seconds]
osvico has joined #ruby
hbpoison has quit [Ping timeout: 240 seconds]
polymar_ has quit [Ping timeout: 256 seconds]
sie has joined #ruby
supergiantrobot has quit [Quit: supergiantrobot]
duosrx has joined #ruby
mmitchel_ has joined #ruby
ferdev has joined #ruby
tonini has joined #ruby
Banistergalaxy has joined #ruby
polymar has joined #ruby
Coolhand has joined #ruby
mattbl has joined #ruby
krawchyk has quit [Remote host closed the connection]
mmitchell has quit [Ping timeout: 272 seconds]
gaahrdner has joined #ruby
alainus[-_-] is now known as alainus
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
alainus has left #ruby ["Leaving"]
jtharris has joined #ruby
tcopp has quit [Ping timeout: 256 seconds]
mattbl has quit [Client Quit]
krawchyk has joined #ruby
TeckniX has joined #ruby
casheew has quit [Read error: Connection reset by peer]
<TeckniX> Hello - I've been trying to use RBEnv to install / manage different ruby versions on my mac and keep getting errors of missing iconv libs - Anyone seen this?
krawchyk has quit [Remote host closed the connection]
casheew has joined #ruby
joofsh has joined #ruby
krawchyk has joined #ruby
mellow has joined #ruby
<mellow> hi
nathanl_ has joined #ruby
stevechiagozie has joined #ruby
razibog has joined #ruby
Abhijit has joined #ruby
<Abhijit> hi guys. rails server is not doing anything on my suse 12.2 and printing --help content instead
chussenot has joined #ruby
yshh has joined #ruby
ssms has joined #ruby
adkron has quit [Ping timeout: 252 seconds]
<Abhijit> hi guys. rails server is not doing anything on my suse 12.2 and printing --help content insteadthe command 'rails server'
<Abhijit> the command 'rails server'
tobyo has joined #ruby
phantasm66 has joined #ruby
phantasm66 has quit [Changing host]
phantasm66 has joined #ruby
NiteRain has joined #ruby
failshell has joined #ruby
mephux has quit [Excess Flood]
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
buibex has joined #ruby
willob has joined #ruby
<Spooner_> Abhijit, Ask in #rubyonrails
frem has joined #ruby
mephux has joined #ruby
Schmidt has quit [Ping timeout: 255 seconds]
generalissimo has joined #ruby
bigoldrock has quit [Ping timeout: 264 seconds]
lewix has quit [Remote host closed the connection]
slainer68 has quit [Remote host closed the connection]
bluOxigen has quit [Remote host closed the connection]
bluOxigen has joined #ruby
slainer68 has joined #ruby
timonv has quit [Remote host closed the connection]
nathanl_ is now known as nathan
hashmal has joined #ruby
nathan is now known as nathanlil13
jprovazn has quit [Quit: Leaving]
lewix has joined #ruby
<mellow> hi
<mellow> if I have a socket
interactionjaxsn has joined #ruby
<mellow> and open the connection with transport = @conn.accept
ferdev has quit [Quit: ferdev]
<mellow> and then pass the socket to a method
<mellow> can I loop while getting data until the conection closes?
<Spooner_> Which socket? There are server sockets and client sockets.
<mellow> sorry, server
<mellow> @conn = TCPServer.new('localhost',port)
nathanlil13 has quit [Quit: leaving]
timonv has joined #ruby
<Spooner_> Yes, transport will be a client socket which you can read from. While doing that, you can accept a new connection from the server socket if you want.
<Spooner_> The client can be treated as any other stream really.
dmiller has joined #ruby
mikurubeam has joined #ruby
<mellow> I see, I only want one connection per time, so I'm not creating new theards
<mellow> thanks!
tonini has quit [Remote host closed the connection]
<Spooner_> OK.
Abhijit has quit [Quit: Leaving]
atno has quit [Remote host closed the connection]
peta_ has joined #ruby
<mellow> one more thing, I should iterate until the socket has closed, so would this be good enough? while @conn ...
<Spooner_> No, because @conn will always be truthy since it is an object.
nathanl has joined #ruby
Loaft has joined #ruby
* nathanl
sonda has quit [Remote host closed the connection]
<breakingthings> mellow: while line = @conn.readline or similar.
Davey has joined #ruby
tobyo has quit [Quit: WeeChat 0.3.2]
forrest has joined #ruby
ffranz has joined #ruby
<mellow> Oh i got confused, thought that readline would send false when nothing was sent, but it must work like a gets
<mellow> thanks
polymar_ has joined #ruby
<breakingthings> You should test it to be sure, but I think it should work out.
pskosinski has joined #ruby
rhannequin has joined #ruby
hbpoison has joined #ruby
<mellow> yes I have just tried
<breakingthings> Socket should throw an EOF error too.
<mellow> im creating an http proxy server in ruby
SCommette has joined #ruby
<mellow> just tried it with netcat and its going well, thanks!
pduin has quit [Remote host closed the connection]
polymar has quit [Read error: Connection reset by peer]
banister`sleep has joined #ruby
ferdev has joined #ruby
<lupine> mellow, there are libraries for that ^^
pduin has joined #ruby
Xeago has joined #ruby
rhannequin has left #ruby [#ruby]
clocKwize has quit [Quit: clocKwize]
anirudh24seven has quit [Ping timeout: 264 seconds]
newUser1234 has joined #ruby
decoder_ring has joined #ruby
<mellow> which ones?
peta_ has left #ruby [#ruby]
cantonic has quit [Quit: cantonic]
Al__ has joined #ruby
maxmanders has quit [Quit: Textual IRC Client: www.textualapp.com]
cantonic has joined #ruby
Al_ has quit [Ping timeout: 264 seconds]
anirudh24seven has joined #ruby
maxmanders has joined #ruby
averiso has quit [Quit: Computer has gone to sleep.]
cantonic has quit [Client Quit]
binaryplease has quit [Quit: WeeChat 0.4.0]
hbpoison_ has joined #ruby
Al__ has quit [Ping timeout: 240 seconds]
momomomomo has joined #ruby
renanoronfle has joined #ruby
<momomomomo> BLAH intellij is fucking with me this morning.
freeayu has quit [Remote host closed the connection]
hbpoison has quit [Ping timeout: 245 seconds]
<mellow> I found one but its not that much better
vlad_starkov has quit [Remote host closed the connection]
<mellow> I think I prefer writing it myself
<mellow> I'm new to the language so its better
gfredericks has left #ruby [#ruby]
lewix_ has joined #ruby
peterhellberg has quit [Remote host closed the connection]
lewix has quit [Disconnected by services]
lewix_ is now known as lewix
lewix has quit [Changing host]
lewix has joined #ruby
Banistergalaxy has quit [Ping timeout: 240 seconds]
polymar_ has quit [Read error: Connection reset by peer]
theRoUS has joined #ruby
polymar has joined #ruby
ttt has quit [Remote host closed the connection]
osvico has quit [Ping timeout: 245 seconds]
hbpoison_ has quit [Ping timeout: 252 seconds]
cyberarm has joined #ruby
jjbohn has joined #ruby
ikea_meatballs has joined #ruby
v0n has joined #ruby
pduin has quit [Remote host closed the connection]
mattbl has joined #ruby
Al_ has joined #ruby
ffranz has quit [Quit: Leaving]
d3 has joined #ruby
ffranz has joined #ruby
pduin has joined #ruby
hbpoison has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
Banistergalaxy has joined #ruby
_nitti_ has joined #ruby
_nitti has quit [Read error: Connection reset by peer]
cearls has joined #ruby
mmitchel_ has quit [Remote host closed the connection]
_nitti has joined #ruby
mellowMike has joined #ruby
tomsthumb has quit [Quit: Leaving.]
rontec76 has joined #ruby
mmitchell has joined #ruby
daniel_hinojosa has joined #ruby
rontec76 is now known as mrpickles
<mrpickles> rt374
ExxKA has joined #ruby
ferdev has quit [Quit: ferdev]
averiso has joined #ruby
forrest has quit [Quit: Leaving]
_nitti_ has quit [Ping timeout: 245 seconds]
idealhack has left #ruby [#ruby]
cgore has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
mattbl has quit [Quit: This computer has gone to sleep]
atno has joined #ruby
csmrfx has joined #ruby
Yayo has joined #ruby
d3 has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
g4mm4 has joined #ruby
Lo^05 has joined #ruby
Lo^30 has joined #ruby
Schmidt has joined #ruby
Lo^45 has joined #ruby
Lo^45 has quit [Read error: Connection reset by peer]
Lo^90 has joined #ruby
Lo^90 has quit [Read error: Connection reset by peer]
Lo^14 has joined #ruby
Loaft has quit [Ping timeout: 246 seconds]
afd__ has quit [Ping timeout: 246 seconds]
Lo^24 has joined #ruby
axl_ has joined #ruby
shirokuro11 has quit [Remote host closed the connection]
Lo^24 has quit [Read error: Connection reset by peer]
slainer6_ has joined #ruby
slainer68 has quit [Read error: Connection reset by peer]
Loaft has joined #ruby
jcheng has joined #ruby
Yayo has quit [Ping timeout: 256 seconds]
freerobby1 has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
Yayo has joined #ruby
Lo^05 has quit [Ping timeout: 240 seconds]
slainer68 has joined #ruby
Lo^30 has quit [Ping timeout: 240 seconds]
Yayo has quit [Read error: Connection reset by peer]
hamed_r has joined #ruby
Yayo has joined #ruby
zigomir_ has joined #ruby
Lo^11 has joined #ruby
zigomir has quit [Ping timeout: 246 seconds]
gregorg_taf has quit [Changing host]
gregorg_taf has joined #ruby
gregorg_taf is now known as gregorg
afd__ has joined #ruby
Lo^14 has quit [Ping timeout: 252 seconds]
zigomir_ is now known as zigomir
slainer__ has joined #ruby
slainer6_ has quit [Ping timeout: 245 seconds]
wmoxam has joined #ruby
<nathanl> Anyone know of a good shell impl in ruby?
<banister`sleep> nathanl: "shell"? you mean liek zsh?
Loaft has quit [Ping timeout: 256 seconds]
Yayo has quit [Ping timeout: 245 seconds]
Lo^11 has quit [Ping timeout: 245 seconds]
Loaft has joined #ruby
Yayo has joined #ruby
slainer68 has quit [Ping timeout: 272 seconds]
Yayo has quit [Read error: Connection reset by peer]
stef_204 has joined #ruby
Yayo has joined #ruby
_nitti has quit [Remote host closed the connection]
Lo^79 has joined #ruby
atno has quit [Remote host closed the connection]
Banistergalaxy has quit [Quit: Bye]
wolcanus has quit [Remote host closed the connection]
Banistergalaxy has joined #ruby
razibog has quit [Ping timeout: 240 seconds]
Goles has joined #ruby
Lo^62 has joined #ruby
razibog has joined #ruby
Lo^79 has quit [Read error: Connection reset by peer]
atno has joined #ruby
Lo^19 has joined #ruby
banister`sleep has quit [Remote host closed the connection]
slainer__ has quit [Read error: Connection reset by peer]
slainer68 has joined #ruby
Lo^24 has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
Lo^98 has joined #ruby
atno has quit [Remote host closed the connection]
Loaft has quit [Ping timeout: 256 seconds]
_nitti has joined #ruby
hemanth_ has joined #ruby
Lo^98 is now known as Loaft
<nathanl> mhm
puppeh has quit [Remote host closed the connection]
Yayo has quit [Ping timeout: 246 seconds]
xbob has quit [Ping timeout: 240 seconds]
_nitti_ has joined #ruby
yshh has quit [Read error: Connection reset by peer]
Yayo has joined #ruby
yshh has joined #ruby
mercwithamouth has joined #ruby
Lo^62 has quit [Ping timeout: 252 seconds]
<shevy> nathanl hmm always depends what you mean
Lo^49 has joined #ruby
Lo^19 has quit [Ping timeout: 245 seconds]
<shevy> nathanl a replacement for bash?
<nathanl> like bash or zsh, written in ruby.
Lo^70 has joined #ruby
arturaz_ has joined #ruby
twoism has joined #ruby
Lo^24 has quit [Ping timeout: 272 seconds]
<nathanl> not just delegating to Kernel#system
arturaz_ has quit [Client Quit]
_nitti has quit [Ping timeout: 245 seconds]
Lo^45 has joined #ruby
Loaft has quit [Ping timeout: 240 seconds]
Lo^45 has quit [Read error: Connection reset by peer]
swistak35 has joined #ruby
Yayo has quit [Ping timeout: 240 seconds]
Lo^70 has quit [Read error: Connection reset by peer]
<lessless> how can I do something like this https://gist.github.com/dirty-hippie/5254887 ?
Lo^49 has quit [Ping timeout: 240 seconds]
Yayo has joined #ruby
Lo^54 has joined #ruby
generalissimo has quit [Remote host closed the connection]
Lo^54 has quit [Read error: Connection reset by peer]
MrZYX|off is now known as MrZYX
Lo^37 has joined #ruby
j^2 has joined #ruby
j^2 has quit [Client Quit]
j^2 has joined #ruby
Nisstyre-laptop has joined #ruby
d2dchat has joined #ruby
mrpickles has quit [Remote host closed the connection]
mikurubeam has quit [Quit: +1 (Yes). -1 (No). i (What I have been trying to tell you all along).]
Lo^37 is now known as Loaft
pothibo has left #ruby [#ruby]
Loaft has quit [Read error: Connection reset by peer]
Yayo has quit [Ping timeout: 240 seconds]
Loaft has joined #ruby
jdunck has joined #ruby
btipling has joined #ruby
<lessless> ok, i get it self.class.to_s
Yayo has joined #ruby
Lo^17 has joined #ruby
Lo^85 has joined #ruby
jurassic_ has joined #ruby
nateberkopec has joined #ruby
Lo^85 has quit [Read error: Connection reset by peer]
jdunck has quit [Client Quit]
polymar has quit [Remote host closed the connection]
Lo^51 has joined #ruby
mljsimone has quit [Ping timeout: 252 seconds]
polymar has joined #ruby
maxmanders has joined #ruby
Lo^13 has joined #ruby
Loaft has quit [Ping timeout: 256 seconds]
Lo^13 has quit [Read error: Connection reset by peer]
Loaft has joined #ruby
<Spooner_> lessless, You can do self.class.name too.
<nathanl> what about just .name
popapusha has left #ruby [#ruby]
<nathanl> ah beaten to the punch
Lo^28 has joined #ruby
Yayo has quit [Ping timeout: 252 seconds]
Lo^17 has quit [Ping timeout: 240 seconds]
Yayo has joined #ruby
maxmanders has quit [Client Quit]
Lo^23 has joined #ruby
statarb3 has quit [Quit: Leaving]
Lo^23 has quit [Read error: Connection reset by peer]
Lo^02 has joined #ruby
maxmanders has joined #ruby
twoism has quit [Remote host closed the connection]
eldariof has quit [Read error: No route to host]
Lo^21 has joined #ruby
Lo^51 has quit [Ping timeout: 256 seconds]
Lo^21 has quit [Read error: Connection reset by peer]
Neomex has joined #ruby
Lo^55 has joined #ruby
maxmanders has quit [Client Quit]
Loaft has quit [Ping timeout: 252 seconds]
Lo^76 has joined #ruby
Lo^28 has quit [Ping timeout: 272 seconds]
Yayo has quit [Ping timeout: 246 seconds]
Al_ has quit [Ping timeout: 246 seconds]
fmcgeough has joined #ruby
maxmanders has joined #ruby
tobago has joined #ruby
Lo^02 has quit [Ping timeout: 240 seconds]
alvaro_o has joined #ruby
jbueza has quit [Quit: Leaving.]
Lo^55 has quit [Ping timeout: 240 seconds]
generalissimo has joined #ruby
pduin has quit [Remote host closed the connection]
Al_ has joined #ruby
chussenot has quit [Quit: chussenot]
pduin has joined #ruby
peterhellberg has joined #ruby
timonv has quit [Remote host closed the connection]
Lo^76 has quit [Ping timeout: 246 seconds]
Loaft has joined #ruby
jjbohn is now known as jjbohn|afk
bean has joined #ruby
Yayo has joined #ruby
wolcanus has joined #ruby
ikea_meatballs has quit [Quit: ikea_meatballs]
tobago has quit [Ping timeout: 240 seconds]
xjunior has joined #ruby
niklasb has joined #ruby
etcetera has joined #ruby
timonv has joined #ruby
_carloslopes has quit [Remote host closed the connection]
TeckniX has quit [Ping timeout: 240 seconds]
renanoronfle has quit [Quit: This computer has gone to sleep]
Loaft has quit [Ping timeout: 256 seconds]
chrishough has joined #ruby
nomenkun_ has quit [Ping timeout: 248 seconds]
iambic has joined #ruby
Yayo has quit [Ping timeout: 272 seconds]
slainer6_ has joined #ruby
Yayo has joined #ruby
hbpoison has quit [Ping timeout: 240 seconds]
Yayo has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
TeckniX has joined #ruby
sie has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
alvaro_o has quit [Read error: Connection reset by peer]
alvaro_o has joined #ruby
alvaro_o has quit [Client Quit]
Yayo has joined #ruby
wolcanus has quit [Ping timeout: 245 seconds]
Yayo has quit [Read error: Connection reset by peer]
danslo has joined #ruby
aganov has quit [Read error: Connection reset by peer]
Yayo has joined #ruby
io_syl has joined #ruby
hbpoison has joined #ruby
slainer68 has quit [Ping timeout: 245 seconds]
Loaft has joined #ruby
Spooner_ has quit [Read error: Connection reset by peer]
etcetera has quit []
sie has joined #ruby
Giorgio has quit [Ping timeout: 252 seconds]
mockra has joined #ruby
Yayo has quit [Ping timeout: 240 seconds]
etcetera has joined #ruby
ANDREW__ has joined #ruby
ANDREW__ has quit [Client Quit]
slash_nick has joined #ruby
io_syl has quit [Quit: Textual IRC Client: www.textualapp.com]
ttt has joined #ruby
benlieb has joined #ruby
mephux has quit [Excess Flood]
Yakko has joined #ruby
C0deMaver1ck has quit [Ping timeout: 245 seconds]
wolcanus has joined #ruby
Loaft has quit [Ping timeout: 272 seconds]
Loaft has joined #ruby
tomsthumb has joined #ruby
etcetera has quit []
Yayo has joined #ruby
mephux has joined #ruby
bricker`LA has quit [Ping timeout: 256 seconds]
jamie_ca_ has joined #ruby
io_syl has joined #ruby
ttt has quit [Ping timeout: 256 seconds]
ckrailo has joined #ruby
nari has quit [Ping timeout: 245 seconds]
bricker`LA has joined #ruby
mockra has quit [Remote host closed the connection]
Voodoofish430 has joined #ruby
Loaft has quit [Ping timeout: 245 seconds]
C0deMaver1ck has joined #ruby
C0deMaver1ck is now known as Guest68619
Guest68619 has quit [Changing host]
Guest68619 has joined #ruby
sambao21 has joined #ruby
drale2k has joined #ruby
cheese1756 has quit [Quit: ZNC - http://znc.in]
Loaft has joined #ruby
ner0x is now known as pipework_is_a_do
Guest68619 is now known as notGuest
pipework_is_a_do is now known as ner0x
Lo^93 has joined #ruby
notGuest is now known as C0deMaver1ck
jjbohn|afk is now known as jjbohn
Morkel has quit [Quit: Morkel]
daniel_hinojosa has quit [Ping timeout: 240 seconds]
quazimodo is now known as fire_butt
Proshot has joined #ruby
cheese1756 has joined #ruby
etcetera has joined #ruby
Lo^62 has joined #ruby
Yayo has quit [Ping timeout: 256 seconds]
Spooner_ has joined #ruby
uris has joined #ruby
pyro111 has quit [Ping timeout: 248 seconds]
Yayo has joined #ruby
choobie has quit [Ping timeout: 256 seconds]
Loaft has quit [Ping timeout: 245 seconds]
Yayo is now known as Loaft
akashj87_ has joined #ruby
alvaro_o has joined #ruby
atyz has quit [Quit: Linkinus - http://linkinus.com]
Lo^93 has quit [Read error: Operation timed out]
geggam_wk has joined #ruby
Yayo has joined #ruby
Lo^02 has joined #ruby
pygmael has quit [Quit: pygmael]
Lo^18 has joined #ruby
Lo^36 has joined #ruby
Lo^62 has quit [Ping timeout: 245 seconds]
akashj87 has quit [Ping timeout: 248 seconds]
banister`sleep has joined #ruby
angusiguess has joined #ruby
dr_bob has quit [Quit: Leaving.]
skum has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
Vainoharhainen has quit [Read error: Connection reset by peer]
Loaft has quit [Ping timeout: 272 seconds]
Yayo has quit [Ping timeout: 256 seconds]
hamed_r has quit [Quit: Leaving]
akemrir has quit [Quit: WeeChat 0.4.0]
Lo^02 has quit [Ping timeout: 240 seconds]
akashj87_ has quit [Quit: l]
sambao21 has quit [Quit: Computer has gone to sleep.]
Lo^18 has quit [Ping timeout: 246 seconds]
smp has joined #ruby
carloslopes has joined #ruby
dr_bob has joined #ruby
tobago has joined #ruby
Morkel has joined #ruby
Lo^36 has quit [Ping timeout: 246 seconds]
slainer68 has joined #ruby
<mellow> does anyone know
<mellow> a library to create a socks proxy?
Morkel has quit [Client Quit]
<mellow> not something like socksify
Yayo has joined #ruby
tagrudev has quit [Remote host closed the connection]
<mellow> I want to code a socks proxy and have it listen and then handle requests
banister`sleep is now known as banisterfiend
skum has quit [Client Quit]
<shevy> mellow hmm no idea, unfortunately
jurassic_ has quit [Quit: jurassic_]
<shevy> does not standard ruby library come with support for sockets though? perhaps you could delegate through that
hydrozen has quit [Quit: Textual IRC Client: www.textualapp.com]
<bean> ?
slainer6_ has quit [Ping timeout: 245 seconds]
pduin has quit [Remote host closed the connection]
akashj87 has joined #ruby
<bean> ah, you want to write your own version of that
<shevy> nathanl one day I'll finish my old shell, name I gave it was "diamond shell". there are a few things I am unhappy with it, aside from that I must create many more small gems so others could use it. for instance, in bash "ls" is super fast. if you implement ls in ruby (like via Dir['*']), it is much slower, especially for many files, at least that was my impression so far with it :(
buscon has quit [Quit: Leaving]
<shevy> s/large files / large, many files/
<mellow> yes
<mellow> I want to be the socks server
<mellow> that allows you to proxy thorugh the socks server
<shevy> hehe
<shevy> always have to think of a pair of socks ...
TorpedoSkyline has joined #ruby
jnoob22 has quit [Ping timeout: 245 seconds]
choobie has joined #ruby
choobie has quit [Changing host]
choobie has joined #ruby
Yayo has quit [Ping timeout: 246 seconds]
<mellow> thanks, but that is an http proxy server, I think I'm wrong when thinking of a socks server, I want something that "imitates" at a tcp level
<mellow> like a nat
robscomputer has quit [Ping timeout: 246 seconds]
<mellow> I want client -> my server -> tor, and have my server be invisible
jblack has joined #ruby
razibog has quit [Ping timeout: 246 seconds]
chussenot has joined #ruby
chussenot has quit [Client Quit]
mklappstuhl has quit [Ping timeout: 240 seconds]
Loaft has joined #ruby
carloslopes has quit [Ping timeout: 240 seconds]
chussenot has joined #ruby
chussenot has quit [Client Quit]
Loaft has quit [Read error: Connection reset by peer]
<mellow> oh this is more complicated
Loaft has joined #ruby
dr_bob has quit [Read error: Connection reset by peer]
burgestrand has quit [Quit: Leaving.]
<shevy> mellow things often are :D
<mellow> I want a client in ruby that creates tor requests, and encapsulates it through a server that will send it transparently
jonahR has joined #ruby
<mellow> so if all bridges of tor are blocked, I can use my server and have tor working
bricker`1A has joined #ruby
Loaft has quit [Read error: Connection reset by peer]
<mellow> does this make sense?
jjbohn has quit [Quit: Leaving...]
Loaft has joined #ruby
banisterfiend has quit [Ping timeout: 245 seconds]
Yayo has joined #ruby
Yayo has quit [Read error: Connection reset by peer]
zombor has joined #ruby
pioz has joined #ruby
Yayo has joined #ruby
mahmoudimus|away has joined #ruby
arturaz has quit [Ping timeout: 248 seconds]
<gestahlt> I have a question: what exactly does "camelize" mean? When i enter a string... like "thisstring".camelize what happens with the string?
bricker`LA has quit [Ping timeout: 245 seconds]
zombor has left #ruby ["Leaving..."]
maletor has joined #ruby
bricker`1A has quit [Ping timeout: 240 seconds]
marcdel has joined #ruby
Al__ has joined #ruby
<Spooner_> gestahlt, You could try it.
<shevy> gestahlt camelCase like thisstring either thisString or ThisString (hopefully)
bricker`LA has joined #ruby
carloslopes has joined #ruby
<shevy> sounds non standard however. must be rails then :D
<Spooner_> "pie_eater".camelize #=> "PieEater". "PieEater".underscore #=> "pie_eater"
Loaft has quit [Ping timeout: 272 seconds]
<Spooner_> It is activesupport, shevy .
pyro111 has joined #ruby
<gestahlt> Ah, is there a method to do somethign like this: "mystring".method :mystring?
banisterfiend has joined #ruby
<Spooner_> It is mainly used to convert from class name (camel-case) to and from file name (snake-case).
<shevy> what method is that gestahlt?
k610 has quit [Quit: Leaving]
<Spooner_> Do you mean "mystring".to_sym #=> :mystring ?
<gestahlt> Thats what i am asking. Im building a hash and i need a variable converterted to a symbol.. aw i just answered it myself.. it would be .to_symbol?
<shevy> ah, symbols
<shevy> to_sym indeed
Al_ has quit [Ping timeout: 245 seconds]
<shevy> "mystring".to_sym # => :mystring
<Spooner_> Yeah, use #=> to indicate the output. It looked like :mystring was an argument to #method.
xbob has joined #ruby
<shevy> dunno why it is #to_sym and not #to_symbol
sepp2k has quit [Ping timeout: 240 seconds]
<shevy> matz hates typing long stuff I think :D
<Hanmac> gestahlt ... convert to symbol may be a bad way if you dont know what you are doing
<Spooner_> Yes, like we have to_s and to_str, but not to_string ;)
<Hanmac> but we have String()
<shevy> yeah... damn to_str
<shevy> we have String() method??
includex has joined #ruby
<shevy> ack
<shevy> String(:foo) # => "foo"
<Hanmac> yeah, like we have Array() and Integer()
<Spooner_> Kernel.String(), just like Array() and Integer()
<shevy> I only knew about Integer()
<shevy> cool
<Hanmac> but for some reason its Hash[] and not Hash()
<shevy> but ugly
<shevy> hehe
maxmanders has joined #ruby
BadQuanta has quit [Quit: Leaving]
jonathanwallace has quit [Ping timeout: 245 seconds]
<shevy> principle of matz's least surprise
<Spooner_> Hanmac: Because the path of least surprise is a lie (like cake!).
<shevy> yeah
Uranio has joined #ruby
sie has quit [Ping timeout: 272 seconds]
Nisstyre-laptop has quit [Ping timeout: 272 seconds]
<shevy> enforcing consistency within a large programming language must be difficult
tommyvyo has quit [Quit:]
<Hanmac> Spooner_ yeah its the Path of "Wen the Eternally Surprised" :D
<Spooner_> Yeah, but you'd think things that were inconsistent would get slowly deprecated (like Hash[] to Hash()).
ckrailo has quit [Quit: Computer has gone to sleep.]
pyro111 has quit [Quit: Leaving]
xbob has quit [Client Quit]
sambao21 has joined #ruby
Tricon has joined #ruby
maxmanders has quit [Client Quit]
ckrailo has joined #ruby
i_s has joined #ruby
<shevy> perhaps in ruby 3.0
ckrailo has quit [Client Quit]
pangur has joined #ruby
threesome has quit [Ping timeout: 245 seconds]
Spooner_ has quit [Remote host closed the connection]
girija has quit [Ping timeout: 256 seconds]
<tobago> I try to implement a sort method for a Pixel class:https://gist.github.com/trinibago/5255601
peterhellberg has quit [Remote host closed the connection]
<tobago> but the sort algorithm doesn't work
chussenot has joined #ruby
maxmanders has joined #ruby
brianpWins has joined #ruby
<pangur> On Mint14, after using rvm to install Ruby 2.0.0, I get the following error message: Error running 'env GEM_PATH=/home/calum/.rvm/gems/ruby-2.0.0-p0:/home/calum/.rvm/gems/ruby-2.0.0-p0@global:/home/calum/.rvm/gems/ruby-2.0.0-p0:/home/calum/.rvm/gems/ruby-2.0.0-p0@global GEM_HOME=/home/calum/.rvm/gems/ruby-2.0.0-p0 /home/calum/.rvm/rubies/ruby-2.0.0-p0/bin/ruby -d /home/calum/.rvm/src/rubygems-2.0.3/setup.rb --verbose'
sepp2k has joined #ruby
etcetera has quit []
<pangur> Does this mean that I cannot upgrade to 2.0.0
<pangur> ?
<shevy> ack pangur
<tobago> how to combine 2 sorts (first sort by x coordinates and then by y coordinates)
jonahR has quit [Quit: jonahR]
Elhu has joined #ruby
etcetera has joined #ruby
<shevy> pangur no idea, there is #rvm with the experts there. if I were you, I'd try to first see if you can compile ruby 2.0.0 from source (configure + make)
<shevy> url should be ftp://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p0.tar.bz2
Yayo has quit [Read error: Connection reset by peer]
TorpedoSkyline has quit [Quit: Computer has gone to… zzzzz...]
<pangur> OK, thanks for that advice, shevy. I shall trying downloading and compiling. I am not too confident about compiling, that is why I was using rvm! :)
ckrailo has joined #ruby
Loaft has joined #ruby
mellow has quit [Quit: http://www.kiwiirc.com/ - A hand-crafted IRC client]
p8952 has joined #ruby
mahmoudimus|away has quit [Quit: Computer has gone to sleep.]
Yayo has joined #ruby
TorpedoSkyline has joined #ruby
marcdel has quit []
<pangur> Actually, I shall try asking in #rvm first and see what they say.
freerobby1 has quit [Quit: Leaving.]
<pangur> Thanks again, shevy.
<tobago> I added my expectation to make it more clear, what I want: https://gist.github.com/trinibago/5255601
Goles has quit [Quit: Computer has gone to sleep.]
stef_204 has quit [Quit: quitting]
divout has joined #ruby
choobie has quit [Ping timeout: 245 seconds]
angusiguess has quit [Ping timeout: 245 seconds]
rasbonics has joined #ruby
Davey has quit [Ping timeout: 240 seconds]
Loaft has quit [Ping timeout: 240 seconds]
mengu_ has quit [Ping timeout: 248 seconds]
eka has joined #ruby
<lupine> can anyone explain the purpose of /usr/lib/ruby/vendor_ruby to me? i'm looking for somewhere to put aye
Yayo has quit [Ping timeout: 256 seconds]
psyprus has joined #ruby
seich- has joined #ruby
<lupine> ahem. I'm looking for somewhere to put ruby-version-independent code
bigoldrock has joined #ruby
blaxter has quit [Ping timeout: 240 seconds]
dr_bob has joined #ruby
<lupine> libraries that may be used by both 1.8 and 1.9, for instance
Yayo has joined #ruby
jblack has quit [Ping timeout: 240 seconds]
gestahlt has quit [Quit: ChatZilla 0.9.89 [Firefox 17.0.1/20121129151842]]
xjunior has quit [Remote host closed the connection]
<shevy> pangur I think RVM compiles from source as well, into the $HOME directory, or?
chussenot has quit [Quit: chussenot]
<shevy> and the version management is done via symlinks, as far as I know, which is what GoboLinux does too, but for all programs, not just for ruby
daniel_hinojosa has joined #ruby
sambao21 has quit [Ping timeout: 245 seconds]
pioz has quit [Read error: Connection reset by peer]
pioz_ has joined #ruby
jblack has joined #ruby
benlieb has quit [Quit: benlieb]
Al__ has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Remote host closed the connection]
maletor has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Yakko has quit [Ping timeout: 272 seconds]
<lessless> can I use Module.included for instance variable initialization?
BadDesign has joined #ruby
ShellFu has joined #ruby
sleetdrop has quit [Remote host closed the connection]
<slash_nick> lessless: yep
nullenc0de has quit [Ping timeout: 272 seconds]
sk87 has quit [Quit: sk87]
psyprus has quit [Changing host]
psyprus has joined #ruby
<tobago> how to combine 2 sorts (first sort by x coordinates and then by y coordinates)
buibex has quit [Remote host closed the connection]
rasbonics has left #ruby [#ruby]
<tobago> I added my expectation to make it more clear, what I want: https://gist.github.com/trinibago/5255601
cearls has quit [Remote host closed the connection]
<hoelzro> tobago: y <=> other.y is being ignored
<hoelzro> you're discarding the return value
jgrevich has joined #ruby
<hoelzro> try y_comparison = y <=> other.y ; if y_comparison == 0 ; x <=> other.x ; else y_comparison end
<tobago> hoelzro: right, but how to include it into the sort (in second order)?
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
timonv has quit [Remote host closed the connection]
mikepack has joined #ruby
Yayo has quit [Ping timeout: 245 seconds]
jbynum has joined #ruby
Yayo has joined #ruby
sleetdrop has joined #ruby
polymar has quit [Remote host closed the connection]
<tobago> hoelzro: then the result is: https://gist.github.com/trinibago/5255863
ExxKA has quit [Quit: This computer has gone to sleep]
<tobago> the order is wrong.
* hoelzro looks at expectations again
<Hanmac> tobago: (y <=> other.y).zero? ? 0 : x <=> other.x
<hoelzro> tobago: then swap the comparisons
<hoelzro> x_comparison = x <=> other.x if x_comparison == 0, etc
<hoelzro> Hanmac: I don't think that will work...
<Hanmac> yeah i have it wrong
maletor has joined #ruby
moted has joined #ruby
<Hanmac> (n= y <=> other.y).zero? ? x <=> other.x : n
wmoxam has quit [Ping timeout: 252 seconds]
Yayo has quit [Ping timeout: 245 seconds]
Loaft has joined #ruby
freerobby has joined #ruby
Yayo has joined #ruby
banjara has joined #ruby
kpshek has quit []
Yayo has quit [Read error: Connection reset by peer]
includex has quit [Read error: Connection reset by peer]
twoism has joined #ruby
Yayo has joined #ruby
Lo^18 has joined #ruby
regedarek has quit [Quit: leaving]
dhruvasagar has quit [Ping timeout: 256 seconds]
Lo^18 has quit [Read error: Connection reset by peer]
chussenot has joined #ruby
Lo^15 has joined #ruby
<tobago> Hanmac, hoelzro: many thanks!!! I only had to change the sort order.
Lo^77 has joined #ruby
Lo^77 has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby
<Hanmac> tobago: if you have an array of points you can use sort_by {|p| [p.y,p.x]}
Loaft has quit [Ping timeout: 245 seconds]
Lo^50 has joined #ruby
jonahR has joined #ruby
Loaft has joined #ruby
sleetdrop has quit [Ping timeout: 240 seconds]
stef_204 has joined #ruby
<tobago> Hanmac: I coded a Pixel class for the points to add some methods.
<tobago> that's why i didn't used an array for keeping the coordinates
Yayo has quit [Ping timeout: 245 seconds]
Yayo has joined #ruby
Lo^03 has joined #ruby
Lo^03 has quit [Read error: Connection reset by peer]
regedarek has joined #ruby
Lo^04 has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
Lo^15 has quit [Ping timeout: 245 seconds]
Lo^76 has joined #ruby
jurassic_ has joined #ruby
mahoney has joined #ruby
maxmanders has joined #ruby
Lo^48 has joined #ruby
sleetdrop has joined #ruby
Lo^99 has joined #ruby
mattbl has joined #ruby
LennyLinux has joined #ruby
Lo^99 has quit [Read error: Connection reset by peer]
Lo^50 has quit [Ping timeout: 272 seconds]
jnoob22 has joined #ruby
Lo^99 has joined #ruby
marcdel has joined #ruby
Loaft has quit [Ping timeout: 245 seconds]
atno has joined #ruby
atno has quit [Remote host closed the connection]
jdunck has joined #ruby
Yayo has quit [Ping timeout: 240 seconds]
Loaft has joined #ruby
atno has joined #ruby
mattbl has quit [Client Quit]
atno has quit [Remote host closed the connection]
sleetdrop has quit [Client Quit]
etcetera has quit [Ping timeout: 240 seconds]
girija has joined #ruby
mengu_ has joined #ruby
gestahlt has joined #ruby
rupee has joined #ruby
Randomage has quit [Ping timeout: 264 seconds]
ukd1 has joined #ruby
Lo^04 has quit [Ping timeout: 240 seconds]
wmoxam has joined #ruby
Lo^76 has quit [Ping timeout: 245 seconds]
jonathanwallace has joined #ruby
<gestahlt> Hi, im still stuck at building a nested has. I did this: layout_information = Hash.new and later i tried to layout_information { :disk => { index.to_sym { Hash.new } } } which seems wrong
Lo^48 has quit [Ping timeout: 246 seconds]
<gestahlt> i get "unexpecteed { expected tASSOC
_nitti_ has quit [Read error: Operation timed out]
<gestahlt> Whats wrong with that?
_nitti has joined #ruby
etcetera has joined #ruby
<MrZYX> layout_information = {disk: {index: {}}}, also read up about blocks
Lo^99 has quit [Ping timeout: 245 seconds]
<mahoney> gestahlt: It seems like you might want "layout_information[:disk] = { ... }" or "layout_information = { :disk => .... }"
<gestahlt> but index is a variable i used.. will this variable disregarded
renanoronfle has joined #ruby
Al_ has joined #ruby
<gestahlt> Whats the difference mahoney?
<Hanmac> gestahlt: it does not work like that
kpshek has joined #ruby
<mahoney> gestahlt: The first adds :disk to the existing layout_information. The second reinitializes layout_information.
jdunck has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<Hanmac> gestrahlt: { something: val } only forks for symbol literals
renanoronfle has quit [Client Quit]
threesome has joined #ruby
jdunck has joined #ruby
browndawg has quit [Quit: Leaving.]
XxBlakeFailxX has quit [Ping timeout: 245 seconds]
bean has quit [Quit: Computer has gone to sleep.]
markalanevans has joined #ruby
<gestahlt> This is what i try to do: https://gist.github.com/anonymous/5256062
nkr has joined #ruby
<gestahlt> I need it for writing it later as a yaml
staafl_123 has joined #ruby
<gestahlt> So i wanted to collect my information in hashes
markalanevans has quit [Remote host closed the connection]
eldariof has joined #ruby
markalanevans has joined #ruby
<mahoney> gestahlt: You're converting that file to a hash?
<gestahlt> mahoney: No, i want to convert it to yaml
icole has joined #ruby
<gestahlt> Hash to yaml
<bakingbread> gestahlt: .to_yaml
<gestahlt> and i need the hash throughout the application.. (well i can do it also with a lot of variables but it seems more convinient with a hash)
<gestahlt> bakingbread: yeah, but i have to build the hash first properly :)
renanoronfle has joined #ruby
browndawg has joined #ruby
<bakingbread> gestahlt: I have missed the start of the conversation
staafl_alt has quit [Ping timeout: 260 seconds]
atno has joined #ruby
thecreators has joined #ruby
bordicon has joined #ruby
Loaft has quit [Ping timeout: 240 seconds]
<mahoney> gestahlt: Like this? https://gist.github.com/timahoney/5256121
Spooner has joined #ruby
Yayo has joined #ruby
axl_ has quit [Ping timeout: 240 seconds]
Yayo has quit [Read error: Connection reset by peer]
axl_ has joined #ruby
Yayo has joined #ruby
mockra has joined #ruby
<gestahlt> mahoney: Kinda. The 0 is the variable "index". and it parents a second hash which also parents another hash
<gestahlt> Basically a tree
Lo^70 has joined #ruby
joofsh has quit [Remote host closed the connection]
atno has quit [Read error: Connection reset by peer]
<mahoney> That should work, just use index instead of :0
<LennyLinux> besides railscasts, can you suggest me some screencasts site, please?
mengu_ has quit [Quit: Konversation terminated!]
atno has joined #ruby
anonymuse has joined #ruby
atno has quit [Remote host closed the connection]
<LennyLinux> Not necessarily about ruby..
gchristensen has left #ruby ["WeeChat 0.4.0"]
mrsolo has joined #ruby
_carloslopes has joined #ruby
carloslopes has quit [Read error: Connection reset by peer]
atno has joined #ruby
Yayo has quit [Ping timeout: 245 seconds]
hiroyuki has joined #ruby
Lo^70 has quit [Ping timeout: 240 seconds]
hiroyuki has quit [Read error: Connection reset by peer]
Yayo has joined #ruby
wolcanus has quit [Remote host closed the connection]
Yayo has quit [Read error: Connection reset by peer]
Yayo has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
_nitti_ has joined #ruby
Lo^60 has joined #ruby
atno has quit [Remote host closed the connection]
Lo^60 has quit [Read error: Connection reset by peer]
joofsh has joined #ruby
atno has joined #ruby
Lo^16 has joined #ruby
ij has joined #ruby
ij has quit [Changing host]
ij has joined #ruby
thecreators has quit [Quit: thecreators]
wolcanus has joined #ruby
_nitti has quit [Ping timeout: 245 seconds]
Lo^16 is now known as Loaft
cobragoat has joined #ruby
ij has quit [Client Quit]
Yayo has quit [Ping timeout: 252 seconds]
smigg has joined #ruby
Yayo has joined #ruby
browndawg has quit [Quit: Leaving.]
bricker`LA has quit [Ping timeout: 240 seconds]
brhelwig has quit [Remote host closed the connection]
brhelwig has joined #ruby
browndawg has joined #ruby
Lo^68 has joined #ruby
Lo^68 has quit [Read error: Connection reset by peer]
Lo^37 has joined #ruby
Loaft has quit [Read error: Connection reset by peer]
Loaft has joined #ruby
joofsh has quit [Remote host closed the connection]
ukd1 has quit [Remote host closed the connection]
Vert has joined #ruby
goganchic has joined #ruby
swex_ has joined #ruby
c0rn has joined #ruby
stkowski has joined #ruby
Yayo has quit [Ping timeout: 240 seconds]
maxmanders has joined #ruby
Yayo has joined #ruby
mephux has quit [Excess Flood]
breakingthings has quit []
Lo^37 has quit [Ping timeout: 240 seconds]
mephux has joined #ruby
_nitti_ has quit [Remote host closed the connection]
ukd1 has joined #ruby
tommyvyo has joined #ruby
swex has quit [Ping timeout: 256 seconds]
Loaft has quit [Ping timeout: 256 seconds]
browndawg has left #ruby [#ruby]
slainer68 has quit [Remote host closed the connection]
angusiguess has joined #ruby
browndawg has joined #ruby
p8952 has quit [Ping timeout: 245 seconds]
Yayo has quit [Ping timeout: 252 seconds]
renanoronfle has quit [Quit: This computer has gone to sleep]
moos3 has quit [Quit: Computer has gone to sleep.]
musl has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
jfelchner1 has quit [Ping timeout: 240 seconds]
musl has quit [Remote host closed the connection]
Yayo has joined #ruby
Yayo has quit [Read error: Connection reset by peer]
musl has joined #ruby
Yayo has joined #ruby
<LennyLinux> Does eval.in work for you?
bordicon has quit [Ping timeout: 252 seconds]
sweeper has joined #ruby
<sweeper> anyone here ever used Ruby-GNOME2?
Lo^80 has joined #ruby
jbueza has joined #ruby
moos3 has joined #ruby
zeade has joined #ruby
<Hanmac> sweep my friends used that .. but i currently use wxwidgets build against gtk3 with my own wx-ruby extension
<sweeper> need to do a bit of work with gstreamer, don't particularly care if I use ruby or python, but rest of team would prefer ruby. it needs to be fairly straightforward tho
joofsh has joined #ruby
mityaz has joined #ruby
maxmanders has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
cearls has joined #ruby
tobago has quit [Ping timeout: 240 seconds]
Yayo has quit [Ping timeout: 246 seconds]
<Hanmac> LennyLinux: http://www.isup.me/eval.in
mercwithamouth has quit [Ping timeout: 272 seconds]
Ontolog has joined #ruby
sonda has joined #ruby
<LennyLinux> Nice tool
jaygen has quit [Read error: Operation timed out]
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Lo^80 has quit [Ping timeout: 240 seconds]
stef_204 has joined #ruby
Yayo has joined #ruby
pangur has quit [Quit: Leaving]
renanoronfle has joined #ruby
buibex has joined #ruby
Lo^04 has joined #ruby
Lo^04 has quit [Read error: Connection reset by peer]
Loaft has joined #ruby
Lo^64 has joined #ruby
<gestahlt> Mahoney, thanks that helped partially. Now im a bit confused over the part to create new hashes.. means how can i append hashes?
<gestahlt> I only manage to replace them
brianherman has joined #ruby
afex has quit [Ping timeout: 240 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
Crayanne has joined #ruby
Lo^64 has quit [Read error: Connection reset by peer]
<Crayanne> Excuse me, but is this where I can ask a simple beginner's question?
xardas has joined #ruby
Lo^20 has joined #ruby
<gestahlt> I ask them all the time...
Yayo has quit [Ping timeout: 245 seconds]
Yayo has joined #ruby
<mahoney> gestahlt: Append hashes? Like to an array?
Yayo has quit [Read error: Connection reset by peer]
<gestahlt> yeah.. like .push
atno has quit [Remote host closed the connection]
<gestahlt> append hash to hash :)
<mahoney> You can add to a hash with hash[key] = value
<gestahlt> Oh? I have the impression it gets overwritten
<mahoney> The value in that key gets overwritten, but not the whole hash.
Yayo has joined #ruby
<Hanmac> gestahlt: you can use hash.store(key,value) too
<Crayanne> I am very new to Ruby and programming in general.
stevechiagozie has quit [Quit: Computer has gone to sleep.]
Loaft has quit [Ping timeout: 252 seconds]
bigoldrock has quit [Remote host closed the connection]
<Hanmac> Crayanne: you are allowed to ask :P
Yayo is now known as Loaft
<gestahlt> Confuzing..
<Crayanne> elsif msg.text == "Hello"
<Crayanne> reply(msg, "Good day")
stevechiagozie has joined #ruby
<Crayanne> So if I type in "Hello," it responds "Good day."
jaygen has joined #ruby
robscomputer has joined #ruby
<Crayanne> What if I want it to pick randomly from one of several responses? Like "Good day" or "Hello to you too."
<gestahlt> Okay.. i acces to my key with hash[:key] and i get a return value.. ok when i add a new hash to the [:key] its hash[:key] => {}
<gestahlt> arfff
Lo^20 has quit [Ping timeout: 272 seconds]
Nisstyre-laptop has joined #ruby
josefrichter has quit [Ping timeout: 240 seconds]
zigomir has quit [Quit: zigomir]
<gestahlt> anyway. gtg
<gestahlt> cya
gestahlt has quit [Quit: ChatZilla 0.9.89 [Firefox 17.0.1/20121129151842]]
Loaft has quit [Ping timeout: 252 seconds]
SCommette_ has joined #ruby
SCommette has quit [Ping timeout: 252 seconds]
SCommette_ is now known as SCommette
<mahoney> Crayanne: If you have an array of responses like ["Good day", "Hello to you too", "Howdy!"], then you can use Array#sample to get a random element.
josefrichter has joined #ruby
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
joofsh has quit [Remote host closed the connection]
pioz has joined #ruby
mercwithamouth has joined #ruby
Coolhand has quit [Read error: Connection reset by peer]
Yayo has joined #ruby
<Crayanne> Okay. Thank you.
whitedawg has joined #ruby
pioz has quit [Client Quit]
skattyadz has quit [Quit: skattyadz]
Morkel has joined #ruby
bordicon has joined #ruby
chrishough has quit [Quit: chrishough]
Lo^29 has joined #ruby
Spooner has quit [Remote host closed the connection]
atno has joined #ruby
marcdel has quit [Ping timeout: 244 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
Coolhand has joined #ruby
Lo^66 has joined #ruby
pioz_ has quit [Ping timeout: 248 seconds]
Lo^94 has joined #ruby
_nitti has joined #ruby
dr_bob has left #ruby [#ruby]
mengu has joined #ruby
dhruvasagar has joined #ruby
goganchic has quit [Quit: leaving]
Yayo has quit [Ping timeout: 272 seconds]
joofsh has joined #ruby
Lo^94 is now known as Loaft
interactionjaxsn has joined #ruby
carlyle has joined #ruby
marcdel has joined #ruby
bean has joined #ruby
Lo^29 has quit [Ping timeout: 272 seconds]
Lo^66 has quit [Ping timeout: 256 seconds]
atno has quit [Remote host closed the connection]
Yayo has joined #ruby
skattyadz has joined #ruby
pi3r has quit [Quit: Leaving]
Lo^72 has joined #ruby
Gate_ is now known as Gate
Gate has quit [Changing host]
Gate has joined #ruby
kpshek has quit []
Loaft has quit [Ping timeout: 256 seconds]
atno has joined #ruby
Yayo has quit [Ping timeout: 245 seconds]
_nitti has quit [Ping timeout: 246 seconds]
Lo^72 has quit [Ping timeout: 240 seconds]
brhelwig_ has joined #ruby
chrishough has joined #ruby
apeiros_ has joined #ruby
ebobby has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
Loaft has joined #ruby
mafolz has quit [Ping timeout: 256 seconds]
Yayo has joined #ruby
xpen_ has joined #ruby
kofno has quit [Remote host closed the connection]
brhelwig has quit [Ping timeout: 240 seconds]
ShellFu has left #ruby [#ruby]
xpen has quit [Ping timeout: 264 seconds]
nignaztic has joined #ruby
nignaztic has quit [Read error: Connection reset by peer]
Loaft has quit [Ping timeout: 245 seconds]
_nitti has joined #ruby
_nitti has quit [Read error: Connection reset by peer]
kofno has joined #ruby
failshel_ has joined #ruby
Yayo has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
_nitti has joined #ruby
Yayo has joined #ruby
Yayo has quit [Read error: Connection reset by peer]
Yayo has joined #ruby
Coolhand has quit [Read error: Operation timed out]
Yayo has quit [Read error: Connection reset by peer]
ferdev has joined #ruby
toekutr has joined #ruby
Yayo has joined #ruby
failshell has quit [Ping timeout: 245 seconds]
Lo^05 has joined #ruby
Al_ has quit [Quit: Al_]
<nathanl> Process.daemon; loop { fork { a=[]; loop { a<<(1..1000).inject(:*) || 1 }}}
adkron has joined #ruby
<nathanl> fun times
senayar has joined #ruby
_nitti has quit [Ping timeout: 245 seconds]
browndawg has left #ruby [#ruby]
sepp2k has quit [Quit: Leaving.]
shadoi has joined #ruby
Lo^05 is now known as Loaft
shadoi has quit [Client Quit]
spaz76 has quit [Quit: spaz76]
shadoi has joined #ruby
logix812 has joined #ruby
mercwithamouth has quit [Ping timeout: 272 seconds]
Nisstyre-laptop has quit [Ping timeout: 272 seconds]
jimeh has quit [Quit: Computer has gone to sleep.]
daniel_hinojosa has quit [Quit: Leaving.]
Yayo has quit [Ping timeout: 252 seconds]
Yayo has joined #ruby
Ontolog has quit [Read error: Connection reset by peer]
Ontolog has joined #ruby
jfelchner1 has joined #ruby
Lo^56 has joined #ruby
cgore has joined #ruby
Lo^56 has quit [Read error: Connection reset by peer]
Lo^75 has joined #ruby
<logix812> I have to be something wrong here, I am just trying to send a string through a socket, but I get nothing on the other end: http://dpaste.com/1036789/
<logix812> The server is listening, I can open a telnet session and send the same string and I get the expected response
sambio has quit [Ping timeout: 264 seconds]
Lo^41 has joined #ruby
havenwood has joined #ruby
breakingthings has joined #ruby
Lo^41 has quit [Read error: Connection reset by peer]
romanization81 has joined #ruby
Nisstyre-laptop has joined #ruby
Lo^69 has joined #ruby
jimeh has joined #ruby
Loaft has quit [Ping timeout: 256 seconds]
Loaft has joined #ruby
emmanuelux has joined #ruby
BadDesign has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
mattbl has joined #ruby
Yayo has quit [Ping timeout: 272 seconds]
duosrx has quit [Remote host closed the connection]
JohnBat26 has joined #ruby
mellowMike has quit [Quit: leaving]
Lo^75 has quit [Ping timeout: 272 seconds]
SCommette has quit [Quit: SCommette]
Loaft has quit [Read error: Connection reset by peer]
Loaft has joined #ruby
atno has quit [Remote host closed the connection]
Yayo has joined #ruby
reset has joined #ruby
daniel_hinojosa has joined #ruby
r0bby has joined #ruby
Lo^69 has quit [Ping timeout: 256 seconds]
Lo^23 has joined #ruby
kirun has joined #ruby
_nitti has joined #ruby
<failshel_> anyone knows of a ruby-based website monitoring tool? something in-house
cableray has joined #ruby
Lo^01 has joined #ruby
SCommette has joined #ruby
ToApolytoXaos has joined #ruby
tenmilestereo has joined #ruby
<bean> logix812: that code works for me w/ netcat listening
angusiguess has quit [Ping timeout: 246 seconds]
Akuma has quit [Ping timeout: 264 seconds]
<logix812> bean: if data is first sent back over the socket do you have to do anything special before you can send? In my case, on connect a string is sent back immediately
robbyoconnor has quit [Ping timeout: 264 seconds]
Goles has joined #ruby
<bean> [1] pry(main)> require 'socket'
<bean> [2] pry(main)> s = TCPSocket.new "localhost", 23
<bean> => true
<bean> [3] pry(main)> s.write "Hello, World!"
<bean> => #<TCPSocket:fd 5>
<bean> => 13
<bean> sry for paste
atno has joined #ruby
Loaft has quit [Ping timeout: 246 seconds]
Yayo has quit [Ping timeout: 240 seconds]
Coolhand has joined #ruby
<bean> and then the other side sees "Hello, World!%"
dustint has quit [Remote host closed the connection]
<logix812> gah! I see what did…
Lo^23 has quit [Ping timeout: 246 seconds]
Ontolog has quit [Read error: Connection reset by peer]
romanization81 has quit [Ping timeout: 245 seconds]
Ontolog has joined #ruby
reset has quit [Quit: Leaving...]
chussenot has quit [Quit: chussenot]
ryanf has joined #ruby
dustint has joined #ruby
shadoi is now known as blakeb
Lo^01 has quit [Ping timeout: 256 seconds]
tgunr has joined #ruby
sebastianb has quit [Ping timeout: 246 seconds]
tgunr has quit [Client Quit]
Zai00 has quit [Quit: Zai00]
tgunr has joined #ruby
Loaft has joined #ruby
mark_locklear has quit [Remote host closed the connection]
Uranio has quit [Quit: while you reading this, a kitty dies]
rdark has quit [Quit: leaving]
whitedawg has quit [Quit: Leaving.]
sebastianb has joined #ruby
timonv has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
Yayo has joined #ruby
failshel_ is now known as failshell
divout has quit [Read error: Connection reset by peer]
sebastianb has quit [Remote host closed the connection]
sebastianb has joined #ruby
maxmanders has joined #ruby
sepp2k has joined #ruby
Loaft has quit [Ping timeout: 246 seconds]
tonini has joined #ruby
rickmasta has quit [Quit: Be back later]
Yayo has quit [Ping timeout: 240 seconds]
m8 has joined #ruby
Crayanne has quit []
Akuma has joined #ruby
Loaft has joined #ruby
atno has quit [Remote host closed the connection]
pavilionXP has quit [Ping timeout: 264 seconds]
Hanmac has quit [Ping timeout: 264 seconds]
robscomputer has quit [Read error: Connection reset by peer]
robscomputer has joined #ruby
tjbiddle has joined #ruby
nothingism28 has joined #ruby
Morkel has quit [Quit: Morkel]
Yayo has joined #ruby
Morkel has joined #ruby
cantonic has joined #ruby
robscomputer_ has joined #ruby
atno has joined #ruby
robscomputer has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
Loaft has quit [Ping timeout: 256 seconds]
Shadow_S has joined #ruby
Shadow_S has quit [Remote host closed the connection]
Elhu has joined #ruby
anirudh24seven has quit [Quit: ChatZilla 0.9.89 [Firefox 19.0.2/20130307122853]]
Yayo has quit [Ping timeout: 240 seconds]
Loaft has joined #ruby
rismoney has joined #ruby
_carloslopes has quit [Remote host closed the connection]
carloslopes has joined #ruby
pygmael has joined #ruby
danslo has quit [Quit: danslo]
jcheng has quit [Quit: Computer has gone to sleep.]
Loaft has quit [Ping timeout: 252 seconds]
reset has joined #ruby
gyre007 has quit [Ping timeout: 245 seconds]
amth has joined #ruby
freerobby has quit [Quit: Leaving.]
etcetera has quit []
heliumsocket has quit [Quit: heliumsocket]
andrewh_ is now known as andrewh
w400z has joined #ruby
rickmasta has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
etcetera has joined #ruby
mattbl has joined #ruby
mmitchel_ has joined #ruby
averiso has quit [Quit: Computer has gone to sleep.]
tjbiddle has quit [Ping timeout: 272 seconds]
pixie79 has quit [Remote host closed the connection]
Elhu has quit [Quit: Computer has gone to sleep.]
superninkendo has quit [Quit: Leaving.]
Tricon has quit [Quit: Linkinus - http://linkinus.com]
gaahrdner has quit [Remote host closed the connection]
robscomputer_ has quit [Read error: Connection reset by peer]
maxmanders has quit [Quit: Computer has gone to sleep.]
hmarr has quit []
robscomputer has joined #ruby
MehLaptop has joined #ruby
piotr_ has quit [Ping timeout: 248 seconds]
mmitchell has quit [Ping timeout: 245 seconds]
kirun has quit [Ping timeout: 246 seconds]
freerobby has joined #ruby
keyword has joined #ruby
<keyword> hi there I have a question can I format a number using printf but I want to format with comman instead dot
<keyword> "%4,1f%%" % "444444"
jfelchner1 has quit [Ping timeout: 240 seconds]
icole has quit [Remote host closed the connection]
<keyword> "%4,1f%%" % "444444"
<keyword> ArgumentError: malformed format string - %,
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
mikeg has joined #ruby
SCommette has quit [Quit: SCommette]
Faris7 has joined #ruby
ukd1 has quit [Remote host closed the connection]
Nisstyre-laptop has quit [Quit: Leaving]
BizarreCake has quit [Ping timeout: 245 seconds]
bradleyprice has joined #ruby
sambao21 has joined #ruby
fivethreeo has joined #ruby
r0bby_ has joined #ruby
ebobby has left #ruby [#ruby]
hemanth has joined #ruby
rezzack has joined #ruby
ckrailo has quit [Ping timeout: 276 seconds]
kofno_ has joined #ruby
pioz has joined #ruby
akashj87 has quit [Ping timeout: 246 seconds]
davetherat has quit [Remote host closed the connection]
timmow has quit [Remote host closed the connection]
fivethre1o has quit [Ping timeout: 264 seconds]
davetherat has joined #ruby
kofno has quit [Ping timeout: 246 seconds]
timonv has quit [Remote host closed the connection]
ckrailo has joined #ruby
r0bby has quit [Ping timeout: 246 seconds]
girija has quit [Ping timeout: 246 seconds]
dustint has quit [Ping timeout: 246 seconds]
hemanth_ has quit [Ping timeout: 246 seconds]
sambao21 has quit [Ping timeout: 245 seconds]
gaahrdner has joined #ruby
arya has quit [Ping timeout: 245 seconds]
mahoney has quit [Remote host closed the connection]
Myconix has joined #ruby
Opettaja has quit [Ping timeout: 264 seconds]
timonv has joined #ruby
Ontolog has quit [Read error: Connection reset by peer]
Ontolog has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
kpshek has joined #ruby
arya has joined #ruby
techlife has quit [Ping timeout: 245 seconds]
brhelwig_ has quit [Remote host closed the connection]
sambao21 has joined #ruby
megha has joined #ruby
BizarreCake has joined #ruby
josefrichter has quit [Quit: josefrichter]
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
baba has quit [Ping timeout: 272 seconds]
jnoob22 has quit [Remote host closed the connection]
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
Nisstyre-laptop has joined #ruby
slainer68 has joined #ruby
Davey has joined #ruby
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
JohnBat26 has joined #ruby
Elhu has joined #ruby
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
jonathanwallace1 has joined #ruby
jbueza has quit [Read error: Connection reset by peer]
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
jbueza has joined #ruby
dustint has joined #ruby
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
marcdel has quit []
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
sambao21 has quit [Ping timeout: 272 seconds]
jonathanwallace has quit [Ping timeout: 245 seconds]
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
techlife has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
duosrx has joined #ruby
tenmilestereo has quit [Quit: Leaving]
Opettaja has joined #ruby
icole has joined #ruby
motto has joined #ruby
Hanmac has joined #ruby
tonini has quit [Remote host closed the connection]
duosrx has quit [Ping timeout: 258 seconds]
m8 has quit [Ping timeout: 240 seconds]
elake has joined #ruby
BadQuanta has joined #ruby
elake has quit [Client Quit]
samuel02 has quit [Remote host closed the connection]
jlebrech has joined #ruby
kpshek has quit []
tobago has joined #ruby
ukd1 has joined #ruby
codecop has quit [Read error: Operation timed out]
cantonic has quit [Quit: cantonic]
SCommette has joined #ruby
brhelwig has joined #ruby
_nitti has quit [Ping timeout: 272 seconds]
Faris8 has joined #ruby
rtl_ is now known as rtl
Faris9 has joined #ruby
<BadQuanta> Anyone happen to know why I get a "Java wrapper with no contents" when I extend a JFrame in JRuby? Just checking here.
timonv has quit [Remote host closed the connection]
io_syl has quit [Quit: Textual IRC Client: www.textualapp.com]
Faris7 has quit [Ping timeout: 272 seconds]
<BadQuanta> I can find a couple of places online that mention this error regarding subclassing "Runnables", but nothing about JFrames
<Hanmac> BadQuanta: you may ask at #jruby or #java
* Hanmac developing is java-free
freerobby has quit [Quit: Leaving.]
<BadQuanta> Tried #JRuby just a moment ago.
<breakingthings> juhrubby
jekotia has joined #ruby
<BadQuanta> Since Googling isn't comming up with any relevant results I'm asking around.
lilcyber has joined #ruby
<BadQuanta> JRuby seems dead atm.
<BadQuanta> The channel.
nkr has quit [Quit: Linkinus - http://linkinus.com]
r0bby_ is now known as robbyoconnor
keyword1 has joined #ruby
sonda has quit [Remote host closed the connection]
Faris8 has quit [Ping timeout: 252 seconds]
keyword1 has left #ruby [#ruby]
io_syl has joined #ruby
danslo has joined #ruby
keyword has quit [Ping timeout: 240 seconds]
tobago has quit [Ping timeout: 246 seconds]
Faris9 has quit [Ping timeout: 258 seconds]
bean has quit [Quit: Computer has gone to sleep.]
ukd1 has quit [Ping timeout: 272 seconds]
sailias has quit [Ping timeout: 245 seconds]
freerobby has joined #ruby
nomenkun has joined #ruby
kirun has joined #ruby
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
robscomputer has quit [Remote host closed the connection]
lilcyber has left #ruby [#ruby]
bluOxigen has quit [Ping timeout: 256 seconds]
Xeago has quit [Remote host closed the connection]
bluOxigen has joined #ruby
jgrevich has quit [Remote host closed the connection]
sambio has joined #ruby
baroquebobcat has joined #ruby
robustus|Off is now known as robustus
robustus is now known as robustus_
musl has quit [Quit: WeeChat 0.3.9.2]
robustus_ is now known as robustus
musl has joined #ruby
TooTubular has quit [Ping timeout: 272 seconds]
robscomputer has joined #ruby
pygmael has quit [Quit: pygmael]
_nitti has joined #ruby
codecop has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
[0x1a] has quit [Ping timeout: 256 seconds]
Tricon has joined #ruby
hemanth has joined #ruby
SeanTAllen has quit [Ping timeout: 255 seconds]
dekz__ has quit [Ping timeout: 252 seconds]
strax_ has quit [Ping timeout: 256 seconds]
dnyy has quit [Ping timeout: 256 seconds]
cool has quit [Ping timeout: 256 seconds]
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
niftylettuce has quit [Ping timeout: 272 seconds]
octarine has quit [Ping timeout: 276 seconds]
NimeshNeema has quit [Ping timeout: 276 seconds]
yeban has quit [Ping timeout: 256 seconds]
tevio has quit [Remote host closed the connection]
swex has joined #ruby
moeSeth_ has quit [Ping timeout: 245 seconds]
BizarreCake has quit [Ping timeout: 246 seconds]
randym has quit [Ping timeout: 264 seconds]
spanx has quit [Ping timeout: 260 seconds]
lectrick has quit [Ping timeout: 252 seconds]
fcoury has quit [Ping timeout: 255 seconds]
danman has joined #ruby
swex_ has quit [Ping timeout: 245 seconds]
im0b has quit [Ping timeout: 245 seconds]
karnowski has quit [Ping timeout: 245 seconds]
mtlatif has quit [Ping timeout: 276 seconds]
blooberr has quit [Ping timeout: 248 seconds]
lucaspiller___ has quit [Ping timeout: 264 seconds]
chessguy has joined #ruby
kirun_ has joined #ruby
pkondzior___ has quit [Ping timeout: 256 seconds]
Guest85414 has quit [Ping timeout: 256 seconds]
cam` has quit [Ping timeout: 276 seconds]
rwz has quit [Ping timeout: 276 seconds]
kaichanvong has quit [Ping timeout: 264 seconds]
Banistergalaxy has quit [Ping timeout: 245 seconds]
hbpoison has quit [Ping timeout: 240 seconds]
mmitchel_ has quit [Remote host closed the connection]
carraroj has quit [Quit: Konversation terminated!]
huoxito has quit [Quit: Leaving]
Banistergalaxy has joined #ruby
kirun has quit [Ping timeout: 245 seconds]
Morkel_ has joined #ruby
jonathanwallace1 has quit [Quit: WeeChat 0.3.9.2]
XxBlakeFailxX has joined #ruby
jblack has quit [Ping timeout: 240 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
Morkel has quit [Ping timeout: 258 seconds]
Morkel_ is now known as Morkel
jonathanwallace has joined #ruby
Elhu has joined #ruby
postmodern has joined #ruby
wolcanus has quit [Ping timeout: 272 seconds]
jblack has joined #ruby
Banistergalaxy has quit [Ping timeout: 252 seconds]
mmitchell has joined #ruby
mmitchell has quit [Remote host closed the connection]
luckyruby has joined #ruby
renanoronfle has quit [Quit: This computer has gone to sleep]
renanoronfle has joined #ruby
chrishough has quit [Quit: chrishough]
bean has joined #ruby
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby
mikurubeam has joined #ruby
krawchyk has quit [Remote host closed the connection]
goonda has joined #ruby
<goonda> la
Nisstyre-laptop has quit [Quit: Leaving]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
goonda has left #ruby [#ruby]
jfelchner1 has joined #ruby
mmitchell has joined #ruby
apeiros_ has quit [Ping timeout: 252 seconds]
ukd1 has joined #ruby
mmitchell has quit [Remote host closed the connection]
GreatSUN has joined #ruby
<GreatSUN> re
BadQuanta has quit [Ping timeout: 272 seconds]
mmitchell has joined #ruby
<GreatSUN> hey guys... I got a problem to solve
MehLaptop has quit [Remote host closed the connection]
<GreatSUN> I have a hash and an array of keys which describes where to set a value I also have
jfelchner1 has quit [Ping timeout: 246 seconds]
<GreatSUN> lol
<GreatSUN> I can just build a new hash and berge both
<GreatSUN> merge
pyreal has joined #ruby
bluOxigen has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
forrest has joined #ruby
eliasp has quit [Ping timeout: 256 seconds]
<havenwood> GreatSUN: Oh, hey - I did a gist based on your question yesterday about finding a keys' location in a hash: https://gist.github.com/havenwood/5250760
Vainoharhainen has joined #ruby
A124 has quit [Ping timeout: 264 seconds]
<havenwood> GreatSUN: This just finds the path within the hash of each key with a non-hash value. But could be modified easily to match only a particular key name.
lunks has joined #ruby
emergion has joined #ruby
Skofo has joined #ruby
smigg has quit [Remote host closed the connection]
<havenwood> GreatSUN: Just updated it to make it more readable.
tantalum has joined #ruby
renanoronfle has quit [Quit: This computer has gone to sleep]
hbpoison has joined #ruby
logix812 has quit [Quit: Textual IRC Client: www.textualapp.com]
tjbiddle has joined #ruby
<GreatSUN> great, will check it out
<GreatSUN> thanks for your engagement
tjbiddle has quit [Client Quit]
kpshek has joined #ruby
ukd1 has quit [Ping timeout: 272 seconds]
<Paradox> anyone played with messagepack? thoughts?
<havenwood> Paradox: Love it.
kpshek has quit [Client Quit]
<Paradox> havenwood, internal or as a client<->server communications tool?
<Paradox> im gonna be starting a startup this summer, and i'm getting all the details sorted out
apod has joined #ruby
<lunks> Can I wrap a bash script (like sub) in a gem?
<Paradox> yes
<havenwood> Paradox: Internal, but I was considering trying to get our iOS and Android guys to use it for our API.
<GreatSUN> havenwood: nice, looks even easier than my solution I came to yesterday
<Paradox> its pretty nice
goonda has joined #ruby
<Paradox> well
<Paradox> looks fast
<goonda> @c0rn sdfds
<goonda> #c0rn sdfds
<GreatSUN> havenwood: and see I just found the solution for my other problem... setting the values into the hash
<otters> stop
XxBlakeFailxX has quit [Ping timeout: 258 seconds]
<goonda> c0rn sdfds
Catbuntu has quit [Quit: Leaving]
<havenwood> Paradox: Yeah, humans never read our JSON, and MessagePack is smaller and faster. Seems like a win.
<GreatSUN> havenwood: cause it is an ease to build a new hash out of the tree within an array and the value to be set
<Paradox> havenwood, i mean, the optimization seems small
<Paradox> and…
<Paradox> delivering both messagepack and json is easy
<goonda> c0rn
<GreatSUN> havenwood: just have to merge the original and the new hash and everything is fine
codecop has quit [Ping timeout: 240 seconds]
<Paradox> just add a mimetype
<havenwood> Paradox: yup
<Paradox> then in your controllers
<GreatSUN> :-)
BadQuanta has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
<Paradox> format { 'msg' => derr
<Paradox> or whatever
<havenwood> Paradox: And then a vendor-specific mimetype since we do API versioning in the mimetype.
<havenwood> s/vendor/MessagePack vendor
t-mart has joined #ruby
t-mart has quit [Changing host]
t-mart has joined #ruby
gaahrdner has quit [Remote host closed the connection]
ukd1 has joined #ruby
<Paradox> and anyway
<Paradox> if i need to debug shit
<Paradox> i copy out json into pry then parse it
<Paradox> because its easier to walk through
gaahrdner has joined #ruby
<Paradox> i'll float the idea around my partners as well
<Paradox> people talk about shaving a few bytes off css and html
geekbri has quit [Remote host closed the connection]
goonda has left #ruby [#ruby]
<Paradox> why not cut the size of your transitory ajax shit even more
<Paradox> always preferred YAML to json anyways, but i prefer either to xml
Vainoharhainen has quit [Read error: Connection reset by peer]
tjbiddle has joined #ruby
<Paradox> and yaml is patently insecure :(
Vainoharhainen has joined #ruby
<otters> wot
<amth> Paradox: msgpack
rippa has joined #ruby
<Paradox> thats what we're talking about amth
<Paradox> otters, i would never use YAML to parse user-generated data because it can inject arbitrary code
marcdel has joined #ruby
<Paradox> and even though there is a bandaid over it
<otters> it can?
<Paradox> yup
<otters> how does that happen
<amth> In some implementations.
chrisja has joined #ruby
<Paradox> yaml supports custom data structures
tjbiddle_ has joined #ruby
<Paradox> i hope he can figure out a decent way to make a good safe_load
tjbiddle__ has joined #ruby
<Paradox> i'd like one where you can set a constant that has what types are allowed to be serialized and what are rejected
pygmael has joined #ruby
hbpoison has quit [Ping timeout: 246 seconds]
<Paradox> with defaults being basically strings, arrays, hashes, and numbers
gaahrdner has quit [Ping timeout: 272 seconds]
mityaz has quit [Quit: See ya!]
emergion has quit [Quit: Computer has gone to sleep.]
elaptics is now known as elaptics`away
<Paradox> havenwood, any pitfalls?
<havenwood> Paradox: None i've run into.
tjbiddle has quit [Ping timeout: 256 seconds]
tjbiddle__ is now known as tjbiddle
Vainoharhainen has quit [Ping timeout: 252 seconds]
tjbiddle_ has quit [Ping timeout: 245 seconds]
m8 has joined #ruby
_nitti has quit [Remote host closed the connection]
maxmanders has joined #ruby
motto has quit [Ping timeout: 258 seconds]
arya has quit [Ping timeout: 258 seconds]
apeiros_ has joined #ruby
danslo has quit [Quit: danslo]
gaahrdner has joined #ruby
Yakko has joined #ruby
chrishough has joined #ruby
codecop has joined #ruby
_nitti has joined #ruby
jbynum has quit [Quit: Computer has gone to sleep.]
etcetera has quit []
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
etcetera has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
agarie has joined #ruby
buibex has quit [Remote host closed the connection]
maxmanders has joined #ruby
buibex has joined #ruby
tgunr has quit [Quit: Nity nite]
tylersmith has quit [Quit: tylersmith]
buibex has quit [Read error: Connection reset by peer]
buibex has joined #ruby
martxel has quit [Quit: brb 10s lag :S]
martxel has joined #ruby
dustint has quit [Quit: Leaving]
jon_w has quit [Quit: The 7 Deadly Sins: ribbed for his pleasure!   [www.t7ds.com.br]]
ner0x has quit [Remote host closed the connection]
anderse has joined #ruby
frem has quit [Quit: Computer has gone to sleep.]
_nitti_ has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
kpshek has joined #ruby
carlyle has quit [Remote host closed the connection]
shadoi has joined #ruby
kofno_ has quit [Remote host closed the connection]
w400z has quit []
_nitti has quit [Ping timeout: 245 seconds]
TooTubular has joined #ruby
yannis has joined #ruby
Spaceghost|cloud has quit [Remote host closed the connection]
jhowarth has quit [Remote host closed the connection]
phasma has quit [Remote host closed the connection]
taqutor has quit [Remote host closed the connection]
RJ3__ has quit [Remote host closed the connection]
[Neurotic] has quit [Remote host closed the connection]
flowerhack has quit [Remote host closed the connection]
kapowaz has quit [Remote host closed the connection]
notbrent has quit [Remote host closed the connection]
TheDeadSerious_ has quit [Remote host closed the connection]
fourq has quit [Remote host closed the connection]
joshwines has quit [Remote host closed the connection]
guilleiguaran_ has quit [Remote host closed the connection]
thejefflarson_ has quit [Remote host closed the connection]
rcsheets has quit [Remote host closed the connection]
davidboy has quit [Remote host closed the connection]
bluehavana has quit [Write error: Broken pipe]
xerxas has quit [Write error: Broken pipe]
speaking1ode-wor is now known as speakingcode-wor
blakeb has quit [Ping timeout: 246 seconds]
v0n has quit [Ping timeout: 245 seconds]
jlast has quit [Remote host closed the connection]
razibog has joined #ruby
arya has joined #ruby
icole has quit [Remote host closed the connection]
robscomputer has quit [Read error: Connection reset by peer]
robscomputer_ has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
anderse has quit [Quit: anderse]
maxmanders has joined #ruby
benlieb has joined #ruby
renanoronfle has joined #ruby
Xeago has joined #ruby
Zai00 has joined #ruby
maxmanders has quit [Client Quit]
renanoronfle has quit [Client Quit]
maxmanders has joined #ruby
sauoq has joined #ruby
stkowski has quit [Quit: stkowski]
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
staafl_123 has quit [Quit: Leaving]
j^2 has quit [Quit: for i in `/names` ; do adios $i; done]
Elhu has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mahmoudimus|away has joined #ruby
staafl has joined #ruby
g4mm4 has quit [Remote host closed the connection]
axl_ has quit [Quit: axl_]
thecreators has joined #ruby
g4mm4 has joined #ruby
<GreatSUN> hey guys...
<itman> hi men
<GreatSUN> I defined a method with couple of variables as attributes
<GreatSUN> one of those should be an integer
<GreatSUN> when calling it with 0 as value and trying to increment it I get an error
<GreatSUN> "can't convert fixnum into array"
<GreatSUN> does someone know why this comes up?
<apeiros_> you try to use your number as an array
<apeiros_> and ruby tells you that
<GreatSUN> and surely how I can get rid of it
<apeiros_> well, don't use it as an array…
<GreatSUN> levelCount += 1
<GreatSUN> that is use as an array?!
<apeiros_> that would imply that levelCount is an array
<GreatSUN> I am incrementing other integers like that, too
<apeiros_> yes, integers, that's why it works there :-p
sambao21 has joined #ruby
Tricon has quit [Quit: Linkinus - http://linkinus.com]
<GreatSUN> it should be an integer
willob has quit [Quit: Leaving.]
<apeiros_> good. ruby tells you that "should" and "is" differ.
<apeiros_> or you got the wrong code.
epta has quit [Ping timeout: 255 seconds]
<mouse-_> surely you're using it the wrong way :)
<GreatSUN> apeiros_: I know
Tricon has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
frozenfoxx has joined #ruby
<GreatSUN> mouse-_: I see something is wrong, but can't see why
thecreators has quit [Ping timeout: 240 seconds]
<Paradox> havenwood, cool, i might ask you later
<apeiros_> GreatSUN: look, if you want better help, provide better information
burgestrand has joined #ruby
mahmoudimus|away has quit [Quit: Computer has gone to sleep.]
<apeiros_> GreatSUN: you know, like actual code, actual input
burgestrand has quit [Client Quit]
<apeiros_> sensibly it'd be a reproducable piece of code.
<frozenfoxx> Don't suppose anyone could tell me real quick how to command RVM to manually re-run the LD_LIBRARY_PATH again? I'm trying to clone a .rvm installation to an identical system but *not* re-run the rvm install again
<mouse-_> levelCount = [] ; levelCount += 1 TypeError: can't convert Fixnum into Array
<frozenfoxx> Everything seems to work after including the .bash_profile lines myself, but it claims it can't find a library file that's there and i suspect the LD_CONFIG_PATH variable isn't being updated.
<GreatSUN> thats the code
<GreatSUN> that leads to the error
wmoxam has quit [Ping timeout: 240 seconds]
kapowaz has joined #ruby
<apeiros_> GreatSUN: I can't take that code and run it
Guest85414 has joined #ruby
<apeiros_> (that's what reproducable means)
huoxito has joined #ruby
justsee has joined #ruby
<GreatSUN> I can add some trees and values and try to reproduce the problem in a small environmental
pkondzior___ has joined #ruby
nathanl has quit [Ping timeout: 246 seconds]
<GreatSUN> but that takes some time
<GreatSUN> just thought that someone might see something in there already
dekz__ has joined #ruby
moeSeth_ has joined #ruby
RJ3__ has joined #ruby
spanx has joined #ruby
swingha has quit [Quit: WeeChat 0.4.0]
hoens has joined #ruby
<GreatSUN> apeiros_: or is that nopaste information already enough for you?
<apeiros_> GreatSUN: the code looks correct regarding currLevel
lucaspiller___ has joined #ruby
rudisimo has quit [Remote host closed the connection]
dnyy has joined #ruby
ssms has quit [Quit: Konversation terminated!]
TheDeadSerious_ has joined #ruby
hse-hoens has quit [Read error: Operation timed out]
tommyvyo has quit [Quit:]
<havenwood> frozenfoxx: Might try asking in #rvm as well.
<GreatSUN> apeiros_: yeah and I pasted wrong variable name in the chat, I know ;-)
<havenwood> GreatSUN: Ditch all those superfluous `return`s, imho.
agarie_ has joined #ruby
cheese1756 has quit [Changing host]
cheese1756 has joined #ruby
hydrozen has joined #ruby
niftylettuce has joined #ruby
bluehavana has joined #ruby
kaichanvong has joined #ruby
guilleiguaran_ has joined #ruby
fcoury has joined #ruby
rwz has joined #ruby
cool has joined #ruby
maxmanders has joined #ruby
<MrZYX> GreatSUN: if something.nil? == false == unless something.nil?
<apeiros_> havenwood: please, do a complete styleguide. otherwise I'm the blue meanie
etcetera has quit []
<frozenfoxx> havenwood: Gotcha, thanks.
rcsheets has joined #ruby
patricksroberts_ has joined #ruby
Banistergalaxy has joined #ruby
davidboy has joined #ruby
octarine has joined #ruby
alexim has joined #ruby
<MrZYX> GreatSUN: checkBackwardDestvalueExists(keyPath) boils down to !getTreeValue(node[keyPath[0]], keyPath, 0).nil?
<MrZYX> (just that single line)
NimeshNeema has joined #ruby
xerxas has joined #ruby
<GreatSUN> MrZYX: hm?
agarie has quit [Ping timeout: 240 seconds]
strax_ has joined #ruby
hse-hoens has joined #ruby
lectrick has joined #ruby
<GreatSUN> MrZYX: right... I could put this directly into the code instead of writing an own method for it
thejefflarson_ has joined #ruby
<MrZYX> no, using methods to rename complex expressions is a good thing IMO
<GreatSUN> MrZYX: I will do so later on... just need to get it to work now. optimization and documentation are done afterwards ;-)
<MrZYX> GreatSUN: but this one is equal http://paste.mrzyx.de/show.php?id=1380
<GreatSUN> MrZYX: thanks gonna look at it now
<GreatSUN> ah ok, I understand
<GreatSUN> MrZYX: I am not writing the code for myself
maxmanders has quit [Ping timeout: 245 seconds]
<GreatSUN> MrZYX: and I was reminded that noone understands my coding already :D
<mouse-_> what's "node" in that context though
<GreatSUN> it's too complex
<GreatSUN> :D
axl_ has joined #ruby
<MrZYX> you're feeling my version is more complex than yours?
<GreatSUN> mouse-_: it's connected to the rest of the application
SeanTAllen has joined #ruby
Spaceghost|cloud has joined #ruby
<mouse-_> so node[ is a function?
<GreatSUN> MrZYX: nope, not for me
hoens has quit [Ping timeout: 246 seconds]
blooberr has joined #ruby
etcetera has joined #ruby
<lewix> MrZYX: isnt it always gonna be false
<GreatSUN> mouse-_: no, kind of a global variable
notbrent has joined #ruby
<mouse-_> oh, it's defined in object space.. got ya
_veer has joined #ruby
jhowarth has joined #ruby
im0b has joined #ruby
<MrZYX> lewix: no? well, depends on the method that's called, not my business :P
<mouse-_> well where's it failing, on that second line there? currLevel += 1 ?
<mouse-_> complaining about fixnum and array?
<lewix> true is not nil
<lewix> false is not nil
moos3 has quit [Quit: Computer has gone to sleep.]
gaahrdner has quit [Remote host closed the connection]
<MrZYX> yeah, but he's returning nil
<lewix> !
randym has joined #ruby
<MrZYX> sorry I'm not following you
maxmanders has joined #ruby
<GreatSUN> mouse-_: yeah, completely right
<lewix> MrZYX: I see
Morkel has quit [Quit: Morkel]
<GreatSUN> MrZYX: the point is that the guys don't understand easy code in my opinion
Matip has joined #ruby
cam` has joined #ruby
<MrZYX> tbh. for me your version is a lot harder to understand
<GreatSUN> MrZYX: and if they see code where they don't see a return statement with a definite value I bet they compain again
<MrZYX> requires more steps to do in my mind
<mouse-_> greatsun: in that case you have to show how it's being called
crimezone20xx has joined #ruby
<GreatSUN> MrZYX: I know... sometimes you have to think more complicated to fit others brains :D
karnowski has joined #ruby
<GreatSUN> mouse-_: that's why I added the next method
etcetera has quit [Client Quit]
<mouse-_> oh that's what you're using to call it
<MrZYX> GreatSUN: I agree that you need to get used to ruby, but you'll never will if you try to avoid its idioms
IceDragon has joined #ruby
<GreatSUN> mouse-_: right
<MrZYX> GreatSUN: can you paste the excpetion you're getting and match up the line numbers with the previous paste?
<GreatSUN> MrZYX: not me, the others
phantasm66 has quit [Quit: *sleeeep….]
<GreatSUN> MrZYX: It was even hard to get libraries with methods into the code
<MrZYX> they'll never too if you do ;)
Mattx has quit [Ping timeout: 264 seconds]
flowerhack has joined #ruby
<mouse-_> id really like to help you with your problem greatsun lol, your code reads like java though!! :)
yeban has joined #ruby
failshell has quit [Remote host closed the connection]
seejohnrun has joined #ruby
pygmael has quit [Quit: pygmael]
<mouse-_> <it's all good>
<GreatSUN> mouse-_: hehe that is something everybody should understand
jbueza has quit [Quit: Leaving.]
etcetera has joined #ruby
freerobby has quit [Quit: Leaving.]
spider-mario has joined #ruby
eldariof has quit [Read error: Connection reset by peer]
[0x1a] has joined #ruby
chussenot has joined #ruby
fourq has joined #ruby
chussenot has quit [Client Quit]
haxrbyte has quit [Ping timeout: 248 seconds]
jonahR has quit [Quit: jonahR]
kpshek has quit []
carloslopes has quit [Remote host closed the connection]
withnale has joined #ruby
wmoxam has joined #ruby
freerobby has joined #ruby
icole has joined #ruby
toekutr has quit [Read error: Connection reset by peer]
toekutr has joined #ruby
kirun_ has quit [Quit: Client exiting]
tylersmith has joined #ruby
jjbohn has joined #ruby
jacktrick has joined #ruby
havenwood has quit [Remote host closed the connection]
cheese1756 has quit [Excess Flood]
jbueza has joined #ruby
haxrbyte has joined #ruby
matti has quit [Quit: Oh dear...]
forrest has quit [Quit: Leaving]
moos3 has joined #ruby
nomenkun has quit [Remote host closed the connection]
idkazuma has joined #ruby
cheese1756 has joined #ruby
taqutor has joined #ruby
Giorgio has joined #ruby
TeckniX has quit [Quit: TeckniX]
nfk has quit [Quit: yawn]
<withnale> whats the best way to implement a thread pool these days? I've seen a few implementations but most of the write up are 2-3 years old
nga4 has quit []
breakingthings has quit []
peterud has joined #ruby
xardas has quit [Read error: Connection reset by peer]
<peterud> Hi - esoteric question here - is !, as in 'not', not a method in Ruby? Like the other logic and arithmetic operators are?
colonolGron has joined #ruby
iambic has quit [Quit: leaving]
<Hanmac> peterud yes "!" is a method
<peterud> Hanmac: i can't it in anywhere in the docs - does it have a different name or something?
<apeiros_> as of 1.9
generalissimo has quit [Read error: Connection reset by peer]
<Boohbah> oh that is not the right one
<peterud> Boohbah: that's a match operator isn't it?
sambao21 has quit [Quit: Computer has gone to sleep.]
<peterud> Boohbah: this is what i did - assumed it was there, but went to look and it isn't
<peterud> Boohbah: it shows up in TrueClass.methods, but not in the docs
geggam_wk has quit [Remote host closed the connection]
<peterud> Hanmac: ok thanks, so i guess it's there because of an implementation detail - conceptually TrueClass and FalseClass must have their own ! methods
<Boohbah> ty Hanmac
[Neurotic] has joined #ruby
crimezon120xx has joined #ruby
stevechiagozie has quit [Quit: Computer has gone to sleep.]
timonv has joined #ruby
alexim has quit [Quit: bye]
lewix has quit [Remote host closed the connection]
<Hanmac> peterud hm no, they dont need to
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
jamescarr has joined #ruby
TooTubular has quit [Quit: Linkinus - http://linkinus.com]
peterud has quit [Quit: Page closed]
interactionjaxsn has quit [Remote host closed the connection]
<jamescarr> is there an easy way to do "foo".include? something where something is an array?
huoxito has quit [Ping timeout: 272 seconds]
<mouse-_> something.include?("foo")
hbpoison has joined #ruby
<jamescarr> if node[:hostname].include? "http" or node[:hostname].include? "stagingweb"
<jamescarr> don't like the duplication
<jamescarr> I want to DRY it out
crimezone20xx has quit [Ping timeout: 272 seconds]
<apeiros_> %w[http stagingweb].include?(node[:hostname])
bean has quit [Quit: Computer has gone to sleep.]
brandon__ is now known as brandon|work
axl_ has left #ruby [#ruby]
<Banistergalaxy> Jamescarr invert the include
<jamescarr> the hostname has other parts though
<jamescarr> like http01, http02, etc
<Banistergalaxy> Ya like apeiros
NiteRain has quit [Ping timeout: 272 seconds]
<apeiros_> jamescarr: you mean it's a string?
<apeiros_> errr
<apeiros_> well, should have been obvious
buibex has quit [Remote host closed the connection]
<apeiros_> node[:hostname] =~ /http|stagingweb/
<Hanmac> %w[http stagingweb].any?{|s|node[:hostname].include?(s)}
<Hanmac> or aps way :P
<jamescarr> thanks!
cutaway has joined #ruby
apeiros_ has quit [Remote host closed the connection]
hbpoison has quit [Ping timeout: 256 seconds]
huoxito has joined #ruby
timonv has quit [Remote host closed the connection]
arya has quit []
bean has joined #ruby
pygmael has joined #ruby
bean has quit [Client Quit]
jerius has joined #ruby
Yakko has quit [Remote host closed the connection]
cearls has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
Apes_ has left #ruby [#ruby]
sambao21 has joined #ruby
hydrozen has quit [Quit: Computer has gone to sleep.]
buibex has joined #ruby
benlieb has quit [Quit: benlieb]
Es0teric has joined #ruby
mmitchel_ has joined #ruby
jjbohn has quit [Quit: Leaving...]
jonathanwallace has quit [Ping timeout: 256 seconds]
frozenfoxx has quit [Read error: Operation timed out]
sambao21 has quit [Client Quit]
slash_nick has quit [Ping timeout: 252 seconds]
Sicp has joined #ruby
Sicp has quit [Max SendQ exceeded]
mmitchell has quit [Ping timeout: 240 seconds]
Sicp has joined #ruby
solidoodlesuppor has quit [Remote host closed the connection]
ArchBeOS has joined #ruby
ArchBeOS has quit [Changing host]
ArchBeOS has joined #ruby
idkazuma has quit [Remote host closed the connection]
jamescarr has quit [Quit: jamescarr]
kofno has joined #ruby
cmarques has quit [Ping timeout: 240 seconds]
ArchBeOS has left #ruby [#ruby]
nopolitica has joined #ruby
Goles has quit [Quit: Computer has gone to sleep.]
awkwords has joined #ruby
EPIK has joined #ruby
<awkwords> hi so ive made a mongo connection using the mongo gem
<awkwords> how do i run a query?
<awkwords> i dont see this method anyway
pskosinski has quit [Quit: Red Eclipse, game of racist admins/devs: http://pawelk.pl/racist-red-eclipse-quin-zeroknight-gingerbear/]
jgarvey has quit [Quit: Leaving]
w400z has joined #ruby
Xeago has quit [Remote host closed the connection]
slash_nick has joined #ruby
crimezon120xx has quit [Ping timeout: 256 seconds]
codecop has quit [Read error: Connection reset by peer]
smp has quit [Quit: Leaving]
Loaft has joined #ruby
jamescarr has joined #ruby
jamescarr has quit [Client Quit]
cearls has joined #ruby
joofsh has quit [Remote host closed the connection]
seejohnrun has quit [Ping timeout: 252 seconds]
bradleyprice has quit [Remote host closed the connection]
cespare_ has quit [Quit: WeeChat 0.3.7]
cespare has joined #ruby
MCPlayer has joined #ruby
kofno has quit [Remote host closed the connection]
kofno has joined #ruby
ToApolytoXaos has quit [Quit: Leaving]
swex has quit [Remote host closed the connection]
MCPlayer has quit [Killed (idoru (Spam is off topic on freenode.))]
swex has joined #ruby
benlieb has joined #ruby
slash_nick has quit [Ping timeout: 272 seconds]
bean has joined #ruby
maxmanders has quit [Ping timeout: 258 seconds]
<oz> awkwords: did you read the docs? http://api.mongodb.org/ruby/current/
ner0x has joined #ruby
<oz> awkwords: also, if you're going to build anything a little bit complex/structured with Mongo, you should look into mongo_mapper or mongoid :)
<welandB> Can anyone recommend a gem/tool for generating graphs/plots?
<welandB> Needing to generate image files, specifically for scatter plots.
Davey has joined #ruby
cearls has quit [Remote host closed the connection]
gaahrdner has joined #ruby
d2dchat has quit [Remote host closed the connection]
nfk has joined #ruby
benlieb has quit [Client Quit]
kgalens has quit [Ping timeout: 255 seconds]
w400z has quit [Quit: Computer has gone to sleep.]
danneu has joined #ruby
huoxito has quit [Ping timeout: 256 seconds]
<oz> there's quite a few in the graphing category too https://www.ruby-toolbox.com/categories/graphing
hiyakashi has quit [Quit: お前は知りすぎた]
SCommette has quit [Quit: SCommette]
danman has quit [Quit: danman]
joshwines has joined #ruby
gaahrdner has quit [Ping timeout: 240 seconds]
scb has joined #ruby
jlebrech has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
apod has quit []
Davey has quit [Quit: Computer has gone to sleep.]
miso1337 has quit [Quit: afk]
etcetera has quit []
catphish has joined #ruby
<catphish> does anyone know if it's possible to use sqlite3 shared between multiple rubies?
jonathanwallace has joined #ruby
nopolitica has quit [Quit: Lost terminal]
etcetera has joined #ruby
agarie_ has quit [Remote host closed the connection]
carlyle has joined #ruby
etcetera has quit [Client Quit]
<xibalba> the vcenter upgrade was pretty easy
Rachelcrow has joined #ruby
generalissimo has joined #ruby
alanp has quit [Read error: Connection reset by peer]
colonolGron has quit [Quit: leaving]
dEPy has quit []
alanp has joined #ruby
pygmael has quit [Quit: pygmael]
mmitchel_ has quit [Remote host closed the connection]
sambao21 has joined #ruby
CARL0S has joined #ruby
* Rachelcrow http://getworld.uk.to - Online Multyplayer Game - How rich you can be? -
Rachelcrow has quit [Killed (idoru (Spam is off topic on freenode.))]
anonymuse has quit [Quit: Linkinus - http://linkinus.com]
nilobject has joined #ruby
buibex has quit [Remote host closed the connection]
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
Neomex has quit [Quit: Neomex]
mmitchell has joined #ruby
carloshpf has joined #ruby
hbpoison has joined #ruby
freerobby has quit [Quit: Leaving.]
carloshpf has quit [Client Quit]
stevechiagozie has joined #ruby
jerius has quit [Quit: Computer has gone to sleep.]
freerobby has joined #ruby
CARL0S has quit [Quit: Textual IRC Client: www.textualapp.com]
stevechiagozie has quit [Client Quit]
sambao21 has quit [Quit: Computer has gone to sleep.]
tantalum has left #ruby [#ruby]
theRoUS has quit [Ping timeout: 276 seconds]
mmitchell has quit [Remote host closed the connection]
hbpoison has quit [Ping timeout: 252 seconds]
catphish has quit [Quit: Leaving]
bluOxigen has quit [Ping timeout: 256 seconds]
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
icole has quit [Remote host closed the connection]
joofsh has joined #ruby
Sicp has quit [Quit: Leaving]
BeLucid_ has joined #ruby
kuzushi_ has joined #ruby
brandon|_ has joined #ruby
hakunin_ has joined #ruby
Davey has joined #ruby
[0x1a] has quit [Ping timeout: 256 seconds]
diegok has quit [Ping timeout: 256 seconds]
akhet has quit [Ping timeout: 256 seconds]
BeLucid has quit [Ping timeout: 256 seconds]
MrZYX has quit [Ping timeout: 256 seconds]
naquad has quit [Ping timeout: 256 seconds]
alolalol has quit [Ping timeout: 256 seconds]
drago777 has quit [Ping timeout: 256 seconds]
katherinem13 has quit [Ping timeout: 256 seconds]
brandon|work has quit [Ping timeout: 256 seconds]
icole has joined #ruby
alolalol has joined #ruby
spider-mario has quit [Remote host closed the connection]
etcetera has joined #ruby
Gate has quit [Ping timeout: 256 seconds]
nricciar has quit [Ping timeout: 256 seconds]
kuzushi has quit [Ping timeout: 256 seconds]
jtcoon has quit [Ping timeout: 256 seconds]
erichmenge has quit [Ping timeout: 256 seconds]
hakunin has quit [Ping timeout: 256 seconds]
banjara has quit [Client Quit]
banjara has joined #ruby
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
diegok has joined #ruby
ferdev has quit [Quit: ferdev]
freeayu has joined #ruby
NimeshNeema has quit []
drago777 has joined #ruby
katherinem13 has joined #ruby
awkwords has quit [Quit: Lost terminal]
Gate has joined #ruby
Gate has quit [Changing host]
Gate has joined #ruby
dmiller1 has joined #ruby
dmiller has quit [Ping timeout: 240 seconds]
mikepack has quit [Remote host closed the connection]
jtharris has quit [Quit: WeeChat 0.4.0]
jtcoon has joined #ruby
nricciar has joined #ruby
mtlatif has joined #ruby
MrZYX|off has joined #ruby
BadQuanta has quit [Quit: Leaving]
MrZYX|off is now known as MrZYX
BadQuanta has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
agarie has joined #ruby
kristofers has quit []
naquad has joined #ruby
maxmanders has joined #ruby
erichmenge has joined #ruby
jamie_ca_ has quit [Quit: Computer has gone to sleep.]
maxmanders has quit [Client Quit]
RORgasm has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
pioz has quit [Quit: Leaving...]
sauoq is now known as _sauoq
d2dchat has joined #ruby
lewix has joined #ruby
mrfoo has joined #ruby
rismoney has quit [Read error: Connection reset by peer]
angusiguess has joined #ruby
Randomage has joined #ruby
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
nari has joined #ruby
maxmanders has joined #ruby
mahmoudimus|away has joined #ruby
danman has joined #ruby
maxmande_ has joined #ruby
maxmande_ has quit [Client Quit]
nazty has quit [Read error: Connection reset by peer]
nazty has joined #ruby
maxmanders has quit [Read error: Connection reset by peer]
maxmanders has joined #ruby
fire_butt is now known as quazimodo
danman has quit [Client Quit]
Inside has joined #ruby
newUser1234 has quit [Remote host closed the connection]
hmarr has joined #ruby
NiteRain has joined #ruby
hbpoison has joined #ruby
jimeh has quit [Ping timeout: 252 seconds]
s00pcan has quit [Quit: Lost terminal]
XxBlakeFailxX has joined #ruby
s00pcan has joined #ruby
baroquebobcat has joined #ruby
baroquebobcat has quit [Client Quit]
maxmanders has quit [Ping timeout: 257 seconds]
Cork has quit [Read error: Operation timed out]
reppard has joined #ruby
idkazuma has joined #ruby
Cork has joined #ruby
maxmanders has joined #ruby
slainer68 has quit [Remote host closed the connection]
<reppard> what is the best way to test classes that inherit from stdlib classes
scb has quit [Ping timeout: 256 seconds]
chrishough has quit [Quit: chrishough]
hbpoison has quit [Ping timeout: 272 seconds]
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
Xeago has joined #ruby
luckyruby has quit [Remote host closed the connection]
TorpedoSkyline has quit [Quit: Computer has gone to… zzzzz...]
maxmanders has quit [Ping timeout: 258 seconds]
pskosinski has joined #ruby
adkron has quit [Ping timeout: 240 seconds]
tjbiddle has quit [Quit: tjbiddle]
tommyvyo has joined #ruby
Rioji has quit [Read error: Connection reset by peer]
Rioji_ has joined #ruby
gtuckerkellogg has joined #ruby
banisterfiend has quit [Ping timeout: 272 seconds]
Ontolog has quit [Read error: Connection reset by peer]
Xeago has quit [Remote host closed the connection]
Zai00 has quit [Quit: Zai00]
Ontolog has joined #ruby
miso1337 has joined #ruby
jfelchner1 has joined #ruby
Ontolog has quit [Read error: Connection reset by peer]
Ontolog_ has joined #ruby
jonathanwallace has quit [Ping timeout: 246 seconds]
stevechiagozie has joined #ruby
nathancahill has joined #ruby
nathancahill has quit [Client Quit]
jimeh has joined #ruby
Zai00 has joined #ruby
nathancahill has joined #ruby
scb has joined #ruby
moted has quit [Remote host closed the connection]
jgrevich has joined #ruby
Zai00 has quit [Client Quit]
s00pcan has quit [Quit: leaving]
s00pcan has joined #ruby