apeiros_ changed the topic of #ruby to: Ruby 2.1.2; 2.0.0-p481; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
bradleyprice has quit [Ping timeout: 240 seconds]
Squarepy has quit [Quit: Leaving]
linojon has joined #ruby
binaryhat has quit [Quit: Leaving]
Lewix has quit [Remote host closed the connection]
lw has joined #ruby
lw has quit [Max SendQ exceeded]
jay__ has quit [Remote host closed the connection]
lw has joined #ruby
pzula has quit [Ping timeout: 272 seconds]
zoosjuice has joined #ruby
zoosjuice has quit [Max SendQ exceeded]
Diaoer has quit [Quit: Lingo - http://www.lingoirc.com]
tkuchiki has quit [Remote host closed the connection]
djbkd has joined #ruby
binaryhat has joined #ruby
chipotle has quit [Ping timeout: 250 seconds]
<benzrf> Edelwin: mapM_ maybe
<Edelwin> thank you, I'm gonna check that
chipotle has joined #ruby
dingus_khan has joined #ruby
qw3rtman has quit [Quit: Computer has gone to sleep.]
<benzrf> wai tshit
<benzrf> i thought this was #haskell
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chipotle has quit [Remote host closed the connection]
qw3rtman has joined #ruby
chipotle has joined #ruby
<Edelwin> benzrf: yes, that's what I discovered when I lookes for mapM_ in startpage ;)
ViperChief has quit [Ping timeout: 272 seconds]
chipotle has quit [Client Quit]
ViperChief has joined #ruby
mikepack has joined #ruby
chipotle has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
qw3rtman has quit [Quit: Lingo - http://www.lingoirc.com]
nateberkopec has joined #ruby
mikepack has quit [Ping timeout: 264 seconds]
Petru has quit [Quit: Leaving]
Starless has quit [Quit: Leaving]
lw has quit [Quit: s]
zz_karupa is now known as karupa
echooo has joined #ruby
sevvie has joined #ruby
tkuchiki has joined #ruby
JoshGlzBrk has joined #ruby
lilbilly has quit [Read error: Connection reset by peer]
lilbilly has joined #ruby
Avahey_ has joined #ruby
ddv has quit [Ping timeout: 260 seconds]
freerobby has joined #ruby
ddv has joined #ruby
britneywright has joined #ruby
CaptainJet has quit [Ping timeout: 255 seconds]
ftj has joined #ruby
CaptainJet has joined #ruby
<dopie> ok
<dopie> class GoodDog def initialize(name) @name = name end - See more at: http://www.gotealeaf.com/books/ruby/read/classes_and_objects_part1#sthash.aPJmLNS9.dpuf
t_p has joined #ruby
moritzs has quit [Ping timeout: 272 seconds]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
jamto11 has quit [Remote host closed the connection]
t_p has quit [Client Quit]
<dopie> how does ruby know that when i use attr_accessor :name it makes the name variable availabl?
<benzrf> oh god
<benzrf> dopie: remember
<dopie> what?
<benzrf> when you call a method like 'method(foo, bar)' instead of like 'some_object.method(foo, bar)'
<benzrf> then it sends the method call to the current self
dayepa has joined #ruby
<benzrf> in a class block, self is set to that class
<benzrf> so attr_accessor is actually a method on classes
TorpedoSkyline has joined #ruby
<benzrf> you're sending a method call to the class, telling it to add methods to itself
tectonic has quit []
Zenigor has joined #ruby
<benzrf> err, to its instances
matrixdevuk has quit [Quit: Lingo - http://www.lingoirc.com]
<dopie> wait im not far down that yet
marr has quit [Ping timeout: 264 seconds]
macclearich_ has joined #ruby
ra4king has quit [Quit: Leaving]
phoo1234567 has quit [Quit: Leaving]
<dopie> without the attr_acessor i call jack = GoodDog.new("Jack","6'1")
<dopie> than i do
<dopie> jack.name
oo_ has joined #ruby
<dopie> and it ves me a no ethod error
<benzrf> dopie: yes, the attr_accesor call is what defines the name method
<dopie> so :name
<dopie> does something like
<dopie> def name bla bla
Soliah has joined #ruby
<benzrf> no
<benzrf> :name is a symbol
<dopie> yes
GriffinHeart has joined #ruby
<dopie> correct
DivineEntity has quit [Quit: leaving]
<dopie> the attr_accessor takes the symbos as an argument
<dopie> symbol
PanPan has joined #ruby
<benzrf> yes
diegoviola has joined #ruby
<dopie> which it than uses to create the name for getter and setter methods
macclearich_ has quit [Ping timeout: 260 seconds]
<dopie> instead of having me to do something like
<dopie> def name
<dopie> @name
<dopie> end
<benzrf> yes
<dopie> the attr_accessor does that for me
<dopie> correct?
<benzrf> dopie: yep
<benzrf> 08:42 < benzrf> when you call a method like 'method(foo, bar)' instead of like 'some_object.method(foo, bar)'
<benzrf> do you know about this?
<dopie> not yet
<benzrf> dopie: its pretty simple
<dopie> ill be getting to self in a bit
<benzrf> ah ok
oo_ has quit [Remote host closed the connection]
<dopie> i just want to be crystal clear
<nug> you are passing a message to the object
<dopie> of whats happening
ra4king has joined #ruby
<dopie> basically attr_accessor creates a shortcut for setting def name=(name) and getter def name
<dopie> yes?
<benzrf> yeah
GriffinHeart has quit [Ping timeout: 256 seconds]
<benzrf> dopie: to be precise, attr_accessor is a method on class objects
postmodern has joined #ruby
<benzrf> it tells classes to add methods to themselves as though you used def
<dopie> k
<dopie> wrote that down
alexju has quit [Remote host closed the connection]
razum2um has joined #ruby
<dopie> it automatically adds the 2 methods getter and setter to the class ?
siwica has quit [Ping timeout: 256 seconds]
oo_ has joined #ruby
<benzrf> dopie: it adds 2 methods
<benzrf> 1 of the name of the symbol you pass it
<benzrf> 1 of the name of the symbol plus =
jamto11 has joined #ruby
<benzrf> so `SomeClass.attr_accessor(:foo)' will define `foo' and `foo=' in SomeClass
<benzrf> except that attr_accessor is a private method
<benzrf> so that would error
Zenigor has quit [Remote host closed the connection]
goshdarnyou has joined #ruby
razum2um has quit [Ping timeout: 245 seconds]
ra4king has quit [Quit: Leaving]
Takle has joined #ruby
IteratorP has joined #ruby
tectonic has joined #ruby
sevenseacat has joined #ruby
testcore has joined #ruby
mercwithamouth has joined #ruby
AMcP has joined #ruby
charliesome_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
<testcore> hi folks, looking for a reference that describes how to create a CLI app that lives in ruby's bin dir. Any recommendations?
Lewix has joined #ruby
<AMcP> (if you're in to spending some money)
<benzrf> thor is cool
<testcore> just need something to get the installation & pathing correct
<AMcP> I've used this blog post in the past successfully: https://practicingruby.com/articles/building-unix-style-command-line-applications
Takle has quit [Remote host closed the connection]
zB0hs has joined #ruby
zB0hs has quit [Max SendQ exceeded]
aspiers has quit [Ping timeout: 260 seconds]
<testcore> looked through the thx
testcore has quit [Quit: Dude! You're getting a BitchX!]
zB0hs has joined #ruby
fold has joined #ruby
beef-wellington has quit [Ping timeout: 245 seconds]
iamjarvo has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Bira has joined #ruby
aspiers has joined #ruby
Bira_ has joined #ruby
Bira has quit [Ping timeout: 260 seconds]
davedev2_ has quit []
nanoyak has joined #ruby
davedev24_ has joined #ruby
ra4king has joined #ruby
ra4king has quit [Remote host closed the connection]
davedev2_ has joined #ruby
zB0hs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
diegoviola has quit [Read error: Connection reset by peer]
timgauthier has joined #ruby
davedev24_ has quit [Ping timeout: 240 seconds]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
diegoviola has joined #ruby
ra4king has joined #ruby
chipotle has quit [Quit: cya]
robustus has quit [Ping timeout: 255 seconds]
robustus has joined #ruby
bradleyprice has joined #ruby
centrx has joined #ruby
charliesome has joined #ruby
sevvie has quit [Ping timeout: 250 seconds]
freerobby has quit [Quit: Leaving.]
<timgauthier> never
bradleyprice has quit [Ping timeout: 240 seconds]
oo_ has quit [Remote host closed the connection]
Snarkz has joined #ruby
yfeldblu_ has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
narcan has joined #ruby
macclearich_ has joined #ruby
echooo1 has joined #ruby
echooo has quit [Ping timeout: 245 seconds]
oo_ has joined #ruby
nateberkopec has quit [Quit: Leaving...]
macclearich_ has quit [Ping timeout: 240 seconds]
sevvie has joined #ruby
GriffinHeart has joined #ruby
havenwood has joined #ruby
OffTheRails has quit [Ping timeout: 260 seconds]
Snarkz has quit [Quit: Textual IRC Client: www.textualapp.com]
tokik has joined #ruby
crudson has quit [Ping timeout: 256 seconds]
Zenigor has joined #ruby
lilbilly has quit [Ping timeout: 260 seconds]
baweaver has joined #ruby
skysploit has joined #ruby
skysploit has quit [Changing host]
skysploit has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
Bira_ has quit [Remote host closed the connection]
razum2um has joined #ruby
yfeldblum has joined #ruby
keen____ has joined #ruby
DivineEntity has joined #ruby
hamakn has quit [Remote host closed the connection]
Zenigor has quit [Remote host closed the connection]
hamakn has joined #ruby
keen___ has quit [Ping timeout: 240 seconds]
hamakn has quit [Read error: Connection reset by peer]
timgauthier has quit [Read error: Connection reset by peer]
kaspergr_ has quit [Remote host closed the connection]
macclearich_ has joined #ruby
jay__ has joined #ruby
<dopie> yo benzrf
<dopie> thanks for the explanation
Arkaniad has joined #ruby
krz has joined #ruby
Arkaniad has quit [Max SendQ exceeded]
echooo has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
robbyoconnor has quit [Ping timeout: 272 seconds]
<dopie> whats the difference between accessing instance variable / instance method
echooo1 has quit [Ping timeout: 245 seconds]
matrixdevuk has joined #ruby
<centrx> All instance variables are private, only accessible within the class?
<benzrf> dopie: there is no such thing as an 'instance method' for one
<benzrf> :p
sputnik13 has joined #ruby
<centrx> What would you call it?
robbyoconnor has joined #ruby
<havenwood> class instance method
xmad has quit [Ping timeout: 245 seconds]
<dopie> basically
<havenwood> but whatever ;P
troulouliou_dev has quit [Quit: Leaving]
Zenigor has joined #ruby
troulouliou_dev has joined #ruby
Zenigor has quit [Remote host closed the connection]
macclearich_ has quit [Quit: Computer has gone to sleep.]
<havenwood> dopie: if it's simple enough for an instance variable, great. if not, private method. if you want to access it outside the class, public method.
macclearich_ has joined #ruby
<havenwood> outside the instance of the class
jay__ has quit [Remote host closed the connection]
GinoMan has quit [Ping timeout: 260 seconds]
<havenwood> dopie: instance variables avoid the whole method dispatch rigmarole
darkxploit has quit [Ping timeout: 250 seconds]
macclearich_ has quit [Ping timeout: 240 seconds]
hamakn has joined #ruby
Ulrike_Rayne has joined #ruby
renier has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
TorpedoSkyline has joined #ruby
Shidash has joined #ruby
<havenwood> i've been enjoying the memoizable gem
TrueJet has joined #ruby
GinoMan has joined #ruby
<dopie> havenwood, what game?
<havenwood> dopie: oh, sry just musing, a gem not a game: https://github.com/dkubb/memoizable#readme
CaptainJet has quit [Ping timeout: 255 seconds]
<havenwood> dopie: just an aside
freerobby has joined #ruby
Atrumx has joined #ruby
<fly2web> hello
Wolland has joined #ruby
Gooder has quit [Remote host closed the connection]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Gooder has joined #ruby
toretore has joined #ruby
Bira has joined #ruby
virtualize has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
virtualize has quit [Read error: Connection reset by peer]
virtualize has joined #ruby
yfeldblum has joined #ruby
<krz> whats a good way to check if an foo contains 'bar' or 'baz'?
<krz> foo & %w[bar baz]
<centrx> foo.include?('bar') || foo.include?('baz')
<krz> is there a better way?
<centrx> that doesn't strike me as a good way, only a short fancy/obscurantist way
<centrx> regex of course is another option
<centrx> /bar|baz/
proxie has joined #ruby
<havenwood> krz: regexp or iterating
<havenwood> foo =~ /bar|baz/
<havenwood> ayeup
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
virtualize has quit [Ping timeout: 256 seconds]
<sevenseacat> depends what foo is
<havenwood> guess we were assuming String, but Array etcetera would make just as much sense
freerobby has quit [Quit: Leaving.]
<havenwood> or rather i was, centrx's regex could be either :P
<havenwood> >> ['foo', 'bar'].grep /bar|baz/
<Mon_Robot> havenwood: => ["bar"] (https://eval.in/172502)
<havenwood> of course could be more exotic yet
miah has quit [Ping timeout: 250 seconds]
yliu has quit [Ping timeout: 256 seconds]
faulkner has quit [Ping timeout: 256 seconds]
Sou|cutter has quit [Ping timeout: 250 seconds]
Avahey_ has quit [Quit: Connection closed for inactivity]
mateu has quit [Ping timeout: 272 seconds]
yliu has joined #ruby
fly2web has quit [Ping timeout: 250 seconds]
papercode has quit [Ping timeout: 250 seconds]
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mateu has joined #ruby
faulkner has joined #ruby
miah has joined #ruby
fly2web has joined #ruby
Sou|cutter has joined #ruby
Wolland has quit [Remote host closed the connection]
GriffinHeart has quit [Remote host closed the connection]
Wolland has joined #ruby
jamesaanderson has joined #ruby
fmendez has quit [Remote host closed the connection]
Wolland has quit [Ping timeout: 240 seconds]
jay__ has joined #ruby
<dopie> hey sevenseacat how are thou milady
jamesaanderson has quit [Client Quit]
<sevenseacat> not bad for a monday morning... will be better when the painkillers kick in
Akagi201 has quit [Read error: Connection reset by peer]
<dopie> sorry to hear whatever happened to you :) hope you feel better
Wolland has joined #ruby
<mozzarella> what happened?
Akagi201 has joined #ruby
<pontiki> is there a way to reload a previously required library?
<havenwood> pontiki: load
<pontiki> looking at it now..
charliesome has joined #ruby
havenwood has quit []
troulouliou_dev has quit [Quit: Leaving]
mikepack has joined #ruby
mikepack has quit [Remote host closed the connection]
ftj has quit [Quit: Textual IRC Client: www.textualapp.com]
Akagi201 has quit [Read error: No route to host]
Akagi201 has joined #ruby
braincrash has quit [Quit: bye bye]
andrewbredow has joined #ruby
baweaver has quit [Ping timeout: 255 seconds]
centrx has quit [Quit: Mead error: Connection reset by beer]
mikepack_ has joined #ruby
benzrf is now known as benzrf|offline
Deele has quit [Ping timeout: 245 seconds]
jobewan has quit [Remote host closed the connection]
braincrash has joined #ruby
amystephen has quit [Quit: amystephen]
jay__ has quit []
RTG` has quit [Ping timeout: 260 seconds]
Smashman has joined #ruby
<Smashman> Hello, people
<Smashman> I could do with a hand!
<Smashman> How can I get a gem to be install across all users on a Linux system?
papercode has joined #ruby
Bira has quit [Ping timeout: 240 seconds]
sjouke has joined #ruby
<sjouke> would someone take a look at this simple challenge? https://defuse.ca/b/rYuuvxmQeqPiNApnYqdI4q
<sjouke> given ["b", "o", "a", "t"], i'd like to delete everything but the character a
toordog has joined #ruby
<sjouke> what would be the recommended way of doing this?
<sevenseacat> return ['a'] >_>
<sjouke> the goal is to build a function which takes an array and some indicies which should be removed from the array
<sjouke> i guess it could take a list of characters to be removed, that would make it easier for the poor person having to use this
<pontiki> yeah, no, this doesn't actually do what i need.
toordog_ has quit [Ping timeout: 250 seconds]
<pontiki> i need to be able to reload *everything* the library requires
<pontiki> reseting constants, etc
AMcP has quit [Read error: Connection reset by peer]
bridge has quit [Ping timeout: 240 seconds]
<Smashman> How can I get a gem to be install across all users on a Linux system?
<pontiki> Smashman: load it at the system level, with sudo
<Smashman> I did sudo gem install
<pontiki> you'll need to do it from a clean environment if you have any ruby managers, tho
<Smashman> but it still doesn't seem to be available to my server user
<Smashman> I think I have rvm
<Smashman> and I tried the global sets thing for that, to no avail
<pontiki> plus, you'll need a system ruby
bradleyprice has joined #ruby
<pontiki> global != system
<Smashman> Okay, well how can I get it working? :)
<pontiki> do you really need it installed system-wide, or only available to your server user?
brunops has left #ruby [#ruby]
<Smashman> Well
<Smashman> Server, user
<pontiki> also, what user are you installing it as
<Smashman> Atm, just one I log in as
<pontiki> and that's the same as the server user?
<Smashman> No
lucianosousa has joined #ruby
<pontiki> can you log in as server root?
bradleyprice has quit [Ping timeout: 255 seconds]
<sjouke> repackaged so that it takes characters and deletes the characters from the array
<Smashman> Yes, pontiki
<sjouke> strangely though it's returning new_arr: ["b", "a"]
<pontiki> the run the gem install as root
<pontiki> (no sudo needed)
<Smashman> I tried :/
<pontiki> what happened????
<Smashman> Hang on
Kricir has joined #ruby
<pontiki> maybe i should just step back and you tell me everything you've done so far, and what the results have been, and where exactly are things failing
<Smashman> Well I have a Python app that I've been working on for ages
britneywright has quit [Quit: Textual IRC Client: www.textualapp.com]
<Smashman> And it uses Sass
<Smashman> and it works perfectly on my local PC
<pontiki> transcripts of the sessions will be needed
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Smashman> I think I have an idea, 1 moment
<pontiki> barring that, root access to your server
northfurr has quit [Quit: northfurr]
<sjouke> why is the pasted function returning "b" and "a"? i can't follow the logic here
GriffinHeart has joined #ruby
weems|nix has quit [Remote host closed the connection]
Atttwww has joined #ruby
Kricir has quit [Read error: Connection reset by peer]
<pontiki> havenwood left?
robscormack has quit [Quit: Leaving]
<pontiki> how bad is it if (in testing) i do this: $".delete_if{|x| x.match /jekyll/}; load 'jekyllpress.rb' ??
skysploit has quit []
<Smashman> pontiki, how can I remove rvm so we can start over again?
andrewbredow has quit [Quit: Lingo - http://www.lingoirc.com]
baweaver has joined #ruby
<Smashman> pontiki, I removed rvm
deavid has quit [Ping timeout: 255 seconds]
<pontiki> how?
dseitz has joined #ruby
<Smashman> implode
<Smashman> If you could walk me through install ruby and subsequently sass, I would greatly appreciate it
jamto11 has quit [Remote host closed the connection]
deavid has joined #ruby
spastorino has quit [Quit: Connection closed for inactivity]
<Smashman> Please, pontiki
baweaver has quit [Ping timeout: 250 seconds]
jamto11 has joined #ruby
northfurr has joined #ruby
echooo has quit [Quit: echooo]
tjr9898 has joined #ruby
echooo has joined #ruby
tjr9898 has quit [Remote host closed the connection]
iamjarvo has joined #ruby
jamto11 has quit [Remote host closed the connection]
tjr9898 has joined #ruby
thams has joined #ruby
tkuchiki_ has joined #ruby
cantonic has quit [Read error: Connection reset by peer]
cantonic has joined #ruby
ascarter has joined #ruby
benzrf|offline is now known as benzrf
tkuchiki has quit [Ping timeout: 256 seconds]
benzrf is now known as benzrf|offline
tjr9898 has quit [Remote host closed the connection]
nanoyak has joined #ruby
dbasch has joined #ruby
Bira has joined #ruby
thams has quit [Quit: thams]
thams has joined #ruby
NinoScript_ has joined #ruby
Bira has quit [Ping timeout: 250 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
benzrf|offline is now known as benzrf
benzrf is now known as benzrf|offline
jmbrown412 has joined #ruby
DivineEntity has quit [Quit: leaving]
sjouke has left #ruby [#ruby]
nanoyak has quit [Quit: Computer has gone to sleep.]
echevemaster has joined #ruby
macclearich__ has joined #ruby
northfurr has quit [Quit: northfurr]
macclearich__ has quit [Client Quit]
echevemaster has quit [Remote host closed the connection]
macclearich__ has joined #ruby
TrueJet has quit []
jamesaanderson has joined #ruby
farn has quit [Remote host closed the connection]
macclearich__ has quit [Ping timeout: 255 seconds]
davispuh has quit [Read error: Connection reset by peer]
timgauthier has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iaj_ has quit [Ping timeout: 272 seconds]
fly2web has left #ruby [#ruby]
Pumukel has joined #ruby
voodoofish has quit [Read error: Connection reset by peer]
Pumukel has quit [Client Quit]
voodoofish has joined #ruby
Channel6 has quit [Quit: Leaving]
heftig has quit [Ping timeout: 260 seconds]
Smashman has quit [Remote host closed the connection]
tkuchiki_ has quit [Remote host closed the connection]
Gues_____ has joined #ruby
tkuchiki has joined #ruby
nonnatus has joined #ruby
nonnatus_ has quit [Ping timeout: 240 seconds]
voodoofish has quit [Read error: Connection reset by peer]
voodoofish has joined #ruby
ascarter has joined #ruby
rails_flix has joined #ruby
oo_ has quit [Remote host closed the connection]
duper has quit [Ping timeout: 256 seconds]
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
oo_ has joined #ruby
amargherio has quit [Remote host closed the connection]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lucianosousa has quit [Quit: lucianosousa]
chrishough has quit [Quit: chrishough]
ascarter has joined #ruby
Gues_____ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
St_Marx has joined #ruby
Deele has joined #ruby
sputnik13 has joined #ruby
mr_snowf1ake has joined #ruby
noober3 has joined #ruby
lucianosousa has joined #ruby
<noober3> if i have an array of hashes is there a way to use inject on a specific key in the hashes to add the corresponding values together?
duper has joined #ruby
<timgauthier> wouldn't you take the array, expose the keys, create the new value, and reinject it?
<timgauthier> what exactly are you wanting to do?
jshultz has quit [Quit: Connection closed for inactivity]
<noober3> i have [{:v1 => 2, :v2 = 3}, {:v2=> 4, :v3 =>5},...] and i want to add all the :v2 values up and store it in a seperate variable.
<timgauthier> yeah, but like. what is a real world implication of this.
mikepack_ has quit [Remote host closed the connection]
asmodlol has joined #ruby
northfurr has joined #ruby
<noober3> i have a bunch of data from queries from a db and need the data stores similar to this, so i can count and do other various tasks with the data
lucianosousa has quit [Quit: lucianosousa]
EvanR__ has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
basiclaser has quit [Excess Flood]
EvanR has joined #ruby
EvanR is now known as Guest30027
nobodyzzz has joined #ruby
<timgauthier> so you are looking to collect a running total of that "key" ?
<noober3> yes
<timgauthier> ok, cool... uh, that doesn't seem useful to store a key in each one that contains a running total though, would it not be better to simply have a variable that holds that?
<timgauthier> that way if something goes wrong and you need to redo, you can just dump the variable and run it from the start again
<noober3> sorry that is what i want, a single variable to hold the total
basiclaser has joined #ruby
<timgauthier> ah, then you want a function or wahtever they call it in ruby that simply iterates through the hash right?
<timgauthier> something like a for-each i'd think. i'm a noob too
chipotle has joined #ruby
<noober3> yeah but i think there is a build in ruby way to do it as to cut down on the code
jamesaanderson has quit [Quit: Textual IRC Client: www.textualapp.com]
bradleyprice has joined #ruby
duncannz has joined #ruby
kiez0rd has quit [Quit: baaaaiiiiiiiiiii~]
timonv_ has joined #ruby
mehlah has quit [Quit: Leaving...]
<noober3> similar, don't see anything with targeting a certain key
mostlybadfly has quit [Quit: Connection closed for inactivity]
tobago has joined #ruby
<timgauthier> well it has too, to know what to add. i think the example is on a simple array, but you may need a for-each to target the array and then map whatever to sum it
<timgauthier> but keep reading, cause the reduce etc seems like it goes into that.
<noober3> i see thanks
RTG` has joined #ruby
<noober3> i appreciate it
ziprar has quit [Quit: Leaving]
bradleyprice has quit [Ping timeout: 260 seconds]
Aryasam has quit [Ping timeout: 245 seconds]
zipace has joined #ruby
mattmcclure has quit [Quit: Connection closed for inactivity]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
beneggett has joined #ruby
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<noober3> was going to tell him i figured it out. oh well goodnight
noober3 has quit [Quit: Pull the pin and count to what?]
vsoftoiletpaper has quit []
benzrf|offline is now known as benzrf
mr_snowf1ake has quit [Quit: Leaving]
arya_ has joined #ruby
oo_ has quit [Remote host closed the connection]
s2013_ has joined #ruby
SilverKey has joined #ruby
s2013 has quit [Ping timeout: 255 seconds]
tuxninja has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
tuxninja has joined #ruby
ARCADIVS has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hamakn has quit [Read error: Connection reset by peer]
benzrf is now known as benzrf|offline
hamakn has joined #ruby
timgauthier has joined #ruby
Morkel has joined #ruby
supermarkettoday has joined #ruby
timonv_ has quit [Remote host closed the connection]
tuxninja has quit [Ping timeout: 240 seconds]
tagrudev has joined #ruby
Ankhers has quit [Remote host closed the connection]
Ankhers has joined #ruby
wookiehangover has joined #ruby
vinleod has joined #ruby
IteratorP has quit [Remote host closed the connection]
razum2um has quit [Quit: Leaving.]
GlenK has quit [Disconnected by services]
GlenK_ has joined #ruby
kyb3r_ has joined #ruby
apeiros_ has joined #ruby
jack_rabbit has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
robscormack has joined #ruby
zkay11 has left #ruby [#ruby]
kiri has joined #ruby
razum2um has joined #ruby
Platini has quit [Remote host closed the connection]
oo____ has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
Morkel has quit [Ping timeout: 245 seconds]
tectonic has quit []
jmbrown412 has quit [Remote host closed the connection]
IteratorP has joined #ruby
apeiros_ has quit [Remote host closed the connection]
ylluminarious has quit [Quit: Leaving...]
apeiros has joined #ruby
tuxninja has joined #ruby
St_Marx has quit [Remote host closed the connection]
x1337807x has joined #ruby
jack_rabbit has quit [Ping timeout: 255 seconds]
apeiros has quit [Ping timeout: 260 seconds]
aganov has joined #ruby
Dwarf has quit [Quit: Oops I quit]
asmodlol has quit [Read error: Connection reset by peer]
relix has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Dwarf has joined #ruby
banjara has joined #ruby
b00stfr3ak has joined #ruby
JBreit has joined #ruby
St_Marx has joined #ruby
amclain has quit [Quit: Leaving]
davedev2_ has quit []
memph1s has joined #ruby
lkba has joined #ruby
tuxninja has quit [Remote host closed the connection]
chipotle has quit [Quit: cya]
IteratorP has quit [Remote host closed the connection]
roolo has joined #ruby
rails_flix has quit [Quit: This computer has gone to sleep]
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tuxninja has joined #ruby
techsethi has joined #ruby
noop has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
IteratorP has joined #ruby
sputnik13 has joined #ruby
robscormack has quit [Quit: Leaving]
jprovazn has joined #ruby
NinoScript_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
beneggett has joined #ruby
whyy has joined #ruby
MatthewsFace has joined #ruby
fabrice31 has joined #ruby
techsethi has quit [Quit: techsethi]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
NinoScript_ has joined #ruby
noop is now known as noopq
Ankhers has quit [Ping timeout: 264 seconds]
dingus_khan has quit []
Akuma has quit [Ping timeout: 250 seconds]
vinleod has quit [Ping timeout: 272 seconds]
timgauthier has joined #ruby
amystephen has joined #ruby
cantonic has quit [Quit: cantonic]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
certainty has quit [Ping timeout: 255 seconds]
certainty has joined #ruby
kyb3r_ has quit [Ping timeout: 240 seconds]
linojon has quit [Quit: linojon]
Gooder` has joined #ruby
kyb3r_ has joined #ruby
Gooder has quit [Ping timeout: 255 seconds]
subtwo has joined #ruby
NinoScript_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
techsethi has joined #ruby
bigkevmcd has joined #ruby
Akuma has joined #ruby
kireevco has quit [Quit: Leaving.]
Gooder` has quit [Read error: Connection reset by peer]
jottr has joined #ruby
banjara has quit [Quit: Leaving.]
subtwo has quit [Quit: Computer has gone to sleep.]
ki0 has joined #ruby
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
kireevco has quit [Client Quit]
AlanWatts has joined #ruby
bigkevmcd has quit [Quit: Ex-Chat]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
bigkevmcd has joined #ruby
hobodave has joined #ruby
IteratorP has quit [Remote host closed the connection]
dbasch has quit [Quit: dbasch]
IteratorP has joined #ruby
JBreit has left #ruby ["Leaving"]
St_Marx has quit [Remote host closed the connection]
bradleyprice has joined #ruby
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
northfurr has quit [Quit: northfurr]
alem0lars has joined #ruby
b00stfr3ak has quit [Ping timeout: 250 seconds]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
bradleyprice has quit [Ping timeout: 256 seconds]
lsmola has joined #ruby
sputnik13 has joined #ruby
tylerkern has joined #ruby
jottr has quit [Ping timeout: 255 seconds]
apeiros has joined #ruby
sigurding has joined #ruby
s2013_ has quit [Ping timeout: 260 seconds]
jottr has joined #ruby
sevvie has quit [Ping timeout: 256 seconds]
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roolo has quit [Quit: Leaving...]
JBreit has joined #ruby
_tpavel has joined #ruby
bayed has joined #ruby
edmellum has joined #ruby
tcstar has joined #ruby
tcstar has quit [Client Quit]
nobodyzzz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jackneill has joined #ruby
tcstar has joined #ruby
kangguru_away is now known as kangguru
tcstar has quit [Remote host closed the connection]
choke has joined #ruby
wallerdev has quit [Quit: wallerdev]
sk87 has joined #ruby
wald0 has joined #ruby
pierre1_ has quit [Ping timeout: 240 seconds]
St_Marx has joined #ruby
Bira has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arup_r has joined #ruby
Bira has quit [Ping timeout: 256 seconds]
supermarkettoday has quit [Ping timeout: 250 seconds]
<arup_r> While puts 10 - 5 is valid.. and puts(- 5) also valid, why not puts - 5 ?
<arup_r> last throwing error
<arup_r> Nomethod error I am getting
<arup_r> >> puts - 5
<Mon_Robot> arup_r: => NoMethodError: undefined method `-' for nil:NilClass... (https://eval.in/172554)
johnny_ has joined #ruby
<Mon_Ouie> Because that means (puts) - 5 and puts returns nil
<sevenseacat> obviously puts returns nul
<sevenseacat> *nil
<arup_r> Aww!! so simple.. Thanks
linoespinoza has joined #ruby
drawingthesun has joined #ruby
parduse has quit []
<arup_r> Mon_Ouie: Question - Does it mean binary operations has higher precedence than the method call ? Which Unary operator don't have..
parduse has joined #ruby
linoespinoza has quit [Client Quit]
ephemerian has joined #ruby
<arup_r> Why puts - 5 is not parsed as puts - 5)
<johnny_>
<arup_r> puts(- 5)
NinoScript_ has joined #ruby
kireevco has quit [Quit: Leaving.]
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
supermarkettoday has joined #ruby
<arup_r> while puts 10 - 5 is puts(10 - 5)
johnny_ has quit [Read error: Connection reset by peer]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
AlanWatts has quit [Remote host closed the connection]
supermarkettoday has quit [Remote host closed the connection]
pallavi_ has joined #ruby
oo____ has quit [Remote host closed the connection]
hobodave has quit [Quit: Computer has gone to sleep.]
techsethi has quit [Quit: techsethi]
dumdedum has joined #ruby
Ilyas has joined #ruby
andrewlio has joined #ruby
timonv_ has joined #ruby
NinoScript_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Hanmac has quit [Quit: Leaving.]
dumdedum has quit [Ping timeout: 255 seconds]
arup_r has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 260 seconds]
lkb has joined #ruby
tylerkern has joined #ruby
oo____ has joined #ruby
basiclaser has quit [Excess Flood]
dawkirst has joined #ruby
anarang has joined #ruby
sixxy has joined #ruby
doev has joined #ruby
basiclaser has joined #ruby
alex88 has joined #ruby
whyy has quit [Remote host closed the connection]
Macaveli has joined #ruby
Morkel has joined #ruby
LiohAu has joined #ruby
wald0 has quit [Ping timeout: 272 seconds]
supermarkettoday has joined #ruby
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dumdedum has joined #ruby
supermarkettoday has quit [Remote host closed the connection]
RandyT has quit [Ping timeout: 240 seconds]
JBreit has left #ruby ["Leaving"]
Xeago has joined #ruby
kangguru is now known as kangguru_away
supermarkettoday has joined #ruby
RandyT has joined #ruby
dvb_ua has quit [Ping timeout: 240 seconds]
tuxninja has quit [Remote host closed the connection]
supermarkettoday has quit [Remote host closed the connection]
nobodyzzz has joined #ruby
IteratorP has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 245 seconds]
danijoo has joined #ruby
IteratorP has joined #ruby
lxsameer has joined #ruby
supermarkettoday has joined #ruby
IteratorP has quit [Remote host closed the connection]
kangguru_away is now known as kangguru
supermarkettoday has quit [Remote host closed the connection]
JoshGlzBrk has quit [Quit: Textual IRC Client: www.textualapp.com]
techsethi has joined #ruby
timonv_ has quit [Remote host closed the connection]
Prawnzy has quit [Quit: ZNC - http://znc.in]
supermarkettoday has joined #ruby
mikecmpbll has joined #ruby
opus has joined #ruby
supermarkettoday has quit [Remote host closed the connection]
lazarus477 has quit [Quit: leaving]
supermarkettoday has joined #ruby
Perceptes has joined #ruby
supermarkettoday has quit [Remote host closed the connection]
supermarkettoday has joined #ruby
arup_r has joined #ruby
supermarkettoday has quit [Remote host closed the connection]
ndrei has joined #ruby
goshdarnyou has quit [Quit: Connection closed for inactivity]
arup_r has quit [Remote host closed the connection]
roolo has joined #ruby
basiclaser has quit [Excess Flood]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kaspergrubbe_ has joined #ruby
Bira has joined #ruby
basiclaser has joined #ruby
jamto11 has joined #ruby
lkb has quit [Quit: Wychodzi]
nobodyzzz has quit [Read error: Connection reset by peer]
kies has joined #ruby
Bira has quit [Ping timeout: 255 seconds]
noop has joined #ruby
robscormack has joined #ruby
elaptic`` is now known as elaptics
noopq has quit [Ping timeout: 260 seconds]
olivier_bK has joined #ruby
IteratorP has joined #ruby
jamto11 has quit [Ping timeout: 240 seconds]
whyy has joined #ruby
tvw has joined #ruby
Zebroid has joined #ruby
Joulse has joined #ruby
nemesit|znc has quit [Ping timeout: 260 seconds]
lkba has quit [Ping timeout: 250 seconds]
wald0 has joined #ruby
enebo has quit [Quit: enebo]
NinoScript_ has joined #ruby
Zebroid has quit [Remote host closed the connection]
nemesit|znc has joined #ruby
alem0lars has quit [Quit: Going AFK...]
drakciR_ has joined #ruby
thams has quit [Quit: thams]
comma8 has quit [Ping timeout: 260 seconds]
GlenK_ has quit []
moritzs has joined #ruby
helpa has quit [Remote host closed the connection]
freggles has quit [Remote host closed the connection]
akoz has quit [Ping timeout: 250 seconds]
jso has quit [Ping timeout: 260 seconds]
erichmenge has quit [Ping timeout: 250 seconds]
justinmcp has quit [Quit: No Ping reply in 180 seconds.]
MatthewsFace has quit [Quit: This computer has gone to sleep]
justinmcp has joined #ruby
ki0 has quit [Remote host closed the connection]
Riking has quit [Ping timeout: 272 seconds]
arup_r has joined #ruby
ki0 has joined #ruby
jso has joined #ruby
akosednar has joined #ruby
arup_r has quit [Remote host closed the connection]
erichmenge has joined #ruby
Riking has joined #ruby
arup_r has joined #ruby
subtwo has joined #ruby
ki0 has quit [Ping timeout: 245 seconds]
freggles has joined #ruby
bradleyprice has joined #ruby
decoponio has joined #ruby
chth0n has joined #ruby
jmeeuwen_ has joined #ruby
oo____ has quit [Remote host closed the connection]
oo____ has joined #ruby
jmeeuwen has quit [Ping timeout: 260 seconds]
jmeeuwen_ is now known as jmeeuwen
ki0 has joined #ruby
St_Marx has quit [Ping timeout: 264 seconds]
bradleyprice has quit [Ping timeout: 256 seconds]
ixti has joined #ruby
tcurdt has joined #ruby
jottr has quit [Ping timeout: 255 seconds]
timonv_ has joined #ruby
alem0lars has joined #ruby
Gooder has joined #ruby
timonv_ has quit [Remote host closed the connection]
comma8 has joined #ruby
sixxy has quit [Quit: Leaving]
sixxy has joined #ruby
malditogeek has joined #ruby
iaj has joined #ruby
nonnatus has quit [Ping timeout: 245 seconds]
Duckily has quit [Quit: Duckily]
timonv_ has joined #ruby
sevenseacat has quit [Quit: Leaving.]
supermarkettoday has joined #ruby
robbyoconnor has quit [Ping timeout: 256 seconds]
supermarkettoday has quit [Remote host closed the connection]
rdark has joined #ruby
marr has joined #ruby
dopie has quit [Read error: Connection reset by peer]
Mon_Ouie has quit [Read error: Connection reset by peer]
dopie has joined #ruby
axilla has quit [Read error: Connection reset by peer]
axilla has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
ki0 has quit [Remote host closed the connection]
ddv has quit [Changing host]
ddv has joined #ruby
ki0 has joined #ruby
robbyoconnor has joined #ruby
akosednar has quit [Ping timeout: 250 seconds]
DanKnox has quit [Ping timeout: 250 seconds]
alem0lars has quit [Quit: Going AFK...]
bigkevmcd has quit [Ping timeout: 250 seconds]
Gadgetoid has quit [Ping timeout: 250 seconds]
ndrei has quit [Ping timeout: 255 seconds]
bigkevmcd has joined #ruby
DanKnox has joined #ruby
bigkevmcd has quit [Remote host closed the connection]
akosednar has joined #ruby
Gadgetoid has joined #ruby
nobodyzzz has joined #ruby
tuxninja has joined #ruby
yosafbridge has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
bigkevmcd has joined #ruby
alem0lars has joined #ruby
supermarkettoday has joined #ruby
supermarkettoday has quit [Remote host closed the connection]
tcurdt has quit [Ping timeout: 272 seconds]
tjr9898 has joined #ruby
tcurdt has joined #ruby
vjt has joined #ruby
supermarkettoday has joined #ruby
Benny1992 has quit [Quit: leaving]
supermarkettoday has quit [Remote host closed the connection]
dvb_ua has joined #ruby
alem0lars has quit [Client Quit]
supermarkettoday has joined #ruby
malditogeek has quit [Quit: Leaving.]
tuxninja has quit [Ping timeout: 272 seconds]
supermarkettoday has quit [Remote host closed the connection]
yosafbridge has joined #ruby
malditogeek has joined #ruby
alem0lars has joined #ruby
Shidash has quit [Ping timeout: 260 seconds]
NinoScript_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
AlSquire has joined #ruby
Bira has joined #ruby
supermarkettoday has joined #ruby
supermarkettoday has quit [Remote host closed the connection]
chth0n has quit [Ping timeout: 245 seconds]
<shevy> arup_r because you forgot the .
<arup_r> shevy: I am trying to understand the parsing rule..
<shevy> 10.- 5 # => 5
<shevy> this works too, you see
<shevy> puts(10.- 5) 5 # => nil
<arup_r> Humm.. I also asked here - https://www.ruby-forum.com/topic/5314111#new
Bira has quit [Ping timeout: 255 seconds]
subtwo has quit [Quit: Computer has gone to sleep.]
<arup_r> Hope it will help you. to understand what exactly I am trying to ask
<shevy> class NilClass; def -(i); end; end; puts. - 5 # => nil
<shevy> there is no confusion
tcurdt has quit [Ping timeout: 250 seconds]
meinside has joined #ruby
ra4king1 has joined #ruby
robbyoconnor has quit [Excess Flood]
NinoScript_ has joined #ruby
robbyoconnor has joined #ruby
<arup_r> shevy: Let me think once again
<arup_r> puts - 5 not allowed.. But puts(- 5) do...
<arup_r> Why not allowed ?
<tobiasvl> it's ambiguous
<arup_r> That's the answer I am looking for
<arup_r> tobiasvl: Ohh! Can you bit extend on this..?
choke has quit [Remote host closed the connection]
<arup_r> May be so
<tobiasvl> >> puts -5
<Mon_Robot> tobiasvl: => -5... (https://eval.in/172596)
hanikazmi_ has quit [Ping timeout: 256 seconds]
<apeiros> arup_r: puts - 5 is allowed
<apeiros> it's just (puts) - (5)
ra4king has quit [Ping timeout: 255 seconds]
<apeiros> and puts(- 5) is -5 (negative five) passed to puts
<apeiros> puts - 5 # same as `x - 5` - subtract 5 from the value to which the expression `x` evaluates
ndrei has joined #ruby
<arup_r> Humm means it is then treated as *binary minus* right here puts - 5
NinoScript_ has quit [Ping timeout: 250 seconds]
<arup_r> ?
hanikazmi has joined #ruby
<apeiros> yes. it's puts.-(5)
<apeiros> and since puts evaluates to nil, it's nil.-(5), and nil doesn't have -. hence you get an error.
supermarkettoday has joined #ruby
<apeiros> >> def foo; 10; end; foo - 5
<Mon_Robot> apeiros: => 5 (https://eval.in/172597)
<apeiros> >> def foo; nil; end; foo - 5
<Mon_Robot> apeiros: => NoMethodError: undefined method `-' for nil:NilClass (https://eval.in/172598)
supermarkettoday has quit [Remote host closed the connection]
<apeiros> note that `puts(- 5)` is bad style. you should not put a space in front of an unary minus.
arya_ has quit [Ping timeout: 260 seconds]
sixxy has quit [Quit: Leaving]
shredding has joined #ruby
<arup_r> I was trying to check the *syntactic sugar* how much goes well.
<arup_r> Now.. I understood.. I was playing with the syntactic sugar.. thus this question does come in my mind
chth0n has joined #ruby
comma8 has quit [Ping timeout: 250 seconds]
<apeiros> I understand. and `expression1 - expression2` is syntactic sugar for `expression1.-(expression2)`. whether expression1 is an lvar, method call or other thing doesn't matter. unless it's composed of subexpressions and not wrapped in parens. then precedence come into play.
<apeiros> e.g. `foo * bar - baz` is syntactic sugar for `foo.*(bar).-(baz)`, and not `foo.*(bar.-(baz))`
<arup_r> apeiros: Exactly the way you told, I was thinking and got confused.
anarang has quit [Ping timeout: 245 seconds]
<arup_r> Thanks for at-least understanding my point.
<apeiros> also note: -5 is an integer literal. -x is syntactic sugar for x.-@
casheew__ has quit [Quit: leaving]
<apeiros> so puts(-x) is puts(x.-@)
casheew has joined #ruby
dangerousdave has joined #ruby
<arup_r> yes.. same is for puts( - x)
<arup_r> but not puts - x
tjr9898 has quit [Remote host closed the connection]
anarang has joined #ruby
<arup_r> shevy: say WTF... I like the different ways you used to say WTF :-)
<shevy> huh?
ValicekB has quit [Ping timeout: 250 seconds]
<matti> shevy: shevy shevy
<matti> Ohai apeiros
<shevy> yeah
<shevy> that is me
<matti> shevy: I know! You are super cool!
casheew has quit [Quit: leaving]
<shevy> \o/
bridge has joined #ruby
arya_ has joined #ruby
anarang has quit [Quit: Leaving]
anarang has joined #ruby
<flughafen> does ruby return whatever the last statement of the function is? even if it's results = foo is the last line, it'll return results?
rails426 has joined #ruby
<shevy> I do awesome stuff like http://shevegen.square7.ch/screenshot_2014.png matti
<shevy> flughafen for most methods yes
<shevy> attr_writer style methods are different
<flughafen> this isn't a class, just a simple function
Hobogrammer has quit [Ping timeout: 250 seconds]
<flughafen> shevy: could i even just have {foo: bar} on the last line with out results = {foo:bar} ?
<arup_r> shevy: attr_writer style methods are different -- Seems I don't know.. Example please.
<shevy> even a simple function will reside somewhere in ruby flughafen
<shevy> hence why we call them method
<shevy> flughafen you can omit the keyword return
<flughafen> shevy: i didn't have a return
<shevy> didn't I say you can omit it? ;)
SegFaultAX has quit [Excess Flood]
<shevy> arup_r foo.x = foo.y = foo.z = 1
<shevy> arup_r x = y = z = 1
<shevy> arup_r just try to write a method in ruby that has this style .setter =
<shevy> and try to return it anything different than the input argument
SegFaultAX has joined #ruby
<shevy> *have it return
<arup_r> shevy: Nice.. Got it
<arup_r> Yes.. It will always return the assigned value..
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
<shevy> I once wanted to change that
<shevy> and I was sad I could not :(
supermarkettoday has joined #ruby
supermarkettoday has quit [Remote host closed the connection]
supermarkettoday has joined #ruby
supermarkettoday has quit [Remote host closed the connection]
_KaszpiR__ is now known as _KaszpiR_
<arup_r> shevy: Hacking Ruby. Bad! :-)
<arup_r> shevy: I am joking . Don't mind
<arup_r> ;)
arya_ has quit [Quit: sayonara^_^]
comma8 has joined #ruby
ValicekB has joined #ruby
DaniG2k has joined #ruby
fabrice31 has quit [Remote host closed the connection]
bigkevmcd has quit [Quit: Ex-Chat]
Lewix_ has joined #ruby
ValicekB has quit [Ping timeout: 260 seconds]
Wolland has quit [Remote host closed the connection]
bigkevmcd has joined #ruby
Lewix has quit [Ping timeout: 256 seconds]
lkba has joined #ruby
zipace has quit [Read error: Connection reset by peer]
matrixdevuk has quit [Quit: Computer has gone to sleep.]
matrixdevuk has joined #ruby
heftig has joined #ruby
<apeiros> hi matti
Muz_ is now known as Muz
<apeiros> flughafen: "this isn't a class", well, actually it is
<apeiros> ruby only has one kind of methods: instance methods
<flughafen> apeiros: i guess everything in ruby is a class :)
ValicekB has joined #ruby
<apeiros> no
<flughafen> ?
<apeiros> but every method is stored in a module or class
<apeiros> and you always call methods on an object
Joulse has quit [Quit: Joulse]
<flughafen> so if i have a function outside of a class? what is it a method of?
<apeiros> but not all objects are classes
<apeiros> flughafen: you can ask it
<apeiros> >> def foo; end; method(:foo).owner
<Mon_Robot> apeiros: => Object (https://eval.in/172602)
<mikecmpbll> :)
blackmesa has joined #ruby
matrixdevuk has quit [Ping timeout: 240 seconds]
larissa has joined #ruby
IteratorP has quit [Remote host closed the connection]
<flughafen> interesting, thanks apeiros
<apeiros> yw
comma8 has quit [Ping timeout: 250 seconds]
Takle has joined #ruby
ryanneufeld has quit [Ping timeout: 250 seconds]
Bira has joined #ruby
roolo has quit [Quit: Leaving...]
havenwood has joined #ruby
ryanneufeld has joined #ruby
<arup_r> If I want to override say +, - I do need to use @ while overriding those methods. Why don't need for say `!` ? `!` is also an unary operator .
<apeiros> arup_r: do you want to override binary +/- or unary?
<arup_r> I know how to do.. Is +, - is only 2 for which I need @, while defining them as unary version
<apeiros> I don't understand
Bira has quit [Ping timeout: 245 seconds]
<arup_r> one moment
havenwood has quit [Ping timeout: 264 seconds]
tesuji has joined #ruby
<arup_r> the doc http://www.ruby-doc.org/core-2.1.2/doc/syntax/methods_rdoc.html is saying *To define unary methods minus, plus, tilde and not (!) follow the operator with an @ as in +@ or !@*
<arup_r> But in my Gist, I didn't define it with @ while defined !
sixxy has joined #ruby
<arup_r> Why it is working there ?
<Mon_Ouie> It accepts both because there's no such thing as a unary '!'
<Mon_Ouie> as a binary*
<apeiros> same for ~
matchaw has joined #ruby
matchaw_ has quit [Read error: Connection reset by peer]
<arup_r> Ok.. That means while I have binary operators... Then if I want the unary one, then I need to use `@` ...
<arup_r> Then doc is misleading.. The phrase I copied above
<arup_r> for tilda and not it seems, we don't need @
<arup_r> Right ?
<apeiros> yes
* apeiros will be back in ~30min
Lewix_ has quit [Remote host closed the connection]
duncannz has quit [Ping timeout: 250 seconds]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
jottr has joined #ruby
tjr9898 has joined #ruby
PanPan has quit [Quit: ChatZilla 0.9.90.1 [Firefox 31.0/20140716183446]]
diegoviola has quit [Ping timeout: 260 seconds]
bradleyprice has joined #ruby
apeiros has quit [Ping timeout: 245 seconds]
eka has joined #ruby
dvb_ua has quit [Ping timeout: 255 seconds]
jottr has quit [Ping timeout: 250 seconds]
<ixti> hey all
diegoviola has joined #ruby
<ixti> i have a strange issue with zeus...
<ixti> bundle exec rspace spec/some_spec.rb # works perfectly fine
bradleyprice has quit [Ping timeout: 245 seconds]
<ixti> while zeus rspec spec/some_spec.rb # starts perfectly fine, but by some reason loads empty module (all specs fails with NoMethod for module)
<ixti> and it's all in rails 3.2 project if that changes things... :D
echooo has quit [Ping timeout: 260 seconds]
drakciR_ has quit [Ping timeout: 255 seconds]
cibs has quit [Quit: leaving]
<ixti> actually had same issue with spring :((
ARCADIVS has quit [Quit: WeeChat 0.4.3]
karupa is now known as zz_karupa
sepp2k has joined #ruby
heftig has quit [Ping timeout: 272 seconds]
matchaw has quit [Quit: No Ping reply in 180 seconds.]
heftig has joined #ruby
Takle has quit [Ping timeout: 256 seconds]
matchaw has joined #ruby
bridge has quit [Ping timeout: 255 seconds]
alem0lars has quit [Quit: Going AFK...]
techsethi has quit [Quit: techsethi]
rails426 has quit []
GriffinH_ has joined #ruby
shredding has quit [Quit: shredding]
fabrice31 has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
GriffinHeart has quit []
GriffinH_ has quit [Client Quit]
cibs has joined #ruby
apeiros has joined #ruby
GriffinHeart has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
alem0lars has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
ylluminarious has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
GriffinHeart has quit [Client Quit]
GriffinHeart has joined #ruby
phinfonet has joined #ruby
roolo has joined #ruby
Takle has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
freerobby has joined #ruby
<ixti> if i require module I'm testing explicitly it works as expected in both `bundle exec rspec` and `zeus rspec` o_O
alem0lars has quit [Quit: Going AFK...]
SoliahMBA has joined #ruby
iamjarvo has joined #ruby
opus has quit [Ping timeout: 260 seconds]
SoliahMBA has quit [Client Quit]
Soliah- has joined #ruby
Perceptes has quit [Quit: Leaving.]
jheg has joined #ruby
jheg has quit [Client Quit]
JohnBat26 has joined #ruby
yokel has quit [Ping timeout: 240 seconds]
tcurdt has joined #ruby
freerobby has quit [Quit: Leaving.]
TorpedoSkyline has joined #ruby
whyy has quit [Remote host closed the connection]
Bira has joined #ruby
SegFaultAX has quit [Excess Flood]
TorpedoSkyline has quit [Client Quit]
philevans__ is now known as probonic
Soliah- has quit [Ping timeout: 272 seconds]
SegFaultAX has joined #ruby
Bira has quit [Ping timeout: 256 seconds]
whyy has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ddoherty57 has joined #ruby
TorpedoSkyline has joined #ruby
oo____ has quit [Read error: Connection reset by peer]
oo____ has joined #ruby
MCDev has quit [Ping timeout: 250 seconds]
benzrf|offline is now known as benzrf
postmodern has quit [Quit: Leaving]
nuck has quit [Read error: Connection reset by peer]
LangeOortjes has joined #ruby
oo____ has quit [Client Quit]
nuck has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
phoo1234567 has joined #ruby
whyy has quit [Remote host closed the connection]
pallavi_ has quit [Quit: Connection closed for inactivity]
doev has quit [Quit: Verlassend]
pandaant_ has joined #ruby
kaspergr_ has joined #ruby
alexju has joined #ruby
claymore has joined #ruby
oo____ has joined #ruby
kaspergrubbe_ has quit [Ping timeout: 250 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ldnunes has joined #ruby
tjr9898 has quit [Remote host closed the connection]
arup_r has quit [Remote host closed the connection]
kyb3r_ has quit [Read error: Connection reset by peer]
MartinCleaver has joined #ruby
GriffinHeart has quit []
kangguru is now known as kangguru_away
Soliah- has joined #ruby
GriffinHeart has joined #ruby
yokel has joined #ruby
Zebroid has joined #ruby
bogeyd6 has quit [Read error: Connection reset by peer]
TorpedoSkyline has joined #ruby
kaspergr_ has quit [Remote host closed the connection]
jeekl_ is now known as jeekl
MCDev has joined #ruby
kaspergrubbe_ has joined #ruby
Zebroid has quit [Remote host closed the connection]
<Deele> Please, correct me if I'm wrong (I come with PHP background and have create modular CMS using Yii framework): as I understand, RoR is some sort of framework that combines webserver and basic application logic into one. It seems that Yii has many similarities with RoR (I remember, that author was influenced by RoR at some point), but I still don't get logic of RoR. From other hand, I have only
<Deele> some surface knowledge about it.
<flughafen> >> puts "true" if ""
<Mon_Robot> flughafen: => (eval):1: warning: string literal in condition... (https://eval.in/172611)
<flughafen> does "" eval to true?
TorpedoSkyline has quit [Ping timeout: 264 seconds]
<Mon_Ouie> Yes, you can click on the link to see the full output
<tobiasvl> everything is truthy in ruby except nil and false
<flughafen> ok
<flughafen> thanks guys
<flughafen> i'l just start my empty var as nil
<tobiasvl> sounds like a good plan!
<flughafen> w00t
<Mon_Ouie> Or check if it's empty by calling #empty?
yokel has quit [Ping timeout: 255 seconds]
whyy has joined #ruby
<flughafen> Mon_Ouie: yea, that was brought up too.
<flughafen> string might be more consistent with the rest of the function
<Deele> Ok, I guess, none here has answer to my question. Ok then, please, help me setting up backed up redmine app onto fresh installed RailsInstaller on Windows. Can I just copy and paste it somewhere to "make it open in browser and show stuff"?
Soliah- has quit [Quit: Soliah-]
malditogeek has quit [Quit: Leaving.]
<Deele> I mean, I have extracted whole redmine from our old debian server, and now I'm trying to test it on another PC, that is windows based server
<Mon_Ouie> #rubyonrails and a redmine specific channel if there's one probably would help you more
<Deele> ain't there any "generic rule of thumb", where should something should be put to make it work?
alem0lars has joined #ruby
tokik has quit [Ping timeout: 245 seconds]
iamjarvo has joined #ruby
arup_r has joined #ruby
xuitlacoche has joined #ruby
joonty has quit [Quit: WeeChat 0.4.2]
Sgeo has quit [Read error: Connection reset by peer]
kangguru_away is now known as kangguru
malditogeek has joined #ruby
amacou has joined #ruby
techsethi has joined #ruby
Zebroid has joined #ruby
sixxy has quit [Remote host closed the connection]
basiclaser has left #ruby [#ruby]
shredding has joined #ruby
sevvie has joined #ruby
moritzs has quit [Ping timeout: 255 seconds]
benzrf is now known as benzrf|offline
techsethi has quit [Client Quit]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mr-foobar has quit [Quit: Leaving...]
Zebroid has quit [Remote host closed the connection]
lkb has joined #ruby
ocher has joined #ruby
jheg has joined #ruby
yokel has joined #ruby
claymore has quit [Quit: Leaving]
<ocher> hi, could anyone tell me where exactly Proc return statement returns? i'm not sure why this code: http://pastie.org/9426553 raises "unexpected return (LocalJumpError)"
hobodave has joined #ruby
mostlybadfly has joined #ruby
<ocher> i thought that the "return" inside Proc would return to the place where the proc was defined
<mostlybadfly> Haaaaappy Monday
Bira has joined #ruby
spastorino has joined #ruby
SegFaultAX has quit [Excess Flood]
<apeiros> ocher: it returns from the method you defined the proc in. but if you're no longer in that method, or aren't in any method, it'll raise.
<apeiros> if you want to return from a proc, use break
bradleyprice has joined #ruby
yokel has quit [Ping timeout: 250 seconds]
SegFaultAX has joined #ruby
wald0_ has joined #ruby
<ocher> ok, i see. i just wanted to know exactly where proc returns, and i was expecting to get: "after get_proc in get_proc_top", but now when you wrote that i'm no longer in the get_proc_top i understand why it raises an exception
<ocher> apeiros: thank you
Bira has quit [Ping timeout: 256 seconds]
mehlah has joined #ruby
jamto11 has joined #ruby
bradleyprice has quit [Ping timeout: 255 seconds]
Joulse has joined #ruby
shredding has quit [Ping timeout: 250 seconds]
britneywright has joined #ruby
alem0lars has quit [Ping timeout: 256 seconds]
jimmyhoughjr has joined #ruby
oo____ has quit [Ping timeout: 255 seconds]
renderful has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
fold has quit [Ping timeout: 260 seconds]
shredding has joined #ruby
<arup_r> teach me something new in Ruby today. I am hungry
renderful has quit [Remote host closed the connection]
<arup_r> tobiasvl: WOWWW
<arup_r> Thanks for understanding how much hungry I was.. :)
sevvie has quit [Ping timeout: 245 seconds]
sumark has quit [Remote host closed the connection]
nateberkopec has joined #ruby
pzula has joined #ruby
sumark has joined #ruby
<tobiasvl> ;)
yokel has joined #ruby
dorei has joined #ruby
jcromartie has joined #ruby
brianherman has joined #ruby
camsong has joined #ruby
memph1s has quit [Ping timeout: 245 seconds]
tjr9898 has joined #ruby
yokel has quit [Ping timeout: 264 seconds]
johnny has joined #ruby
johnny is now known as Guest15377
<wasamasa> oh damn, spent two hours on debugging csv parsing
<tobiasvl> been there done that
<wasamasa> turned out I assumed the old encoding and column separators
phutchins has joined #ruby
<wasamasa> with the default options it just runs fine and can read it in line for line
yokel has joined #ruby
iamjarvo has joined #ruby
iamjarvo has quit [Client Quit]
Takle has quit [Remote host closed the connection]
<arup_r> tobiasvl: You gave me really cool stuffs.. I am enjoying here.. Thank you again! :-)
Guest15377 has quit [Remote host closed the connection]
camsong has quit []
mupkoo has joined #ruby
mupkoo has quit [Remote host closed the connection]
<tobiasvl> np, thank /r/ruby :)
yokel has quit [Ping timeout: 260 seconds]
jdj_dk_ has joined #ruby
jdj_dk_ has quit [Remote host closed the connection]
abilon has joined #ruby
<wasamasa> oh right, haven't checked out the subreddit yet
fly2web has joined #ruby
<fly2web> hello
krz has quit [Quit: WeeChat 0.4.3]
<arup_r> fly2web: Again ? :-)
<arup_r> Welcome
<fly2web> i study ruvy with ‘picture of ruby'
<fly2web> thanks
memph1s has joined #ruby
arya_ has joined #ruby
MCDev has quit [Ping timeout: 250 seconds]
jamto11 has quit [Remote host closed the connection]
MartinCleaver has quit [Quit: MartinCleaver]
tkuchiki has quit [Ping timeout: 260 seconds]
<fly2web> ruby is more developed language than python and perl?
<tobiasvl> fly2web: what do you mean?
<fly2web> ruby include perl and python rule?
<tobiasvl> what?
<fly2web> perl and python don’t include ruby rule?
<apeiros> they are different languages with different benefits
<fly2web> oh yes
yokel has joined #ruby
<arup_r> Can help me to understand this nested_hash = Hash.new { |hash, key| hash[key] = Hash.new(&hash.default_proc) } ? How nested_hash[:x][:y][:z] = :xyz # => {:x=>{:y=>{:z=>:xyz}}} ?
<fly2web> i can do perl and python but i can’t do ruby.
<arup_r> apeiros: He is trolling.. ;)
tokik has joined #ruby
BeanDip_ has quit [Ping timeout: 250 seconds]
riddled has joined #ruby
<arup_r> fly2web: Sunday also you discussed the same things... Lots of people asked you about the right way
<apeiros> arup_r: `Hash.new { |hash, key| hash[key] = Hash.new(&hash.default_proc) }` returns a hash with `{ |hash, key| hash[key] = Hash.new(&hash.default_proc) }` as .default_proc
endash has joined #ruby
riddled has joined #ruby
riddled has quit [Changing host]
katlogic has quit [Read error: Connection reset by peer]
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<arup_r> I am lost here hash[key] = Hash.new(&hash.default_proc)
riddled has left #ruby [#ruby]
<apeiros> arup_r: or maybe he's in delirium because he didn't eat enough
<arup_r> There is some *recursion* is going on I understand
<arup_r> But how default proc is working not getting..
jdj_dk_ has joined #ruby
obscured has joined #ruby
shredding has quit [Quit: shredding]
endash has quit [Client Quit]
<apeiros> >> x = Hash.new { |hash, key| puts "called" }; x[:y]
<Mon_Robot> apeiros: => called... (https://eval.in/172661)
<apeiros> arup_r: you understand ^ ?
Hanmac has joined #ruby
Zenigor has joined #ruby
<arup_r> Yes.. That is well I used also lots of times
<arup_r> that's why I told recursion is happening through just before the assignment... nested_hash[:x][:y][:z]
<apeiros> arup_r: and you understand that you can access a hash's default proc through hash.default_proc ?
Soliah- has joined #ruby
<arup_r> hash.default_proc what information it wrapped when called.. That, I want to know
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tokik has quit [Ping timeout: 264 seconds]
<apeiros> >> x = Hash.new { |hash, key| puts "called" }; x.default_proc.call
<Mon_Robot> apeiros: => called... (https://eval.in/172662)
<apeiros> as I said, it's the proc you created the hash with
<arup_r> Hmm.. Let me read the doc once again
<apeiros> so nested_hash[:x] calls that default proc, and the default proc creates a new hash with precisely the same default_proc
katlogic has joined #ruby
SilverKey has quit [Ping timeout: 256 seconds]
byteddown has quit [Ping timeout: 264 seconds]
dblessing has joined #ruby
yokel has quit [Read error: Connection reset by peer]
meinside has quit [Quit: Connection closed for inactivity]
<fly2web> shevy change to calmly after being kicked.
alem0lars has joined #ruby
<apeiros> fly2web: dude, don't gloat on it.
<fly2web> gloat?
jdj_dk_ has quit [Remote host closed the connection]
<fly2web> oh i see apeiros
<fly2web> i just like shevy
<fly2web> so i have a joking to shevy
<apeiros> you'd better stop that.
Soliah- has quit [Client Quit]
<fly2web> oh yes apeiros
renier has joined #ruby
<fly2web> :)
<fly2web> i see
ValicekB has quit [Ping timeout: 255 seconds]
byteddown has joined #ruby
doev has joined #ruby
jcromartie has joined #ruby
<arup_r> >> h = Hash.new {|h,k| h[k] = k*k } ; p = h.default_proc ; p.call(a, 2) ; p h ; p a
<Mon_Robot> arup_r: => NameError: undefined local variable or method `a' for main:Object (https://eval.in/172663)
klaut has joined #ruby
<arup_r> >> h = Hash.new {|h,k| h[k] = k*k } ; p = h.default_proc ; a = []; p.call(a, 2) ; p h ; p a
<Mon_Robot> arup_r: => {}... (https://eval.in/172664)
<arup_r> >> h = Hash.new {|h,k| h[k] = k*k } ; p = h.default_proc ; a = []; p.call(a, 2) ; p a
<Mon_Robot> arup_r: => [nil, nil, 4]... (https://eval.in/172665)
emerson_ has joined #ruby
<arup_r> It means we are using only the Hash block, to assign elements to the Array `a` ... right ?
paulfm has joined #ruby
<arup_r> No key/value creation indeed is happening in the original h
<arup_r> though the `default_proc` call..
moritzs has joined #ruby
tkuchiki has joined #ruby
tjr9898_ has joined #ruby
Zenigor has quit [Ping timeout: 245 seconds]
tjr9898 has quit [Ping timeout: 256 seconds]
<arup_r> *through
<arup_r> Hash.new { |hash, key| hash[key] = Hash.new(&hash.default_proc) }
<arup_r> means
<arup_r> Hash.new { |hash, key| hash[key] = Hash.new { |hash1, key1| hash1[key1] = Hash.new { ..} } }
<arup_r> Got it.. How does it work
<arup_r> Nice trick
<arup_r> **Ohh my english -- Got it..how it works
relix has joined #ruby
whyy has quit [Remote host closed the connection]
<arup_r> apeiros: Thanks for the kick to the right directions...
MartinCleaver has joined #ruby
whyy has joined #ruby
shredding has joined #ruby
Takle has joined #ruby
DaniG2k has quit [Ping timeout: 260 seconds]
siwica has joined #ruby
crazydiamond has joined #ruby
Takle has quit [Read error: Connection reset by peer]
Zenigor has joined #ruby
Takle has joined #ruby
<fly2web> why can i use symbol(:)?
andrewbredow has joined #ruby
andrewlio has quit [Quit: Leaving.]
<arup_r> fly2web: Don't troll
danijoo has quit [Read error: Connection reset by peer]
<fly2web> :( ok i see. but i don’t know for reason of using symbol
danijoo has joined #ruby
ValicekB has joined #ruby
lw has joined #ruby
beef-wellington has joined #ruby
shredding has quit [Ping timeout: 256 seconds]
Zenigor has quit [Read error: Connection reset by peer]
sailias has joined #ruby
Zenigor has joined #ruby
<siwica> I do have a modeling question:
<siwica> I have a class "feature" that represents a geographical feature which has a geometry attribute. The geometry can either be 0D, 1D, 2D or 3D. I have a separate class (foo0D, foo1D, ..., foo3D) for each geometry dimension. How can I model that the geometry attribute can only take one of the four datatypes?
MrDoctor has joined #ruby
<toretore> what do you mean? you only have one attribute right?
<fly2web> arup_r, i download “Programming Ruby 1.9 & 2.0 The Pragmatic Programmers' Guide”
Bira has joined #ruby
riotjones has quit [Ping timeout: 245 seconds]
<siwica> toretore: yes. the attribute "geometry"
<siwica> ...in the feature class
<arup_r> fly2web: Go and read. Come, when you stuck
jerius has joined #ruby
<toretore> siwica: so, that restricts it to only one type
<fly2web> ok i see thanks arup_r
<fly2web> :)
matchaw has quit [Ping timeout: 245 seconds]
matchaw_ has joined #ruby
Bira has quit [Ping timeout: 255 seconds]
pandaant_ has quit [Quit: leaving]
Takle has quit [Remote host closed the connection]
fmendez has joined #ruby
<siwica> toretore: I want to allow the four types: foo0D, ..., foo3D but no other type
pzula has quit [Ping timeout: 260 seconds]
MrDoctor has quit [Quit: Leaving]
<toretore> siwica: enforcing types really isn't done in ruby
<toretore> you could do it manually, but most would consider it a waste of time
jottr has joined #ruby
lucianosousa has joined #ruby
<apeiros> siwica: raise ArgumentError, "expected Foo1, … but got #{arg.class}" unless arg.is_a?(Foo1234Ancestor)
whyy has quit [Ping timeout: 240 seconds]
<apeiros> but I agree with toretore, it's usually considered a waste of time
<apeiros> also that's not really a modeling question ;-)
<siwica> I thought it would just make the program more robust
vt102 has joined #ruby
<apeiros> that doesn't make it more robust
<apeiros> it'll crash all the same if you pass in the wrong thing
<apeiros> it makes for an easier to understand exception, and it adds more (potentially harmful) restrictions. that's all.
<siwica> I rethought the problem though and will probably make the feature class a superclass of foo0, ..., foo3. This way I dont have the problem.
mikesplain has joined #ruby
<apeiros> o0
zalmoxes_ is now known as zalmoxes
<toretore> you didn't have a problem to begin with ;)
<siwica> :P
malditogeek has quit [Quit: Leaving.]
_maes_ has joined #ruby
<toretore> really, if you want this sort of stuff, you should use a language that knows about it and enforces it
aganov has quit [Ping timeout: 250 seconds]
mark_locklear has joined #ruby
sigurding_ has joined #ruby
<siwica> I am quite new to ruby and understand the duck-typing concept. But aren't there some situations in a programing project where you explicitly want to prevent people from using datatypes other than you considered?
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
fgo has joined #ruby
<toretore> very very few
<toretore> yours is not one of them
zB0hs has joined #ruby
sigurding has quit [Ping timeout: 260 seconds]
sigurding_ is now known as sigurding
danijoo has quit [Read error: Connection reset by peer]
<atmosx> hello
danijoo has joined #ruby
beef-wellington has quit [Ping timeout: 264 seconds]
djcp has joined #ruby
djcp has left #ruby [#ruby]
mikesplain has quit [Ping timeout: 255 seconds]
ohcibi_ is now known as ohcibi
Bira has joined #ruby
krz has joined #ruby
abilon has quit [Quit: Computer has gone to sleep.]
<dangerousdave> atmosx, hello
seph429 has joined #ruby
beef-wellington has joined #ruby
thams has joined #ruby
Prawnzy has joined #ruby
nateberkopec has quit [Quit: Leaving...]
malditogeek has joined #ruby
NinoScript has quit [Ping timeout: 256 seconds]
zkay11 has joined #ruby
NinoScript has joined #ruby
thams has quit [Client Quit]
abilon has joined #ruby
yxhuvud has joined #ruby
thams has joined #ruby
s2013 has joined #ruby
thejoecarroll_ has quit [Quit: ZNC - http://znc.in]
arup_r has quit [Remote host closed the connection]
eka has left #ruby ["Textual IRC Client: www.textualapp.com"]
eka has joined #ruby
nateberkopec has joined #ruby
thejoecarroll has joined #ruby
JohnFord has joined #ruby
arup_r has joined #ruby
tokik has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
arup_r has quit [Remote host closed the connection]
lucianosousa has quit [Quit: lucianosousa]
charliesome has joined #ruby
braincrash has quit [Quit: bye bye]
<apeiros> siwica: unless you expect the users of your code to be the 3y old style coders trying to fit shapes into holes…
devdazed has quit [Quit: Bye]
<apeiros> (mind you, there are such coders :-S)
siwica has quit [Ping timeout: 260 seconds]
DaniG2k has joined #ruby
tokik has quit [Ping timeout: 240 seconds]
sweeper_ is now known as sweeper
oo____ has joined #ruby
pex has joined #ruby
<pex> How do I invoke a rake task withouht invoking it's prerequisites? I don't want to clear them because another call might need the prerequisites.
zz_jrhorn424 is now known as jrhorn424
<Mon_Ouie> The user of your API should not be limited by what you thought someone could use it for, but by what he thinks he can use it for
braincrash has joined #ruby
<apeiros> if you could call a task without its prerequisites, they wouldn't be prerequisites…
<apeiros> in other words - if that's a scenario, untangle your task to be available separately
alem0lars has quit [Ping timeout: 260 seconds]
jmbrown412 has joined #ruby
amacou_ has joined #ruby
amacou has quit [Read error: Connection reset by peer]
alem0lars has joined #ruby
DaniG2k has quit [Quit: leaving]
<pex> apeiros: thanks
DaniG2k has joined #ruby
devdazed has joined #ruby
braincrash has quit [Ping timeout: 250 seconds]
s2013 has quit [Ping timeout: 260 seconds]
Ilyas has quit [Ping timeout: 264 seconds]
jds has joined #ruby
bradleyprice has joined #ruby
<cHarNe2_> why does this work? {"first" => "aaa", "second" => "bbb"}.each_with_index {|v, i| puts i} but i cant access them with the index in any way?
<apeiros> hashes are not positional
<apeiros> you access values in a hash by key, not by position
braincrash has joined #ruby
havenwood has joined #ruby
<cHarNe2_> i know, but then why would there be a each_with_index for Hash?
<apeiros> because it gets it from Enumerable
<cHarNe2_> ok
baweaver has joined #ruby
<apeiros> and while you can't *access* an item, it may still make sense to know the how maniest iteration you're in
<cHarNe2_> agree, each_with_iteration would be a better name :S
<cHarNe2_> well now i know why anyways, ty
<apeiros> the name's fine
bradleyprice has quit [Ping timeout: 260 seconds]
pothibo has joined #ruby
tesuji has quit [Ping timeout: 260 seconds]
sevvie has joined #ruby
freerobby has joined #ruby
fgo has quit [Remote host closed the connection]
mary5030 has joined #ruby
jdj_dk_ has joined #ruby
TorpedoSkyline has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
Xiti has quit [Quit: Leaving]
andrewbredow has left #ruby [#ruby]
beneggett has joined #ruby
davedev24_ has joined #ruby
jobewan has joined #ruby
jdj_dk_ has quit [Ping timeout: 264 seconds]
fly2web has quit [Quit: fly2web]
TorpedoSkyline has quit [Client Quit]
arya_ has quit [Ping timeout: 272 seconds]
SegFaultAX has quit [Excess Flood]
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
atmosx has quit [Quit: WeeChat 0.4.4-dev]
havenwood has quit [Remote host closed the connection]
failshell has joined #ruby
atmosx has joined #ruby
SegFaultAX has joined #ruby
lxsameer has quit [Quit: Leaving]
enebo has joined #ruby
tagrudev has quit [Remote host closed the connection]
ValicekB has quit [Ping timeout: 255 seconds]
siwica has joined #ruby
kevind has joined #ruby
Xiti has joined #ruby
anarang has quit [Ping timeout: 250 seconds]
s2013 has joined #ruby
Bira has quit []
_tpavel has quit [Quit: Leaving]
rayners has joined #ruby
_tpavel has joined #ruby
chamblin has joined #ruby
chamblin has quit [Client Quit]
Sirupsen has joined #ruby
tylerkern has joined #ruby
drakciR has joined #ruby
polysics has joined #ruby
Takle has joined #ruby
havenwood has joined #ruby
anarang has joined #ruby
orionstein_away is now known as orionstein
ffranz has joined #ruby
redgetan has left #ruby ["Leaving"]
amargherio has joined #ruby
ValicekB has joined #ruby
hobodave has joined #ruby
Morkel has quit [Quit: Morkel]
Tricon has joined #ruby
mercwithamouth has quit [Ping timeout: 260 seconds]
treehug88 has joined #ruby
sambao21 has joined #ruby
fly2web has joined #ruby
amargherio has quit [Ping timeout: 255 seconds]
Zenigor_ has joined #ruby
Snarkz has joined #ruby
redgetan has joined #ruby
Zenigor has quit [Ping timeout: 250 seconds]
ari-_-e has quit [Read error: Connection reset by peer]
fgo has joined #ruby
sambao21 has quit [Read error: Connection reset by peer]
kirun has joined #ruby
amargherio has joined #ruby
sambao21 has joined #ruby
mjuszcza1 has left #ruby [#ruby]
tobago has quit [Remote host closed the connection]
timonv^ has joined #ruby
TorpedoSkyline has joined #ruby
fgo has quit [Ping timeout: 245 seconds]
hashtagdata has joined #ruby
timonv_ has quit [Ping timeout: 245 seconds]
Tricon has quit [Quit: Leaving...]
linojon has joined #ruby
redgetan has left #ruby ["Leaving"]
codecodecode123 has joined #ruby
centrx has joined #ruby
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<codecodecode123> how can i raise float numbers to a power
<codecodecode123> ?
jcromartie has joined #ruby
<codecodecode123> 0.4^2
<codecodecode123> raised
<codecodecode123> NoMethodError: undefined method `^' for 0.4:Float
<codecodecode123> help
tomblomfield has joined #ruby
qwyeth has joined #ruby
GriffinHeart has joined #ruby
<cHarNe2_> codecodecode123: doc says **
jshultz has joined #ruby
jprovazn has quit [Quit: Leaving]
<codecodecode123> oh
<cHarNe2_> codecodecode123: works?
<codecodecode123> that works
<cHarNe2_> good
<codecodecode123> thanks
codecodecode123 has quit [Client Quit]
Zenigor has joined #ruby
claw___ has joined #ruby
claw__ has quit [Ping timeout: 250 seconds]
arya_ has joined #ruby
asmodlol has joined #ruby
Zenigor_ has quit [Ping timeout: 250 seconds]
tjr9898 has joined #ruby
redgetan has joined #ruby
paulfm has quit []
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
tylerkern has joined #ruby
rubytor has joined #ruby
Tricon has joined #ruby
redgetan has left #ruby [#ruby]
tjr9898_ has quit [Ping timeout: 245 seconds]
paulfm has joined #ruby
dbasch has joined #ruby
sixxy has joined #ruby
rp__ has joined #ruby
calleerlandsson1 has joined #ruby
abilon has quit [Quit: Lingo - http://www.lingoirc.com]
calleerlandsson1 has quit [Client Quit]
havenwood has quit [Remote host closed the connection]
moritzs has quit [Ping timeout: 272 seconds]
Zenigor has quit [Remote host closed the connection]
fantazo has joined #ruby
sixxy has quit [Remote host closed the connection]
Zenigor has joined #ruby
mehlah has quit [Quit: Leaving...]
<baweaver> codecodecode1:
<baweaver> >> 2**2
<Mon_Robot> baweaver: => 4 (https://eval.in/172700)
<baweaver> >> 2**3
<Mon_Robot> baweaver: => 8 (https://eval.in/172701)
<Mon_Ouie> He's gone though
<baweaver> aw
dbasch has quit [Quit: dbasch]
aspires has joined #ruby
dbasch has joined #ruby
maestrojed has joined #ruby
rubytor has quit [Ping timeout: 245 seconds]
Macaveli has quit [Ping timeout: 245 seconds]
einarj has joined #ruby
kangguru is now known as kangguru_away
havenwood has joined #ruby
bmurt has joined #ruby
Panicky has joined #ruby
tylerkern has quit [Read error: Connection reset by peer]
tylerkern has joined #ruby
avelldiroll has quit [Ping timeout: 250 seconds]
<Karunamon> Hi all - I'm wondering if anyone has any experience kicking off Rspec inside another program. I'm running a bunch of validation steps against a hash provided by the user, and I'd like to show those validations happening. Problem is, I keep getting an "undefined method map!' from Rspec.
fabrice31 has quit [Remote host closed the connection]
mechanicalduck_ has joined #ruby
<mechanicalduck_> hi
<mechanicalduck_> Does bundler already ship its own rake tasks?
<mechanicalduck_> So I just invoke rake and it lets bundler install?
renderful has joined #ruby
thams has quit [Quit: thams]
DaniG2k has quit [Quit: leaving]
jdj_dk_ has joined #ruby
segfalt has joined #ruby
<Karunamon> mechanicalduck_: Whenever I use bundler, it provides another script just called 'bundler'. You just do 'bundler init' in the project root, and 'bundler install' from within the gemfile
<Karunamon> I don't think rake is involved
fgo has joined #ruby
aspires has quit [Remote host closed the connection]
<Karunamon> err, not from within the gemfile, but where it's been created
tjr9898_ has joined #ruby
dbasch has quit [Quit: dbasch]
aspires has joined #ruby
tjr9898 has quit [Read error: Connection reset by peer]
Mekkis has quit [Ping timeout: 244 seconds]
<mechanicalduck_> Right, and Rake has to be installed, too. :D
nateberkopec has quit [Read error: Connection reset by peer]
nateberkopec has joined #ruby
Mekkis has joined #ruby
bradleyprice has joined #ruby
jrhorn424 is now known as zz_jrhorn424
fgo has quit [Ping timeout: 245 seconds]
thams has joined #ruby
tjr9898 has joined #ruby
SegFaultAX has quit [Excess Flood]
<Karunamon> Huh it's almost like there's some piece of configuration that rspec applies when run from the command line, but not when invoked programmatically with Rspec::Core::Runner.run(__FILE__)
amacou_ has quit [Remote host closed the connection]
SegFaultAX has joined #ruby
amacou has joined #ruby
thams has quit [Client Quit]
linojon has quit [Ping timeout: 240 seconds]
einarj has quit [Remote host closed the connection]
blackmesa has joined #ruby
renderful has quit [Remote host closed the connection]
fold has joined #ruby
tjr9898_ has quit [Ping timeout: 272 seconds]
vsoftoiletpaper has joined #ruby
nateberkopec has quit [Read error: Connection reset by peer]
<mechanicalduck_> Karunamon: Check the bin stub used for rspec command (in cli), it also uses rspec programmatically plus the cli handling stuff (and possibly the logic for your observation).
_maes_ has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
razum2um has quit [Quit: Leaving.]
amacou has quit [Ping timeout: 272 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
ramfjord has joined #ruby
tvw has quit []
jdj_dk_ has quit [Remote host closed the connection]
Photism has quit [Quit: Leaving]
MartinCleaver has quit [Quit: MartinCleaver]
MartinCleaver has joined #ruby
lmickh has joined #ruby
Arkaniad has joined #ruby
razum2um has joined #ruby
Arkaniad has quit [Max SendQ exceeded]
banister has quit [Ping timeout: 245 seconds]
pontiki has joined #ruby
anarang has quit [Quit: Leaving]
blackmesa has quit [Remote host closed the connection]
blackmesa has joined #ruby
treehug88 has quit [Ping timeout: 255 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
mikesplain has joined #ruby
dawkirst has quit [Remote host closed the connection]
polysics has left #ruby [#ruby]
ixti has quit [Quit: WeeChat 0.4.3]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
renderful has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
banister has joined #ruby
Ankhers has joined #ruby
bradleyprice has quit [Remote host closed the connection]
bradleyprice has joined #ruby
lsmola has quit [Ping timeout: 260 seconds]
mr-foobar has joined #ruby
startupality has joined #ruby
hamakn has quit [Remote host closed the connection]
goshdarnyou has joined #ruby
qw3rtman has joined #ruby
qw3rtman has quit [Client Quit]
GriffinHeart has joined #ruby
mikepack has joined #ruby
bradleyprice has quit [Ping timeout: 250 seconds]
rippa has joined #ruby
drakciR has quit [Ping timeout: 260 seconds]
ixti has joined #ruby
tcurdt has quit [Quit: bye bye]
codabrink has quit [Quit: Textual IRC Client: www.textualapp.com]
subgeniuskitty has joined #ruby
nobodyzzz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
f0ster_ has joined #ruby
<fly2web> i want do webscraping with ruby, then what module can i use?
GriffinHeart has quit [Remote host closed the connection]
avalarion has joined #ruby
mercwithamouth has joined #ruby
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
amargherio has quit [Ping timeout: 250 seconds]
codabrink has joined #ruby
tylerkern has quit [Read error: Connection reset by peer]
<pontiki> how do you think you can find the answer to that without asking in here, fly2web ?
tylerkern has joined #ruby
<fly2web> i can’t do it with helping #ruby
<fly2web> help me pontiki
<wasamasa> halp
<pontiki> no
<centrx> ?
<wasamasa> herpderp
<havenwood> help vampire!
itspots has joined #ruby
<pontiki> figure it out yourself
* wasamasa bares his fangs
<fly2web> oh
<centrx> Tough crowd
<centrx> fly2web, Nokogiri
<fly2web> Nokogiri?
<havenwood> fly2web: Mechanize
dRbiG has quit [Ping timeout: 250 seconds]
<fmendez> fly2web: you can use a combination of mechanize and nokogiri
<havenwood> fly2web: Means "chainsaw" in Japanese.
<pontiki> it's easy to give answers. it's hard to teach.
<wasamasa> fly2web: have you ever heard of search engines or github?
amargherio has joined #ruby
acrussell has joined #ruby
<Karunamon> mechanicalduck_: Good pointer, the stub uses .autorun to kick things off. Changed my code to do that and all is well.
<wasamasa> inb4 "in my country we no use google"
<shevy> haha
<shevy> pontiki you are not ignoreing fly2web? :>
<fly2web> i heard github, i do’t use it
kaspergrubbe_ has quit [Read error: No route to host]
<wasamasa> fly2web: too bad, pretty much all useful gems are on github
kaspergr_ has joined #ruby
<centrx> Well all the programs you want to use do
mikecmpbll has quit [Remote host closed the connection]
<fly2web> where is mechanize and nokogiri
<fly2web> ?
Cryptoh has joined #ruby
Cryptoh has left #ruby [#ruby]
subgeniuskitty has left #ruby [#ruby]
<fmendez> there's gotta be a nokogiri office near where you live
<fmendez> got check there
<fmendez> *go
britneywright has quit [Read error: Connection reset by peer]
britneywright has joined #ruby
jlovick has joined #ruby
<fmendez> If there's not, then you'll have to move to japan to find one, only then will you be able to use Nokogiri
mrpro has joined #ruby
<fly2web> fmendez: i think you are best kind here
geggam has joined #ruby
itspots_ has joined #ruby
mrpro has left #ruby [#ruby]
timonv^ has quit [Remote host closed the connection]
<wasamasa> fly2web: they're on github
<wasamasa> fly2web: so, tough luck
timonv_ has joined #ruby
zB0hs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<fly2web> i don’t know github. because i don’t go there.
hypnosb has joined #ruby
<wasamasa> time to change that then
<fly2web> but i heard github
<hypnosb> hi, how do I use rvm rvmrc to convert .rvmrc file?
dbasch has joined #ruby
larissa has quit [Quit: Leaving]
<fly2web> like this?
avelldiroll has joined #ruby
<fly2web> too complicate
<centrx> Looks the World Wide Web is not for you
itspots has quit [Ping timeout: 272 seconds]
kireevco has joined #ruby
<fly2web> i study ruby, i want know my skill with webscraping by ruby.
<mechanicalduck_> Karunamon: Pardon, to which post of mine are you referring?
<Karunamon> mechanicalduck_: >Karunamon: Check the bin stub used for rspec command (in cli), it also uses rspec programmatically plus the cli handling stuff (and possibly the logic for your observation).
<wasamasa> this is like the worst troll ever
cantonic has joined #ruby
<fmendez> lol
<centrx> fly2web, You need to learn how to use the Web before you can scrape it
<mechanicalduck_> ah!
<mechanicalduck_> Karunamon: Right
<Karunamon> :)
<fmendez> hahah
<fly2web> i know web
<fly2web> there is bin, ext, lib, ports, suppressions, tasks, .............
<Karunamon> Don't know why I never thought of that, lol
<fly2web> what is it?
dbasch has quit [Client Quit]
<Karunamon> Speaking of things I never thought of.. as much fun as it is to write my own recursive hash searches for assorted corner cases, I can't help but think someone's already written a gem of some kind to handle this type of malarky
aagdbl has joined #ruby
yalue has joined #ruby
timonv_ has quit [Ping timeout: 245 seconds]
<fly2web> fmendez: where can i find ‘mechanize'?
Pumukel has joined #ruby
<wasamasa> fly2web: explain me what a troll is
<fly2web> wasamasa: i m not troller.
<fly2web> you mistake me as troller.
<fly2web> i m just kind.
<wasamasa> fly2web: you use that word as if you knew what a troll is
banister has quit [Read error: Connection reset by peer]
<fly2web> i don’t know troller
<wasamasa> fly2web: therefore, you're obliged to explain your definition to me
MCDev has joined #ruby
<wasamasa> fly2web: how can you claim you're no troll when you don't know what a troll is?
MCDev has quit [Changing host]
MCDev has joined #ruby
doev has quit [Quit: Verlassend]
<fly2web> just give me mechanize place?
<fly2web> give me sites of mechanize.
<centrx> Sorry, it's on github, remember?
startupality has quit [Ping timeout: 260 seconds]
ari-_-e has joined #ruby
SCHAAP137 has joined #ruby
bricker`work has joined #ruby
LiohAu has quit [Quit: LiohAu]
<wasamasa> first he claims to have learned 20 different programming languages, then he's too stupid for reading a book or finding a project on github
<wasamasa> how can this be real
Snarkz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<wasamasa> I refuse to believe it
<fly2web> i don’t know github.
<fly2web> but i know many language.
banister has joined #ruby
<fly2web> knowing many language != knowing github
BadCodSmell has joined #ruby
banister has quit [Client Quit]
<BadCodSmell> Is there a way in ruby 1.8.7 to output JSON and maintain constant order? IE for sorted by key?
darkxploit has joined #ruby
tomblomfield has quit [Quit: Computer has gone to sleep.]
JohnFord has joined #ruby
<fly2web> then i will go sleep.
claymore has joined #ruby
sunya7a has joined #ruby
moritzs has joined #ruby
jay__ has joined #ruby
<fly2web> bye. if ruby men give me finding mechanize then i don’t go sleep.
sjouke has joined #ruby
ramfjord has quit [Ping timeout: 272 seconds]
<sjouke> where is the user.autheneticate method coming from? it isn't described anywhere on this page http://www.railstutorial.org/book/sign_in_out
<havenwood> fly2web: You really, really should learn to use a search engine. I've found them very useful.
fgo has joined #ruby
<fly2web> but i will go to sleep. because no one teach me way of finding mechanize module.
alex88 has quit [Quit: Leaving...]
Snarkz has joined #ruby
<fly2web> havenwood: how?
<havenwood> fly2web: Search for: mechanize ruby
relix_ has joined #ruby
<fly2web> oh in google?
<Mon_Ouie> You should write a ruby script that searches for Ruby libraries for you
<wasamasa> rofl
relix has quit [Ping timeout: 250 seconds]
banister has joined #ruby
<fly2web> https://rubygems.org/gems/mechanize <—— is it right? havenwood
Akagi201 has quit [Remote host closed the connection]
renderful has quit [Remote host closed the connection]
<fly2web> Rolling On Floor Laughing
hashtagdata has quit []
dblessing has quit [Quit: dblessing]
<wasamasa> also, rubygems.org should at least put a warning on links leading to rubyforge
<wasamasa> since they're all dead
yacks has quit [Quit: Leaving]
malditogeek has quit [Quit: Leaving.]
startupality has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cantonic has quit [Quit: cantonic]
<fly2web> OMG
<fly2web> OTL
olivier_bK has quit [Ping timeout: 245 seconds]
fgo has quit [Ping timeout: 260 seconds]
pzula has joined #ruby
<fly2web> i don’t know use mechanize + Nokogiri, but i m not embarrassed. because i m skilled python programmar
wallerdev has joined #ruby
nateberkopec has joined #ruby
<fly2web> BYE. i will sleep.
malditogeek has joined #ruby
SegFaultAX has quit [Excess Flood]
<fly2web> ALL are sleep?
<jmbrown412> fly2web: Are you joking?
noop has quit [Ping timeout: 250 seconds]
<wasamasa> he must be
<jmbrown412> I hope so.
noop has joined #ruby
<fly2web> no, i m serious now.
chth0n has quit [Quit: Ex-Chat]
maletor has joined #ruby
TorpedoSkyline has quit [Quit: Textual IRC Client: www.textualapp.com]
<jmbrown412> Serious now?
<jmbrown412> But not before? :)
SegFaultAX has joined #ruby
<fly2web> yes
<jmbrown412> nice
<wasamasa> fly2web: well, nobody will believe you if you don't show any code, so
<fly2web> ok
<fly2web> i will show code by ruby before one week
<wasamasa> no, in python, you fool
oso96_2000 is now known as oso|away
<havenwood> I think he's just a very skilled Haskell, Python, C, C++ programmer who's never used a search engine. He's been clear about that.
banister has quit [Ping timeout: 250 seconds]
troyready has joined #ruby
<fly2web> how about java?
<fly2web> i will see you java?
<wasamasa> or that "android code" you're speaking of
* jmbrown412 grabs popcorn.
<wasamasa> yeah, go ahead
<fly2web> ok
<fly2web> wait
<havenwood> fly2web: Sorry, I missed a lot of your fluent languages.
* wasamasa expects copy-paste hell from SO
lagweezle has left #ruby [#ruby]
klaut has quit [Remote host closed the connection]
<BadCodSmell> Can I easily convert a nested hash structure and all child hashed to ordered hashes that are order by key in 1.8.7?
<fly2web> ruby men, can i show the my product by java?
<fly2web> ok?
<wasamasa> do it
zoo-zed has joined #ruby
<fly2web> oh yes
Snarkz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zoo-zed has quit [Excess Flood]
yacks has joined #ruby
<havenwood> fly2web: I really think you should focus on learning how to use a search engine. Maybe DuckDuckGo or Google.
tomblomfield has joined #ruby
<fly2web> download it, it is very interesting game.
zorak has quit [Read error: Connection reset by peer]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<wasamasa> ".znc/moddata/log/wasamasa_freenode_#ruby_20140726.log:[12:55:33] <fly2web> i learned c, c++, java, javascript, python, perl, objective-c, php, android, etc"
<wasamasa> ".znc/moddata/log/wasamasa_freenode_#ruby_20140726.log:[12:56:34] <fly2web> then i want hacking, but metasploit is made of ruby. so i think that i must study ruby."
zoo-zed has joined #ruby
<BadCodSmell> it's study what most things are made of to be a hacker
banister has joined #ruby
<BadCodSmell> i would*
<wasamasa> ".znc/moddata/log/wasamasa_freenode_#ruby_20140727.log:[00:12:01] <fly2web> i know haskell, but i don’t need to functional language."
<BadCodSmell> and new popuylar things where people do stupid
<pontiki> man oh man. here i get this *ancient* vagrant box, with this *ancient* version of ruby (1.9.3), which of *course* fails when rvm hits the directory, and of *course* fails after updating ruby to the last 1.9.3 during the bundle install....
kireevco has left #ruby [#ruby]
choke has joined #ruby
<havenwood> fly2web: Learning to use a search engine will make things accessible to you, like the weather, what movie is playing, where nokogiri and mechanize gems can be found, etcetera.
<fly2web> how about my skill of android? and android is made by java
pietr0 has joined #ruby
<wasamasa> fly2web: that's no code you're showing, idiot
<pontiki> Do you all know the phrase "When the student is ready, the teacher appears" ?
<pontiki> the corrolary is, until the student is ready, the teacher is wasting their breath
<havenwood> fly2web: Try googling some tutorials about how to use google.
<fly2web> havenwood: thanks you are my friend in ruby only
alem0lars has quit [Quit: alem0lars]
<fly2web> but now i want know way of finding ruby module.
<fly2web> BYE i will sleep.
<sjouke> what is the self method in ruby?
<fly2web> me?
<sjouke> why not just create another method for the class like def foo
<Mon_Ouie> It's not a method, it's a keyword that evaluates to the object the current object was called one
<fly2web> BYE
<Mon_Ouie> current method*
fly2web has left #ruby [#ruby]
<Mon_Ouie> >> class Foo; def bar; p self; end; Foo.new.bar
<Mon_Robot> Mon_Ouie: => SyntaxError: (eval):1: syntax error, unexpected end-of-input, expecting keyword_... (https://eval.in/172713)
<Mon_Ouie> >> class Foo; def bar; p self; end; end; Foo.new.bar
<Mon_Robot> Mon_Ouie: => #<Foo:0x41285ab4>... (https://eval.in/172714)
aspires has quit []
tomblomfield has quit [Quit: Textual IRC Client: www.textualapp.com]
BadCodSmell has left #ruby [#ruby]
_tpavel has quit [Quit: Leaving]
<pontiki> >> class Foo; def bar; self; end; end; x = Foo.new; x == x.bar
<Mon_Robot> pontiki: => true (https://eval.in/172716)
<pontiki> Mon_Robot: botsnack!
banister has quit [Ping timeout: 240 seconds]
kireevco has joined #ruby
Mon_Ouie has quit [Ping timeout: 256 seconds]
charliesome has joined #ruby
aspires has joined #ruby
Snarkz has joined #ruby
emerson_ has quit [Remote host closed the connection]
ascarter has joined #ruby
wallerdev has quit [Quit: wallerdev]
mehlah has joined #ruby
Hobogrammer has joined #ruby
DrShoggoth has joined #ruby
pothibo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
nobodyzzz has joined #ruby
deric_skibotn has joined #ruby
havenwood has quit [Remote host closed the connection]
centipedefarmer has joined #ruby
macclearich__ has joined #ruby
hamakn has joined #ruby
fgo has joined #ruby
havenwood has joined #ruby
timonv_ has joined #ruby
Takle has quit [Read error: Connection reset by peer]
Takle has joined #ruby
ascarter has quit [Quit: Textual IRC Client: www.textualapp.com]
Xeago has quit [Remote host closed the connection]
djbkd has joined #ruby
matrixdevuk has joined #ruby
thumpba has quit [Read error: Connection reset by peer]
exgf has joined #ruby
thumpba has joined #ruby
sunya7a has quit [Ping timeout: 256 seconds]
roolo has quit [Quit: Leaving...]
ascarter has joined #ruby
matrixdevuk has quit [Read error: No route to host]
Lewix has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
dawkirst has joined #ruby
fgo has quit [Ping timeout: 245 seconds]
Joulse has quit [Quit: Joulse]
renderful has joined #ruby
matrixdevuk has joined #ruby
enebo has quit [Quit: enebo]
pex has left #ruby [#ruby]
wjimenez5271 has joined #ruby
banister has joined #ruby
xmad has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
northfurr has joined #ruby
aagdbl has quit [Quit: This computer has gone to sleep]
rezzack has joined #ruby
matrixdevuk has quit [Ping timeout: 240 seconds]
matrixdevuk has joined #ruby
tuxninja has joined #ruby
kaspergr_ has quit [Remote host closed the connection]
cantonic has joined #ruby
mityaz has joined #ruby
britneyw_ has joined #ruby
britneywright has quit [Read error: Connection reset by peer]
centipedefarmer has quit [Remote host closed the connection]
darkxploit has quit [Ping timeout: 260 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wallerdev has joined #ruby
nanoyak has joined #ruby
saarinen has joined #ruby
centipedefarmer has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
sevvie has quit [Ping timeout: 240 seconds]
fabrice31 has joined #ruby
britneyw_ has quit [Read error: Connection reset by peer]
dangerousdave has quit [Read error: Connection reset by peer]
britneywright has joined #ruby
toastynerd has quit []
pzula has quit [Ping timeout: 240 seconds]
jan_ has joined #ruby
dangerousdave has joined #ruby
jan_ has quit [Client Quit]
parduse has quit [Remote host closed the connection]
sjouke has quit [Quit: leaving]
parduse has joined #ruby
aspires has quit []
fabrice31 has quit [Ping timeout: 250 seconds]
aspires has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
sputnik13 has joined #ruby
tuxninja has quit []
banister has quit [Max SendQ exceeded]
jds has quit [Quit: Connection closed for inactivity]
craigbowen3 has joined #ruby
xmad has quit [Ping timeout: 260 seconds]
dawkirst has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
Wayneoween has quit [Changing host]
Wayneoween has joined #ruby
sigurding has quit [Quit: sigurding]
bosworth has joined #ruby
banister has joined #ruby
bosworth has quit [Client Quit]
dawkirst has joined #ruby
Spami has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
slash_nick is now known as lib
lib is now known as slash_nick
Takle has quit [Remote host closed the connection]
Hobogrammer has quit [Ping timeout: 256 seconds]
dawkirst has quit [Remote host closed the connection]
go|dfish has quit [Quit: SIGQUIT]
elaptics is now known as elaptics`away
banjara has joined #ruby
<rdark> anyone know a good jquery/javascript room?
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jmbrown412> #javascript?
pushpak has joined #ruby
britneywright has joined #ruby
exgf has quit [Ping timeout: 264 seconds]
b00stfr3ak has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
TDJACR has quit [Ping timeout: 260 seconds]
freggles has quit [Remote host closed the connection]
kaspergrubbe_ has joined #ruby
<rdark> jmbrown412: that was my first thought :)
Ilyas has joined #ruby
j_mcnall_ has joined #ruby
dumdedum has quit [Ping timeout: 240 seconds]
startupality has quit [Ping timeout: 245 seconds]
j_mcnall_ is now known as j_mcnally
banister has quit [Read error: Connection reset by peer]
deric_skibotn has quit [Ping timeout: 250 seconds]
<pontiki> how about #jquery ?
<pontiki> "good" is always a tough call
<pontiki> not sure i'd call this room "good" :>
<wallerdev> :<
<centrx> ||=
* terrellt would
<pontiki> [{}]
<apeiros> :O
endash has joined #ruby
<pontiki> $"
<wallerdev> not good but great ;)
<pontiki> sometimes, we are downright evil
endash has quit [Client Quit]
apeiros is now known as proc{|x|}
<pontiki> but mostly lawful neutral
<proc{|x|}> irc allows funny nicks
TDJACR has joined #ruby
proc{|x|} is now known as apeiros
rezzack has quit [Quit: Leaving.]
thams has joined #ruby
sjouke has joined #ruby
<Mon_Ouie> >> apeiros = proc {|x|}; apeiros.respond_to? :questions
<Mon_Robot> Mon_Ouie: => false (https://eval.in/172726)
Xeago has joined #ruby
treehug88 has joined #ruby
jimms has joined #ruby
f0ster_ has quit [Ping timeout: 260 seconds]
NinoScript has quit [Ping timeout: 264 seconds]
<pontiki> :+1:
Lewix has quit [Remote host closed the connection]
farn has joined #ruby
Lewix has joined #ruby
NinoScript has joined #ruby
sjouke has quit [Quit: leaving]
edwardly has quit [Ping timeout: 240 seconds]
tylerkern has quit [Read error: Connection reset by peer]
tylerkern has joined #ruby
malditogeek has quit [Quit: Leaving.]
ramfjord has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
<Lewix> where are the toronto rubyist at
timonv_ has quit [Remote host closed the connection]
* Mon_Ouie wants to answer Toronto
sigurding has joined #ruby
<hfp> Hey all, I have something like `foo = ['bar', 'baz']` and I would like to end up with `foo = 4 * foo` so I will have 8 entries in my foo instead of 2. I tried 4.times and 4*foo but no dice. How should it be done?
<Mon_Ouie> You have to put the number on the other side of '*'
<Mon_Ouie> >> ['bar', 'baz'] * 4
<Mon_Robot> Mon_Ouie: => ["bar", "baz", "bar", "baz", "bar", "baz", "bar", "baz"] (https://eval.in/172732)
craigbowen3 has quit [Ping timeout: 255 seconds]
<hfp> Oh I see, thanks
<Mon_Ouie> (That's just because Fixnum#* tries to convert its argument to another number)
DrShoggoth has quit [Quit: Leaving]
AlSquire has quit [Quit: This computer has gone to sleep]
<apeiros> hfp: don't forget that you're having the same object in the array multiple times
<apeiros> >> ary = ['bar', 'baz'] * 4; ary.first.upcase!; ary
<Mon_Robot> apeiros: => ["BAR", "baz", "BAR", "baz", "BAR", "baz", "BAR", "baz"] (https://eval.in/172733)
parduse has quit [Remote host closed the connection]
Morkel has joined #ruby
<hfp> apeiros: Oh no I have to duplicate them
fgo has joined #ruby
Martxel has joined #ruby
crazydiamond has quit [Ping timeout: 260 seconds]
kireevco has quit [Quit: Leaving.]
parduse has joined #ruby
timfoo has quit [Ping timeout: 244 seconds]
timfoo has joined #ruby
jottr has joined #ruby
xmad has joined #ruby
kireevco has joined #ruby
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
linojon has joined #ruby
deric_skibotn has joined #ruby
fgo has quit [Ping timeout: 264 seconds]
opus has joined #ruby
nanoyak has joined #ruby
yetanotherdave has joined #ruby
cantonic has quit [Ping timeout: 264 seconds]
ra4king1 is now known as ra4king
jottr has quit [Ping timeout: 245 seconds]
xmad has quit [Ping timeout: 240 seconds]
centrx has quit [Quit: Mead error: Connection reset by beer]
mary5030 has quit [Remote host closed the connection]
<shevy> lol
alem0lars has joined #ruby
<shevy> hmm
<shevy> today at work I had a shell script
<shevy> it had something like ... some_var = $#
<shevy> I didn't even know how to google for that
<Xeago> symbolhound
<shevy> symbolhound?
<Xeago> it's a search engine with opinionated tokenization :)
krz has quit [Quit: WeeChat 0.4.3]
<shevy> "$# represents the number of command line arguments passed to the script."
<shevy> man
<shevy> if shell scripts would only be ruby scripts
krz has joined #ruby
nanoyak has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
<pontiki> i've stopped writing bash scripts and perl scripts anymore; everything goes as ruby.
thams has quit [Quit: thams]
freggles has joined #ruby
nanoyak has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nanoyak has quit [Read error: Connection reset by peer]
nanoyak has joined #ruby
thams has joined #ruby
<shevy> \o/
<shevy> you are the man!
Vpex has joined #ruby
Neomex has joined #ruby
banister has joined #ruby
frankle has joined #ruby
Wolland has joined #ruby
k0m has joined #ruby
<shevy> we need to find out who has the biggest brains
bradleyprice has joined #ruby
<shevy> and remembers the ruby stdlib and corelib docu offline too, only from own memory alone
bradleyprice has quit [Remote host closed the connection]
bradleyp_ has joined #ruby
k0m has left #ruby [#ruby]
yfeldblum has joined #ruby
xmad has joined #ruby
centipedefarmer has joined #ruby
Adam_ has joined #ruby
britneywright has joined #ruby
treehug88 has quit [Ping timeout: 260 seconds]
<shevy> huh
<shevy> did you guys know there is Array#fill
<shevy> who does not know what it does
Morkel_ has joined #ruby
<Adam_> Wassup #Ruby. I have a question about requiring class files in a project. I was wondering if there's a way I could add some class files to some sort of path where I can access is by saying "require 'class_name'" instead of having to require the whole directory?
Xeago has quit [Remote host closed the connection]
<Mon_Ouie> Adam_: $LOAD_PATH is that variable
<Adam_> cool thanks
Morkel has quit [Ping timeout: 260 seconds]
Morkel_ is now known as Morkel
matchaw has joined #ruby
enebo has joined #ruby
ra4king has quit [Quit: Leaving]
Xeago has joined #ruby
davispuh has joined #ruby
ra4king has joined #ruby
mattmcclure has joined #ruby
matchaw_ has quit [Ping timeout: 260 seconds]
parduse has quit [Remote host closed the connection]
parduse has joined #ruby
b00stfr3ak has quit [Ping timeout: 272 seconds]
<hfp> How could I mesh 2 arrays? so that `["foo", "bar"] and ["baz", "qux"]` become `{"baz" => "foo", "qux" => "baz"}` ?
bricker`work is now known as bricker
b00stfr3ak has joined #ruby
mercwithamouth has quit [Ping timeout: 250 seconds]
<Mon_Ouie> You can use Array#zip and Hash.[]
<hfp> Mon_Ouie: Thanks
jamto11 has joined #ruby
<pontiki> hmmm
<wallerdev> or zip reduce
Snarkz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pontiki> >> Hash[["baz","qux"].zip(["foo","bar"])]
<Mon_Robot> pontiki: => {"baz"=>"foo", "qux"=>"bar"} (https://eval.in/172735)
<pontiki> \o/ !!!
Petru has joined #ruby
Fire-Dragon-DoL has joined #ruby
<wallerdev> lol
saarinen has quit [Quit: saarinen]
Shidash has joined #ruby
<pontiki> i haven't come up with a reason to use zip in purposeful code yet, so i haven't played around with it very much
Sauvin has quit [Read error: Connection reset by peer]
Snarkz has joined #ruby
jamto11 has quit [Ping timeout: 240 seconds]
dorei has quit []
baweaver has quit [Remote host closed the connection]
[1]MCDev has joined #ruby
s2013 has quit [Ping timeout: 245 seconds]
banister_ has joined #ruby
banister_ has quit [Max SendQ exceeded]
harshjha_ has joined #ruby
banister_ has joined #ruby
saarinen has joined #ruby
saarinen has quit [Client Quit]
banister has quit [Read error: Connection reset by peer]
<harshjha_> How to resolve conflicting ruby version issues in bundler, like - https://gist.github.com/theharshest/53acc40e5871a30c6f87 ?
MCDev has quit [Ping timeout: 250 seconds]
[1]MCDev is now known as MCDev
arup_r has joined #ruby
<wallerdev> what version of nokogiri do you have
saarinen has joined #ruby
<wallerdev> looks like both gems work with 1.6.3.1
timfoo has quit [Ping timeout: 244 seconds]
<wallerdev> although microformats2 is probably being dumb with its requirements
Xeago has quit [Remote host closed the connection]
<arup_r> Can I write this better way ? https://gist.github.com/aruprakshit/94684700648ec15747cd
gr33n7007h has quit [Ping timeout: 260 seconds]
mercwithamouth has joined #ruby
timfoo has joined #ruby
carraroj has joined #ruby
<wallerdev> does that even run?
<Mon_Ouie> I'd probably use File.exist? each time rather than a glob
b00stfr3ak has quit [Ping timeout: 255 seconds]
nanoyak has quit [Read error: Connection reset by peer]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
treehug88 has joined #ruby
<arup_r> Can you give me a Gist.. I am not getting it
MatthewsFace has joined #ruby
nanoyak has joined #ruby
b00stfr3ak has joined #ruby
<arup_r> Is this what you meant ?
<Lewix> ahhhhhhhhhhhhhhhhhhhh
Duckily has joined #ruby
mikepack has quit [Remote host closed the connection]
roolo has joined #ruby
mikepack has joined #ruby
IceDragon has joined #ruby
Azzurrio has joined #ruby
trolling42 has joined #ruby
timonv_ has joined #ruby
chrishough has joined #ruby
<Azzurrio> I've a question about server side procces in most ruby web frameworks
jerius_ has joined #ruby
<Azzurrio> what's the difference between Apache or Nginx & Unicorn or Passenger
<Mon_Ouie> arup_r: Yeah
Hobogrammer has joined #ruby
<Azzurrio> Why should I use both of them together?
<arup_r> Mon_Ouie: Really look better
<arup_r> *looks
lmickh has quit [Remote host closed the connection]
clinicalpain has joined #ruby
clinicalpain has left #ruby [#ruby]
jerius has quit [Ping timeout: 245 seconds]
carraroj has quit [Ping timeout: 260 seconds]
Lightsword has joined #ruby
centrx has joined #ruby
<trolling42> Hi how can I use file.dirname to read a path from environment variable?
<arup_r> example please
<trolling42> file.dirname('$TEST') gives nil in irb console
<shevy> trolling42 just fetch it ... File.dirname(ENV['NAME_HERE'])
NinoScript has quit [Ping timeout: 264 seconds]
<trolling42> shevy, ah ok. I tried to read it directly. thanks.
<shevy> you have to check whether ENV has this though
<shevy> otherwise you'd get an error
dRbiG has joined #ruby
<Mon_Ouie> >> ENV
<Mon_Robot> Mon_Ouie: Something went wrong when trying to evaluate your code.
<shevy> File.dirname(ENV['NAME']) if ENV.has_key? 'NAME'
<Mon_Ouie> :(
xmad has quit [Ping timeout: 256 seconds]
<shevy> lol Mon_Ouie
<Lightsword> what would be the regex to remove the trailing zeros from this string? for example “1.10000000 USD” to “1.1 USD”
<apeiros> Lightsword: .delete('0') :-p
ascarter has joined #ruby
kangguru_away is now known as kangguru
<apeiros> I guess you're after something like .gsub(/0+(?= )/, '')
<Lightsword> apeiros would that work with “1.01000000 USD” to “1.01 USD”
<apeiros> Lightsword: obviously not, but you didn't specify properly. hence the :-p
<centrx> .to_f
<Lightsword> kk, thanks, second one worked
chipotle has joined #ruby
<Mon_Ouie> Oh, it's the eval-in website that's down
NinoScript has joined #ruby
muz0xd has joined #ruby
postmodern has joined #ruby
Adam_ has quit [Quit: Page closed]
renderful has quit [Remote host closed the connection]
Ysgard has joined #ruby
muz0xd has quit [Client Quit]
Atrumx has quit [Quit: Quitting]
kireevco has quit [Read error: Connection reset by peer]
kireevco has joined #ruby
xmad has joined #ruby
Ysgard has left #ruby [#ruby]
fgo has joined #ruby
Ysgard has joined #ruby
<Ysgard> #learn
muz0xd has joined #ruby
brianherman has quit [Ping timeout: 245 seconds]
MatthewsFace has quit [Quit: This computer has gone to sleep]
kiri has quit [Ping timeout: 272 seconds]
<Lightsword> apeiros, how would I conditionally remove the decimal place as well if there are all-zero numbers after decimal place?
<Lightsword> so that “1.00000000 USD” to “1 USD”
phinfonet has quit []
<apeiros> you anchor your regex with the .
<apeiros> remember that you need \., since . alone means "any char"
fgo has quit [Ping timeout: 245 seconds]
bwilson has joined #ruby
<Lightsword> apeiros, where in the /0+(?= )/ would I add that anchor?
<Mon_Ouie> Is the '.' before or after the zeros? ;)
beef-wellington has quit [Ping timeout: 250 seconds]
Adam_ has joined #ruby
<Lightsword> before
<apeiros> I suggest you try
fabrice31 has joined #ruby
<Lightsword> oh, like this? /\.0+(?= )/ ?
MatthewsFace has joined #ruby
<centrx> str.to_f.sub(/\.0$/, '')
<centrx> str.to_f.to_s.sub(/\.0$/, '')
<Adam_> So I'm looking at how to manage the load paths of a project I'm working on and I was wondering if setting up an env.rb file would be appropriate. The general idea is to add all the load paths in the env.rb and then include the env.rb right? I'd appreciate some input.
opus has quit []
<Mon_Ouie> str = "0.00000000000000000000000000000001"
<Mon_Ouie> (There totally is a reason to print 1e-32 USD. Probably.)
ramfjord has quit [Ping timeout: 256 seconds]
beef-wellington has joined #ruby
melik__ has joined #ruby
<Lightsword> does this seem right? /[.]?0+(?= )/ ?
NinoScript has quit [Ping timeout: 264 seconds]
j_mcnally has quit [Ping timeout: 260 seconds]
djbkd has quit [Remote host closed the connection]
<Mon_Ouie> That looks fine. Although a character-class with just one element in it is a bit pointless.
<Lightsword> whats the right way to do it?
fabrice31 has quit [Ping timeout: 245 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x1337807x has joined #ruby
momomomomo has joined #ruby
NinoScript has joined #ruby
davispuh is now known as _Peacekeeper
_Peacekeeper is now known as davispuh
tylerkern has joined #ruby
x1337807x has quit [Client Quit]
opus has joined #ruby
Bosox20051 has joined #ruby
<Lightsword> is it better to do it like this? /(.)?0+(?= )/ ?
opus has quit [Client Quit]
isomorph1smes is now known as isomorphismes
deric_skibotn has quit [Ping timeout: 272 seconds]
kireevco has quit [Read error: Connection reset by peer]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
soulcake has quit [Quit: ZNC - http://znc.in]
kireevco has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
tylerkern has quit [Client Quit]
siwica has quit [Ping timeout: 250 seconds]
soulcake has joined #ruby
dvb_ua has joined #ruby
aspires has quit []
djbkd has joined #ruby
tylerkern has joined #ruby
Lightsword has quit [Ping timeout: 260 seconds]
soulcake has quit [Client Quit]
robscormack has quit [Quit: Leaving]
ari-_-e has quit [Ping timeout: 240 seconds]
Lightsword has joined #ruby
soulcake has joined #ruby
tylerkern has quit [Read error: Connection reset by peer]
lmickh has joined #ruby
tylerker_ has joined #ruby
ascarter has joined #ruby
sevvie has joined #ruby
aspires has joined #ruby
tylerker_ has quit [Read error: Connection reset by peer]
deric_skibotn has joined #ruby
charliesome has quit [Ping timeout: 245 seconds]
<apeiros> Lightsword: as said, just . means "any char". you need \.
Sirupsen has quit [Ping timeout: 245 seconds]
tylerkern has joined #ruby
sigurding has quit [Ping timeout: 250 seconds]
aspires has quit [Client Quit]
mehlah has quit [Quit: Leaving...]
<Lightsword> so like this? /\.?0+(?= )/
<apeiros> that should work
fgo has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
<havenwood> >> '1.10000000 USD'.sub(/\d+\.\d+/, &:to_f)
xmad has quit [Quit: WeeChat 0.4.3]
charliesome has joined #ruby
<Mon_Robot> havenwood: Something went wrong when trying to evaluate your code.
dangerousdave has joined #ruby
<havenwood> #=> "1.1 USD"
soulcake has quit [Quit: ZNC - http://znc.in]
tylerkern has quit [Ping timeout: 250 seconds]
<shevy> hehe
<shevy> good bot you are havenwood
<havenwood> roger, roger
soulcake has joined #ruby
soulcake has quit [Client Quit]
yfeldblum has quit [Remote host closed the connection]
renderful has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
trolling42 has left #ruby ["Leaving"]
MatthewsFace has quit [Quit: This computer has gone to sleep]
tylerkern has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
yfeldblum has joined #ruby
siwica has joined #ruby
jamto11 has joined #ruby
pushpak has quit [Quit: Linkinus - http://linkinus.com]
mehlah has joined #ruby
yfeldblu_ has joined #ruby
kireevco has quit [Read error: Connection reset by peer]
arup_r1 has joined #ruby
kireevco has joined #ruby
krz has quit [Quit: WeeChat 0.4.3]
tylerkern has quit [Client Quit]
pu22l3r has joined #ruby
sigurding has joined #ruby
<hfp> I'm struggling with weird unicode characters. Some of our systems let no printable unicode characters through to the DB. How can I get rid of nasty things like U+0233E in a string?
<hfp> no printable = unprintable
<wallerdev> dont put them in the input string?
<wallerdev> lol
arup_r has quit [Ping timeout: 255 seconds]
<hfp> wallerdev: How would you do it?
<wallerdev> unicode characters aren't nasty just because theyre unprintable, you should make sure the string encoding corresponds to whatever your database's encoding is and it should work
jamto11 has quit [Ping timeout: 250 seconds]
MCDev has quit [Ping timeout: 250 seconds]
Xeago has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
renderfu_ has joined #ruby
ari-_-e has joined #ruby
crudson has joined #ruby
DivineEntity has joined #ruby
kireevco has quit [Quit: Leaving.]
kireevco has joined #ruby
kireevco has quit [Client Quit]
tylerkern has joined #ruby
jdj_dk has joined #ruby
soulcake has joined #ruby
benzrf|offline is now known as benzrf
renderful has quit [Ping timeout: 256 seconds]
aspires has joined #ruby
maestrojed has joined #ruby
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kireevco has joined #ruby
jerius_ has quit []
baweaver has joined #ruby
opus has joined #ruby
tylerkern has joined #ruby
jerius has joined #ruby
MatthewsFace has joined #ruby
tylerkern has quit [Client Quit]
arup_r1 has quit [Quit: Leaving.]
beryllium has joined #ruby
aspires has quit []
djbkd has quit [Remote host closed the connection]
aspires has joined #ruby
baweaver has quit [Ping timeout: 264 seconds]
jimms has quit []
tylerkern has joined #ruby
MatthewsFace has quit [Ping timeout: 272 seconds]
gr33n7007h has joined #ruby
treehug88 has quit [Ping timeout: 250 seconds]
Takle has joined #ruby
Ankhers has quit [Ping timeout: 264 seconds]
<hfp> wallerdev: I'm stuck with a U+0233E character. It is a non printable "left to right" mark. I can't seem to be able to find it with gsub and I don't know how to get rid of it
<hfp> because \u0233 isn't the same character, nor is \u233e
tylerkern has quit [Read error: Connection reset by peer]
<hfp> neither*
IceDragon has quit [Ping timeout: 264 seconds]
tylerkern has joined #ruby
IceDragon has joined #ruby
jdj_dk has quit [Quit: Leaving...]
acrussell has quit [Quit: Leaving.]
rezzack has joined #ruby
rylev has joined #ruby
claw___ has quit [Read error: Connection reset by peer]
phutchins has quit [Ping timeout: 256 seconds]
thams has quit [Quit: thams]
<toretore> hfp: why do you want to get rid of it?
claw___ has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<hfp> wallerdev: because it shouldn't be there in the first place. It's confusing all my rails app and it is a bug from the system that gathered this data in the first place. so once I figure out how to work around it in my rails app I'll have to patch the other app so it doesn't accept this kind of chars anymore
ramfjord has joined #ruby
thams has joined #ruby
<hfp> or at least strips them out of input
<toretore> why don't you want to accept it?
<bricker> just lay back and accept it.
<toretore> and how do you know it's there because of a bug?
<hfp> because it's not relevant to the data
jottr has joined #ruby
<toretore> how so?
<hfp> because it's on north american postcodes and addresses
<hfp> not consistently, only sometimes
<toretore> ok
<dopie> e
<toretore> so you should strip the postcodes when you use them
<hfp> yes, I'm probably missing something trivial out of frustration on being stuck on this since this morning. I'll go for a break and come back with a fresh pair of eyes
<toretore> postcode.gsub(/[^a-zA-Z0-9]/, '').upcase should handle most postcodes
chrishough has quit [Ping timeout: 255 seconds]
Azzurrio has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nanoyak has joined #ruby
treehug88 has joined #ruby
eichenwald has joined #ruby
Ysgard has quit []
aspires has quit []
centrx has quit [Quit: Mead error: Connection reset by beer]
havenwood has quit [Remote host closed the connection]
chrishough has joined #ruby
harshjha_ is now known as theharshest
dev_progrming has joined #ruby
muz0xd has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
eichenwald has quit [Quit: eichenwald]
renderful has joined #ruby
elaptics`away is now known as elaptics
kyb3r_ has joined #ruby
<graft> okay, one-liner puzzle: i have two three-letter strings - how to count the number of positions that differ between them?
<theharshest> has anyone parsed opengraph data? "open("http://blog.pinterest.com").read.include?("og:title")" => returns true, but "OpenGraph.fetch("http://blog.pinterest.com")" => returns false.
sigurding has quit [Quit: sigurding]
kaspertidemann has joined #ruby
<theharshest> jhass
djbkd has joined #ruby
Azzurrio has joined #ruby
renderfu_ has quit [Ping timeout: 255 seconds]
hobodave has quit [Quit: Computer has gone to sleep.]
Takle has quit [Read error: Connection reset by peer]
Takle has joined #ruby
wjimenez_5271_ has joined #ruby
<aledovsky> graft: Damerau-Levenshtein distance?
x1337807x has joined #ruby
Takle has quit [Remote host closed the connection]
Zebroid has joined #ruby
baweaver has joined #ruby
wjimenez5271 has quit [Ping timeout: 255 seconds]
kyb3r_ has quit [Read error: Connection reset by peer]
jamto11 has joined #ruby
Takle has joined #ruby
xybr_ is now known as xybre
Tricon has quit [Quit: Linkinus - http://linkinus.com]
codabrink has quit [Quit: Textual IRC Client: www.textualapp.com]
chipotle has quit [Quit: cya]
x1337807x has quit [Ping timeout: 260 seconds]
dev_progrming is now known as dev_progrmn
dev_progrmn is now known as dev_progrmin
codabrink has joined #ruby
Xeago has quit [Remote host closed the connection]
jamto11 has quit [Ping timeout: 240 seconds]
dev_progrmin has quit [Quit: Leaving]
renderful has quit [Remote host closed the connection]
<heftig> maybe something like a = "abc"; b = "dbe"; a.chars.zip(b.chars).count { |x,y| x != y }
icarus has joined #ruby
icarus has quit [Changing host]
icarus has joined #ruby
Morkel has quit [Quit: Morkel]
n_blownapart has joined #ruby
<theharshest> has anyone parsed opengraph data? "open("http://blog.pinterest.com").read.include?("og:title")" => returns true, but "OpenGraph.fetch("http://blog.pinterest.com")" => returns false. I see similar conflicting behavior with some other sites.
n_blownapart has quit [Remote host closed the connection]
n_blownapart has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<heftig> aledovsky: i guess that'd be hamming distance
Adam_ has left #ruby [#ruby]
renderful has joined #ruby
<heftig> the above code should be correct as long as a.size >= b.size
Zebroid has quit [Remote host closed the connection]
<banister_> heftig sup heft, long time no see
<heftig> banister_: hi.
Hobogrammer has quit [Quit: WeeChat 0.4.3]
NinoScript has quit [Ping timeout: 245 seconds]
<banister_> heftig where u been?
<heftig> busy.
<heftig> work and stuff
terrell_t has joined #ruby
momomomomo_ has joined #ruby
terrell_t has quit [Read error: Connection reset by peer]
terrell_t has joined #ruby
melik__ has quit [Quit: Computer has gone to sleep.]
momomomomo has quit [Ping timeout: 260 seconds]
momomomomo_ is now known as momomomomo
melik__ has joined #ruby
NinoScript has joined #ruby
decoponio has quit [Quit: Leaving...]
terrellt has quit [Ping timeout: 260 seconds]
Bosox20051 has quit [Ping timeout: 250 seconds]
chaos___________ has joined #ruby
androidbruce has left #ruby ["Leaving"]
kangguru is now known as kangguru_away
<banister_> heftig cool, where are you working now?
Hobogrammer has joined #ruby
kaspergrubbe_ has quit [Remote host closed the connection]
melik__ has quit [Ping timeout: 260 seconds]
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lxsameer has joined #ruby
j_mcnally has joined #ruby
fgo has quit [Remote host closed the connection]
terrell_t has quit [Read error: Connection reset by peer]
testcore has joined #ruby
terrellt has joined #ruby
Darryl has quit [Quit: Connection closed for inactivity]
itspots_ has quit [Remote host closed the connection]
itspots_ has joined #ruby
fabrice31 has joined #ruby
moritzs has quit [Ping timeout: 256 seconds]
sevvie has quit [Read error: Connection reset by peer]
Squarepy has joined #ruby
sevvie has joined #ruby
noop has quit [Ping timeout: 264 seconds]
Takle has quit [Ping timeout: 245 seconds]
tylerkern has joined #ruby
alem0lars has quit [Quit: alem0lars]
zorak has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
mercwithamouth has quit [Ping timeout: 260 seconds]
itspots__ has joined #ruby
Takle has joined #ruby
mark_locklear has quit [Ping timeout: 272 seconds]
Photism has joined #ruby
Wolland has quit [Remote host closed the connection]
Wolland has joined #ruby
Lewix has quit [Remote host closed the connection]
b00stfr3ak has quit [Ping timeout: 260 seconds]
itspots_ has quit [Ping timeout: 240 seconds]
oso|away is now known as oso96_2000
b00stfr3ak has joined #ruby
blackmesa has quit [Quit: WeeChat 0.4.3]
mary5030 has quit [Remote host closed the connection]
Wolland has quit [Ping timeout: 264 seconds]
yacks has quit [Ping timeout: 240 seconds]
ixti has quit [Read error: Connection reset by peer]
Lewix has joined #ruby
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tylerkern has joined #ruby
NinoScript has quit [Ping timeout: 245 seconds]
Aryasam has joined #ruby
ixti has joined #ruby
Aryasam has quit [Client Quit]
arya__ has joined #ruby
chrishough has quit [Quit: chrishough]
jackneill has quit [Read error: Connection reset by peer]
Ulrike_Rayne is now known as Ulli[away]
NinoScript has joined #ruby
thams has quit [Quit: thams]
n_blownapart has quit [Remote host closed the connection]
agrinb has joined #ruby
bmurt has quit []
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
sputnik13 has joined #ruby
arya_ has quit [Ping timeout: 250 seconds]
Snarkz has quit [Quit: Textual IRC Client: www.textualapp.com]
banister_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
toastynerd has joined #ruby
aspires has joined #ruby
Takle has quit [Remote host closed the connection]
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
benzrf is now known as benzrf|offline
OffTheRails has joined #ruby
chrishough has joined #ruby
Takle has joined #ruby
thams has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
LangeOortjes has quit [Quit: WeeChat 0.4.3]
matchaw has quit [Ping timeout: 260 seconds]
matchaw has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
tylerkern has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
tylerkern has joined #ruby
pzula has joined #ruby
Pumukel has quit [Quit: ChatZilla 0.9.90.1 [Firefox 31.0/20140716183446]]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
ldnunes has quit [Quit: Leaving]
pu22l3r_ has joined #ruby
ra4king has quit [Remote host closed the connection]
ra4king has joined #ruby
banister has joined #ruby
relix_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ra4king has quit [Remote host closed the connection]
ra4king has joined #ruby
fgo has joined #ruby
kireevco has quit [Quit: Leaving.]
yacks has joined #ruby
jamto11 has joined #ruby
JohnFord has joined #ruby
<ramfjord> you guys got a good one liner to convert an array of [:a, 1, :a, 2, :b 3] to [[:a, 1], [:a, 2], [:b, 3]]
<ramfjord> ?
failshel_ has joined #ruby
pzula has quit [Ping timeout: 255 seconds]
pu22l3r has quit [Ping timeout: 250 seconds]
spaceninja has joined #ruby
<spaceninja> hi, im trying to install rubyinline, I get an error saying the file doesn't exist. what can I do? http://dpaste.com/1ZDXSEC
fgo has quit [Ping timeout: 240 seconds]
<wallerdev> ramfjord: each_slice(2).to_a
jamto11 has quit [Ping timeout: 256 seconds]
<ramfjord> ahh, perfect
failshell has quit [Ping timeout: 264 seconds]
<ramfjord> was thinking group_by if I could get the index in there...
<ramfjord> wallerdev: thanks!
mary5030 has quit [Remote host closed the connection]
<wallerdev> np
failshel_ has quit [Ping timeout: 260 seconds]
arya__ has quit [Ping timeout: 250 seconds]
Ilyas has quit [Ping timeout: 240 seconds]
fantazo has quit [Ping timeout: 240 seconds]
asmodlol has quit [Quit: Leaving]
timonv_ has quit [Remote host closed the connection]
Neomex has quit [Quit: Leaving]
timonv_ has joined #ruby
matchaw has quit [Ping timeout: 260 seconds]
matchaw has joined #ruby
britneywright has joined #ruby
obscured has quit [Quit: leaving]
ua has joined #ruby
OffTheRails has quit [Ping timeout: 255 seconds]
b00stfr3ak has quit [Ping timeout: 240 seconds]
Deele has quit [Ping timeout: 245 seconds]
sevvie has quit [Ping timeout: 260 seconds]
timonv_ has quit [Ping timeout: 250 seconds]
inukshuk has quit [Remote host closed the connection]
b00stfr3ak has joined #ruby
Lightsword_ has joined #ruby
Lightsword has quit [Ping timeout: 250 seconds]
Lightsword_ is now known as Lightsword
thams has quit [Quit: thams]
mercwithamouth has joined #ruby
krainboltgreene has left #ruby ["Textual IRC Client: www.textualapp.com"]
Panicky has left #ruby ["Killed buffer"]
dangerousdave has quit [Ping timeout: 240 seconds]
sailias has quit [Quit: Leaving.]
Wolland has joined #ruby
icarus has quit [Quit: Lost terminal]
kaspertidemann has quit []
spaceninja has quit [Quit: Leaving]
nemesit|znc has quit [Ping timeout: 264 seconds]
nix12 has joined #ruby
fgo has joined #ruby
nemesit|znc has joined #ruby
jerius has quit [Ping timeout: 260 seconds]
nix12 has quit [Client Quit]
havenwood has joined #ruby
matrixdevuk has quit [Ping timeout: 260 seconds]
matrixdevuk has joined #ruby
fgo has quit [Ping timeout: 255 seconds]
b00stfr3ak has quit [Ping timeout: 250 seconds]
Vpex has quit [Quit: Vpex]
thams has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
b00stfr3ak has joined #ruby
MatthewsFace has joined #ruby
Panicky has joined #ruby
memph1s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
joshbamboo1 has quit []
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikesplain has quit [Ping timeout: 255 seconds]
renderfu_ has joined #ruby
moritzs has joined #ruby
rdark has quit [Quit: leaving]
Lightsword has quit [Ping timeout: 245 seconds]
b00stfr3ak has quit [Ping timeout: 272 seconds]
Lightsword has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
b00stfr3ak has joined #ruby
rp__ has quit [Ping timeout: 272 seconds]
claymore has quit [Quit: Leaving]
renderful has quit [Ping timeout: 245 seconds]
rp__ has joined #ruby
tylerkern has joined #ruby
dvb_ua has quit [Ping timeout: 256 seconds]
alexju_ has joined #ruby
ndrei has joined #ruby
alexju has quit [Ping timeout: 256 seconds]
amargherio has quit [Remote host closed the connection]
thams has quit [Quit: thams]
n_blownapart has joined #ruby
roolo has quit [Quit: Leaving...]
wacko has joined #ruby
renderfu_ has quit [Remote host closed the connection]
thams has joined #ruby
OffTheRails has joined #ruby
gr33n7007h has quit [Changing host]
gr33n7007h has joined #ruby
renderful has joined #ruby
sixxy has joined #ruby
aspires has quit []
Azzurrio has quit [Quit: Textual IRC Client: www.textualapp.com]
s2013 has joined #ruby
aspires has joined #ruby
Olipro has quit [Ping timeout: 256 seconds]
x1337807x has joined #ruby
Sgeo has joined #ruby
x1337807x has quit [Client Quit]
renderful has quit [Ping timeout: 250 seconds]
moritzs has quit [Quit: Verlassend]
Lightsword has quit [Ping timeout: 240 seconds]
djbkd has quit [Remote host closed the connection]
benzrf|offline is now known as benzrf
thams has quit [Quit: thams]
aspires has quit []
beef-wellington has quit [Ping timeout: 264 seconds]
Olipro has joined #ruby
jamto11 has joined #ruby
aspires has joined #ruby
jlovick has quit [Ping timeout: 240 seconds]
OffTheRails has quit [Ping timeout: 255 seconds]
SCHAAP137 has quit [Remote host closed the connection]
x1337807x has joined #ruby
djbkd has joined #ruby
x1337807x has quit [Client Quit]
Guest30027 has quit [Read error: Connection reset by peer]
x1337807x has joined #ruby
x1337807x has quit [Client Quit]
jamto11 has quit [Ping timeout: 245 seconds]
kevind has quit [Remote host closed the connection]
EvanR has joined #ruby
b00stfr3ak has quit [Ping timeout: 240 seconds]
x1337807x has joined #ruby
x1337807x has quit [Client Quit]
segfalt has quit [Quit: Connection closed for inactivity]
EvanR is now known as Guest29840
x1337807x has joined #ruby
SCHAAP137 has joined #ruby
x1337807x has quit [Client Quit]
aspires has quit []
b00stfr3ak has joined #ruby
timonv_ has joined #ruby
x1337807x has joined #ruby
thams has joined #ruby
tjr9898 has quit [Remote host closed the connection]
timfoo has quit [Ping timeout: 244 seconds]
aspires has joined #ruby
s2013 has quit [Ping timeout: 250 seconds]
djbkd has quit [Remote host closed the connection]
opus has quit []
djbkd has joined #ruby
n_blownapart has quit [Remote host closed the connection]
kirun has quit [Quit: Client exiting]
alexju_ has quit [Ping timeout: 256 seconds]
jottr has joined #ruby
pzula has joined #ruby
freerobby has quit [Quit: Leaving.]
failshell has joined #ruby
opus has joined #ruby
fabrice31 has joined #ruby
dbasch has joined #ruby
xuitlacoche has quit [Ping timeout: 240 seconds]
apeiros has quit [Remote host closed the connection]
zoo-zed has quit [Read error: Connection reset by peer]
havenwood has quit [Remote host closed the connection]
apeiros has joined #ruby
Zenigor has quit [Remote host closed the connection]
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
jobewan has quit [Quit: Leaving]
geggam has quit [Ping timeout: 264 seconds]
mikesplain has joined #ruby
failshell has quit [Ping timeout: 264 seconds]
fabrice31 has quit [Ping timeout: 264 seconds]
reset has joined #ruby
elaptics is now known as elaptics`away
kaleido has joined #ruby
kaleido has joined #ruby
timonv_ has quit [Ping timeout: 250 seconds]
Squarepy has quit [Quit: Leaving]
apeiros has quit [Ping timeout: 264 seconds]
mikesplain has quit [Client Quit]
pandaant has quit [Remote host closed the connection]
weems|nix has joined #ruby
coldkey21 has joined #ruby
ra4king has quit [Remote host closed the connection]
nobodyzzz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aspires has quit []
starkhalo has joined #ruby
aspires has joined #ruby
s2013 has joined #ruby
OffTheRails has joined #ruby
ra4king has joined #ruby
dbasch has quit [Quit: dbasch]
MCDev has joined #ruby
kireevco has joined #ruby
aspires has quit [Client Quit]
mikesplain has joined #ruby
dbasch has joined #ruby
<shevy> guys
<shevy> let's get naked
<shevy> and dance
<eam> already am
<shevy> \o/
<shevy> that's the true way to code in ruby
fgo has joined #ruby
mikesplain has quit [Client Quit]
s2013 has quit [Ping timeout: 255 seconds]
ra4king has quit [Quit: Leaving]
frankle has quit [Quit: Connection closed for inactivity]
Takle has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 256 seconds]
alexju has joined #ruby
timfoo has joined #ruby
lxsameer has quit [Quit: Leaving]
b00stfr3ak has quit [Ping timeout: 272 seconds]
treehug88 has quit []
<gr33n7007h> shevy, u got problems
<shevy> what problems
<gr33n7007h> many
jottr has quit [Quit: WeeChat 0.4.3]
<ua> shevy, why ruby?
<shevy> ua because ruby is elegance
<shevy> and expression
<shevy> and so is dance
soulcake has quit [Read error: Connection reset by peer]
soulcake has joined #ruby
Mongey has quit [Ping timeout: 255 seconds]
<ua> syntax means nothing, what will you i=use it for :P
<shevy> syntax is a very important component
<shevy> you may look at it often
larissa has joined #ruby
momomomomo has quit [Quit: momomomomo]
starkhalo has quit [Read error: Connection reset by peer]
lw has quit [Quit: s]
starkhallo has joined #ruby
aspires has joined #ruby
jottr has joined #ruby
itspots__ has quit [Quit: Lingo - http://www.lingoirc.com]
b00stfr3ak has joined #ruby
havenwood has joined #ruby
aspires has quit [Client Quit]
dbasch has quit [Quit: dbasch]
agrinb has quit [Remote host closed the connection]
agrinb has joined #ruby
thams has quit [Quit: thams]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aspires has joined #ruby
arya_ has joined #ruby
baweaver has joined #ruby
aspires has quit [Client Quit]
Martxel has quit [Remote host closed the connection]
agrinb has quit [Ping timeout: 250 seconds]
fmendez has quit [Remote host closed the connection]
aspires has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
j_mcnally has quit [Ping timeout: 255 seconds]
aspires has quit [Client Quit]
Ulli[away] is now known as Ulrike
Ulrike is now known as Ulrike_Rayne
agrinb has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
rayners has quit [Remote host closed the connection]
baweaver has quit [Ping timeout: 250 seconds]
thams has joined #ruby
ephemerian has quit [Quit: Leaving.]
pzula has quit [Ping timeout: 250 seconds]
lele has quit [Ping timeout: 256 seconds]
freerobby has joined #ruby
tjr9898 has joined #ruby
opus has quit []
aspires has joined #ruby
agrinb has quit [Remote host closed the connection]
ffranz has quit [Quit: Leaving]
Zenigor has joined #ruby
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agrinb has joined #ruby
thams has quit [Client Quit]
bmurt has joined #ruby
Guest58262 has joined #ruby
tommm has quit [Quit: Leaving]
jamto11 has joined #ruby
opus has joined #ruby
thams has joined #ruby
Guest58262 has quit [Client Quit]
bmurt has quit [Client Quit]
bmurt has joined #ruby
agrinb has quit [Ping timeout: 255 seconds]
Ulrike_Rayne is now known as UlrikeRayne
rylev has quit []
NinoScript has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Lightsword has joined #ruby
jamto11 has quit [Ping timeout: 245 seconds]
Beoran has quit [Ping timeout: 245 seconds]
kireevco has quit [Quit: Leaving.]
bmurt has quit [Ping timeout: 250 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
bluntman has quit [Ping timeout: 245 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
djbkd has joined #ruby
thams has quit [Remote host closed the connection]
PixelCrumbs has quit [Ping timeout: 260 seconds]
mary5030 has joined #ruby
thams has joined #ruby
waltz_ has quit [Ping timeout: 250 seconds]
MCDev has quit [Ping timeout: 250 seconds]
mikesplain has joined #ruby
cnj has quit [Ping timeout: 244 seconds]
b00stfr3ak has quit [Ping timeout: 240 seconds]
SCHAAP137 has quit [Remote host closed the connection]
djbkd has quit [Ping timeout: 264 seconds]
b00stfr3ak has joined #ruby
freerobby has quit [Quit: Leaving.]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
waltz has joined #ruby
MatthewsFace has quit [Ping timeout: 256 seconds]
Panicky has quit [Remote host closed the connection]
cnj has joined #ruby
Beoran has joined #ruby
yetanoth1rdave has joined #ruby
yetanotherdave has quit [Write error: Connection reset by peer]
spastorino has quit [Quit: Connection closed for inactivity]
larissa has quit [Ping timeout: 240 seconds]
pzula has joined #ruby
thams has quit [Quit: thams]
<shevy> is there a simple way to ensure
apeiros has joined #ruby
<shevy> display of 99.92
<shevy> as 99.920 ?
<wallerdev> "%.3f" % 99.92
arya_ has quit [Ping timeout: 250 seconds]
apeiros has quit [Ping timeout: 255 seconds]
fgo has joined #ruby
MCDev has joined #ruby
kireevco has joined #ruby
thams has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
pietr0 has quit [Quit: pietr0]
marr has quit [Ping timeout: 245 seconds]
mikepack has quit [Remote host closed the connection]
dvb_ua has joined #ruby
PixelCrumbs has joined #ruby
mark06 has joined #ruby
fgo has quit [Ping timeout: 260 seconds]
arya_ has joined #ruby
helpa has joined #ruby
larissa has joined #ruby
mark06 has left #ruby [#ruby]
rubytor has joined #ruby
thumpba has quit [Remote host closed the connection]
bmurt has joined #ruby
enebo has quit [Quit: enebo]
charliesome has joined #ruby
terrellt has quit [Quit: Leaving...]
n_blownapart has joined #ruby
oo____ has quit [Ping timeout: 260 seconds]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
n_blownapart has quit [Remote host closed the connection]