apeiros changed the topic of #ruby to: Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
nateberkopec has joined #ruby
Mars__ has quit [Ping timeout: 240 seconds]
hiroyuki_ has joined #ruby
Mars__ has joined #ruby
TheShaun is now known as TheShaun|AFK
diegoviola has quit [Ping timeout: 252 seconds]
drumsrgr8forn8 has quit [Ping timeout: 272 seconds]
aspiers has quit [Ping timeout: 268 seconds]
geggam has quit [Remote host closed the connection]
threesome has quit [Ping timeout: 245 seconds]
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
rodan- has quit [Remote host closed the connection]
RORgasm has quit [Remote host closed the connection]
rodan- has joined #ruby
hiroyuki has quit [Ping timeout: 268 seconds]
dagnachew has quit [Quit: WeeChat 0.4.2]
ShellFu has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
nfk has quit [Quit: yawn]
pu22l3r has joined #ruby
ssvo_ has joined #ruby
rodan- has quit [Ping timeout: 252 seconds]
hiroyuki_ has quit [Read error: Connection reset by peer]
aspires has quit [Quit: sudo making a sandwich]
ssvo has quit [Ping timeout: 264 seconds]
petey has quit [Ping timeout: 268 seconds]
TheShaun|AFK is now known as TheShaun
rodan- has joined #ruby
tkuchiki has joined #ruby
Mars__ has quit [Read error: Connection reset by peer]
Mars__ has joined #ruby
_maes_ has joined #ruby
volty has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
drag00n has joined #ruby
Zeeo has joined #ruby
labrute974 has joined #ruby
justsee has quit [Ping timeout: 260 seconds]
tharindu has joined #ruby
<volty> hi, how can I generate (a separate) rdoc documentation, in a directory of mine, for all installed files?
mlpinit has joined #ruby
Kricir has quit [Remote host closed the connection]
filipe_ has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
kofno has joined #ruby
sergicles has quit [Quit: sergicles]
filipe_ has quit [Client Quit]
<Zeeo> volty: I don't know
<Zeeo> good evening good sirs, I have a question for you: calling a method "remove" with an argument produces no changes. argument is a hash, method calls *my_array_of_hashes*.delete(hash)
sergicles has joined #ruby
vlad_starkov has joined #ruby
<Zeeo> "puts hash" called inside the method puts my hash clean of any brackets, commas, etc
<Zeeo> method raises no errors
vlad_starkov has quit [Read error: Connection reset by peer]
Guedes0 has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
wildroman2 has quit [Remote host closed the connection]
CaptainJet has joined #ruby
<volty> check with arr.include?(hash)
aspires has joined #ruby
pu22l3r has quit [Remote host closed the connection]
c0rn has quit [Quit: Computer has gone to sleep.]
pu22l3r has joined #ruby
<Zeeo> volty: false, tho it does!
burlyscudd has quit [Quit: Leaving.]
VTLob has quit [Quit: VTLob]
mengu has quit [Quit: Leaving]
nfk has joined #ruby
danshultz has quit [Remote host closed the connection]
freezey has quit [Remote host closed the connection]
sepp2k has quit [Quit: Leaving.]
justsee has joined #ruby
danshultz has joined #ruby
freezey has joined #ruby
tomzx_mac has joined #ruby
bootcoder has quit [Read error: Connection reset by peer]
pu22l3r has quit [Ping timeout: 268 seconds]
bootcoder has joined #ruby
mikesplain has joined #ruby
pu22l3r has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
Eiam has quit [Ping timeout: 260 seconds]
freezey has quit [Ping timeout: 240 seconds]
danshultz has quit [Ping timeout: 246 seconds]
taternuts has joined #ruby
Lewix has joined #ruby
mikesplain has quit [Remote host closed the connection]
mlpinit has quit [Remote host closed the connection]
mikesplain has joined #ruby
mlpinit has joined #ruby
freezey has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
pu22l3r has quit [Remote host closed the connection]
Eiam has joined #ruby
pu22l3r has joined #ruby
Trudko has joined #ruby
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
Trudko has quit [Client Quit]
tkuchiki has quit [Ping timeout: 244 seconds]
mlpinit has quit [Read error: Connection reset by peer]
mlpinit_ has joined #ruby
amacgregor_ has joined #ruby
c0rn has joined #ruby
moted has quit [Ping timeout: 245 seconds]
amacgregor has quit [Ping timeout: 245 seconds]
amacgregor has joined #ruby
mikesplain has quit [Ping timeout: 268 seconds]
psyl0n has quit [Ping timeout: 268 seconds]
thesheff17 has joined #ruby
pu22l3r has quit [Ping timeout: 268 seconds]
phantasm66 has joined #ruby
phantasm66 has joined #ruby
phantasm66 has quit [Changing host]
phantasm66 has quit [Excess Flood]
coldmethod1 has joined #ruby
coldmethod has quit [Remote host closed the connection]
amacgregor_ has quit [Ping timeout: 246 seconds]
elux has quit [Quit: Bye!]
hogeo has joined #ruby
diegoviola has joined #ruby
<shevy> Zeeo can you not show the actual method
<shevy> you describe code but the way you describe it it can not be
<shevy> *my_array_of_hashes*.delete(hash)
<shevy> ^^^ not valid ruby syntax
ehc has quit [Quit: ehc]
benzrf has joined #ruby
<benzrf> hey, is there a set-comparison method on arrays?
predator217 has joined #ruby
randomnick_ has quit [Read error: Connection reset by peer]
<benzrf> >> {a: 1, b: 2}.to_a
<eval-in_> benzrf => [[:a, 1], [:b, 2]] (https://eval.in/66207)
psyl0n has joined #ruby
<sam113101> what do you mean set comparison?
<benzrf> [1, 2, 3, 4].hypothetical? [4, 2, 1] #=> true
hogeo has quit [Quit: Leaving...]
<benzrf> *subset
<benzrf> sorry
predator117 has quit [Ping timeout: 248 seconds]
<benzrf> like how - is overloaded as set subtraction
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<benzrf> thanks
timonv has joined #ruby
mlpinit_ has quit [Remote host closed the connection]
mlpinit has joined #ruby
<havenwood> playing around with Pi and Tau, thought i'd share: https://gist.github.com/havenwood/7423377
blarghmatey has joined #ruby
<benzrf> volty: 404
jamesaanderson has joined #ruby
lmickh has quit [Quit: lmickh]
banjara has quit [Quit: Leaving.]
ben-linuxfan has joined #ruby
hogeo has joined #ruby
ssvo has joined #ruby
<benzrf> thx
ben-linuxfan has left #ruby [#ruby]
agent_white has quit [Quit: brb]
banjara has joined #ruby
banjara has quit [Client Quit]
Monie has joined #ruby
ssvo_ has quit [Ping timeout: 246 seconds]
<benzrf> volty: does Array not have subset checking?
banjara has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
timonv has quit [Ping timeout: 260 seconds]
robustus has quit [Ping timeout: 264 seconds]
mlpinit has quit [Ping timeout: 272 seconds]
robustus has joined #ruby
<Zeeo> shevy:
<Zeeo> def remove hash
<Zeeo> end
<Zeeo> array.delete(hash)
huttan has joined #ruby
<shevy> is this the first time you use IRC
<shevy> Zeeo you can paste code (full code!) at http://pastie.org/ or http://pastie.org/
<benzrf> i recommend various sites that allow you to paste from your shell
Kricir has joined #ruby
<CaptainJet> You get 1 choice
<benzrf> i enjoy bpaste myself
scarolan has joined #ruby
<benzrf> it has a vim plugin
<benzrf> ^_^
<CaptainJet> gist has a command line utility
<havenwood> Or like the channel suggests: http://gist.github.com
<shevy> Zeeo I can also assure you that #delete on class Array works fine
<CaptainJet> gem install gist; gist test.rb
<shevy> >> array = %w(abc def ghi); array.delete 'abc'; array
<eval-in_> shevy => ["def", "ghi"] (https://eval.in/66208)
<shevy> ^^^ see there Zeeo
<havenwood> Or the `jist` gem instead of `gist`.
<shevy> Zeeo the logical conclusion is that, whatever you apss in as argument to remove() is not a proper key in your array
<shevy> *pass
basmoura has quit [Quit: Computer has gone to sleep.]
keen__ has joined #ruby
<Zeeo> shevy: yeah I know, in fact I find it disturbing that the same hash variable works on "puts" and not on "delete" in the same method
<shevy> but I just told you that this is not true
<shevy> I showed you code as well
Jetchisel has joined #ruby
keen_ has quit [Ping timeout: 252 seconds]
lyanchih has joined #ruby
bluehavana has joined #ruby
jetblack has quit [Quit: leaving]
tharindu has quit [Quit: Leaving...]
mixel has quit [Quit: mixel]
<Zeeo> shevy: in fact the error must be somewhere else
huttan has quit [Ping timeout: 246 seconds]
tkuchiki has joined #ruby
scarolan has quit [Ping timeout: 260 seconds]
zeade has quit [Quit: Leaving.]
pel_daniel has left #ruby [#ruby]
<shevy> :D
nateberkopec has quit [Quit: Leaving...]
Shidash has quit [Ping timeout: 240 seconds]
<benzrf> ok were now talking about haskell stop being offtopic this isnt #ruby
<coldmethod1> lol
coldmethod1 has quit [Remote host closed the connection]
nwertman has quit [Ping timeout: 246 seconds]
sevenseacat has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
coldmethod has joined #ruby
AleksEst has joined #ruby
benzrf has left #ruby [#ruby]
AleksEst_ has quit [Ping timeout: 240 seconds]
TheShaun is now known as TheShaun|AFK
coldmethod1 has joined #ruby
xk_id has quit [Quit:
tomzx_mac has quit [Ping timeout: 252 seconds]
ssvo has quit [Ping timeout: 272 seconds]
tvw has quit []
tvw has joined #ruby
vt102 has quit [Ping timeout: 272 seconds]
pu22l3r has joined #ruby
coldmethod has quit [Ping timeout: 244 seconds]
tomzx_mac has joined #ruby
bronson has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
jamesaanderson has joined #ruby
jeffdb has quit [Quit: jeffdb]
aley has quit [Quit: aley]
moted has joined #ruby
rodan- has quit []
drag00n has quit [Ping timeout: 252 seconds]
aspires has quit [Quit: sudo making a sandwich]
Clooth has quit [Quit: Linkinus - http://linkinus.com]
tsykoduk is now known as zz_tsykoduk
vlad_starkov has joined #ruby
lukec has joined #ruby
freezey has quit [Remote host closed the connection]
hamakn_ has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 244 seconds]
hamakn has joined #ruby
freezey has joined #ruby
rodan- has joined #ruby
RastaqWhere has joined #ruby
zz_michael_mbp is now known as michael_mbp
barratt has quit [Quit: Leaving...]
mlpinit has joined #ruby
ravster has left #ruby [#ruby]
alvaro_o has quit [Quit: Ex-Chat]
taternuts has quit []
freezey has quit [Ping timeout: 252 seconds]
hamakn has quit [Ping timeout: 252 seconds]
<shevy> but haskell is only for the elite
<shevy> ruby is for the masses!
<shevy> we are like the roman empire
<shevy> haskell are the british on an island
<shevy> damn tea drinkers!
tharindu has joined #ruby
Mars__ has quit [Read error: Connection reset by peer]
falood has joined #ruby
Mars__ has joined #ruby
Kricir has quit [Remote host closed the connection]
RastaqWhere has quit [Ping timeout: 260 seconds]
zz_jrhorn424 is now known as jrhorn424
zz_karupanerura is now known as karupanerura
xk_id has joined #ruby
<shevy> wow
<shevy> Hanmac will be happy to see that wxwidgets 3.0 was released
wildroman2 has joined #ruby
nwertman has joined #ruby
tabolario has joined #ruby
iliketurtles has joined #ruby
hamakn has joined #ruby
louism2wash has quit [Quit: This computer has gone to sleep]
mlpinit has quit [Remote host closed the connection]
freezey has joined #ruby
advorak has joined #ruby
wildroman2 has quit [Ping timeout: 244 seconds]
starchild_ has quit [Ping timeout: 244 seconds]
mlpinit has joined #ruby
tharindu has quit [Ping timeout: 246 seconds]
zz_tsykoduk is now known as tsykoduk
jamblack has joined #ruby
danshultz has joined #ruby
CreativeEmbassy has joined #ruby
volty has quit [Quit: Konversation terminated!]
mlpinit has quit [Ping timeout: 268 seconds]
mlpinit has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
danshultz has quit [Ping timeout: 252 seconds]
atrocitas has quit [Remote host closed the connection]
karupanerura is now known as zz_karupanerura
tharindu has joined #ruby
nwertman has quit [Ping timeout: 252 seconds]
c0rn has quit [Ping timeout: 260 seconds]
Tamal_Away has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tsykoduk is now known as zz_tsykoduk
err_ok has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zz_karupanerura is now known as karupanerura
mmcdaris has quit [Quit: mmcdaris]
mlpinit has quit [Remote host closed the connection]
ner0x has joined #ruby
mmcdaris has joined #ruby
mlpinit has joined #ruby
jamesaanderson has joined #ruby
jamesaanderson has quit [Client Quit]
phinfonet has quit [Quit: exitiing]
rodan- has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
louism2wash has joined #ruby
rodan-_ has joined #ruby
mikepack_ has quit [Remote host closed the connection]
mmcdaris has quit [Ping timeout: 240 seconds]
mikepack has joined #ruby
mlpinit has quit [Ping timeout: 260 seconds]
<louism2wash> Is a process roughly the same as a thread except that a processes don't share memory with other processes while threads do?
Voodoofish4301 has quit [Quit: Leaving.]
ghostjangles has joined #ruby
<shevy> hmm seems to be a good definition I think
<shevy> though
<shevy> you mean a thread as far as ruby is concerned? or as far as the host is concerned
freezey has quit [Remote host closed the connection]
<louism2wash> ruby
<louism2wash> shevy: would a unix os be an example of what you mean by 'host'?
<shevy> yeah
wallerdev has quit [Quit: wallerdev]
<shevy> louism2wash in regards to threads on ruby, I believe they are all local and variables are not shared by default or available outside the thread
<shevy> >> a = Thread.new { raise("die now") }; a.status
<eval-in_> shevy => (https://eval.in/66211)
<shevy> hehe
<shevy> >> Thread.current.status
<eval-in_> shevy => "run" (https://eval.in/66212)
<shevy> >> Thread.list
<eval-in_> shevy => [#<Thread:0x405b9e98 run>] (https://eval.in/66213)
rodan-_ has quit [Ping timeout: 260 seconds]
Kricir has joined #ruby
<shevy> louism2wash, I think the shortcomings of ruby threads have led to the creation of Mutex: http://www.ruby-doc.org/core-2.0.0/Mutex.html
<shevy> it was not available in ruby 1.8.x
<shevy> "Mutex implements a simple semaphore that can be used to coordinate access to shared data from multiple concurrent threads."
<shevy> so I suppose that normal ruby threads have more limitations than Mutex, in regards to sharing data between different threads
mikepack has quit [Ping timeout: 272 seconds]
Tamal has joined #ruby
Tamal is now known as Tamal_Away
rodan-_ has joined #ruby
rndstr has quit [Ping timeout: 244 seconds]
tomasso has quit [Remote host closed the connection]
xerxas has quit [Ping timeout: 246 seconds]
tharindu has quit [Quit: Leaving...]
ziyadb has quit [Read error: Connection reset by peer]
pipecloud has quit [Read error: Connection reset by peer]
im0b has quit [Read error: Connection reset by peer]
bline79_ has joined #ruby
<bnagy> processes and threads can both share memory
<bnagy> depending on the OS, they all make more or less use of shared memory
zz_scottstamp is now known as scottstamp
benzrf has joined #ruby
<benzrf> >> [4, 5, 1].sort
<eval-in_> benzrf => [1, 4, 5] (https://eval.in/66217)
benzrf has left #ruby [#ruby]
Guest2314 has joined #ruby
<bnagy> to be honest I think it's going to be pretty hard to pin down a good working definition of threads vs processes that is cross-platform and not easily nitpickable
<Guest2314> if i was making a new ruby web app, should i use mysql or postgresql (clueless here)
Mars__ has quit [Remote host closed the connection]
<bnagy> completely depends
<Guest2314> :/
<bnagy> first of all you should probably decide if you should be using SQL at all
Mars__ has joined #ruby
<Guest2314> the data will be relational for this app and i am familiar with basic joins and normalization
<rjhunter> Guest2314: as much as i like postgres, mysql has a *lot* of tutorials and stuff around so it's easier to find support.
benzrf has joined #ruby
<benzrf> hi
<bnagy> ok then if you know SQL then pick whichever DB you like :) The support is more or less equivalent
<shevy> Guest2314 cool guys use postgre
<benzrf> is there an existing method to see if an array starts with another array?
<rjhunter> it's true, cool guys do use pg
<shevy> benzrf cool idea
maycon_ has joined #ruby
<shevy> benzrf dont think there is or perhaps ruby core team forgot it
<shevy> really think noone had the idea before... hmm
bline79_ has quit [Read error: Connection reset by peer]
<shevy> NoMethodError: undefined method `start_with?' for #<Array:0xb51f2ec>
<benzrf> yup
<shevy> benzrf, go file an issue
bline79_ has joined #ruby
ewnd9 has joined #ruby
<benzrf> too lazy
<benzrf> :-D
<shevy> I know
<shevy> that is why you must click on that link now!
<benzrf> ah
<shevy> then just copy/paste the IRC log
<benzrf> *nah
<shevy> this is what I do
<benzrf> ok
<shevy> come on! do it!!!
nateberkopec has joined #ruby
<benzrf> fiiine
<shevy> you can write that shevy told you to do it
<shevy> but #ruby supports it
<Guest2314> cool, i'll look at postgres, thanks
<benzrf> how do i add one
louism2wash has quit [Quit: This computer has gone to sleep]
Guest2314 has quit [Quit: leaving]
<shevy> ah damn
<shevy> you need an account there :(
<benzrf> fuck that
<shevy> well alright, you are relieved... but do make an account one day ok
<benzrf> what am i made of time
<shevy> yeah
<shevy> though you could make an account today and file another day... ;)
<shevy> Guys, I have a cool question for you:
<shevy> "Train emoji lambda operator"
maycon has quit [Ping timeout: 264 seconds]
<shevy> What does this mean ^^^
Mars__ has quit [Ping timeout: 252 seconds]
marr has quit [Read error: Connection reset by peer]
<shevy> lol
<shevy> "Matz mentioned during the 'Questions for Matz' section at RubyConf 2013 that he would like to the train emoji as an alternative to the stabby lambda operator."
<shevy> wtf is an emoji
<shevy> is that like a tamgochi on dope?
<shevy> *tamagochi
<benzrf> clearly it is requesting the ability to make lamabdas using the train emoji as an operator
<benzrf> can you even read
jamesaanderson has joined #ruby
<benzrf> *lambdas
<Zeeo> guys
Gooder has quit [Remote host closed the connection]
<shevy> ah damn
Gooder` has joined #ruby
zz_tsykoduk is now known as tsykoduk
<shevy> benzrf, I think he means non ascii characters :(
<shevy> that means UTF I suppose
<benzrf> emojis are fancy japanese unicode smileyz
<shevy> so ruby would no longer work in certain older encodings...
<benzrf> they are super detailed n shit
jamesaanderson has quit [Client Quit]
<shevy> Zeeo your code is very unstructured
<shevy> Zeeo let's focus on your intent
theRoUS has joined #ruby
<rjhunter> shevy: you can already call your variable ☃ if you like
<shevy> result = address_book.query search
Rudde has quit [Remote host closed the connection]
<shevy> Zeeo, where from does address_book come from in your code?
agjacome has quit [Quit: leaving]
<shevy> rjhunter I can not read what you wrote between "variable" and "if" :(
<bnagy> Zeeo: fwiw, try to avoid calling variables 'hash' - it will bite you one day
gr33n7007h has joined #ruby
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
<bnagy> cause hash is a method on almost everything
jamblack has quit [Quit: jamblack]
<rjhunter> shevy: clearly there's an encoding mismatch somewhere between my keyboard and your screen
<shevy> Zeeo can you write something?
<Zeeo> shevy: it's a snippet from my project, refactored just for you, things aren't actually called that way
<shevy> Zeeo do you use @ivars in your class?
<shevy> yeah but I do not see any @ivar there
<Zeeo> it's not the whole code
<shevy> and I wonder how you store datasets like your hash or array
<Zeeo> there are instance variables
<Zeeo> shevy: with <<
Kricir has quit [Ping timeout: 260 seconds]
<shevy> what does that mean
<benzrf> ok i think i finally figured out the language that I wan
<benzrf> t
mudmaste_ has joined #ruby
michael_mbp is now known as zz_michael_mbp
<shevy> << is a method call
<benzrf> but i will not annoy you by telling you what it is because i know you dont care
<benzrf> =)
<shevy> >> class Foo; def <<(i); puts i; end; end; foo = Foo.new; foo << 'hi'
<eval-in_> shevy => hi ... (https://eval.in/66219)
<shevy> benzrf COBOL
<shevy> benzrf you disappoint :(
* benzrf hisses
<shevy> ack
<Zeeo> but it's not really the issue, I just want to know why the argument doesn't work, but only in "delete()"
<shevy> hissing like a snake
<h0rrorvacui> benzrf: yep keep it to yourself.
<shevy> can only be python
<h0rrorvacui> Its going to be python X
<benzrf> hue
<h0rrorvacui> we all know it
banjara has quit [Quit: Leaving.]
<benzrf> basically i cherrypicked the bits of ruby i like and figured out how I could integrate them into python in a way that i like
<shevy> Zeeo but you answered your question yourself, did you not?
<shevy> puts hashs.include?(hash) # returns false
<h0rrorvacui> python version 666 imo
<shevy> if it returns false, why do you think .delete() would work?
mudmaster has quit [Ping timeout: 268 seconds]
<shevy> benzrf you still use explicit self?
<benzrf> Nahra:
<benzrf> *nah
vlad_starkov has joined #ruby
<h0rrorvacui> python is the serpent in the biblical story of Adam and Eve
<benzrf> sort of
<benzrf> OH YOUR
<benzrf> *YOU
<Zeeo> shevy: indeed, but id does, trust me, and the argument isn't different in any way from the hash stored in the array
jamblack has joined #ruby
<shevy> Zeeo no that can not be right, I showed you that the code works just fine above, your argument MUST be wrong
<shevy> Zeeo if you want to debug, do this: at the top of your code
<shevy> require 'pp'
<benzrf> shevy: id make variable lookup attribute-based like in Io, then method binding can use a custom locals instead of passing in self, also like io
<benzrf> :U
<benzrf> of course that would be slow as FUCK
<shevy> then inside your method: pp @hash; pp hash
nateberkopec has quit [Quit: Leaving...]
<shevy> and show the results of those two
zeade has joined #ruby
<shevy> I am 100% sure that hash is not inside of @hash
<shevy> btw
<shevy> Hash#delete wants a string
Mattx has joined #ruby
Targen has quit [Ping timeout: 252 seconds]
<Mattx> Hi
vlad_starkov has quit [Read error: Connection reset by peer]
<shevy> so perhaps your "hash" argument is totally wrong in the first place... also write pp @hash.class; pp hash.class and say what these four pp return
<Mattx> can you think of any way to convert a string like "1010" into an integer, assuming the string is a binary representation of a number?
pu22l3r has quit [Remote host closed the connection]
<shevy> benzrf speed of computation is not the only important part of speed
<Mattx> (without looping)
<shevy> benzrf companies showed that bootstrapping can be important, like using ruby to get started, lateron switch to a faster language
<rjhunter> Mattx: yup, it's built-in. what have you googled so far?
pu22l3r has joined #ruby
<shevy> Mattx you just want to treat this string as binary?
<Mattx> I found some websites that proposes solutions which require .each, rjhunter
<shevy> >> "1010".to_i
<eval-in_> shevy => 1010 (https://eval.in/66220)
<bnagy> #to_i takes a base arg
<shevy> >> "1010".to_i(6)
<eval-in_> shevy => 222 (https://eval.in/66221)
<shevy> I dunno what 1010 should correspond to ...
<Mattx> no, 1010 in base 2
<shevy> someone tell me
<shevy> >> "1010".to_i(2)
<eval-in_> shevy => 10 (https://eval.in/66222)
<bnagy> YAY BASE 6
<Mattx> >> Integer('0b1010')
<eval-in_> Mattx => 10 (https://eval.in/66223)
<shevy> >> "1010".to_i(6)
zz_michael_mbp is now known as michael_mbp
<eval-in_> shevy => 222 (https://eval.in/66224)
lukec has quit [Quit: lukec]
<shevy> well somewhere there could be the right result :)
<Mattx> that would work
<shevy> cool
<Mattx> is it the woraround you were thinking?
<Mattx> rjhunter
<shevy> so 1010 is 10
<bnagy> no it's a
<shevy> wat
<Mattx> for me it was an apple anyway
<bnagy> base 10 is for newbs
<shevy> benzrf what syntax would you use for this language?
<bnagy> it's 14 in your new sextary notation, shevy
<benzrf> shevy: it's basically python liek is aid
<benzrf> *like i said
<benzrf> but with some significant tweaks
<h0rrorvacui> benzrf: Like no GIL?
<benzrf> also this is amazing:
<benzrf> echo "main(i){for(i=0;;i++)putchar(((i*(i>>8|i>>9)&46&i>>8))^(i&i>>13|i>>6));}" | gcc -x c - && ./a.out | aplay
<benzrf> I know it looks malicious but I swear to god it's not
<rjhunter> Mattx: String#to_i(base) is not a workaround, it's exactly the way to treat a string as a number in a given base
<Mattx> cool
<rjhunter> benzrf: do you really mean 'aplay' at the end?
<Mattx> thanks
<benzrf> rjhunter: yes
<benzrf> i didnt make it
<benzrf> im just pasting it
DropsOfSerenity has joined #ruby
pu22l3r_ has joined #ruby
pu22l3r has quit [Ping timeout: 268 seconds]
whunt has quit [Quit: Computer has gone to sleep.]
<h0rrorvacui> its a god awful sound that breaks your speakers
<h0rrorvacui> :P
<benzrf> no way it's shitty techno
rndstr has joined #ruby
<shevy> bnagy I really have no idea :)
<shevy> benzrf with forced indent?
<benzrf> fuck yes
<shevy> hmmm
<shevy> that reminds me
<benzrf> syntactically significant whitespace is the best syntactical invention since spelled-out boolean operators
<benzrf> ;)
<shevy> anyone of you is an audio guru and can use ruby to create music?
diegoviola has quit [Ping timeout: 246 seconds]
jamesaanderson has joined #ruby
ziyadb has joined #ruby
<rjhunter> shevy: have you come across "live coding" music before?
<shevy> I dont think so
<h0rrorvacui> shevy: you always have midi too
im0b has joined #ruby
psyl0n has quit [Quit: psyl0n]
<shevy> midi and I are not big friends :(
pipecloud has joined #ruby
Bosox20051 has joined #ruby
xerxas has joined #ruby
brianpWins has quit [Quit: brianpWins]
<shevy> there is something cool that I loved, when I was on windows. avisynth
<shevy> basically you could just chain folters together in a text file
<shevy> oops
<h0rrorvacui> shevy: are you wanting to do the whole shebang and code the synthesis
<shevy> *filters
<h0rrorvacui> ?
<shevy> yeah!
<rjhunter> shevy: try http://youtu.be/dUlKNjpxbUI?t=3m
<h0rrorvacui> I'm not sure I've seen anything like that in ruby
<h0rrorvacui> I had a list saved in my favorites
<shevy> wow
Mars__ has joined #ruby
<shevy> is that a textmate feature?
taternuts has joined #ruby
CaptainJet has quit []
<h0rrorvacui> I was going to show you that but you said no to midi
<h0rrorvacui> :P
<shevy> :(
CaptainJet has joined #ruby
<shevy> yeah I hate midi
<shevy> but this is cool
<benzrf> whats wrong with midi?
<benzrf> shevy: if anything besides emacs can do it then vim can do it
jamesaanderson has quit [Client Quit]
<benzrf> B)
<h0rrorvacui> what does vim have to do with midi?
<benzrf> he asked if something was a textmate feature
<benzrf> :b
<h0rrorvacui> ohh
<shevy> benzrf it does not feel as if one can do truly epic music with midi
<benzrf> shevy: excuse me??
<h0rrorvacui> shevy...
earthquake has joined #ruby
<benzrf> isn't midi like the only format used by music editing programs?!
<benzrf> maybe you need some sound fonts
<h0rrorvacui> I hate to tell you but all the gear and things you see professionals using... to trigger their music is likely sending midi to the DAW
<h0rrorvacui> or synth
<benzrf> its all midi m8
<h0rrorvacui> I have a MIDI keyboard I use with my DAW
krz has joined #ruby
<shevy> hmm
<shevy> where from does that guy use this here: MIDI::Client.new ?
timonv has joined #ruby
<shevy> when I do what he does
<shevy> require 'livecode'; MIDI::Client.new
bronson has quit [Quit: bronson]
<shevy> like in that text one can see on youtube, I get: NameError: uninitialized constant MIDI
<shevy> ah
kenneth has quit [Quit: kenneth]
<h0rrorvacui> but you should check out supercollider
yfeldblum has joined #ruby
vpretzel has quit [Quit: Adios!]
<h0rrorvacui> its not ruby though
<shevy> waaah
<shevy> not so much, one babystep at a time
<shevy> first
<shevy> I must look at midi again :P
ffranz has quit [Quit: Leaving]
Mars___ has joined #ruby
Mars__ has quit [Read error: Connection reset by peer]
<h0rrorvacui> shevy if you want live coding like he was doing thats different
fivethreeo has quit [Read error: Connection reset by peer]
tvw has quit [Ping timeout: 260 seconds]
mlpinit has joined #ruby
capicue has quit [Quit: Leaving...]
yfeldblu_ has quit [Ping timeout: 240 seconds]
funburn has quit [Ping timeout: 244 seconds]
timonv has quit [Ping timeout: 246 seconds]
krz has quit [Ping timeout: 260 seconds]
huttan has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
pu22l3r_ has quit [Remote host closed the connection]
sambao21 has joined #ruby
pu22l3r has joined #ruby
zxq9 has quit [Quit: Konversation terminated!]
sambao21 has quit [Client Quit]
nateberkopec has joined #ruby
khushildep has joined #ruby
funburn has joined #ruby
robbyoconnor has joined #ruby
yfeldblum has joined #ruby
fivethreeo has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
huttan has quit [Ping timeout: 240 seconds]
DanKnox is now known as DanKnox_away
mary5030 has joined #ruby
jamblack has quit [Quit: jamblack]
khushildep has quit [Quit: khushildep]
Diranged has joined #ruby
ewnd9 has quit [Ping timeout: 272 seconds]
pu22l3r_ has joined #ruby
sambao21 has joined #ruby
zeade has quit [Quit: Leaving.]
pu22l3r has quit [Ping timeout: 268 seconds]
maletor has joined #ruby
kenneth has joined #ruby
Mars___ has quit [Remote host closed the connection]
jenskarlsen has joined #ruby
Mars__ has joined #ruby
<IceDragon> good night
jeffdb has joined #ruby
IceDragon has quit [Quit: Space~~~]
rjhunter has quit [Remote host closed the connection]
rohit has joined #ruby
rjhunter has joined #ruby
sambao21 has quit [Ping timeout: 272 seconds]
ewnd9 has joined #ruby
aspiers has joined #ruby
Guedes0 has quit [Ping timeout: 272 seconds]
TheShaun|AFK is now known as TheShaun
jeffdb has quit [Client Quit]
benzrf has left #ruby [#ruby]
Mars__ has quit [Ping timeout: 252 seconds]
Lewix has quit [Remote host closed the connection]
varfoo has joined #ruby
endash has quit [Quit: endash]
maletor has quit [Quit: Computer has gone to sleep.]
rjhunter has quit [Ping timeout: 272 seconds]
Aryasam has joined #ruby
polaco is now known as polaco_zZz
yfeldblum has quit [Remote host closed the connection]
CreativeEmbassy has joined #ruby
jlast has quit [Remote host closed the connection]
yfeldblu_ has joined #ruby
krz has joined #ruby
dhruvasagar has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
jmimi has quit [Quit: Leaving.]
Kricir has joined #ruby
michael_mbp is now known as zz_michael_mbp
nateberkopec has quit [Quit: Leaving...]
mlpinit has quit [Quit: Leaving...]
forced_request has quit [Read error: Connection reset by peer]
Tamal_Away is now known as Tamal
earthquake has quit [Quit: earthquake]
vlad_starkov has joined #ruby
Tamal has quit [Quit: Textual IRC Client: www.textualapp.com]
vlad_starkov has quit [Read error: Connection reset by peer]
dkamioka has joined #ruby
havenwood has quit []
tharindu has joined #ruby
TheShaun has quit [Quit: ZNC - http://znc.in]
TheShaun has joined #ruby
SirFunk has quit [Remote host closed the connection]
jrhorn424 is now known as zz_jrhorn424
scottstamp is now known as zz_scottstamp
aspires has joined #ruby
zz_michael_mbp is now known as michael_mbp
freezey has joined #ruby
asteros has quit [Quit: asteros]
radic has quit [Read error: Operation timed out]
krz has quit [Ping timeout: 260 seconds]
ananthakumaran has joined #ruby
aspires has quit [Quit: sudo making a sandwich]
aspires has joined #ruby
robonerd is now known as testr0n
shoMo has joined #ruby
nateberkopec has joined #ruby
misutowolf has joined #ruby
SteveBenner9 has quit [Ping timeout: 265 seconds]
bluOxigen has joined #ruby
duggiefresh has joined #ruby
Aryasam has quit [Ping timeout: 252 seconds]
hiyosi has quit [Ping timeout: 252 seconds]
kcombs has quit [Ping timeout: 252 seconds]
moeSeth has quit [Quit: Connection closed for inactivity]
aspires has quit [Quit: sudo making a sandwich]
aspiers has quit [Ping timeout: 246 seconds]
Kricir has quit [Ping timeout: 260 seconds]
rjhunter has joined #ruby
rohit has quit [Ping timeout: 246 seconds]
radic has joined #ruby
brisbin has quit [Read error: Connection reset by peer]
aspires has joined #ruby
brisbin has joined #ruby
Kiba has joined #ruby
<Kiba> hi
tsykoduk is now known as zz_tsykoduk
duggiefresh has quit []
carif has quit [Ping timeout: 260 seconds]
dhruvasagar has quit [Ping timeout: 252 seconds]
nisstyre has joined #ruby
rodan-_ has quit [Remote host closed the connection]
Alina-malina has quit [Read error: Connection reset by peer]
gilesw_ has quit [Quit: Connection closed for inactivity]
jamesaanderson has joined #ruby
rodan-_ has joined #ruby
Alina-malina has joined #ruby
Aryasam has joined #ruby
joshu has quit [Quit: Bye.]
<shevy> oh now I remember you kiba
<shevy> you wrote some egg thingy in ruby once right?
aryaching has joined #ruby
<Kiba> shevy: yup
<Kiba> shevy: now I am working on a statistics project on a survival analysis of ruby packages
justsee has left #ruby [#ruby]
jamesaanderson has quit [Client Quit]
rdalin has joined #ruby
jhulten has quit [Remote host closed the connection]
jhulten has joined #ruby
theRoUS has quit [Ping timeout: 246 seconds]
rodan-_ has quit [Ping timeout: 268 seconds]
yfeldblu_ has joined #ruby
petey has joined #ruby
ehc has joined #ruby
Aryasam has quit [Quit: Bye]
Targen has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
rohit has joined #ruby
krz has joined #ruby
earthquake has joined #ruby
<krz> nvm
<krz> nvm
jhulten has quit [Ping timeout: 252 seconds]
yfeldblu_ has joined #ruby
tharindu has quit [Quit: Leaving...]
bugsinlights has quit [Remote host closed the connection]
rndstr has quit [Quit: Connection closed for inactivity]
ewnd9_ has joined #ruby
Zeeo has quit [Quit: -]
ewnd9 has quit [Ping timeout: 260 seconds]
ckinni has joined #ruby
chrisbolton has joined #ruby
chinkung has joined #ruby
lukec has joined #ruby
sambao21 has joined #ruby
blarghmatey has quit [Ping timeout: 272 seconds]
DropsOfSerenity has quit [Quit: Peace.]
asteros has joined #ruby
nisstyre has quit [Ping timeout: 260 seconds]
asteros has quit [Client Quit]
Mars__ has joined #ruby
Guest68191 has joined #ruby
kung has quit [Ping timeout: 272 seconds]
hiyosi has joined #ruby
Guest68191 is now known as diegoviola
jamesaanderson has joined #ruby
sambao21 has quit [Ping timeout: 260 seconds]
tharindu has joined #ruby
capicue has joined #ruby
capicue has quit [Client Quit]
pierre1 has joined #ruby
Mars__ has quit [Ping timeout: 240 seconds]
capicue has joined #ruby
joshu has joined #ruby
ewnd9_ has quit [Ping timeout: 260 seconds]
hiyosi has quit [Ping timeout: 268 seconds]
vlad_starkov has joined #ruby
nateberkopec has quit [Quit: Leaving...]
Xiti has quit [Quit: Leaving]
serp` has joined #ruby
Domon_ has quit [Quit: Connection closed for inactivity]
vlad_starkov has quit [Read error: Connection reset by peer]
ckinni is now known as _ckinni
_ckinni is now known as ckinni
nisstyre has joined #ruby
ananthakumaran1 has joined #ruby
ananthakumaran has quit [Ping timeout: 246 seconds]
ananthakumaran1 has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
lukec has quit [Quit: lukec]
timonv has joined #ruby
wallerdev has joined #ruby
diegoviola has quit [Ping timeout: 246 seconds]
michael_mbp is now known as zz_michael_mbp
advorak has quit [Ping timeout: 240 seconds]
rohit has quit [Ping timeout: 244 seconds]
soba has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
huttan has joined #ruby
rohit has joined #ruby
pierre1 has quit [Quit: Leaving]
lukec has joined #ruby
lukec has quit [Client Quit]
capicue has quit [Quit: Leaving...]
petey_ has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
huttan has quit [Ping timeout: 244 seconds]
labrute974 has quit [Quit: Leaving.]
Mars__ has joined #ruby
tkblackbelt has joined #ruby
brennanMKE has quit []
tkblackbelt has quit [Client Quit]
petey has quit [Ping timeout: 252 seconds]
serp` has quit [Quit: serp`]
tkblackbelt has joined #ruby
ananthakumaran has quit [Ping timeout: 260 seconds]
sayan has joined #ruby
brennanMKE has joined #ruby
sayan has quit [Read error: Connection reset by peer]
tkblackbelt has quit [Client Quit]
advorak has joined #ruby
brennanMKE has quit [Client Quit]
sputnik13 has joined #ruby
CaptainJet has quit []
dnyy_ has joined #ruby
freezey has quit [Remote host closed the connection]
Kricir has joined #ruby
typicalbender1 has joined #ruby
dnyy has quit [Read error: Connection reset by peer]
DanKnox_away is now known as DanKnox
fgo has joined #ruby
lukec has joined #ruby
coldmethod1 is now known as coldmethod
sergicles has quit [Quit: sergicles]
rezzack has quit [Ping timeout: 244 seconds]
platypine has quit [Ping timeout: 240 seconds]
nisstyre has quit [Quit: Leaving]
banghouse2 has quit [Remote host closed the connection]
aspires has quit [Quit: Adios]
thesheff17 has quit [Ping timeout: 260 seconds]
rickruby has joined #ruby
aspires has joined #ruby
jamblack has joined #ruby
earthquake has quit [Quit: earthquake]
rickruby has quit [Read error: Connection reset by peer]
rickruby has joined #ruby
gr33n7007h has quit [Quit: Where's John Conner]
sayan has joined #ruby
aspires has quit [Client Quit]
gr33n7007h has joined #ruby
guns has quit [Quit: guns]
aspires has joined #ruby
Lewix has joined #ruby
aspires has quit [Client Quit]
d45h has joined #ruby
bronson has joined #ruby
pu22l3r_ has quit [Remote host closed the connection]
typicalbender1 has quit [Quit: Leaving.]
aagdbl has joined #ruby
pu22l3r has joined #ruby
danshultz has joined #ruby
rodan-_ has joined #ruby
jamblack has quit [Quit: jamblack]
simoz has joined #ruby
Salcoder has joined #ruby
nobitanobi has joined #ruby
pu22l3r has quit [Ping timeout: 268 seconds]
sayan has quit [Ping timeout: 260 seconds]
jhulten has joined #ruby
<nobitanobi> How can I add a ";" like I am doing here: https://gist.github.com/novito/7425790 for all the elements, except for the last?
<nobitanobi> So, I will have value1;value2;value3
<nobitanobi> I am doing some other manipulations, so I can't use join(';')
rodan-_ has quit [Ping timeout: 272 seconds]
<jrobeson> what other manipulations are you doing that would preclude using join?
simoz has quit [Ping timeout: 272 seconds]
<nobitanobi> Here you go jrobeson, all the code: https://gist.github.com/novito/7425790
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
<nobitanobi> Actually, I am iterating over a hash, so yeah..
_maes_ has joined #ruby
<jrobeson> how come you're using , for multiple params vs something like &foo[a]=something&foo[b]=somethingelse ?
bret has quit [Ping timeout: 260 seconds]
<nobitanobi> I'm parsing an API which uses that kind of format
<jrobeson> aha
gr33n7007h has quit [Quit: Where's John Conner]
<nobitanobi> http://api.idescat.cat/pob/v1/sug.txt?p=q/ab;tipus/mun,np
<nobitanobi> I'm creating a wrapper.
gr33n7007h has joined #ruby
<nobitanobi> so I let the user do { 'q' => 'ab', 'tipus => ['mun', 'np']}
gr33n7007h has quit [Client Quit]
<nobitanobi> and then I convert that to p=q/ab;tipus/mun,np -- But I want to know when is the last element of the hash, so I don't add ';'
gr33n7007h has joined #ruby
jamblack has joined #ruby
jhulten has quit [Ping timeout: 240 seconds]
hiyosi has joined #ruby
<jrobeson> that's a weird format .. :)
taternuts has quit []
<jrobeson> let's see..
<nobitanobi> jrobeson, yes. Well, I am guessing I could do .each_with_index
<nobitanobi> and check if index = size -1
<nobitanobi> but..
<bnagy> use join, that's what it's for
<bnagy> just do your 'manipulations' first
mary5030 has quit [Ping timeout: 272 seconds]
<jrobeson> yeah i thin kyou should be restructioning your format there .. do the join at the end
<jrobeson> by the time you get here, return url_params you should still have a hash
<jrobeson> err have an array
<nobitanobi> uh?
achru has joined #ruby
Kricir has quit [Ping timeout: 246 seconds]
<jrobeson> basically you're doing your string concat stuff too early
<nobitanobi> so bnagy you are saying do the manipulations inside of the hash itself?
pranny has joined #ruby
ExCa|iBuR-sto has quit [Quit: Client Excited]
<bnagy> I didn't look at the code, but the normal pattern is hsh.map {...}.join
dnyy_ is now known as dnyy
<nobitanobi> bnagy, ok... I will see
iliketurtles has quit [Quit: zzzzz…..]
<nobitanobi> I have some conditions around, dunno if the map will help there
<bnagy> put em in the map
brianpWins has joined #ruby
<nobitanobi> ok, let's see
hiyosi has quit [Ping timeout: 260 seconds]
dkamioka has quit [Remote host closed the connection]
Shidash has joined #ruby
sayan has joined #ruby
vlad_starkov has joined #ruby
edwardly has quit [Read error: Operation timed out]
dkamioka_ has joined #ruby
aspires has joined #ruby
aspires has quit [Client Quit]
aspires has joined #ruby
ner0x has quit [Quit: Leaving]
vlad_starkov has quit [Read error: Connection reset by peer]
capicue has joined #ruby
rrichardsr3 has joined #ruby
sayan has quit [Ping timeout: 246 seconds]
dkamioka_ has quit [Ping timeout: 251 seconds]
DanKnox is now known as DanKnox_away
DanKnox_away is now known as DanKnox
idletom has joined #ruby
idletom has left #ruby [#ruby]
Salcoder has quit [Quit: leaving]
dhruvasagar has joined #ruby
iamjarvo has joined #ruby
iamjarvo has quit [Remote host closed the connection]
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
DanKnox is now known as DanKnox_away
Shidash has quit [Ping timeout: 240 seconds]
nbrosnahan has joined #ruby
nbrosnahan has quit [Client Quit]
ananthakumaran has joined #ruby
iliketurtles has joined #ruby
tomzx_mac has quit [Ping timeout: 240 seconds]
luckyruby has quit [Remote host closed the connection]
luckyruby has joined #ruby
edwardly has joined #ruby
bret has joined #ruby
rohit has quit [Quit: Leaving]
kobain has quit []
<shevy> nobitanobi how are you proceeding with your first gem?
richard has joined #ruby
<nobitanobi> shevy, pretty happy!
richard is now known as Guest6868
<shevy> is it on rubygems already? I wanna test-install it :D
<nobitanobi> shevy, on github for now
<nobitanobi> :P
pranny has quit [Ping timeout: 240 seconds]
pranny has joined #ruby
<shevy> :(
xcess_denied has joined #ruby
<shevy> but I wanna do "gem install name"!
<shevy> hmm... or is it possible to install a gem from the commandline that is at github?
<shevy> wait
<shevy> gem sources -a http://gems.github.com
<nobitanobi> shevy, ha, I will put it on rubygems when I think is "ready" :P
<shevy> hmmm
<shevy> "http://gems.github.com added to sources"
<shevy> not sure this still works...
dkamioka has joined #ruby
<shevy> ERROR: Could not find a valid gem 'rubyidescat' (>= 0) in any repository
<shevy> oh well
<nobitanobi> shevy, you know what? I will put it to Rubygems
<shevy> wait
<shevy> don't do that yet please
dkamioka has quit [Read error: Connection reset by peer]
<shevy> I am asking on #rubygems how to install a gem from non-rubygem
danshultz has quit [Remote host closed the connection]
dkamioka has joined #ruby
<shevy> though come to think about it
danshultz has joined #ruby
<shevy> github only allows .zip files now I think
<shevy> so there is probably no way that gem will use that
rjhunter has quit [Remote host closed the connection]
<shevy> oh well
<shevy> nobitanobi please add it to rubygems :)
<nobitanobi> working on it :P
<nobitanobi> and thanks for your enthusiasim. It's encouraging
Shidash has joined #ruby
royalty has joined #ruby
pranny has quit [Quit: Leaving.]
aspires has quit [Quit: sudo making a sandwich]
dkamioka has quit [Ping timeout: 240 seconds]
<shevy> well
<shevy> I reason like that
<shevy> if your gem is already unfinished, you can just denote it in the version
<shevy> like 0.0.1 or 0.0.3 and so on
<shevy> so people know that it is unfinished anway
danshultz has quit [Ping timeout: 246 seconds]
<shevy> and you can just put it on rubygems. as the weeks pass by, you will do little improves anyway
<nobitanobi> :)
<shevy> until one day it's ready for "public use", then you could make it version 1.0 perhaps
dhruvasagar has quit [Read error: Connection reset by peer]
Guest6868 has quit [Quit: Linkinus - http://linkinus.com]
<nobitanobi> I was thinking it would be nice to have some kind of mentoring for people who are starting on creating gems.
dhruvasagar has joined #ruby
petey_ has quit []
<shevy> yeah
<shevy> or just get started, make mistakes, learn in the process :)
misutowolf has quit [Quit: Leaving]
<nobitanobi> yes, but sometimes if you do a gem by yourself, you may do some things that you think are correct and... not really
<nobitanobi> :)
testr0n has quit [Read error: Connection reset by peer]
<bnagy> that's the nature of writing code
robonerd has joined #ruby
<shevy> nobitanobi yeah, I am still unsure how to bundle documentation
<nobitanobi> bnagy, agree.
larissa has quit [Quit: Leaving]
<nobitanobi> shevy, can you link me to your github?
timonv has joined #ruby
<nobitanobi> or your rubygems?
<shevy> nobitanobi yeah, I am inactive on github though. rubygems is at https://rubygems.org/profiles/shevy
<nobitanobi> thanks!
<shevy> for a long time I did not even specify dependencies :\
Zesty has joined #ruby
robonerd has quit [Read error: Connection reset by peer]
<nobitanobi> :)
ehc has quit [Quit: ehc]
<shevy> and many years ago, I modified all of ruby core classes to make things more convenient for me, until I realized that, if I am to distribute anything, I'd have to distribute those modifications as well, which kinda sucks
<bnagy> nobitanobi: a good trick is to look at gems by rubyists who write a lot
<shevy> lemme count how many methods I added to class String ...
<nobitanobi> shevy, wow, that's crazy
<bnagy> not huge projects, just people who have like 50 gems
<nobitanobi> bnagy, yes, that's why I asked for shevy's github :P
robonerd has joined #ruby
<nobitanobi> bnagy, or yours would also be great
<nobitanobi> hehe
<bnagy> then you can just use their structure as a template
<shevy> 76 method definitions in class String that I added, and about 40 more aliases to that
<bnagy> I only have one gem
<bnagy> and a lot of stuff in my github is aaancient, needs removing tbh
<bnagy> just can't be bothered archiving it :)
<nobitanobi> :)
<nobitanobi> it's alright
zz_michael_mbp is now known as michael_mbp
iliketurtles has quit [Read error: Connection reset by peer]
sandeepk has joined #ruby
<nobitanobi> anyway guys, you were really helpful and encouraging
<nobitanobi> it's always a pleasure to be in this channel
<shevy> interesting... #rubygems tells me that bundler could be used for installing from github repositories
<shevy> that would be the first useful thing bundler does, as far as I am concerned... ;)
pranny has joined #ruby
<sevenseacat> it can
BraddPitt has quit [Read error: Connection reset by peer]
<sevenseacat> you can also specify which branch of a repo
BraddPitt has joined #ruby
sayan has joined #ruby
<bnagy> doesn't 'normal' gem do that?
<bnagy> assuming you have github as a gem source?
<sevenseacat> i dont know
<bnagy> or did github kill their gem repo?
Bosox20051 has quit [Quit: Leaving]
xcess_denied has quit []
<shevy> bnagy yeah I think it was killed
chrisbolton has quit [Quit: chrisbolton]
<shevy> going to note down that bundler can do this...
Olipro has joined #ruby
iliketurtles has joined #ruby
iliketurtles has quit [Max SendQ exceeded]
lewis has joined #ruby
mjc_ has quit [Quit: No Ping reply in 180 seconds.]
mjc_ has joined #ruby
Martinez has quit [Ping timeout: 260 seconds]
virtualize has joined #ruby
lupine has quit [Ping timeout: 245 seconds]
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
icedp has quit [Ping timeout: 245 seconds]
hoelzro has quit [Ping timeout: 245 seconds]
Naeblis has left #ruby [#ruby]
PhilK has quit [Ping timeout: 245 seconds]
artm has joined #ruby
Kricir has joined #ruby
hoelzro has joined #ruby
capicue has quit [Quit: Leaving...]
hiyosi has joined #ruby
dkamioka has joined #ruby
tabolario has quit [Quit: Textual IRC Client: www.textualapp.com]
cschneid has quit [Ping timeout: 245 seconds]
jayne has quit [Read error: Connection reset by peer]
jayne has joined #ruby
iliketurtles has joined #ruby
lupine has joined #ruby
Martinez has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
apeiros_ has joined #ruby
hiyosi has quit [Ping timeout: 240 seconds]
cschneid has joined #ruby
CreativeEmbassy has joined #ruby
gr33n7007h has quit [Remote host closed the connection]
Mars__ has quit [Remote host closed the connection]
noop has joined #ruby
PhilK has joined #ruby
Mars__ has joined #ruby
dkamioka has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
Martinez has quit [Ping timeout: 261 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
Mars__ has quit [Ping timeout: 240 seconds]
PhilK has quit [Ping timeout: 259 seconds]
Lewix has quit [Remote host closed the connection]
Martinez has joined #ruby
apeiros_ has quit [Remote host closed the connection]
apeiros has joined #ruby
datapolitical has joined #ruby
Gooder` has quit [Remote host closed the connection]
EvanR_ has joined #ruby
<datapolitical> i'm new to ruby development, should I use rbenv or rvm (i'm running OSX 10.9
sayan has quit [Quit: Leaving]
moted has quit [Ping timeout: 268 seconds]
sayan has joined #ruby
apeiros has quit [Ping timeout: 246 seconds]
<jrobeson> datapolitical, i prefer rbenv, a lot of people like chruby since it's far simpler
<sevenseacat> \o/
Martinez has quit [Ping timeout: 260 seconds]
havenwood has joined #ruby
sandeepk has quit [Ping timeout: 272 seconds]
Zesty has quit [Quit: Linkinus - http://linkinus.com]
<jrobeson> well chruby + ruby-install that is..
lukec has quit [Quit: lukec]
rrichardsr3 has quit [Quit: -- I'm getting very tired --]
zz_tsykoduk is now known as tsykoduk
tagrudev has joined #ruby
mengu has joined #ruby
pothibo has quit [Quit: pothibo]
RichardBaker has joined #ruby
dawkirst has quit [Ping timeout: 265 seconds]
graydot has joined #ruby
dawkirst has joined #ruby
sandeepk has joined #ruby
xcess_denied has joined #ruby
xcess_denied has quit [Client Quit]
funburn has quit [Quit: funburn]
xcess_denied has joined #ruby
tjad has quit [Ping timeout: 246 seconds]
funburn has joined #ruby
xcess_denied has quit [Client Quit]
rvchangue has quit [Ping timeout: 244 seconds]
Kricir has quit [Ping timeout: 244 seconds]
pwh has quit [Ping timeout: 264 seconds]
gstamp has quit [Ping timeout: 256 seconds]
ghostjangles has quit [Quit: Leaving]
tsykoduk is now known as zz_tsykoduk
gstamp has joined #ruby
Mars__ has joined #ruby
timonv has quit [Remote host closed the connection]
nobitanobi has quit [Ping timeout: 246 seconds]
timonv has joined #ruby
sandeepk has quit [Quit: sandeepk]
dhruvasagar has quit [Read error: Connection reset by peer]
pwh has joined #ruby
dhruvasagar has joined #ruby
rvchangue has joined #ruby
fgo has quit [Remote host closed the connection]
jamblack has quit [Quit: jamblack]
JohnBat26 has joined #ruby
timonv has quit [Ping timeout: 244 seconds]
xcess_denied has joined #ruby
xcess_denied has quit [Client Quit]
manoj has joined #ruby
Mars__ has quit [Ping timeout: 240 seconds]
s3itz has joined #ruby
wildroman2 has joined #ruby
rickruby has quit [Remote host closed the connection]
chinkung has quit [Read error: Connection reset by peer]
chinkung has joined #ruby
funburn_ has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
danshultz has joined #ruby
yfeldblum has joined #ruby
sandeepk has joined #ruby
wildroman2 has quit [Ping timeout: 240 seconds]
funburn has quit [Ping timeout: 252 seconds]
funburn_ is now known as funburn
gr33n7007h has joined #ruby
gr33n7007h has quit [Client Quit]
Elhu has joined #ruby
coldmethod has quit [Ping timeout: 272 seconds]
tjad has joined #ruby
teoric has joined #ruby
yfeldblum has quit [Ping timeout: 268 seconds]
danshultz has quit [Ping timeout: 260 seconds]
RichardBaker has quit [Quit: RichardBaker]
manoj has left #ruby ["Linkinus - http://linkinus.com"]
manoj has joined #ruby
nonamehero has quit [Ping timeout: 240 seconds]
teoric has quit [Client Quit]
Lewix has joined #ruby
manoj has left #ruby ["Linkinus - http://linkinus.com"]
manoj has joined #ruby
talntid has joined #ruby
talntid is now known as swarm
hiyosi has joined #ruby
aagdbl0 has joined #ruby
swarm is now known as swarmy
banjara has joined #ruby
<swarmy> can someone shed some light on this message?
<swarmy> I'm trying to return all the events from a database, using datamapper, and return them as a json string
luckyruby has quit [Remote host closed the connection]
atno__ has joined #ruby
JohnBat26 has quit [Ping timeout: 260 seconds]
timonv has joined #ruby
<shevy> huh what is that mess
aagdbl has quit [Ping timeout: 260 seconds]
funburn has quit [Quit: funburn]
manoj has quit [Quit: Linkinus - http://linkinus.com]
<shevy> could you try to use https://gist.github.com/ instead and denote what is the ruby code you use right now and what is result?
ewnd9 has joined #ruby
<swarmy> I have never used that, but I can give it a shot
artm has quit [Ping timeout: 268 seconds]
dkamioka has joined #ruby
atno has quit [Ping timeout: 268 seconds]
rickruby has joined #ruby
xcess_denied has joined #ruby
hiyosi has quit [Ping timeout: 260 seconds]
<sandeepk> The return value of a route block determines at least the response body passed on to the HTTP client, or at least the next middleware in the Rack stack. Most commonly, this is a string
kizzx2 has joined #ruby
<sandeepk> But in your case passing value is something else other than string
merickel has joined #ruby
atno has joined #ruby
noname001__ has quit [Quit: Konversation terminated!]
<swarmy> does this give you any better indication?
<swarmy> if not, I'll have to try that gist thing, and see if I can get it to work there
<shevy> well I see the ruby code you use now but the result seems to be missing
<shevy> pastebin.com is rather awful, even pastie.org should be better
weszlem has joined #ruby
<swarmy> well, the result is what I pasted earlier, just that error is what shows..
vlad_starkov has joined #ruby
ewnd9 has quit [Ping timeout: 260 seconds]
<shevy> I am unsure how someone can figure out what happens in that result :\
atno__ has quit [Ping timeout: 246 seconds]
<shevy> it's like one huge string or it seems to be
dkamioka has quit [Ping timeout: 252 seconds]
<swarmy> I'm just doinitwrong somewhere
ewnd9 has joined #ruby
wildroman has joined #ruby
wildroman has quit [Remote host closed the connection]
wildroman has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
iliketurtles has quit [Quit: zzzzz…..]
fgo has joined #ruby
wildroman has quit [Remote host closed the connection]
wildroman2 has joined #ruby
robbyoconnor has joined #ruby
wildroman has joined #ruby
sandeepk has quit [Quit: Linkinus - http://linkinus.com]
eeriegeek has quit [Quit: Leaving.]
stkowski has quit [Quit: stkowski]
Mars___ has joined #ruby
<shevy> well perhaps you could break it up into two parts
<shevy> so to track down where the error happens
tonni has quit [Remote host closed the connection]
xcess_denied has quit [Quit: Linkinus - http://linkinus.com]
<shevy> from your description there are two major steps where the error could happen (1) when you get the data back from the database, or (2) when you try to feed that into a json
<shevy> json should be very simple though
tonni has joined #ruby
<shevy> >> require "json"; data = { :name => 'dave', :address => [ 'tx', 'usa' ], :age => 17 }; data.to_json
<eval-in_> shevy => (https://eval.in/66265)
<shevy> ah damn... the bot has no json
<shevy> # => "{"name":"dave","address":["tx","usa"],"age":17}"
wildroman has quit [Ping timeout: 268 seconds]
iliketurtles has joined #ruby
threesome has joined #ruby
xcess_denied has joined #ruby
relix has joined #ruby
JohnBat26 has joined #ruby
xcess_denied has quit [Client Quit]
ewnd9 has quit [Ping timeout: 268 seconds]
EvanR_ has quit [Ping timeout: 260 seconds]
weszlem has quit []
ayaz has joined #ruby
gyzmodo has joined #ruby
thelorax123 has quit [Remote host closed the connection]
wildroman2 has quit [Remote host closed the connection]
byprdct has joined #ruby
yacks has quit [Quit: Leaving]
dagobah has joined #ruby
kevinykchan has joined #ruby
royalty has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 244 seconds]
zoee has joined #ruby
thelorax123 has joined #ruby
Kricir has joined #ruby
zoee has quit [Client Quit]
<byprdct> was hoping someone could help me out here in #ruby. I've decided to move many of my static html sites and rails sites to middleman. I've come across one bridge that I've been unable to cross. Currently, the url in a rails app is commonly example.com/segment/ and example.com/segment/other-segment etc. When middleman builds the site it generates the urls with the .html extension leaving me unable to keep the current directory structure which is very important
<byprdct> to me. I was hoping I could get a reference to an article on how to implement this or if it's not a huge time killer to implement something like this, possible a helping hand from someone more experienced in rails/ruby than I.
yfeldblum has joined #ruby
zoee has joined #ruby
ewnd9 has joined #ruby
andikr has joined #ruby
LarsSmit has joined #ruby
banjara has quit [Quit: Leaving.]
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
varfoo has quit [Ping timeout: 240 seconds]
vince_prignano has joined #ruby
krz has quit [Ping timeout: 244 seconds]
amritanshu_RnD has joined #ruby
Mars___ has quit [Remote host closed the connection]
Mars___ has joined #ruby
nonamehero has joined #ruby
Guest89003 is now known as fred
bronson has quit [Quit: bronson]
fred has quit [Changing host]
fred has joined #ruby
camilasan has joined #ruby
noname001__ has joined #ruby
Astralum has joined #ruby
pranny has quit [Quit: Leaving.]
Mars___ has quit [Ping timeout: 240 seconds]
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
Elhu has quit [Quit: Computer has gone to sleep.]
xcess_denied has joined #ruby
sayan has quit [Ping timeout: 272 seconds]
sandeepk has joined #ruby
fgo has quit [Remote host closed the connection]
fgo has joined #ruby
jhaals has joined #ruby
gustavo__ has joined #ruby
strax has quit [Quit: Connection closed for inactivity]
camilasan has quit [Ping timeout: 246 seconds]
robbyoconnor has quit [Max SendQ exceeded]
Mars___ has joined #ruby
datapolitical has quit [Read error: Connection reset by peer]
adamholt has quit [Ping timeout: 240 seconds]
r0bby_ has joined #ruby
jmeeuwen has quit [Quit: Disconnecting from stoned server.]
Y_Ichiro has quit [Quit: No Ping reply in 180 seconds.]
jbpros has joined #ruby
icedp has joined #ruby
Y_Ichiro has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
psyl0n has joined #ruby
rhys has quit [Quit: No Ping reply in 180 seconds.]
jmeeuwen has joined #ruby
dhruvasagar has joined #ruby
dnyy has quit []
icedp is now known as Guest13269
rhys has joined #ruby
adamholt has joined #ruby
aagdbl0 has quit [Quit: This computer has gone to sleep]
sayan has joined #ruby
rrichardsr3 has joined #ruby
PhilK has joined #ruby
Martinez has joined #ruby
varfoo has joined #ruby
psyl0n has quit [Quit: psyl0n]
h_kon has joined #ruby
nhhagen has quit [Read error: Operation timed out]
marcgg has quit [Read error: Connection reset by peer]
nhhagen has joined #ruby
marcgg has joined #ruby
rrichardsr3 has quit [Client Quit]
weszlem has joined #ruby
huttan has joined #ruby
tonni has quit [Remote host closed the connection]
zigomir has joined #ruby
_Andres has joined #ruby
merickel has quit [Remote host closed the connection]
tonni has joined #ruby
<gustavo__> anyone alive in here?
<swarmy> yupyup
<gustavo__> so i'm having a rather annoying ruby issue
vlad_starkov has joined #ruby
<gustavo__> i set up chruby on mac 10.9
<gustavo__> and then installed compass
<gustavo__> fine
<gustavo__> but it wont run when i type compass
<gustavo__> i put ruby in ~/.rubies/
jmimi has joined #ruby
Kneferilis has quit [Quit: Leaving]
parduse has joined #ruby
<havenwood> gustavo__: Does `gem env` look right? Works on my machine. :P
frerichs has joined #ruby
sandeepk has quit [Quit: Leaving...]
<havenwood> gustavo__: If you just type `chruby`, the Ruby you want is selected and all?
<gustavo__> * ruby-2.0.0-p247
<gustavo__> * ruby-2.0.0-p247
<gustavo__> i only have one version installed
einarj has joined #ruby
ahawkins has joined #ruby
huttan has quit [Ping timeout: 268 seconds]
<havenwood> gustavo__: Just to double check, what is your?: command -v ruby
tonni has quit [Ping timeout: 260 seconds]
rurban has quit [Read error: Connection timed out]
jprovazn has joined #ruby
<gustavo__> /usr/bin/ruby
jimmy_birer has joined #ruby
<gustavo__> what should it be
rurban has joined #ruby
timonv has quit [Remote host closed the connection]
<jimmy_birer> hello everyone
<gustavo__> hello jimmy
timonv has joined #ruby
<jimmy_birer> how's it going gustavo?
<gustavo__> it's going
<gustavo__> i'm trying to diagnose a faulty ruby install
<havenwood> gustavo__: based on what you've said, i'd have expected: /Users/your_user_name/.rubies/ruby-2.0.0-p247/bin/ruby
<jimmy_birer> at least the gears are grinding huh?
<gustavo__> now it is
<gustavo__> sorry
<gustavo__> i was f*ing with it
Xiti has joined #ruby
<gustavo__> i tried chruby system right before you asked
hiyosi has joined #ruby
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<gustavo__> just switched it back, got what you expected
<havenwood> gustavo__: What is your?: echo $GEM_ROOT
Mars___ has quit [Remote host closed the connection]
Kricir has quit [Ping timeout: 260 seconds]
Mars___ has joined #ruby
<gustavo__> you're gonna hate me
<gustavo__> i tried it again
<gustavo__> gem install compass
<gustavo__> it installed, again
<gustavo__> and now it works
<havenwood> :)
<jimmy_birer> rofl
<jimmy_birer> really?
<gustavo__> yup
<gustavo__> it must have installed when i had system ruby
frerichs has quit [Remote host closed the connection]
<gustavo__> and then for some reason didn't work even when system ruby is loaded
<gustavo__> but that's another matter (I think I know why)
<gustavo__> anyway, i have a second question
apeiros has joined #ruby
<gustavo__> since most of you are web app developers, and probably have blogs, where do you guys recommend going to find a good avatar?
mrfoto has joined #ruby
timonv has quit [Ping timeout: 252 seconds]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aganov has joined #ruby
<sevenseacat> erm, pick an image you like?
<sevenseacat> one that means something to you maybe?
scarolan has joined #ruby
jxw1024 has joined #ruby
<gustavo__> okay, but where's a good place to source such images? (yea, google image search and such)
<tobiasvl> this is the facebook age. i use a photo of myself.
<sevenseacat> gustavo__: this is a really strange line of conversation
dangerousdave has joined #ruby
<tobiasvl> gustavo__: how old are you? did you just discover the social web? :)
<jblack> maybe it's a setup for "I know! I'll use a python"
soisson has joined #ruby
<sevenseacat> tobiasvl: you presume everyone has photos of themselves as a facebook avatar :P
<gustavo__> tobiasvl, i've considered that, but I'm not sure it works with my design
hiyosi has quit [Ping timeout: 272 seconds]
<tobiasvl> sevenseacat: hehe!
* sevenseacat has a cat photo as an avatar everywhere
<gustavo__> i'm at cfn.io
Mars___ has quit [Ping timeout: 272 seconds]
h0rrorvacui has quit [Quit: ZQ]
fella5s has joined #ruby
wildroman has joined #ruby
jhaals has joined #ruby
Kneferilis has joined #ruby
wildroman has quit [Remote host closed the connection]
tonni has joined #ruby
wildroman has joined #ruby
aryaching_ has joined #ruby
aryaching has quit [Ping timeout: 260 seconds]
sayan has quit [Ping timeout: 240 seconds]
t_p has joined #ruby
tharindu has quit [Quit: Leaving...]
graydot has quit [Quit: graydot]
kizzx2 has quit [Read error: Connection reset by peer]
iliketurtles has quit [Quit: zzzzz…..]
claymore has joined #ruby
wildroman has quit [Ping timeout: 240 seconds]
parduse has quit []
weszlem has quit []
kizzx2 has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
jrhe has joined #ruby
kevinykchan has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby
dhruvasagar has joined #ruby
parduse has joined #ruby
graydot has joined #ruby
alup has joined #ruby
Kneferilis has quit [Quit: Leaving]
shvelo has joined #ruby
ezkl has joined #ruby
ezkl has quit [Client Quit]
gr33n7007h has joined #ruby
gr33n7007h has quit [Max SendQ exceeded]
starchild_ has joined #ruby
phinfonet has joined #ruby
gr33n7007h has joined #ruby
phinfonet has quit [Client Quit]
kaspergrubbe has joined #ruby
sandeepk has joined #ruby
wildroman has joined #ruby
tonni has quit [Read error: Connection reset by peer]
jrhe has quit [Quit: jrhe]
<rickruby> does appending a ? to a method name limit my return to only a boolean value?
<rickruby> I'm trying to return [true, slope] but only getting true..
<sevenseacat> no
<sevenseacat> its just a convention
pranny has joined #ruby
aryaching_ has quit []
<rickruby> hmm, any idea why my return is only showing up as [true]? :
timonv has joined #ruby
xk_id has quit [Quit:
<sevenseacat> time to debug it, hey.
epic has joined #ruby
weszlem has joined #ruby
hogeo has quit [Remote host closed the connection]
Xeago has joined #ruby
<tobiasvl> rickruby: that code is incomplete, so i can't test it. what return is [true]?
<tobiasvl> the one on line 21?
kaspergr_ has joined #ruby
<rickruby> complete code: http://pastebin.com/Y81ptBEz
graydot has quit [Quit: graydot]
<rickruby> oh the return should be either [1, true] or [-1, true] the number represents the slope of a line
tharindu has joined #ruby
<tobiasvl> ok, now the code is too long, so i won't test it
pipecloud_ has joined #ruby
<tobiasvl> yes, i understand that. so it's the return on line 21 that's wrong?
<rickruby> yes, for some reason I'm only getting [true]
<rickruby> but I think I might've found my error... calling is_valid_diagnol? instead of BoggleBoard.is_valid_diagnol? maybe
weszlem has quit [Client Quit]
<jblack> You should consider setting up a test suite
<rickruby> sweet, that was it
<jblack> It's not hard to do, and makes debugging a thousand times easier
kaspergrubbe has quit [Ping timeout: 256 seconds]
tonni has joined #ruby
jenskarlsen_ has joined #ruby
olivier_bK has joined #ruby
Elhu has joined #ruby
pipecloud has quit [Ping timeout: 240 seconds]
psyprus has quit [Ping timeout: 240 seconds]
nonamehero has quit [Ping timeout: 240 seconds]
rhys has quit [Quit: No Ping reply in 180 seconds.]
psyprus has joined #ruby
Bish has quit [Quit: ZNC - http://znc.sourceforge.net]
Y_Ichiro has quit [Write error: Broken pipe]
SJr has quit [Ping timeout: 240 seconds]
newton has quit [Ping timeout: 240 seconds]
jenskarlsen has quit [Ping timeout: 240 seconds]
Dwarf has quit [Ping timeout: 240 seconds]
nonamehero has joined #ruby
jenskarlsen_ is now known as jenskarlsen
Bish_ has joined #ruby
Y_Ichiro_ has joined #ruby
<rickruby> yeah RSpec is on my list of things to figure out how to use :)
Y_Ichiro_ has quit [Changing host]
Y_Ichiro_ has joined #ruby
nonamehero has joined #ruby
nonamehero has quit [Changing host]
havenwood has quit [Remote host closed the connection]
scarolan has quit [Ping timeout: 252 seconds]
rhys has joined #ruby
marr has joined #ruby
gr33n7007h has quit [Quit: Where's John Conner]
SJr has joined #ruby
Dwarf has joined #ruby
coderhs has joined #ruby
zipper has joined #ruby
vlad_sta_ has joined #ruby
artm has joined #ruby
yfeldblu_ has joined #ruby
jrhe has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
Kneferilis has joined #ruby
weszlem has joined #ruby
JohnBat26 has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Ping timeout: 260 seconds]
bruno- has quit [Ping timeout: 272 seconds]
dangerousdave has quit [Quit: Leaving...]
banisterfiend has quit [Quit: Computer has gone to sleep.]
sayan has joined #ruby
bruno- has joined #ruby
funburn has joined #ruby
yfeldblu_ has quit [Ping timeout: 268 seconds]
Advocation has joined #ruby
jlebrech has joined #ruby
matrixis1 has quit [Ping timeout: 240 seconds]
OdNairy has joined #ruby
dhruvasagar has quit [Write error: Connection reset by peer]
dhruvasagar has joined #ruby
<rickruby> I got my bit of code working, but trying to understand why it works now:
ghr has joined #ruby
<rickruby> if I do p is_valid_diagnol?(first_coord, second_coord) I get [true]
RTG` has joined #ruby
<rickruby> but p BoggleBoard.is_valid_diagnol?(first_coord, second_coord) returns [true, slope] which is what I want
jibi has joined #ruby
<rickruby> is_valid_diagnol is a class method
JeanMertz has joined #ruby
<rickruby> so when I forget to prefix with the class name on a call to is_valid_diagnol, what happens?
Lewix has quit [Remote host closed the connection]
leonidlm has joined #ruby
<tobiasvl> class method??
<apeiros> rickruby: as always - no explicit receiver means you call it on `self`
<apeiros> so "what happens" depends entirely on "where are you and what is `self` where you are?"
<rickruby> in the context of when I was getting the wrong return ([true]) self was an instance of the class
<tobiasvl> ah, i see now. you've defined two methods, is_valid_diagnol? and self.is_valid_diagnol?
<rickruby> just self.is_valid_diagnol?
<rickruby> is defined
<tobiasvl> no?
eka has joined #ruby
<tobiasvl> line 113
<tobiasvl> and line 58
<apeiros> rickruby: one of your statements is wrong
<apeiros> you either defined both methods, or you're not in an instance.
<rickruby> OH
<rickruby> I see, I missed that completely
<tobiasvl> 09:53:42 jblack | You should consider setting up a test suite
<tobiasvl> ;)
<rickruby> I left the old code to show how the refactored code is different, but forgot about that and wondering how I was getting this phantom true return
<rickruby> thanks!!
s3itz has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> rickruby: you should consider using git
<apeiros> do *never* leave old code sitting around.
mengu has quit [Write error: Broken pipe]
<apeiros> kill it with impunity
JohnBat26 has joined #ruby
starchild_ has quit [Quit: Lämnar]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
<apeiros> I'll rephrase - you should not just "consider" using git. Use git!
eka has quit [Client Quit]
advorak has quit [Quit: Ex-Chat]
<rickruby> aye aye
blooberr_ has quit [Quit: Connection closed for inactivity]
Kricir has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
dangerousdave has joined #ruby
barratt has joined #ruby
drumusician has joined #ruby
sayan has quit [Ping timeout: 252 seconds]
mengu has quit [Ping timeout: 252 seconds]
jrhe has quit [Quit: jrhe]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
hiyosi has joined #ruby
dweeb has joined #ruby
Deele has joined #ruby
tonni has quit [Remote host closed the connection]
tonni has joined #ruby
timonv has quit [Remote host closed the connection]
<mrfoto> i have a method that fixes some text via some regexes and i have a way to call it without arguments to just get the replacement, but then also an option to call it with block so it yields to you so you can wrap the replacement into something like html tags
<mrfoto> is there a better way to do that
hiyosi has quit [Ping timeout: 252 seconds]
<mrfoto> than to provide a default block
tonni has quit [Read error: Connection reset by peer]
tonni has joined #ruby
Soda has quit [Ping timeout: 252 seconds]
graydot has joined #ruby
matrixise has joined #ruby
sevenseacat has quit [Remote host closed the connection]
raunicolae has joined #ruby
obs has joined #ruby
havenwood has joined #ruby
thelorax123 has quit [Remote host closed the connection]
havenwood has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
Mars___ has joined #ruby
thelorax123 has joined #ruby
nvrch has joined #ruby
Violentr has joined #ruby
jimmy_birer has quit [Quit: Leaving]
Mars___ has quit [Ping timeout: 240 seconds]
zoee has quit [Quit: This computer has gone to sleep]
blaxter_ is now known as blaxter
ephemerian has joined #ruby
coderhs has quit [Ping timeout: 240 seconds]
aagdbl has joined #ruby
aagdbl has quit [Client Quit]
aagdbl has joined #ruby
Jadenn has joined #ruby
aagdbl has quit [Client Quit]
weszlem has quit [Ping timeout: 268 seconds]
<Jadenn> hello, is it possible to split a string into an array without using regex?
pranny has quit [Quit: Leaving.]
timonv has joined #ruby
<tobiasvl> hello, Jadenn ;)
<hoelzro> Jadenn: what's the use case?
<tobiasvl> Jadenn: String#split can take either a string or regex pattern. http://ruby-doc.org/core-2.0.0/String.html#method-i-split
weszlem has joined #ruby
havenwood has quit [Ping timeout: 245 seconds]
Guest2496 is now known as denysonique
<Jadenn> split will not do what i want without a regex, which i wish to avoid
<tobiasvl> 1. what do you want? 2. why do you wish to avoid regex?
workmad3 has joined #ruby
<Jadenn> i have content from a database, that i need to shorten to 100 characters. i also add some dots to the end of the paragraph depending on wether there is data in the 2nd key of the array
<Jadenn> and regex is evil.
amacgregor has quit [Ping timeout: 246 seconds]
<tobiasvl> 3. what exactly do you want to do? 4. why is regex evil? :P
zoee has joined #ruby
<tobiasvl> that is, what do you want to split the string on?
pranny has joined #ruby
adambeynon has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
<Jadenn> this is what im trying to convert to ruby http://paste.axiom.tk/74
<Jadenn> and this is what i have so far http://paste.axiom.tk/75
wildroman has quit [Remote host closed the connection]
popl has quit [Client Quit]
wildroman has joined #ruby
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
<tobiasvl> and what doesn't work?
<Jadenn> mainly the content = post.content but and the e bit
Kricir has quit [Ping timeout: 246 seconds]
<Jadenn> that as it stands cut the paragraph off at the first character
TwinkleH1od is now known as TwinkleHood
<tobiasvl> Jadenn: ah, yes. split doesn't work the way you think it does
<tobiasvl> 100 means it creates an array with 100 entries :P
<Jadenn> is there an alternative to str_split?
<tobiasvl> yes, you can for example index the string as an array
<tobiasvl> >> "hello"[0..2]
<eval-in_> tobiasvl => "hel" (https://eval.in/66319)
banisterfiend has joined #ruby
_Andres has quit [Read error: Connection reset by peer]
<Jadenn> oooo, thankies
<tobiasvl> that means you have to think differently on line 3 though
<tobiasvl> i'd just do something like `e = "..." if post.content.length > 100`
ua has joined #ruby
raunicolae has left #ruby ["Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is"]
wildroman has quit [Ping timeout: 272 seconds]
<mrfoto> Jadenn: also if you are on Rails then there is a method that does what you want `truncate`
aagdbl has joined #ruby
<Jadenn> sinatra.
weszlem has quit []
<tobiasvl> >> str = "hello"[0..2]; puts str + "..." if str.length > 3
<eval-in_> tobiasvl => nil (https://eval.in/66321)
<tobiasvl> >> str = "hello"[0..2]; str + "..." if str.length > 3
<eval-in_> tobiasvl => nil (https://eval.in/66322)
<tobiasvl> fdsjfsk
<tobiasvl> anyway
wallerdev has quit [Quit: wallerdev]
TigerWolf has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
khushildep has joined #ruby
zipper has quit [Quit: leaving]
t_p has quit [Ping timeout: 268 seconds]
leonidlm has quit [Ping timeout: 244 seconds]
<Jadenn> alright, that cut off like i want it, but it doesn't add the dots
<Jadenn> i have str = post.content[0..100]; str + "..." if str.length > 100
<tobiasvl> post.content.length > 100
<tobiasvl> i just wrote the wrong variable up there ;)
<Jadenn> ah, ty :)
<tobiasvl> (you've already cut off str, so it can't be > 100)
<Jadenn> mm still no dots
<Jadenn> str = post.content[0..100]; str + "..." if post.content.length > 100
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<tobiasvl> and what is post.content.length?
OdNairy has quit []
<Jadenn> its getting cut off, just no dots
dangerousdave has quit [Read error: Connection reset by peer]
<tobiasvl> and what is post.content.length?
khushildep has quit [Client Quit]
dangerousdave has joined #ruby
<tobiasvl> >> post = "hello"; str = post[0..2]; str + "..." if post.length > 3
<eval-in_> tobiasvl => "hel..." (https://eval.in/66332)
mjc_ has joined #ruby
mjc_ has quit [Quit: No Ping reply in 180 seconds.]
Kneferilis has quit [Read error: Connection reset by peer]
lyanchih has quit [Ping timeout: 240 seconds]
TomRone has quit [Ping timeout: 240 seconds]
go|dfish has quit [Ping timeout: 240 seconds]
soukihei has quit [Ping timeout: 248 seconds]
Dwarf has quit [Ping timeout: 240 seconds]
<Jadenn> post.content is from the database, that wont work
huttan has joined #ruby
yrrrep has quit [Read error: Operation timed out]
lyanchih has joined #ruby
hackeron has quit [Ping timeout: 240 seconds]
<Jadenn> and apparently post.content has no length
<Jadenn> even though its getting cut off just fine
<Jadenn> rather .length doesnt return anything
<tobiasvl> nothing?
<tobiasvl> nil?
<tobiasvl> 0?
<Jadenn> let me search the html source
TomRone has joined #ruby
<Jadenn> nope. nothing
rjhunter has joined #ruby
OdNairy has joined #ruby
hackeron has joined #ruby
<Jadenn> its puts post.content.length right?
<tobiasvl> well, that's not possible.
<tobiasvl> yes
<tobiasvl> is post.content a string?
<Jadenn> nope. no nothing whatsoever
<Jadenn> yes
<Jadenn> the string itself is being displayed
rickruby has quit [Remote host closed the connection]
<Jadenn> hover over the first image http://asbjorn.twerk.tk:4567/
Dwarf has joined #ruby
<tobiasvl> well, that doesn't help me. show me the code!
io_syl has quit []
rickruby has joined #ruby
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
<Jadenn> eh, need to add erb to my syntax highlighting. http://paste.axiom.tk/76
hogeo has joined #ruby
<Jadenn> oh god i know what i did ._.
<Jadenn> just looked in console.
<tobiasvl> okay?
<Jadenn> it outputs 158
<tobiasvl> ah yes, in erb you probably need to put <%= post.content.length %> in order to output it as html
psyl0n has joined #ruby
<tobiasvl> well, then everyting's fine, and that also explains why `str + "..." if post.content.length > 100
shaunbaker has joined #ruby
<tobiasvl> isn't output as html ;)
<Jadenn> ? <%= str.gsub("\n","<br />") %>
<tobiasvl> just do this instead:
<Jadenn> its there
<tobiasvl> in line 2
<tobiasvl> str = post.content[0..100]; str + "..." if post.content.length > 100
<tobiasvl> oops
<tobiasvl> str = post.content[0..100] + "..." if post.content.length > 100
<tobiasvl> you need to put the dots in str
<tobiasvl> not just return it
<tobiasvl> then nothing happens with it
<tobiasvl> see the difference?
<Jadenn> ah
rickruby has quit [Ping timeout: 264 seconds]
<Jadenn> nope that broke it
weszlem has joined #ruby
<Jadenn> undefined method `gsub' for nil:NilClass
<tobiasvl> yes. sorry.
lkba has quit [Ping timeout: 268 seconds]
<tobiasvl> str = post.content[0..100]; str += "..." if post.content.length > 100
<tobiasvl> (the if clause needs to be attached to just the latter)
<bnagy> s/+=/<</
<Jadenn> woo, dots! thanks :D
hogeo has quit [Ping timeout: 245 seconds]
<bnagy> and should that really be 0..100? not ... or [0,100] ?
vlad_starkov has joined #ruby
<tobiasvl> good point. Jadenn, remember that arrays in ruby start at 0
<Jadenn> i dont want to touch it, it works :P
<tobiasvl> so you're really taking the first 101 characters
<Jadenn> tobiasvl: they start at 0 in every language ever :P
thelorax123 has quit [Remote host closed the connection]
<tobiasvl> well, yes ;)
nonamehero has quit [Ping timeout: 240 seconds]
Y_Ichiro_ has quit [Quit: No Ping reply in 180 seconds.]
Y_Ichiro has joined #ruby
<Jadenn> i wont nitpick over one character though
vlad_starkov has quit [Remote host closed the connection]
nonamehero has joined #ruby
psyprus has quit [Ping timeout: 240 seconds]
<bnagy> imho [0,100] is more readable than [0...100], triple dot is easy to misread and confuses some people
vlad_starkov has joined #ruby
<Jadenn> isnt it double dots?
<bnagy> yeah, triple dot excludes the final value
<Jadenn> ah
psyprus has joined #ruby
<Jadenn> all these fancy operators
<bnagy> but slicing with [start,len] is nicer
thelorax123 has joined #ruby
psyl0n has quit [Ping timeout: 272 seconds]
gustavo__ has quit [Quit: This computer has gone to sleep]
choobie has left #ruby [#ruby]
err_ok has joined #ruby
flowerhack has quit [Quit: Connection closed for inactivity]
tonni has quit [Remote host closed the connection]
<shevy> yeah
<Jadenn> heh. you cant even tell them apart! http://furtran.twerk.tk/ and http://legacy.twerk.tk/
tonni has joined #ruby
<shevy> Jadenn the thing is, [start, end] is awesome. you can use it to get rid of stuff
<Jadenn> aside from the generation time on the php version
<shevy> >> x = "abcdef";x[3,2] = ''; x
<eval-in_> shevy => "abcf" (https://eval.in/66342)
<shevy> >> x = %w( abc def ghi jkl) ;x[3] = ''; x
<eval-in_> shevy => ["abc", "def", "ghi", ""] (https://eval.in/66346)
hiyosi has joined #ruby
pskosinski has joined #ruby
ekarlso has quit [Ping timeout: 246 seconds]
tonni has quit [Read error: Connection reset by peer]
ekarlso has joined #ruby
<Jadenn> how should i go about showing page generation time on there? if i only benchmark inside of the layout template the results wont be very accurate. i see no other way to benchmark the entire application and have it display in that template
coderhs has joined #ruby
<tobiasvl> maybe sinatra has something built in?
<Jadenn> nothing in the readme
<robonerd> what's the diff between #ruby and #ruby-lang ?
dangerousdave has quit [Read error: Connection reset by peer]
hiyosi has quit [Ping timeout: 245 seconds]
dangerousdave has joined #ruby
<Jadenn> there is nothing time related that i can find with sinatra
<tobiasvl> robonerd: weeeeeell, #ruby-lang requires nick registration :P
<robonerd> ahhh
<tobiasvl> it is also the official channel though
<robonerd> and 1/3 the size hehe
<tobiasvl> yeah, probably because of the nick requirement
rurban has quit [Read error: Connection timed out]
rurban has joined #ruby
mengu has quit [Remote host closed the connection]
lyanchih has quit [Quit: lyanchih]
<workmad3> Jadenn: write a rack middleware that times the entire call and then inserts the time into the returned HTML
<Jadenn> hey man, i've only been with ruby for 2 days
shay- has joined #ruby
DaniG2k has joined #ruby
<workmad3> Jadenn: ;)
<Jadenn> i really wanted to see if ruby is faster than php >.<
<workmad3> haha
<robonerd> i moved from php to ruby back in 2005
Soda has joined #ruby
<Jadenn> im not really impressed with other benchmarks ive seen
<Jadenn> ruby is very slow
<Jadenn> but i have no comparison to php.
<robonerd> well, ruby isn't about speed. ppl who use ruby use it because they enjoy the lang
<robonerd> and the many langs
<Jadenn> wish i would have know that before :P
<hoelzro> I would say that Ruby is focused on optimizing for dev time rather than CPU time
h_kon has quit [Remote host closed the connection]
<shay-> hey, I am really new to ruby and have to following question: I use fork { Open.popen3(command) do |stdin, stdout, stderr, wait_thr| ..... end to run several commands in parallel. But I want to deal with the I/O seriell, so one command after another can aks for user prompt, but if there is no prompting they should do things in parallel. how can I do this?
<DaniG2k> guys I'm trying to write a lambda function and store it in a variable but it doesnt seem to work...
<Jadenn> eh, well. github scales fine with ruby. i should be alright
<hoelzro> and if you're working with an I/O workload (which most web applications/scripts are), the tradeoff is acceptable
<DaniG2k> I have rand = ->{ (rand(79)+47).char }
<workmad3> Jadenn: exactly ;)
<workmad3> Jadenn: just remember to think in terms of scaling out rather than scaling up
<DaniG2k> which gets stored in a proc, #<Proc:0x007ff642a04930@(irb):6 (lambda)>
<DaniG2k> but then I dont know how to call it or anything :X
<DaniG2k> any advice?
<hoelzro> DaniG2k: rand.()?
<workmad3> DaniG2k: .call?
nhhagen has quit [Ping timeout: 246 seconds]
<workmad3> 'how do I call something? should I try .call?' :)
<DaniG2k> workmad3: if I do call I get NoMethodError: undefined method `char' for 66:Fixnum
<workmad3> DaniG2k: right
<workmad3> DaniG2k: which, if you look, is because the proc got called
<DaniG2k> lol
<workmad3> DaniG2k: but numbers don't have a char method
nhhagen has joined #ruby
<DaniG2k> workmad3: but doing (rand(79)+47).char works fine
<DaniG2k> oooh wait
<DaniG2k> my bad...
<DaniG2k> -_-
<workmad3> hehe
* DaniG2k does the walk of shame
<workmad3> >> (rand(79)+47).char
<eval-in_> workmad3 => undefined method `char' for 62:Fixnum (NoMethodError) ... (https://eval.in/66363)
<workmad3> shame shame shame
<DaniG2k> it was supposed to be (rand(79)+47).chr
<workmad3> ;)
<workmad3> DaniG2k: also, rand(79..126)
shvelo has quit [Ping timeout: 272 seconds]
<workmad3> DaniG2k: or even '("a".."z").to_a.sample'
havenwood has joined #ruby
<workmad3> (I'm aware that isn't the complete range you had available in that last example... but highlights the sample method for getting a random entry from an array :) )
<DaniG2k> workmad3: thats only characters
<jrobeson> workmad3 sames the goods
<DaniG2k> alphabetical
<jrobeson> samples*
havenn has joined #ruby
tonni has joined #ruby
<workmad3> DaniG2k: btw, that's a pretty odd selection you have there anyway ;)
<workmad3> DaniG2k: O to ~
JeanMertz has quit [Remote host closed the connection]
jhaals has joined #ruby
<workmad3> DaniG2k: [*"A".."~"].sample may be to your liking ;)
havenwood has quit [Ping timeout: 245 seconds]
<workmad3> DaniG2k: as long as you're not using this for real password generation anyway...
eka has joined #ruby
<DaniG2k> workmad3: there are no numbers there
<DaniG2k> :S
<workmad3> DaniG2k: there weren't in your original
<workmad3> >> (79..126).map(&:chr)
<eval-in_> workmad3 => ["O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "[", "\\", "]", "^", "_", "`", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", ... (https://eval.in/66376)
Kneferilis has joined #ruby
ismaelrb has joined #ruby
<workmad3> hmm... I may have translated your range incorrectly :)
havenn has quit [Ping timeout: 272 seconds]
<workmad3> 47 -> 126, not 79 -> 126...
Kricir has joined #ruby
<workmad3> DaniG2k: [*"/".."~"].sample ;)
jhaals has quit [Ping timeout: 240 seconds]
rickruby has joined #ruby
<workmad3> >>[*"/".."~"].sample
<eval-in_> workmad3 => "B" (https://eval.in/66378)
platypine has joined #ruby
zoee has quit [Quit: This computer has gone to sleep]
vlad_starkov has quit [Remote host closed the connection]
nomenkun has joined #ruby
<DaniG2k> workmad3: what's that * at the beginning for?
<workmad3> DaniG2k: splats the range into the array
<DaniG2k> cool
jhaals has joined #ruby
camilasan has joined #ruby
platypine has quit [Ping timeout: 245 seconds]
includex has joined #ruby
h_kon has joined #ruby
newton has joined #ruby
<shevy> DaniG2k it's ruby's way to kill a fly on the screen
<shevy> *
<shevy> *
<shevy> see?
<shevy> all flies on the screen captured in code
pranny has quit [Quit: Leaving.]
olivier_bK has quit [Quit: Quitte]
ldnunes has joined #ruby
olivier_bK has joined #ruby
funburn has quit [Quit: funburn]
Moosya has joined #ruby
<DaniG2k> hh
<DaniG2k> haha
lyanchih has joined #ruby
Moosya has quit [Remote host closed the connection]
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
gstamp has quit [Ping timeout: 256 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gstamp has joined #ruby
mengu has quit [Read error: Connection reset by peer]
Elhu has quit [Quit: Computer has gone to sleep.]
Elhu has joined #ruby
sepp2k has joined #ruby
skaflem has joined #ruby
jb41 has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Moosya has joined #ruby
Moosya has quit [Remote host closed the connection]
<shay-> hey, I am really new to ruby and have to following question: I use fork { Open.popen3(command) do |stdin, stdout, stderr, wait_thr| ..... end to run several commands in parallel. But I want to deal with the I/O seriell, so one command after another can aks for user prompt, but if there is no prompting they should do things in parallel. how can I do this?
hamakn_ has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
Moosya has joined #ruby
Kricir has quit [Ping timeout: 245 seconds]
ohcibi has quit [Quit: No Ping reply in 180 seconds.]
ohcibi has joined #ruby
hiyosi has joined #ruby
srji has joined #ruby
nism-pi has joined #ruby
Jetchisel has quit [Read error: Connection reset by peer]
guilleiguaran_ has quit [Quit: Connection closed for inactivity]
workmad3 has quit [Quit: leaving]
Moosya has quit [Remote host closed the connection]
Jetchisel has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
hiyosi has quit [Ping timeout: 246 seconds]
boboc has joined #ruby
zoee has joined #ruby
jb41 has quit [Ping timeout: 260 seconds]
tomasso has joined #ruby
pranny has joined #ruby
weszlem has quit []
pranny has quit [Client Quit]
lyanchih has quit [Ping timeout: 246 seconds]
soba has quit [Ping timeout: 260 seconds]
jbpros has quit [Quit: jbpros]
<Jadenn> alright, so i have the basic querying down. how the heck do i do table joins with activerecord?
tomasso has quit [Remote host closed the connection]
<Jadenn> ooo it supports joins
Moosya has joined #ruby
havenwood has joined #ruby
<DouweM> it does! also, #RubyOnRails may be more appropriate for ActiveRecord-related questions
havenwood has quit [Ping timeout: 252 seconds]
<Jadenn> im not using rails :S
Al__ has joined #ruby
popl has quit [Quit: We must make an idol of our fear, and call it God.]
<DouweM> AR is still part of the Rails family, so they may be able to help you bettet
includex has quit [Quit: Textual IRC Client: www.textualapp.com]
deegen has quit [Ping timeout: 248 seconds]
deegen has joined #ruby
boboc has quit []
yjmsf20 has joined #ruby
sayan has joined #ruby
tvw has joined #ruby
pskosinski has quit [Quit: Til rivido Idisti!]
SteveBenner9 has joined #ruby
hogeo has joined #ruby
hogeo has quit [Read error: Connection reset by peer]
zipper has joined #ruby
zipper is now known as Guest16422
dhruvasagar has quit [Read error: Connection reset by peer]
Moosya has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
Biohazard has quit [Ping timeout: 264 seconds]
go|dfish has joined #ruby
bio has joined #ruby
Guest16422 has quit [Ping timeout: 244 seconds]
weszlem has joined #ruby
lkba has joined #ruby
zipper_ has joined #ruby
Moosya has joined #ruby
EHLOVader has quit [Ping timeout: 252 seconds]
EHLOVader has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
hogeo has joined #ruby
eeriegeek has joined #ruby
Moosya has quit [Remote host closed the connection]
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
wildroman has joined #ruby
wildroman has quit [Remote host closed the connection]
wildroman has joined #ruby
wildroman has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 245 seconds]
nfk has quit [Quit: yawn]
Kricir has joined #ruby
carif has joined #ruby
vlad_starkov has joined #ruby
hogeo has quit [Remote host closed the connection]
rickruby has quit [Remote host closed the connection]
echevemaster has quit [Ping timeout: 264 seconds]
DaniG2k has quit [Quit: leaving]
ckinni has joined #ruby
jbpros has joined #ruby
sayan has quit [Ping timeout: 245 seconds]
iamjarvo_ has joined #ruby
Beoran__ has joined #ruby
shvelo has joined #ruby
ckinni has quit [Client Quit]
khushildep has joined #ruby
mixel has joined #ruby
graydot has quit [Quit: graydot]
falood has quit [Remote host closed the connection]
allsystemsarego has joined #ruby
falood has joined #ruby
Guest13269 has quit [Quit: _]
icedp has joined #ruby
Beoran_ has quit [Ping timeout: 272 seconds]
zipper_ has quit [Ping timeout: 240 seconds]
nfk has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
danguita has joined #ruby
<shay-> hey, I am really new to ruby and have to following question: I use fork { Open.popen3(command) do |stdin, stdout, stderr, wait_thr| ..... end to run several commands in parallel. But I want to deal with the I/O seriell, so one command after another can aks for user prompt, but if there is no prompting they should do things in parallel. how can I do this?
tharindu has quit [Quit: Leaving...]
kevinykchan has joined #ruby
zipper_ has joined #ruby
<apeiros> shay-: you can't have it both
<apeiros> either it's parallel or it's not parallel.
falood has quit [Ping timeout: 246 seconds]
<apeiros> you could "wrap" stdin/stdout of the commands and try it that way
<apeiros> but I would wonder if you'd manage to pull that off without a convoluted mess.
<shay-> apeiros: Could it work to have one stream for stdout and one for each process for stdin?
<apeiros> shay-: which all forks access in parallel?
Psi|4ward has joined #ruby
<apeiros> have fun with the mess that will produce
ckinni has joined #ruby
<apeiros> which process writes when? which process reads when?
drumusician has quit [Ping timeout: 268 seconds]
<apeiros> in short: no
drumusician has joined #ruby
xk_id has joined #ruby
<shay-> apeiros: i have two cases: 1) fork process outputs a line (like "Starting execution") 2) fork process outputs a line with a question mark and then waits for input
ckinni has quit [Client Quit]
<shay-> and in the main program I want to read all the output and print it and if there is a question mark in it read input from user and pass it to the process and then manage the next line
<shay-> but from all fork processes so they have to queue on output
iamjarvo_ has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
Mattx has quit [Quit: Leaving]
r0bby_ has quit [Excess Flood]
mlpinit has joined #ruby
r0bby_ has joined #ruby
prsn has joined #ruby
carif has quit [Quit: Ex-Chat]
lewis has quit [Remote host closed the connection]
rrichardsr3 has joined #ruby
lewis has joined #ruby
danshultz has joined #ruby
ckinni has joined #ruby
srji has quit [Quit: leaving]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
havenwood has joined #ruby
ewnd9 has quit [Ping timeout: 272 seconds]
tkuchiki has quit [Remote host closed the connection]
ckinni has quit [Client Quit]
tkuchiki has joined #ruby
vince_prignano has quit [Remote host closed the connection]
vince_prignano has joined #ruby
d45h has quit [Ping timeout: 260 seconds]
banisterfiend has quit [Quit: Computer has gone to sleep.]
ismaelrb has quit [Quit: Textual IRC Client: www.textualapp.com]
lewis has quit [Ping timeout: 272 seconds]
polaco_zZz is now known as polaco
havenwood has quit [Ping timeout: 240 seconds]
tkuchiki has quit [Ping timeout: 245 seconds]
nfk has quit [Quit: yawn]
gstamp_ has joined #ruby
ArchBeOS has joined #ruby
vince_prignano has quit [Ping timeout: 246 seconds]
Kricir has quit [Ping timeout: 246 seconds]
anderson has quit [Remote host closed the connection]
ewnd9 has joined #ruby
gstamp has quit [Ping timeout: 256 seconds]
gstamp_ is now known as gstamp
ArchBeOS_ has joined #ruby
ArchBeOS has quit [Disconnected by services]
ArchBeOS_ is now known as ArchBeOS
ExCa|iBuR has joined #ruby
anderson has joined #ruby
banisterfiend has joined #ruby
shvelo has quit [Changing host]
shvelo has joined #ruby
nfk has joined #ruby
weszlem has quit [Ping timeout: 272 seconds]
sgu has joined #ruby
sgu has quit [Client Quit]
bluenemo has joined #ruby
bluenemo has joined #ruby
batman has joined #ruby
Advocation has quit [Quit: Advocation]
ravster has joined #ruby
yjmsf20 has quit [Quit: leaving]
weszlem has joined #ruby
weszlem has quit [Max SendQ exceeded]
ckinni has joined #ruby
weszlem has joined #ruby
<Psi|4ward> Someone can help me developing a tiny redmine extension?
<Psi|4ward> (payed)
sandeepk has quit [Quit: Leaving...]
Elhu has joined #ruby
ckinni has quit [Client Quit]
r0bby_ has quit [Ping timeout: 248 seconds]
ckinni has joined #ruby
ckinni has quit [Client Quit]
danshultz has quit [Remote host closed the connection]
sandeepk has joined #ruby
drumusician has quit [Ping timeout: 245 seconds]
h_kon has quit [Remote host closed the connection]
danshultz has joined #ruby
Paradox has quit [Ping timeout: 264 seconds]
graydot has joined #ruby
sandeepk has quit [Client Quit]
kevinykchan has quit [Ping timeout: 264 seconds]
allaire has joined #ruby
jamblack has joined #ruby
ckinni has joined #ruby
danshultz has quit [Ping timeout: 264 seconds]
breakingthings has joined #ruby
olivier_bK1 has joined #ruby
ckinni has quit [Client Quit]
Rudde has joined #ruby
olivier_bK1 has quit [Client Quit]
olivier_bK has quit [Remote host closed the connection]
olivier_bK has joined #ruby
mark_locklear has joined #ruby
yjmsf20 has joined #ruby
<yjmsf20> g
yalue has joined #ruby
ckinni has joined #ruby
ckinni has quit [Client Quit]
IceDragon has joined #ruby
rjhunter has quit [Remote host closed the connection]
hiyosi has joined #ruby
xtristan has joined #ruby
gianlucadv has joined #ruby
RaCx has joined #ruby
jamesaanderson has joined #ruby
AlSquire has joined #ruby
<IceDragon> morning
hiroyuki has joined #ruby
dhruvasagar has joined #ruby
xk_id has quit [Quit:
hiyosi has quit [Ping timeout: 252 seconds]
xcess_denied has quit [Quit: Leaving...]
dkamioka has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
zipper_ has quit [Quit: leaving]
madb055 has quit [Ping timeout: 252 seconds]
zipper has joined #ruby
rrichardsr3 has quit [Quit: -- I'm getting very tired --]
yacks has joined #ruby
_HolyCow1 has quit [Quit: Leaving.]
ananthakumaran has quit [Quit: Leaving.]
relix has joined #ruby
lkba has quit [Read error: Connection reset by peer]
lkba has joined #ruby
vince_prignano has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ckinni has joined #ruby
nfk has quit [Quit: yawn]
juan__ has joined #ruby
Sammael has quit [Ping timeout: 252 seconds]
mklappstuhl has joined #ruby
juan_ has quit [Read error: Connection reset by peer]
lfox has joined #ruby
fysaen has joined #ruby
dkamioka has quit [Remote host closed the connection]
jamesaanderson has joined #ruby
asobrasil has joined #ruby
rickruby has joined #ruby
dkamioka has joined #ruby
aagdbl has quit [Quit: This computer has gone to sleep]
guns has joined #ruby
rrichardsr3 has joined #ruby
rrichardsr3 has quit [Client Quit]
graydot has quit [Quit: graydot]
Kricir has joined #ruby
bio is now known as Biohazard
kaldrenon has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
<Rudde> Why can't I install rcov? It worked to install debase
leonidlm has joined #ruby
willob has joined #ruby
mklappstuhl has joined #ruby
samuel02 has joined #ruby
Psi|4ward has left #ruby ["terminated"]
icecandy has joined #ruby
Kricir has quit [Ping timeout: 245 seconds]
sailias has joined #ruby
sambao21 has joined #ruby
stringoO has joined #ruby
danshultz has joined #ruby
pr0ggie has quit [Ping timeout: 246 seconds]
pdimitrov has quit [Ping timeout: 252 seconds]
iamjarvo_ has joined #ruby
mklappstuhl has quit [Ping timeout: 272 seconds]
Advocation has joined #ruby
dhruvasagar has quit [Ping timeout: 244 seconds]
DouweM has quit [Read error: Operation timed out]
dhruvasagar has joined #ruby
banisterfiend has joined #ruby
iamjarvo_ has quit [Ping timeout: 246 seconds]
xk_id has joined #ruby
mklappstuhl has joined #ruby
nlv has joined #ruby
nateberkopec has joined #ruby
nlv has quit [Remote host closed the connection]
karupanerura is now known as zz_karupanerura
mklappstuhl has quit [Remote host closed the connection]
dkamioka has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
Kabaka has joined #ruby
kindjal has joined #ruby
xk_id has quit [Ping timeout: 245 seconds]
BizarreCake has joined #ruby
krawchyk has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
pr0ggie has joined #ruby
pdimitrov has joined #ruby
shvelo has quit [Read error: Connection reset by peer]
shvelo has joined #ruby
shredding has joined #ruby
LarsSmit has left #ruby [#ruby]
CorySimmons has joined #ruby
icecandy has quit [Quit: Going offline, see ya! (www.adiirc.com)]
drumusician has joined #ruby
danguita has quit [Ping timeout: 240 seconds]
drumusician has quit [Remote host closed the connection]
Alina-malina has quit [Ping timeout: 260 seconds]
shvelo has quit [Read error: Connection reset by peer]
soisson has quit [Remote host closed the connection]
Alina-malina has joined #ruby
drumusician has joined #ruby
yfeldblum has joined #ruby
tomzx_mac has joined #ruby
flowerhack has joined #ruby
thelorax123 has quit [Remote host closed the connection]
lfox has quit []
lfox has joined #ruby
thelorax123 has joined #ruby
willob has quit [Quit: Leaving.]
rdalin has quit [Ping timeout: 246 seconds]
zoee has quit [Quit: This computer has gone to sleep]
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_HolyCow has joined #ruby
theRoUS has joined #ruby
theRoUS has joined #ruby
hiyosi has joined #ruby
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
_HolyCow has left #ruby [#ruby]
mrfoto has quit []
Rudde has quit [Remote host closed the connection]
bline79_ has quit [Quit: bline79_]
endash has joined #ruby
relix has joined #ruby
yjmsf20 has quit [Quit: leaving]
zoee has joined #ruby
thelorax123 has quit [Remote host closed the connection]
coderhs has quit [Ping timeout: 252 seconds]
kpshek has joined #ruby
elux has joined #ruby
thelorax123 has joined #ruby
wildroman has joined #ruby
serp` has joined #ruby
wesside has quit [Quit: Computer has gone to sleep.]
tvw has quit []
tvw has joined #ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
angusiguess has joined #ruby
lessless has joined #ruby
lukec has joined #ruby
<lessless> is it possible to use an ampersand shortcut for the method defined outside `self` https://gist.github.com/dirty-hippie/7431756#file-a-rb-L2 ?
wildroma_ has joined #ruby
tvw has quit []
wildroman has quit [Read error: Operation timed out]
yjmsf20 has joined #ruby
danguita has joined #ruby
<tobiasvl> lessless: what do you mean by "outside self"? they're defined in the same scope?
<tobiasvl> what happens when you run that code? i'd have thought it worked
<lessless> tobiasvl, yes, custom_report_store and isolate_visits_and_transactions are in the one scope
<lessless> I can't catch the parameter
vince_prignano has quit [Remote host closed the connection]
codelette has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<tobiasvl> what parameter?
<tobiasvl> i'm not sure i follow. what actually happens?
<lessless> ArgumentError: wrong number of arguments (0 for 1)
<lessless> from /home/lessless/projects/seotool/app/models/marketing/summary_chart.rb:30:in `isolate_visits_and_transactions'
CreativeEmbassy has joined #ruby
kindjal has quit [Quit: Computer has gone to sleep.]
kcombs has joined #ruby
bugwish has joined #ruby
<canton7> you missed yourself a colo
<canton7> *colon
einarj has quit [Ping timeout: 252 seconds]
<tobiasvl> ah, yes you did
<lessless> tobiasvl, nothing is passed to the isolate_visits_and_transactions
<lessless> nope, folks, colon is the other case ;)
dhruvasagar has joined #ruby
hamed_r has joined #ruby
<lessless> NoMethodError: undefined method `isolate_visits_and_transactions' for #<Google::APIClient::Result:0x00000006e46eb0>
<lessless> with colon
<tobiasvl> lessless: till next time, please paste the entire code or explain exactly what happens. there's no line 30 in the code you gave us.
serp` has quit [Quit: serp`]
danguita has quit [Ping timeout: 264 seconds]
SeySayux has quit [Ping timeout: 264 seconds]
flops has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
<lessless> raw_data.map(&:isolate_visits_and_transactions) is raw_data.map { |data| data.isolate_visits_and_transactions }
ananthakumaran has joined #ruby
SeySayux has joined #ruby
d45h has joined #ruby
yfeldblu_ has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
Moosya has joined #ruby
danguita has joined #ruby
typicalbender has joined #ruby
vlad_starkov has joined #ruby
fysaen has quit [Ping timeout: 246 seconds]
vlad_starkov has quit [Remote host closed the connection]
dkamioka has joined #ruby
duggiefresh has joined #ruby
Jetchisel has quit [Quit: Unfortunately time is always against us -- *Morpheus*]
allaire has quit []
Moosya has quit [Remote host closed the connection]
yfeldblu_ has quit [Ping timeout: 240 seconds]
jgoss has joined #ruby
geekbri has joined #ruby
ananthakumaran has quit [Ping timeout: 245 seconds]
sayan has joined #ruby
n4dir has joined #ruby
n4dir has left #ruby [#ruby]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
coderhs has joined #ruby
ananthakumaran has joined #ruby
ffranz has joined #ruby
duggiefresh has quit [Client Quit]
IcyDragon has joined #ruby
dekz has quit [Quit: Connection closed for inactivity]
tharindu has joined #ruby
duggiefresh has joined #ruby
nateberkopec has quit [Quit: Leaving...]
IceDragon has quit [Ping timeout: 264 seconds]
kindjal has joined #ruby
pskosinski has joined #ruby
Speed has joined #ruby
coca_rails has joined #ruby
noop has quit [Ping timeout: 260 seconds]
Roa has quit [Quit: Lost terminal]
tannerburson has joined #ruby
tharindu has quit [Ping timeout: 240 seconds]
bugwish has quit [Remote host closed the connection]
Xeago_ has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MrThePlague has joined #ruby
MrThePlague has joined #ruby
MrThePlague has quit [Changing host]
johnnyfuchs has joined #ruby
h_kon has joined #ruby
Xeago has quit [Ping timeout: 252 seconds]
xk_id has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
ehc has joined #ruby
tomzx_mac has quit [Ping timeout: 245 seconds]
kobain has joined #ruby
braoru has quit [Remote host closed the connection]
rudisimo has joined #ruby
hiroyuki has quit [Remote host closed the connection]
daxroc has joined #ruby
<daxroc> Afternoon all
hiroyuki has joined #ruby
marr has quit [Ping timeout: 252 seconds]
sambao21 has joined #ruby
cody-- has joined #ruby
xcess_denied has joined #ruby
<daxroc> New to ruby so bare with me :D I'm using the ternary operator to do a single check on a variable and set true false on the result. it's result = true ? (varString.include? "abc") : false
xk_id has quit [Ping timeout: 245 seconds]
dawkirst has quit [Ping timeout: 272 seconds]
<canton7> so the synatx is condition ? valueIfTrue : valueIfFalse
<canton7> but you might as well do result = varString.include?("abc") here
<daxroc> So i have it backwards
<daxroc> canton7: oversimplified the example
<canton7> well kinda inside out :P
<canton7> that's the python order - trueValue if condition else falseValue
RaCx has joined #ruby
<daxroc> :)
drumsrgr8forn8 has joined #ruby
Kricir has joined #ruby
johnnyfuchs has quit [Quit: Leaving.]
<daxroc> yeah it's happening a lot writing a mash of ruby+python
<apeiros> canton7: lolwut?
jgoss has left #ruby [#ruby]
<apeiros> canton7: so python decided to have ternary but change the order relative to about all and every other language?
<canton7> well it's kinda an abuse of an if statement, rather than a proper ternary operator
johnnyfuchs has joined #ruby
Desert_eagle has quit [Quit: Leaving]
<sweeper> abuse unless instead, it's more fun
heath has quit [Ping timeout: 245 seconds]
heath has joined #ruby
Xeago has joined #ruby
nfk has joined #ruby
decoponio has joined #ruby
guilleiguaran_ has joined #ruby
bean has joined #ruby
serp` has joined #ruby
<daxroc> I guess my issue is that varString is not set sometimes so it doesn't evaluate to true or false
Czupa has joined #ruby
jlast has joined #ruby
sayan has quit [Ping timeout: 246 seconds]
failshell has joined #ruby
Xeago_ has quit [Ping timeout: 248 seconds]
Monie has joined #ruby
burlyscudd has joined #ruby
wildroma_ has quit [Remote host closed the connection]
nwertman has joined #ruby
coca_rails has quit [Remote host closed the connection]
Xeago_ has joined #ruby
dawkirst has joined #ruby
Variantdataaa has joined #ruby
amritanshu_RnD has quit [Quit: Leaving]
vince_prignano has joined #ruby
Davey has joined #ruby
vince_prignano has quit [Read error: Connection reset by peer]
jerius has joined #ruby
vince_prignano has joined #ruby
<daxroc> canton7: How do you handle if the variable is nil or unset ? result = var.include? "str" ? true : false
vince_prignano has quit [Read error: Connection reset by peer]
zoee has quit [Quit: This computer has gone to sleep]
<apeiros> daxroc: a variable can't be unset in ruby
<daxroc> *unset is nil sorry
<apeiros> it can be nil. but that's not the same as unset.
Davey has quit [Read error: Connection reset by peer]
Xeago has quit [Ping timeout: 252 seconds]
<apeiros> nil is falsy
vince_prignano has joined #ruby
<canton7> you test whether it's nil?
havenwood has joined #ruby
vince_prignano has quit [Read error: Connection reset by peer]
vince_prignano has joined #ruby
Davey has joined #ruby
coca_rails has joined #ruby
vince_prignano has quit [Read error: Connection reset by peer]
burlyscudd has quit [Quit: Leaving.]
hogeo has joined #ruby
dawkirst has quit [Ping timeout: 246 seconds]
vince_prignano has joined #ruby
vince_prignano has quit [Read error: Connection reset by peer]
rippa has joined #ruby
<daxroc> canton7: more accurate to what I'm trying result = test[:a][:b].include? "abc" ? true : false
vince_prignano has joined #ruby
mary5030 has joined #ruby
workmad3 has joined #ruby
vince_prignano has quit [Read error: Connection reset by peer]
<canton7> like I say, no need for result = condition ? true : false - it's redundent. Just 'result = condition' is fine
vince_prignano has joined #ruby
nateberkopec has joined #ruby
vince_prignano has quit [Remote host closed the connection]
coca_rails has quit [Ping timeout: 245 seconds]
tobago has joined #ruby
vince_prignano has joined #ruby
<workmad3> canton7: wat? you mean my 'result = true ? true : false' statements are pointless?
tobago has quit [Changing host]
tobago has joined #ruby
<canton7> and do you want something like 'result = test[:a] && test[:a][:b] && test[:a][:b].include?("abc")' ?
<workmad3> canton7: how about 'result = true ? true ? true : false : false'?
zoee has joined #ruby
benwoody has joined #ruby
* daxroc head explodes
h_kon has quit [Remote host closed the connection]
<canton7> :)
jjbohn has joined #ruby
axl_ has joined #ruby
tommyvyo_ has quit [Quit: Connection closed for inactivity]
<daxroc> The error I get is TypeError: no implicit conversion of true into String
DrShoggoth has joined #ruby
<workmad3> daxroc: I'm betting you'll really hate my 'result = true ? true ? true ? true ? true : false : false : false : false'
predator217 has quit [Ping timeout: 240 seconds]
<workmad3> just to be really certain that true is true...
<daxroc> true = false;
<daxroc> just for shits and giggles
<workmad3> daxroc: that's just being silly :P
<typicalbender> some people just like to watch the world burn
shay- has quit [Remote host closed the connection]
<workmad3> daxroc: it's also not gonna work ;)
leesharma has joined #ruby
tagrudev has quit [Quit: Me = Awesome]
<daxroc> Thats a chalange
weszlem has quit []
<typicalbender> $true = false works :D
geekbri_ has joined #ruby
shay- has joined #ruby
<workmad3> >> class TrueClass; def !; true; end; end; !true
<eval-in_> workmad3 => true (https://eval.in/66577)
<typicalbender> class TrueClass
<typicalbender> def to_s
<typicalbender> end
<typicalbender> end
<typicalbender> “false”
achru has quit [Remote host closed the connection]
* daxroc rapidly heading inception levels deep
RaCx has quit [Quit: Computer has gone to sleep.]
achru has joined #ruby
tvw has joined #ruby
wildroman has joined #ruby
CorySimmons has quit [Quit: Leaving.]
jamesaanderson has joined #ruby
wildroman has quit [Read error: Connection reset by peer]
<workmad3> daxroc: this isn't inception... this is 'merely' redefining the rules of normal boolean predicate logic ;)
wildroman has joined #ruby
CorySimmons has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
coca_rails has joined #ruby
_maes_ has joined #ruby
geekbri has quit [Ping timeout: 245 seconds]
jamesaanderson has quit [Client Quit]
DonRichie has joined #ruby
_maes_ has quit [Client Quit]
_maes_ has joined #ruby
dawkirst has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
sailias has quit [Ping timeout: 272 seconds]
achru has quit [Ping timeout: 245 seconds]
chrisbolton has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
thesheff17 has joined #ruby
jetblack has joined #ruby
<typicalbender> class TrueClass
<typicalbender> def ==(obj)
<typicalbender> (obj == false) ? true : super(obj)
<typicalbender> end
<typicalbender> end
<typicalbender> add that to your production system and walk away
predator117 has joined #ruby
CorySimmons has quit [Quit: Leaving.]
CorySimmons has joined #ruby
weszlem has joined #ruby
coderhs has quit [Ping timeout: 240 seconds]
codelette has quit [Remote host closed the connection]
danman has joined #ruby
madb055 has joined #ruby
io_syl has joined #ruby
sailias has joined #ruby
leesharma_ has joined #ruby
jprovazn has quit [Quit: Leaving]
<shevy> lol
<shevy> walk away?
Variantdataaa has quit [Ping timeout: 246 seconds]
ExCa|iBuR is now known as ExCa|Wrk
<shevy> runaway coding!
leesharma has quit [Ping timeout: 252 seconds]
leesharma_ is now known as leesharma
<shevy> daxroc inception was like the real continuation of Matrix I
<xcess_denied> shevy: goodone!!
zipper has quit [Quit: leaving]
fysaen has joined #ruby
zipper has joined #ruby
bluOxigen has quit [Ping timeout: 260 seconds]
notjohn has joined #ruby
tobago has quit [Remote host closed the connection]
Lewix has joined #ruby
CorySimmons has quit [Quit: Leaving.]
Lewix has quit [Changing host]
Lewix has joined #ruby
banisterfiend has joined #ruby
yfeldblum has joined #ruby
leonidlm has quit [Ping timeout: 244 seconds]
CorySimmons has joined #ruby
leesharma has quit [Quit: leesharma]
tharindu has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
tonni has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
leesharma has joined #ruby
fgo has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
tonni has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
deception has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
jaegerpicker has joined #ruby
scarolan has joined #ruby
timonv has quit [Remote host closed the connection]
eyckelbo1m is now known as eyckelboom
cek has joined #ruby
<daxroc> I don't get this it's working fine when x is "string" result = !!(test[:a][:b].include? "str")
mengu has quit []
leesharma has quit [Client Quit]
<daxroc> *when test[:a][:b] = "string"
<cek> How do I specify development versions of gems in Gemfile for development purposes but bundle production versions when deploying?
tharindu has quit [Ping timeout: 244 seconds]
<daxroc> but if you leave test[:a][:b] unset / nil
tonni has quit [Ping timeout: 246 seconds]
RORgasm has joined #ruby
timonv has joined #ruby
timonv has quit [Client Quit]
xk_id has joined #ruby
<daxroc> ah no include
* daxroc hangs head in shame
<cek> bundle config
cek has left #ruby [#ruby]
Solnse has joined #ruby
Elhu has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
lfox has quit [Ping timeout: 264 seconds]
<Solnse> good morning
<havenwood> cek: You mean like groups? Or the flag for skipping non-production groups?
peterdecroos has quit [Ping timeout: 244 seconds]
<havenwood> Solnse: g'morn
<shevy> Solnse are you using ruby?
shvelo has joined #ruby
timonv has joined #ruby
sayan has joined #ruby
tjad has quit [Read error: Connection reset by peer]
DrShoggoth has quit [Remote host closed the connection]
<Solnse> I'm trying to write a method that searches an array of numbers for a missing number. I'm trying to write one that is memory efficient, so I'd like to do a divide and conquer type method. I've looked at .bsearch, but I'm not sure how to use it since it only returns true if the upper half of the array is greater than the value I'm looking for. Is there a better ruby method I should look at?
mklappstuhl has quit [Remote host closed the connection]
acrussell has joined #ruby
<Solnse> shevy: yes :)
xk_id has quit [Ping timeout: 272 seconds]
CorySimmons has quit [Quit: Leaving.]
DrShoggoth has joined #ruby
xk_id has joined #ruby
<havenwood> Solnse: You want like libc’s bsearch(3) or something other than that?
<havenwood> Solnse: Just checking that find-any mode isn't what you're looking for. :P
coderhs has joined #ruby
scarolan has quit [Ping timeout: 240 seconds]
mmitchell has joined #ruby
tharindu has joined #ruby
blaxter has quit [Quit: foo]
hogeo has quit [Remote host closed the connection]
<Solnse> example: array of numbers from 1 - 100, with number 33 missing... I've written a couple using reduce and each (subtracting found values from an expected total value)... I'm thinking an efficient way would be to see if the array length is smaller than the value at that half-way point, which would show that the missing number is below the half-way point... and vice-versa.
hogeo has joined #ruby
jerius has quit [Ping timeout: 245 seconds]
TMM has joined #ruby
<Solnse> so if I determine the missing half is in the lower half of the array, I can trim the array and throw out the upper half... and repeat.
RaCx has joined #ruby
bahar_ has joined #ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
jbpros has quit [Quit: jbpros]
<_br_> yeah some e.g. quicksort implementation
<havenwood> Solnse: how bout subtract the sum of the numbers by 5050?
aryaching has joined #ruby
jerius has joined #ruby
<Solnse> yeah, I did that...
<_br_> Ruby's #sort does Quicksort imo
<Solnse> now I'm trying to do a more memory-efficient method.
<havenwood> or other way around, but i need coffee
<havenwood> Solnse: ah, gotcha
hogeo has quit [Ping timeout: 244 seconds]
serp` has quit [Quit: serp`]
<daxroc> canton7: result = test[:a][:b].to_s.includes? "str"
geekbri_ has quit [Remote host closed the connection]
Clooth has joined #ruby
thelorax123 has quit [Remote host closed the connection]
pwh has quit []
<_br_> Solnse: More memory efficient? Well, then you should stop using Ruby altogether and go back to C level, in my opinion.
geekbri has joined #ruby
sbos99 has joined #ruby
jbpros has joined #ruby
DouweM has joined #ruby
<Solnse> this is what I have so far... the missing_number_fourth method is currently an infinite loop... but is what I was thinking. https://gist.github.com/anonymous/7433648
crus has quit [Read error: Connection reset by peer]
tharindu_ has joined #ruby
thelorax123 has joined #ruby
hiroyuki_ has joined #ruby
mklappstuhl has joined #ruby
narekb has joined #ruby
jbpros has quit [Client Quit]
DrShoggoth has quit [Quit: Leaving]
tharindu has quit [Ping timeout: 246 seconds]
<_br_> the task you have there sounds like different sorting algorithm implementations... http://en.wikipedia.org/wiki/Sorting_algorithm#Memory_usage_patterns_and_index_sorting
<_br_> homework?
Lewix has quit [Remote host closed the connection]
hiroyuki has quit [Ping timeout: 245 seconds]
<_br_> its quite entertaining though to implement different sorting algos using e.g. smulti gem
Lewix has joined #ruby
zarubin has joined #ruby
Bry8Star{T2 has quit [Remote host closed the connection]
Kabaka has quit [Read error: Connection reset by peer]
DanBoy has quit [Read error: Connection reset by peer]
end_guy has quit [Write error: Connection reset by peer]
Boohbah has quit [Write error: Connection reset by peer]
shay- has quit [Remote host closed the connection]
<Solnse> it's a coding question from a recruiter.... trying to get a job :)
<havenwood> >> [*1..32, *34..100].each_with_index.detect { |x, i| x != i.succ }.first
<eval-in_> havenwood => 34 (https://eval.in/66582)
<havenwood> >.>
<Solnse> detect... didn't know about that method, I'll look at it.
<_br_> havenwood: nice :)
kevinykchan has joined #ruby
<_br_> Solnse: I think they expect you to implement some sorting algos.
<Solnse> thanks havenwood. Any ideas on my theory of dividing the array and keeping the half that appears to have a missing number?
CaptainJet has joined #ruby
<DouweM> or use #find rather than #select/#detect, is faster because it stops at 33 :)
<DouweM> Solnse: good idea
<Xeago_> havenwood: [*1..32, *34..100].each_with_index.first {|x, i| x != i.succ }
<Solnse> DouweM: is there a ruby method that would implement this type of search?
<Xeago_> >> [*1..32, *34..100].each_with_index.first {|x, i| x != i.succ }
<eval-in_> Xeago_ => [1, 0] (https://eval.in/66583)
<Xeago_> hmm
<DouweM> Solnse: if you're on Ruby 2, Array#bsearch
<Solnse> yeah but bsearch always discards the lower half of the array
narekb has left #ruby ["Leaving"]
coca_rails has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
<havenwood> DouweM: #detect *is* #find :P
fgo has joined #ruby
<Solnse> #detect is just and alias?
<DouweM> havenwood: ah right, I thought #detect was #select ;)
timonv has joined #ruby
<havenwood> DouweM: yeah, i should just use find to avoid my similar confusion between the two
<DouweM> havenwood: I was misinterpreting the .first at the end
kevinykchan has quit [Client Quit]
Boohbah has joined #ruby
kevinykchan has joined #ruby
<havenwood> DouweM: oh right, yeah the index
<DouweM> yup, got that now
zoee has quit [Quit: This computer has gone to sleep]
<Solnse> my other methods look ok?
RaCx has quit [Quit: Computer has gone to sleep.]
<DouweM> Solnse: fisrt 2 might be too similar
<Solnse> I was thinking that too
<DouweM> including a version like havenwood's would be good
<DouweM> using a binary search algo for #4 is a good idea
<Solnse> but how would I know which side of the array to keep?
<DouweM> Solnse: you're on the right track, you figure it out ;)
<Solnse> ok :)
yfeldblum has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 240 seconds]
<Solnse> I had already given up on bsearch, I'll look at it again.
<DouweM> if you have any practical questions, shoot, but it's your assignment
<havenwood> Solnse: I prefer `1.upto(100) do` to `(1..100).each do`.
<DouweM> <3 ranges
<Solnse> and I'll replace the second one with a detect method.
timonv has quit [Ping timeout: 244 seconds]
<DouweM> but yeah, Fixnum#upto shows you know your shit
zipper has quit [Quit: leaving]
<havenwood> Solnse: `.sort!.reverse!` looked a bit odd, why the bang on sort?
kevinykchan has quit [Ping timeout: 246 seconds]
<Solnse> because it changes the order of the array?
mmitchell has quit [Remote host closed the connection]
<Solnse> if they are out of order
<havenwood> Solnse: but `sort.reverse!`
<havenwood> Solnse: Overall looks good. :)
<DouweM> drop the bangs, you don't want to sort/reverse in place
mmitchell has joined #ruby
<Solnse> I see, so convention is on ly to use the rray one to show the preceeding methods will change the array
<havenwood> Solnse: Line 45 missing a space between params `(0,half)`
kaspergr_ has quit [Ping timeout: 246 seconds]
<DouweM> also, you don't need to slice the array, you can just use the same array over and over but just use different left and right vars (that start off as 0 and array.length)
<Solnse> to use the bang only one in a command line, not on each command that changes it. ?
<havenwood> Solnse: I don't like the newlines after `let` and `describe`.
ExCa|Wrk has quit [Ping timeout: 245 seconds]
<DouweM> Solnse: you know the difference between the versions with a bang and those without?
<havenwood> err, before/after*
<Solnse> yes... one creates a copy of the object, the bang version changes the original object
<shevy> the bang methods have more sex appeal than the others
<DouweM> havenwood: that's convention with RSpec
<havenwood> DouweM: really? then nvm...
<shevy> the more ! the stronger the bang of the method
* havenwood takes his Minitest ball and goes home.
TMM has quit [Quit: Ex-Chat]
<shevy> let your miniballs stay here!
<yjmsf20> hey guys. I am using a gem that returns a Hashie::Mash. How can I get only the mash given some criteria?
<DouweM> shevy: lol
RaCx has joined #ruby
<havenwood> Solnse: nvm the newlines... i disagree but follow convention!
tonni has joined #ruby
<shevy> what or where from does a Hashie come? that is a gem project?
<yjmsf20> yes, it's a gem that extends Hash
<shevy> hmm https://rubygems.org/gems/hashie "Hashie is a small collection of tools that make hashes more powerful. Currently includes Mash (Mocking Hash) and Dash (Discrete Hash)."
<Solnse> havenwood: so convention states that I should have a newline after the let object?
<havenwood> when in RSpec do as the RSpeccers... What is one called, RSpecite? RSpecaneers?
<Solnse> rspecophiles
<DouweM> Solnse: what specific instance are you asking about?
<shevy> yjmsf20, the docu seems to be at http://rubydoc.info/gems/hashie/2.0.5/Hashie/Mash
<havenwood> Solnse: Nevermind, I just didn't like what from Minitest looked like extra newlines in your tests. But if it is the RSpec way, so be it.
ahawkins has quit [Quit: leaving]
<havenwood> DouweM: but it is sooo ugly....!?!
mmitchell has quit [Ping timeout: 246 seconds]
<shevy> I dont see a method that allows you to filter in-place on it. you may have to apply a filter by yourself after it gave you the data
<Solnse> havenwood: yeah rspec. thanks. I try to keep my code looking clean, and sometimes I use blank lines for readability
<DouweM> again, I may be talking about something else, what specific instance are you referring to?
soukihei has joined #ruby
<havenwood> DouweM: Like `describe 'Missing Number' do` being followed by an entirely blank line.
alekst has joined #ruby
<DouweM> havenwood: yeah, that's definitely convention
<DouweM> havenwood: I don't find it ugly anymore, but that's because I'm used to it
Shidash has quit [Ping timeout: 240 seconds]
<Solnse> let me refactor my code and look at bsearch again, I'll ask you fine coders for a review again before I submit it :)
<DouweM> also, I like blank lines
thesheff17 has quit [Ping timeout: 246 seconds]
<havenwood> I find them upsetting. Think of the children!!
lukec has quit [Quit: lukec]
<havenwood> Interesting how different yet the same Minitest and RSpec can look. Mmm, bacon.
<DouweM> Solnse: also, if these are your own test cases, use [*(1..32), *(33..100)] instead of writing the whole arrays
bluOxigen has joined #ruby
baroquebobcat has joined #ruby
jjbohn has quit [Quit: Leaving...]
yjmsf20 has quit [Quit: leaving]
psyl0n has joined #ruby
hogeo has joined #ruby
<havenwood> ^ totally agreed, more concise and much more clear to the reader as well (as long as the spat doesn't explode their head as well as the range).
wallerdev has joined #ruby
<havenwood> i like that idiom
timonv has joined #ruby
hogeo has quit [Read error: Connection reset by peer]
hogeo has joined #ruby
newbiehacker has joined #ruby
newbiehacker_ has joined #ruby
<Solnse> DouweM: really?
<Solnse> ok
Kricir has quit [Read error: Connection reset by peer]
Kabaka has joined #ruby
<DouweM> and use 34..100, obviously
<Solnse> I guess that would look cleaner.... so how do I let the edge cases? missing 100, and missing none... well I guess missing none is easy...
petey has joined #ruby
<havenwood> [*1..99]
mmitchell has joined #ruby
<Solnse> yeah ok.
<Solnse> made sense as I was asking it :)
Kricir has joined #ruby
<DouweM> :)
<havenwood> or [*1...100] # not as good
<DouweM> you understand ranges and the splat?
<Solnse> splat?
<DouweM> yeah ... is only useful with array lengths and indexes
<DouweM> * <- splat
<havenwood> * <- splat
<DouweM> :D
<Solnse> I read something earlier about that being a multiplier on ranges?
<Solnse> resulting in 10000 or something
<Solnse> so, no :)
<Solnse> I don't understand splat with ranges yet.
<havenwood> Solnse: E.g., [*'a'..'z'] #=> ["a", "b", "c"...]
nobitanobi has joined #ruby
<nobitanobi> morning
jjbohn has joined #ruby
<havenwood> nobitanobi: g'morn
<Solnse> doesn't 'a'..'z' do the same thing?
jjbohn has quit [Read error: Connection reset by peer]
jjbohn_ has joined #ruby
<Solnse> why would I need the splat?
<havenwood> Solnse: nope: ['a'..'z'].size #=> 1
srajan has joined #ruby
srajan has quit [Max SendQ exceeded]
<havenwood> >> [*'A'..'z'].size
<eval-in_> havenwood => 58 (https://eval.in/66596)
ckinni has joined #ruby
<Solnse> oooo, that's why some of my results were the actual (1..100) range and no an array...
hogeo has quit [Ping timeout: 245 seconds]
jbpros has joined #ruby
srajan has joined #ruby
<DouweM> "a".."z" is one single Range object that stores the start and end values. the * turns it into an array by iterating over all values from start to end
srajan has quit [Max SendQ exceeded]
<havenwood> >> [*?A..?z][29]
<eval-in_> havenwood => "^" (https://eval.in/66597)
<DouweM> huh
<havenwood> :P
srajan has joined #ruby
<workmad3> DouweM: "A".."z" includes the non-alpha ascii characters between "Z" and 'a'
<DouweM> yeah, I got that
srajan has quit [Max SendQ exceeded]
<DouweM> I was surprised by the ?A syntax
<workmad3> oh, the ?A for a character literal?
<havenwood> DouweM: yeah, char literal instead of string literal
<DouweM> yup
<DouweM> never seen it before
<workmad3> >> ?F?o?o
<eval-in_> workmad3 => /tmp/execpad-edc896d3edcb/source-edc896d3edcb:2: syntax error, unexpected tIDENTIFIER, expecting keyword_do or '{' or '(' (https://eval.in/66598)
<workmad3> :)
aparticka has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
sandeepk has joined #ruby
<workmad3> >> ?F + ?o + ?o
<eval-in_> workmad3 => "Foo" (https://eval.in/66599)
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ephemerian has left #ruby [#ruby]
<workmad3> the don't concat like "F" "o" "o" would I guess :)
lmickh has joined #ruby
<havenwood> >> ?p<<?i<<?e
<eval-in_> havenwood => "pie" (https://eval.in/66600)
yfeldblum has joined #ruby
srajan has joined #ruby
<workmad3> >> "p" "i" "e"
<eval-in_> workmad3 => "pie" (https://eval.in/66601)
srajan has quit [Max SendQ exceeded]
Soda has quit [Remote host closed the connection]
bahar has quit [Remote host closed the connection]
bahar_ is now known as bahar
MrPot4to has joined #ruby
mrpot4to_ has joined #ruby
petey has quit []
bahar has quit [Changing host]
bahar has joined #ruby
whunt has joined #ruby
yjmsf20 has joined #ruby
mikepack has joined #ruby
notjohn has quit [Quit: notjohn]
einarj has joined #ruby
kindjal has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
styped has joined #ruby
nobitanobi has quit [Read error: Connection reset by peer]
noname001__ has quit [Ping timeout: 244 seconds]
<havenwood> >> [*?X...?z][nil.object_id.upto(Float::NAN).take(true.object_id)[false.object_id]]
<eval-in_> havenwood => "\\" (https://eval.in/66602)
tonni has quit [Remote host closed the connection]
tonni has joined #ruby
<havenwood> ruby_version = '2.0.0' if _ == "\\"
hiroyuki_ has quit [Remote host closed the connection]
mklappstuhl has quit [Remote host closed the connection]
gianlucadv has quit [Ping timeout: 260 seconds]
mklappstuhl has joined #ruby
hiroyuki has joined #ruby
<havenwood> i need to go through all the files and do ^ conversions, job security.....
<DouweM> nice
mklappstuhl has quit [Read error: Connection reset by peer]
kindjal has joined #ruby
<havenwood> unfactoring
mklappstuhl has joined #ruby
einarj has quit [Ping timeout: 272 seconds]
<havenwood> ooh, speaking of, i didn't realize Tenderlove did an unfactoring talk at RubyKaigi 2013?!: http://vimeo.com/69161543
<havenwood> i wonder if he speaks japanese the whole time?
dagobah has quit [Remote host closed the connection]
styped has quit [Quit: Textual IRC Client: www.textualapp.com]
<DouweM> will check that out, thanks
alekst has quit [Quit: Computer has gone to sleep.]
lfox has joined #ruby
tonni has quit [Ping timeout: 272 seconds]
thesheff17 has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
xtristan has quit [Ping timeout: 252 seconds]
bluenemo has quit [Remote host closed the connection]
dangerousdave has joined #ruby
yjmsf20 has quit [Quit: leaving]
mklappstuhl has quit [Ping timeout: 264 seconds]
varfoo has quit [Quit: WeeChat 0.4.0]
io_syl has quit []
ssvo has joined #ruby
ce_afk is now known as cescalante
sepp2k has quit [Quit: Konversation terminated!]
yjmsf20 has joined #ruby
tonni has joined #ruby
_Andres has joined #ruby
freezey has joined #ruby
mary5030_ has joined #ruby
mary5030 has quit [Remote host closed the connection]
d45h has quit []
kaspergrubbe has joined #ruby
tylersmith has quit [Remote host closed the connection]
Clooth has quit [Quit: Leaving...]
aspiers has joined #ruby
yjmsf20 has quit [Client Quit]
<DouweM> I'm incredibly impressed tenderlove learned Japanese just to read a Ruby documentation
sandeepk has quit [Read error: Connection reset by peer]
sandeepk has joined #ruby
sandeepk has quit [Read error: Connection reset by peer]
sandeepk1 has joined #ruby
yjmsf20 has joined #ruby
nomenkun has quit [Read error: Operation timed out]
_Andres has quit [Read error: Connection reset by peer]
andikr has quit [Read error: Connection reset by peer]
marr has joined #ruby
yjmsf20_ has joined #ruby
jonathanwallace has quit [Ping timeout: 252 seconds]
havenwood has quit []
sambao21 has joined #ruby
yjmsf20_ has quit [Client Quit]
mmitchell has quit [Remote host closed the connection]
mmitchell has joined #ruby
fgo has joined #ruby
apeiros has quit [Remote host closed the connection]
lukec has joined #ruby
graydot has joined #ruby
yjmsf20 has quit [Client Quit]
obs has quit [Remote host closed the connection]
Guest86911 has joined #ruby
alup has quit [Quit: Leaving]
notjohn has joined #ruby
dhruvasagar has joined #ruby
Guest86911 has quit [Read error: Connection reset by peer]
<shevy> wat
<shevy> you mean those SYMBOLS??
bronson_ has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
Dave has joined #ruby
<shevy> btw is there video with matz speaking?
<shevy> from the conference
mmitchell has quit [Ping timeout: 245 seconds]
pel_daniel has joined #ruby
Dave is now known as Guest25236
timonv has quit [Remote host closed the connection]
<shevy> ohhh
<shevy> it was in may
MrZYX|off is now known as MrZYX
timonv has joined #ruby
maletor has joined #ruby
aganov has quit [Remote host closed the connection]
pierre1 has joined #ruby
DanKnox_away is now known as DanKnox
Voodoofish430 has joined #ruby
RichardBaker has joined #ruby
weszlem has quit []
daxroc has quit [Quit: Leaving.]
<shevy> ok I admit it...
<shevy> I understand less when matz speaks japanese than when he does speak english
ewnd9 has quit [Ping timeout: 272 seconds]
elcontrastador has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jlebrech has quit [Quit: Konversation terminated!]
freezey has quit [Remote host closed the connection]
<Solnse> is there something wrong with my lets? Now I keep getting an error that I can't call each_with_index on Fixnum, but if I remove .first from my method it returns the whole array. https://gist.github.com/Solnse/7434931
zeade has joined #ruby
freezey has joined #ruby
timonv has quit [Ping timeout: 252 seconds]
<shevy> lets in ruby!
<shevy> an unbeliever!!!
Uranio has joined #ruby
<shevy> burn the Solnse witcher!
<Solnse> lol
<shevy> well you must use a fixnum somewhere there
<Solnse> it's an array of numbers. of course.
theoretick has joined #ruby
kevinykchan has joined #ruby
postmodern has joined #ruby
xcfox has joined #ruby
freezey has quit [Ping timeout: 246 seconds]
i_s has joined #ruby
VTLob has joined #ruby
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aspires has joined #ruby
sandeepk1 has left #ruby [#ruby]
luke_ has joined #ruby
luke_ has quit [Client Quit]
sepp2k has joined #ruby
thesheff17_ has joined #ruby
<shevy> well
<shevy> I am not sure what your code is but let's try to be logical
<shevy> you have this
<shevy> params.each_with_index.first do |index, number|
<shevy> and .first returns one item, a Fixnum or?
<shevy> you then assign two variables on that
<shevy> ah
<shevy> with the first being the index
<shevy> and the second the number
<Jadenn> someone help me... im having php withdrawls >.<
thesheff17 has quit [Disconnected by services]
thesheff17_ is now known as thesheff17
<_br_> Jadenn: lol :)
<shevy> actually, does .first really work when combined with .each_with_index Solnse ?
<shevy> Jadenn really? you miss the beautiful php syntax? the high degree of consistency?
<Jadenn> i am well aware of the fallacies of php, which is why i moved to ruby.
<Jadenn> it's just, ruby is darn ugly >.<
<shevy> Jadenn and php is prettier?
<Jadenn> very much so
<shevy> Jadenn can you give an example
<shevy> something somewhat simple php does
<Jadenn> alright, well ive ported my parts of my php app to ruby, let's compare:
barratt has quit [Ping timeout: 252 seconds]
<Jadenn> here is my php router: http://puu.sh/5gkO1.png
<Jadenn> here is my ruby router: http://puu.sh/5gkP0.png
<shevy> Solnse, http://ruby-doc.org/core-2.0.0/Enumerable.html#method-i-first is odd, it seems to have only a .first method but no [] method
achru has joined #ruby
duggiefresh has quit [Remote host closed the connection]
<shevy> ewww you use erb
duggiefresh has joined #ruby
echevemaster has joined #ruby
<shevy> I am also unsure how you can compare those two pictures in any way? your php file has a bunch of requires, your ruby file does not
<Jadenn> yes, the person that wrote that article is who convinced me to switch to ruby.
echevemaster has quit [Changing host]
echevemaster has joined #ruby
<Jadenn> as i said i am VERY aware if its fallacies
vx9r has quit [Read error: Operation timed out]
<shevy> well
jonathanwallace has joined #ruby
<shevy> if you look at those two pics
<shevy> then yeah, the php one wins hands down
<shevy> whoever wrote that ruby code must be a noob
<Jadenn> but it's what i know. and i've never had a problem with its inconsistency.
aspiers has quit [Ping timeout: 246 seconds]
_Andres has joined #ruby
<shevy> what is ini_set()? is that a custom function or standard part of php
Tearan has joined #ruby
<Jadenn> standard part
<Jadenn> its basically putting my app into development mode
<swarmy> shevy, erb is bad?
mrfoto has joined #ruby
<swarmy> i use erb, but i'm a noob. can you let me know whats bad about it?
iliketurtles has joined #ruby
<Jadenn> it was nice, i didnt have to restart my application every five seconds with php to get changes
<mrfoto> swarmy: nothing
<shevy> swarmy just look at the syntax, it totally ruins ruby
nobitanobi has joined #ruby
<Jadenn> i've made a terrible mistake!
<_br_> swarmy: nothing, haml or slim looks arguably nicer
benlieb has joined #ruby
<Tearan> If I have an object that has an attribute that is a string… and I want that attribute as a variable how do I do that
Jadenn has left #ruby ["Textual IRC Client: www.textualapp.com"]
thelorax123 has quit [Remote host closed the connection]
<shevy> <%= PRODUCT[:name] %> -- <%= PRODUCT[:cost] %>
<swarmy> ASP! ;P
<shevy> Tearan what do you mean with "attribute"?
<shevy> an @ivar?
<mrfoto> shevy: all caps are reserved for constants, your vars should be lowercase
<Tearan> my object has an @url that is "foo"
duggiefresh has quit [Ping timeout: 272 seconds]
<shevy> mrfoto what do you mean with my vars, the above isn't my code
thesheff17 has quit [Ping timeout: 264 seconds]
<Tearan> I want to turn foo into a string
thelorax123 has joined #ruby
<Tearan> that is not an object
<shevy> isn't "foo" already a string?
<Tearan> well….
<shevy> a string that is not an object??
<Tearan> *laughs*
<Tearan> Ok, that was a bad way top phrase it
<Tearan> I want to be able to return it as a variable….
Hanmac1 has joined #ruby
tharindu_ has quit [Quit: Leaving...]
<Tearan> not as an oboject with an attribute that is a string
<shevy> you mean you want to return the value of the @ivar in question, and not the object. well that is simple, you can use a method, right? like: def foo; @url; end
mary5030_ has quit [Remote host closed the connection]
shredding has quit [Quit: shredding]
<shevy> the object returned from within a class should be: def foo; self; end instead
<shevy> attr_reader :url would automatically do this: def url; @url; end
<Tearan> Well, I need to instantiate a class…
mary5030 has joined #ruby
<shevy> sure, because then you have an object
hogeo has joined #ruby
<Tearan> *scratches head
<shevy> when you do this: cat = Cat.new
deception has quit [Quit: Goodbye]
<Tearan> Hmm…. gist… gist would help
<shevy> you have a cat object that got its initial data from the class Cat blueprint
olivier_bK has quit [Ping timeout: 240 seconds]
<shevy> and you want to find out what the colour of the fur is, then your class Cat would have a method
<shevy> def colour_of_fur; @colour; end
<shevy> and in subsequent code you can bind a new variable to that: what_is_the_colour = cat.colour_of_fur
<shevy> so now you have "an attribute as a variable", to use your words :P
krawchyk has quit []
mrpot4to_ has quit [Remote host closed the connection]
MrPot4to has quit [Read error: Connection reset by peer]
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
thesheff17 has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
hogeo has quit [Ping timeout: 245 seconds]
zz_tsykoduk is now known as tsykoduk
pothibo has joined #ruby
aces1up has joined #ruby
<aces1up> hey i have a frustrating encoding error here : http://codepad.org/nwgOZzTa
burlyscudd has joined #ruby
<aces1up> can anyone assist please thanks.
burlyscudd has quit [Client Quit]
_HolyCow has joined #ruby
<Tearan> Hmm… I can get that to work in the straight forward case….
<Tearan> I'm just not sure what I am doing wrong in this case
apeiros has joined #ruby
shaunbaker has quit [Remote host closed the connection]
<bean> aces1up: could try using force_encoding on the string
<shevy> Tearan I dont know yet either, but what I notice is that you do not indent consistently
<shevy> def initialize is too much on the right
shaunbaker has joined #ruby
<shevy> Tearan in your code, you are away that you use puts, and not return?
<xcess_denied> Tearan: where is the "thing" being called from ?
<shevy> so when you use puts, you dont return @url
<Tearan> Everything lines up in my editor
kevind has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
Diranged has quit [Quit: Leaving.]
typicalbender has quit [Read error: Connection reset by peer]
<shevy> Tearan that is good to know but look at your own gist! :-)
kevind has quit [Client Quit]
<xcess_denied> Tearan: maybe instead of "thing" it should be "myurl.gimme"
<shevy> yeah
digital-ghost has quit [Remote host closed the connection]
<shevy> and in def gimme, you must replace puts with return
<shevy> and last, change @url = thing to @url = myurl.gimme
nvrch has quit [Quit: nvrch]
<shevy> your code is also inconsitent down there though, look:
<shevy> @url = thing
<Tearan> That has nothing to do with the code in question
<shevy> puts url
aapzak has quit [Ping timeout: 272 seconds]
Mars___ has joined #ruby
aspires has quit [Quit: Adios]
aapzak has joined #ruby
aspires has joined #ruby
timonv has joined #ruby
<shevy> you can modify gists
aagdbl has joined #ruby
shvelo has quit [Ping timeout: 272 seconds]
<Tearan> If you read the code. I am instantiating the class, then asserting that the string I instantiated with is returned
shaunbaker has quit [Ping timeout: 252 seconds]
<xcess_denied> Tearan: yes but the @url =thing will never pass
<xcess_denied> as thing is nothing
<xcess_denied> it should be myurl.gimme (The instance of your class)
<bean> and setting it to myurl.gimme won't work either
Targen has quit [Ping timeout: 246 seconds]
<bean> since that just does a puts
<bean> instead of returning the string
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
saarinen has joined #ruby
<xcess_denied> bean: yeah a return would do the job
<Tearan> Actually, it does nothing, because it's using test/unit
timonv has quit [Remote host closed the connection]
duggiefresh has joined #ruby
yfeldblu_ has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
kevinykchan has quit [Quit: Computer has gone to sleep.]
jaegerpicker has quit [Quit: jaegerpicker]
<xcess_denied> Tearan: Am confused, test/unit doesn't have anything to do with this
<bean> thats how you'd do it
<xcess_denied> bean: Bingo!!
<shevy> there you go!
<shevy> well structured, consistent code
<Tearan> bean: Thank you
withnale_ has joined #ruby
yfeldbl__ has joined #ruby
<bean> p simple ruby.
<shevy> I didn't even know mr. bean was using ruby
<bean> haha
<bean> it's more of an Ender's Shadow reference than anything
zigomir has quit [Quit: zigomir]
blueOxigen has joined #ruby
withnale has quit [Ping timeout: 244 seconds]
sandeepk has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
thesheff17 has quit [Ping timeout: 240 seconds]
<bean> I wish I got to write that simple of code allllll day
jlast has quit [Remote host closed the connection]
<bean> instead I'm Ops / DevOps / bitch.
<shevy> yeah
jlast has joined #ruby
basmoura has joined #ruby
<shevy> I am rewriting a project, I hate doing that, I try to do only little by little every day so as to not burn out
MrZYX is now known as MrZYX|off
weszlem has joined #ruby
saarinen has quit [Ping timeout: 245 seconds]
Astralum has quit [Ping timeout: 260 seconds]
bluOxigen has quit [Ping timeout: 240 seconds]
xcfox has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
bluOxigen has joined #ruby
coldmethod has joined #ruby
zxq9 has joined #ruby
saarinen has joined #ruby
MrZYX|off is now known as MrZYX
blueOxigen has quit [Ping timeout: 240 seconds]
notjohn has quit [Ping timeout: 240 seconds]
mmitchell has joined #ruby
sandeepk has quit [Read error: Connection reset by peer]
sandeepk has joined #ruby
ssvo has quit [Quit: Lost terminal]
kevinykchan has joined #ruby
jlast has quit [Ping timeout: 272 seconds]
jbpros has quit [Quit: jbpros]
Mars___ has quit [Remote host closed the connection]
<bean> thats valid shevy.
aapzak has quit [Ping timeout: 240 seconds]
Mars___ has joined #ruby
Mars___ has quit [Read error: Connection reset by peer]
colonolGron has joined #ruby
mrfoto has quit [Remote host closed the connection]
Mars___ has joined #ruby
<jblack> Thanks bean. I needed the laugh. =)
aagdbl1 has joined #ruby
Xeago_ has quit [Ping timeout: 244 seconds]
<bean> lol
<bean> npnp
breakingthings has quit [Ping timeout: 245 seconds]
aagdbl has quit [Quit: Leaving]
notjohn has joined #ruby
aapzak has joined #ruby
aagdbl1 is now known as aagdbl
aagdbl has quit [Client Quit]
nanoyak has joined #ruby
Violentr has quit [Quit: jIRCii - http://www.oldschoolirc.com]
ghr has quit [Quit: Computer has gone to sleep.]
sandeepk has left #ruby [#ruby]
wald0 has joined #ruby
<wald0> im just trying something in pry, result is successful, how i can save (dump) my "history" session in some file ?
breakingthings has joined #ruby
banghouse2 has joined #ruby
kindjal has quit [Quit: Computer has gone to sleep.]
<bean> wald0: I think it should write history to ~/.pry_history
_Andres has quit [Read error: Connection reset by peer]
pothibo has quit [Quit: pothibo]
<MrZYX> maybe you can also do something with cat --in
rrichardsr3 has joined #ruby
tylersmith has joined #ruby
Al__ has quit [Quit: Al__]
kenneth has quit [Quit: kenneth]
mrfoto has joined #ruby
Tuxist has joined #ruby
io_syl has joined #ruby
<MrZYX> hmm, actually save-file --in --to "foo.rb"
Sammael has joined #ruby
<wald0> mmmh, it doesn't include all my history, i wonder why..
parduse has quit [Read error: Connection reset by peer]
pu22l3r has joined #ruby
wmoxam has quit [Ping timeout: 264 seconds]
<MrZYX> help save-file
pu22l3r has quit [Read error: Connection reset by peer]
freezey has joined #ruby
pu22l3r has joined #ruby
lfox has quit [Quit: ZZZzzz…]
aspires has quit [Quit: sudo making a sandwich]
typicalbender has joined #ruby
jamblack has quit [Quit: jamblack]
notjohn has quit [Quit: notjohn]
Mars___ has quit [Remote host closed the connection]
OdNairy has joined #ruby
Mars___ has joined #ruby
hogeo has joined #ruby
Tearan has quit [Quit: Sleepy Badger....]
mrfoto has quit [Read error: Connection reset by peer]
aspires has joined #ruby
yfeldbl__ has quit [Remote host closed the connection]
mrfoto_ has joined #ruby
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
geekbri has quit []
jlast has joined #ruby
Mars___ has quit [Ping timeout: 240 seconds]
krawchyk has joined #ruby
mary5030 has joined #ruby
jbpros has joined #ruby
aces1up has quit []
<Solnse> I'm using ruby 2.0.0p247 but I keep getting undefined method `bsearch' for #<Array:0x0000000200fee0> I can't find any problems... any ideas?
simoz has joined #ruby
scarolan has joined #ruby
brianpWins has quit [Quit: brianpWins]
jaegerpicker has joined #ruby
iamjarvo has joined #ruby
<MrZYX> >> [1, 2].bsearch
<eval-in_> MrZYX => #<Enumerator: [1, 2]:bsearch> (https://eval.in/66619)
<apeiros> Solnse: two tests - a) output RUBY_VERSION in that script
<apeiros> b) do Object.instance_method(:class).bind(receiver).call
<Solnse> ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-linux]
<apeiros> where `receiver` is your array
<apeiros> Solnse: how did you generate that output?
<apeiros> (because that's not RUBY_VERSION)
<Solnse> ruby -v from the shell I am running the spec file from.
<apeiros> yes. NOT what I told you.
<apeiros> I told you specifically to print RUBY_VERSION *from your script*.
[Neurotic] has quit [Quit: Connection closed for inactivity]
rrichardsr3 has quit [Ping timeout: 264 seconds]
<Solnse> I don't know how to do it in the spec test.
dhruvasagar has quit [Read error: Operation timed out]
<MrZYX> just puts it
<apeiros> how about `puts RUBY_VERSION`
hamed_r has quit [Quit: Ex-Chat]
<Solnse> ok, global constant, I see.
aspires has quit [Quit: sudo making a sandwich]
yfeldblum has joined #ruby
<apeiros> s/global/
<apeiros> a constant. yes. as all variables with a capital first letter
<Solnse> yeah, it's using 1.9.3
Advocation has quit [Quit: Advocation]
<apeiros> Solnse: and for future reference - if you can't do what the helping person asks you to, then DON'T just do whatever the fuck else.
<apeiros> because ^
jamblack has joined #ruby
carraroj has joined #ruby
<apeiros> in this case you already fucked up the analysis by that.
blackmesa has joined #ruby
<Solnse> but I did: rvm use 2.0 and I don't understand why it would use a different version.
<apeiros> fine and dandy
<MrZYX> what command do you use to run your tests?
<apeiros> doesn't change a bit about what I said
Mars___ has joined #ruby
<apeiros> that's precisely why I asked you to output it from the script, to ensure that you're using what you think you're using.
<Solnse> MrZYX: rspec spec/blah.rb
<MrZYX> so what's which rspec giving?
DeanH has joined #ruby
<Solnse> apeiros: thank you, I never encountered that before.
DeanH has quit [Max SendQ exceeded]
<Solnse> MrZYX: I don't understand your question.
<MrZYX> `which rspec`
<MrZYX> what's the output if you run the command
iamjarvo has quit [Ping timeout: 272 seconds]
<Solnse> rspec core is 2.14.6 according to the output from bundle install
<MrZYX> you're again not doing what you're told
banjara has joined #ruby
<Solnse> chad@zen:~/repos/cybercoders$ which rspec
<Solnse> /home/chad/.rvm/gems/ruby-2.0.0-p247/bin/rspec
<MrZYX> hm
<MrZYX> interesting
wmoxam has joined #ruby
wildroman has quit [Remote host closed the connection]
khushildep has quit [Ping timeout: 264 seconds]
<MrZYX> and you run the rspec spec/blah.rb in the exact _same_ shell
<MrZYX> ?
<Solnse> yes
jblack has quit [Quit: Lost terminal]
<Solnse> only have one open
<apeiros> `cat /home/chad/.rvm/gems/ruby-2.0.0-p247/bin/rspec`
havenwood has joined #ruby
<apeiros> would be very odd, but who knows, maybe it's effed up
<MrZYX> head -1 should be enough
Astralum has joined #ruby
freezey has quit [Remote host closed the connection]
aspires has joined #ruby
phansch has joined #ruby
freezey has joined #ruby
notjohn has joined #ruby
<MrZYX> hm
<MrZYX> please gist the output of rvm current, rvm info and gem env
thesheff17 has joined #ruby
aapzak has quit [Ping timeout: 246 seconds]
freezey_ has joined #ruby
Rollabunna has joined #ruby
freezey has quit [Read error: Connection reset by peer]
camilasan has quit [Remote host closed the connection]
<MrZYX> hm, that is odd
werdnativ has joined #ruby
hogeo has quit [Ping timeout: 245 seconds]
camilasan has joined #ruby
<MrZYX> so we have to trace through what the shebang invokes
<MrZYX> which ruby_executable_hooks
vpretzel has joined #ruby
aapzak has joined #ruby
lfox has joined #ruby
kirun has joined #ruby
mrfoto has joined #ruby
<Solnse> /home/chad/.rvm/gems/ruby-2.0.0-p247/bin/ruby_executable_hooks
mrfoto has quit [Client Quit]
hogeo has joined #ruby
Hanmac1 has quit [Ping timeout: 246 seconds]
<MrZYX> head -1 /home/chad/.rvm/gems/ruby-2.0.0-p247/bin/ruby_executable_hooks
dnyy has joined #ruby
nfk has quit [Quit: yawn]
<Solnse> #!/usr/bin/env ruby
<MrZYX> what does `/usr/bin/env ruby -v` say?
tharindu has joined #ruby
<Solnse> ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-linux]
Mars___ has quit [Remote host closed the connection]
Mars___ has joined #ruby
camilasan has quit [Ping timeout: 248 seconds]
jbpros has quit [Quit: jbpros]
mrfoto_ has quit [Ping timeout: 246 seconds]
ukd1 has joined #ruby
<MrZYX> hm, does rspec invoke itself again or something or what?
<Solnse> I don't know why, but the output from RUBY_VERSION in the rspec test now shows 2.0.0
<Solnse> only commands I executed were what you asked me to
bricker`away is now known as bricker
<MrZYX> and you really only ever head one terminal window open? silly
<Solnse> yeah
vince_prignano has quit []
hogeo has quit [Ping timeout: 272 seconds]
<Solnse> I use terminator and divide it up when I need to, but today it's only 1 so far.
<MrZYX> maybe do a echo "2.0.0" > .ruby-version in your project directory
<MrZYX> that'll make sure whenever you cd into it, ruby 2.0 will be activated by rvm
Kamuela has joined #ruby
tharindu has quit [Ping timeout: 240 seconds]
Notte has joined #ruby
Mars___ has quit [Ping timeout: 240 seconds]
bricker has quit [Quit: leaving]
pkondzior___ has quit [Quit: Connection closed for inactivity]
<Kamuela> What are some other notable applications of Ruby a la Rails?
<Solnse> thanks, done
bricker has joined #ruby
_Andres has joined #ruby
<shevy> Kamuela rails is huge
<shevy> you wont find many other projects able to relate to such a huge project
Hanmac has joined #ruby
<banisterfiend> Kamuela github
wildroman has joined #ruby
wildroman has quit [Remote host closed the connection]
wildroman has joined #ruby
parduse has joined #ruby
aapzak has quit [Read error: No route to host]
Diranged has joined #ruby
Astralum has quit [Ping timeout: 272 seconds]
sepp2k has quit [Ping timeout: 240 seconds]
Astral_ has joined #ruby
MrThePlague has quit [Ping timeout: 245 seconds]
pu22l3r_ has joined #ruby
jhulten has joined #ruby
GrantKH has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
jhulten has quit [Remote host closed the connection]
pu22l3r__ has joined #ruby
pu22l3r_ has quit [Read error: Connection reset by peer]
benzrf has joined #ruby
<benzrf> so what is a module anyway and why is Class a subclass
havenwood has quit [Remote host closed the connection]
kindjal has joined #ruby
aapzak has joined #ruby
pu22l3r has quit [Ping timeout: 268 seconds]
jhulten has joined #ruby
pu22l3r__ has quit [Remote host closed the connection]
Targen has joined #ruby
<Hanmac> benzrf: modules can be namespaces, or holder for methods and constants ...
havenwood has joined #ruby
xerxas has quit [Ping timeout: 245 seconds]
kaspergrubbe has quit [Ping timeout: 252 seconds]
<Hanmac> modules can be your best friend ... or your worst enemy ;DP
pu22l3r has joined #ruby
Davey has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Davey has joined #ruby
xk_id has quit [Quit:
jprovazn has joined #ruby
parduse has quit [Read error: Connection reset by peer]
aryaching has quit [Ping timeout: 252 seconds]
ziyadb has quit [Ping timeout: 245 seconds]
Diranged has left #ruby [#ruby]
rdalin has joined #ruby
<shevy> benzrf yeah a module is basically a crippled class
ziyadb has joined #ruby
xerxas has joined #ruby
<shevy> benzrf you can use classes like modules for namespace, apeiros is doing that
sambao21 has quit [Quit: Computer has gone to sleep.]
<shevy> modules can not be instantiated :(
jhulten has quit [Remote host closed the connection]
<benzrf> wait
<Kamuela> When things get chained like Hello::What::Is::This, what is going on?
<benzrf> so what does a module have that a class inherits
<shevy> and classes don't allow behaviour mixin except for subclassing
<shevy> Kamuela you just put something into 3 outer containers there
<shevy> one way could be: module Hello; module What; module Is; module This
aspires has quit [Quit: sudo making a sandwich]
<shevy> but just from looking at that alone you can not know what is a class and what is a module
barratt has joined #ruby
tsykoduk is now known as zz_tsykoduk
colonolGron has quit [Ping timeout: 272 seconds]
simoz has quit [Ping timeout: 246 seconds]
barratt has quit [Client Quit]
sambao21 has joined #ruby
dkamioka has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
alekst has joined #ruby
<Hanmac> benzrf: you cant instance modules, and you cant include classes
digital-ghost has joined #ruby
Tuxist has quit [Read error: Connection reset by peer]
xcess_denied has quit [Quit: Linkinus - http://linkinus.com]
<shevy> :(
<shevy> benzrf when you create a new language, consolidate one only one way and allow trait sharing
<shevy> *on only
aspiers has joined #ruby
<benzrf> personally i enjoy python's semantic
<benzrf> s
polaco is now known as polaco_zZz
<shevy> and also
<benzrf> namely, there are only vars & attrs, not ivars, global vars, class vars, methods, and constants
Targen_ has joined #ruby
<shevy> when you create a language, don't settle for explicit self
alvaro_o has joined #ruby
timonv has joined #ruby
<benzrf> python sort of has global vars, but they're just regular ones that are scoped to the file
<shevy> class vars are useless
Targen has quit [Ping timeout: 252 seconds]
agent_white has joined #ruby
<benzrf> shevy: my ideal language uses Io's variable semantics
MrThePlague has joined #ruby
<benzrf> python is a close second though
sepp2k has joined #ruby
Mars___ has joined #ruby
benzrf has quit [Read error: Connection reset by peer]
brianpWins has joined #ruby
<apeiros> benzrf: if you ignore globals and class-vars (since IMO you shouldn't use either), you have in ruby: lexical/short-lived variables (local), owned variables (ivars belong to a single object) and namespaced variables (constants)
danguita has quit [Ping timeout: 244 seconds]
<shevy> he is gone!
<apeiros> blerp
<Hanmac> you scared him ;P
mudmaste_ has quit [Quit: Leaving...]
brianpWins has quit [Remote host closed the connection]
mudmaster has joined #ruby
benzrf has joined #ruby
<benzrf> argh
pierre1 has quit [Quit: Leaving]
<benzrf> my stupid laptop
<benzrf> whatd i miss
<apeiros> benzrf: if you ignore globals and class-vars (since IMO you shouldn't use either), you have in ruby: lexical/short-lived variables (local), owned variables (ivars belong to a single object) and namespaced variables (constants)
Astral_ has quit [Ping timeout: 260 seconds]
<apeiros> this ^
<Kamuela> shevy, thanks. There are still certain things in Ruby that make me go X_X
<benzrf> hmm, fair enough
<apeiros> those 3 types serve their respective purpose quite well IMO
<benzrf> don't forget methods though
<benzrf> because in python those are consolidated into attrs
<apeiros> they also communicate intent quite well
<apeiros> methods are entirely distinct from variables
<apeiros> (in ruby)
<shevy> Kamuela yeah, I often say ruby is only like 85% or 90% perfect
<benzrf> exactly
<apeiros> the only operation a variable supports is assignment
<shevy> benzrf have you been able to the super long sentence apeiros wrote to you? if you do he promises you schokli
Kricir has quit [Remote host closed the connection]
<shevy> to *read the super long
<apeiros> everything else operates on the object referenced by the variable
<benzrf> i have read all of this
<benzrf> also what is schokli
<apeiros> shevy: nobody in switzerland says 'schokli'
<shevy> benzrf chocolate!
roflmaus has quit [Read error: No route to host]
dkamioka has joined #ruby
lolmaus has joined #ruby
aspires has joined #ruby
<shevy> apeiros I take my information from the simpsons :(
<apeiros> the guy there is from tirol or south germany iirc
wald0 has quit [Quit: Lost terminal]
<apeiros> lederhosen… not swiss :-p
popl has quit [Quit: We must make an idol of our fear, and call it God.]
banghouse2 is now known as banghouse
<benzrf> my semi-ideal language is
i_s has quit [Remote host closed the connection]
<benzrf> python, BUT
<benzrf> - special syntactic support for blocks
Astralum has joined #ruby
<benzrf> - ruby's everythingisanexpression
i_s has joined #ruby
<benzrf> - vars work like in Io
<Kamuela> shevy, haha, that's the first i've ever heard of someone saying a language was wrong. usually it's "you'll get there, keep bleeding, man, you'll understand why it's smarter than you are"
fgo has quit [Remote host closed the connection]
<benzrf> - a few syntactic sugars i like
<shevy> benzrf wait what does this mean "vars work like in Io" how is Io different to both python and ruby
zz_tsykoduk is now known as tsykoduk
<benzrf> in io there are no vars, only slots
banghouse has quit [Remote host closed the connection]
<benzrf> since all vars are just slots on a locals object, scoping is entirely custom and locals can be manipulated from afar
<shevy> that's kinda funny what you wrote man
<shevy> "vars work like in XYZ", next sentence "there are no vars"
<shevy> :D
<benzrf> this means that you can do things like non-explicit self without magic
<benzrf> :p
<benzrf> well io has virtual vars basically
<apeiros> benzrf: sounds like javascript
<shevy> Kamuela well I guess no language can really be perfect. unless perhaps you design it by yourself... but I think not even matz thinks ruby is 100% perfect, because there are things he does not like, like autoload (? i think)
<benzrf> a little
<benzrf> maybe javascript with python's syntax and half of its semantics
<benzrf> :)
<benzrf> plus some io
aspires has quit [Client Quit]
<apeiros> I wouldn't want prototype OO, though :)
<benzrf> whyever not??
<benzrf> prototypes are amazing man
<shevy> benzrf, you are beginning to have a really long list
<benzrf> ha
<apeiros> they're rather annoying
<benzrf> how so?
<Kamuela> shevy, how closely does Ruby development work with Rails? I'm hoping somewhat closely because for me, Rails seems like the exclusive domain of applicability atm
<apeiros> instantiate to inherit doesn't work well for me
carraroj has quit [Ping timeout: 272 seconds]
<shevy> Kamuela I started with ruby before rails existed. rails kinda took a lot of the attention away from ruby
<benzrf> apeiros: but with appropriate sugar, you can use prototypes just like classes
<benzrf> PLUS the benefits of them
<shevy> Kamuela, yeah for many others too I guess :( I want to jump back in time...
<apeiros> benzrf: then why have them at all? :)
<benzrf> because that way you have both
<benzrf> you can make them on the fly if you want to, OR treat them like classes
<apeiros> sometimes less is more
<apeiros> IMO this is such a case
<Kamuela> shevy, Ruby was mentioned along with Lisp and Smalltalk when people started pulling out their hipster code penises on forms when I was 11
<Kamuela> shevy, this is when I only coded in C++ lol
<benzrf> python's classes actually act like prototypes that have been forced into acting only like classes
i_s has quit [Ping timeout: 272 seconds]
<benzrf> ish
<apeiros> benzrf: I actually implemented rubys class system in JS. including include/extend and super
Uranio has quit [Quit: while you reading this, a kitty dies]
aspires has joined #ruby
aspiers has quit [Ping timeout: 272 seconds]
<shevy> Kamuela ruby has an inherent beauty that is sometimes not easy to see
<Kamuela> shevy, i figured python would be a decent language to learn, but my real goal was to get into making web applications. i dunno, i didn't really like django, and i do like a lot of the things behind rails, so now i play with rubestuh
jbpros has joined #ruby
<benzrf> apeiros: see, protos are more flexible than classes
<benzrf> ;)
<shevy> lol
<apeiros> benzrf: blerp
<benzrf> for fun I once made a decorator in python that lets you write functions that work like JS' constructors
<apeiros> benzrf: you could probably implement much of JS' prototype arch with procs in ruby.
<benzrf> :0
<benzrf> I really think Io's vars-are-slots works well
<benzrf> in areas other than speed
Bry8Star{T2 has joined #ruby
<benzrf> holy shit itd be slow
<benzrf> :I(
<apeiros> lvars have the advantage of being very easy to optimize
spider-mario has joined #ruby
mikepack has quit [Remote host closed the connection]
lmickh has quit [Quit: lmickh]
rezzack has joined #ruby
MrThePlague has quit [Remote host closed the connection]
GabrielFiel has joined #ruby
<benzrf> anyway, vars-are-slots lets you do amazingly magical things
<benzrf> *magical-looking
polaco_zZz is now known as polaco
robbyoconnor has joined #ruby
scarolan has quit [Ping timeout: 248 seconds]
jhulten has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
benzrf_ has joined #ruby
benzrf has quit [Quit: leaving]
benzrf_ is now known as benzrf
carraroj has joined #ruby
dkamioka has quit [Remote host closed the connection]
coaster has quit [Ping timeout: 272 seconds]
dkamioka has joined #ruby
vlad_starkov has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
RichardBaker has quit [Quit: RichardBaker]
brtdv has joined #ruby
<Kamuela> brb
Kamuela has quit [Quit: Leaving]
vlad_starkov has joined #ruby
Advocation has joined #ruby
Advocation has quit [Client Quit]
kaspergrubbe has joined #ruby
Advocation has joined #ruby
amacgregor has joined #ruby
btanaka has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
benzrf has left #ruby [#ruby]
dkamioka has quit [Ping timeout: 272 seconds]
danguita has joined #ruby
momomomomo has joined #ruby
lkba has quit [Ping timeout: 272 seconds]
hogeo has joined #ruby
amacgregor has quit [Ping timeout: 245 seconds]
notjohn has quit [Quit: notjohn]
theoretick is now known as theoretick_
theoretick_ is now known as theoretick
danguita has quit [Ping timeout: 248 seconds]
Rollabunna has quit [Remote host closed the connection]
tharindu has joined #ruby
tjbiddle has joined #ruby
newbiehacker_ has quit [Ping timeout: 252 seconds]
hogeo has quit [Ping timeout: 245 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
mrfoto has joined #ruby
Guest25236 has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
scarolan has joined #ruby
i_s has joined #ruby
tharindu has quit [Ping timeout: 240 seconds]
tonni has quit [Remote host closed the connection]
Deele has quit [Ping timeout: 260 seconds]
<GabrielFiel> Anyone here came from PHP programming?
<mrfoto> o/
tonni has joined #ruby
<GabrielFiel> mrfoto: did u used the ZF2?
parduse has joined #ruby
mhd has joined #ruby
colonolGron has joined #ruby
ehaliewicz has joined #ruby
stringoO has quit [Quit: stringoO]
<mhd> how exactly does /\G/ work?
<mrfoto> GabrielFiel: nope, i was there before all that, we had our own "framework"
parduse is now known as Guest31497
<GabrielFiel> mrfoto: hmm, i want to know what way should i follow PHP or RAILS
Advocation has quit [Quit: Advocation]
nanoyak has quit [Quit: Computer has gone to sleep.]
SHyx0rmZ has joined #ruby
<mrfoto> GabrielFiel: just try some plain ruby first and if you like it start digging into other stuff
nomenkun has joined #ruby
FDj_ is now known as FDj
dkamioka has joined #ruby
<shevy> GabrielFiel yeah I came from php
<GabrielFiel> mrfoto: nowdays i use ZF2 and its very good, but i have a fews friends wich strat ruby on rails and they it are amizing and ZF2 try to copy that
<shevy> GabrielFiel I wanted a better language. the two languages I wanted to try were ruby and python. this interview convinced me to ruby: http://www.artima.com/intv/ruby.html
apeiros has quit [Remote host closed the connection]
<GabrielFiel> shevy: :D
<shevy> when I picked ruby rails was not available
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<mrfoto> GabrielFiel: yeah, everyone is copying from rails and/or django. as are they from each other and others. no shame in that. again, if u dont fall in love with ruby theres no point using rails :P
jamblack has quit [Quit: jamblack]
tonni has quit [Ping timeout: 272 seconds]
Guest31497 has quit [Ping timeout: 264 seconds]
<_br_> frameworks, the cancer spreads everywhere
<havenwood> GabrielFiel: Ruby is really lovely.
<GabrielFiel> hmm
tvw has quit []
sambao21 has joined #ruby
i_s has quit [Ping timeout: 246 seconds]
<GabrielFiel> and what about try to be a programmer of objetive C for mobile?
<mrfoto> GabrielFiel: try
<GabrielFiel> anyone has an opnion about?
mansi_ has joined #ruby
lkba has joined #ruby
<mrfoto> GabrielFiel: seriously, try everything. there's a great book Seven Languages in Seven Weeks http://pragprog.com/book/btlang/seven-languages-in-seven-weeks
aspires has quit [Quit: sudo making a sandwich]
ckinni has joined #ruby
ckinni has quit [Max SendQ exceeded]
yfeldblum has quit [Remote host closed the connection]
vince_prignano has joined #ruby
maletor has joined #ruby
ckinni has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
<havenwood> GabrielFiel: Learning Cocoa seems to take as long as Objective-C, but I guess it gives you iOS and OS X prettiness. RubyMotion or MobiRuby are two ways of using Ruby with Cocoa instead of Obj-C with Cocoa.
<GabrielFiel> mrfoto: thanks, im trying to undesrtand what should i do to have a career
Guest37962 has joined #ruby
Guest37962 is now known as parduse
<havenwood> GabrielFiel: Learn Ruby and go from there. :P
<mrfoto> GabrielFiel: thats why i recommended the book
parduse is now known as Guest41504
<mrfoto> try everything and only when you have a basic understanding of what you like and what you dont
alekst has quit [Quit: Computer has gone to sleep.]
<mrfoto> only then can you decide what you'd like to get payed for to do
ukd1_ has joined #ruby
<GabrielFiel> mrfoto: you are correct!
<mrfoto> we're incredibly lucky working in a field that has such a huge demand for people so we can be picky
gyzmodo has quit []
<GabrielFiel> mrfoto: php too, but the companys dont pay good
<GabrielFiel> thanks all
<mrfoto> look, of course all of us here love ruby, thats why we're here, but that doesn't mean it's perfect for you
<GabrielFiel> im leaving now
<mrfoto> you got to find out on your own ;)
jamblack has joined #ruby
<GabrielFiel> :D
GabrielFiel has quit []
hukendo has joined #ruby
Guest41504 has quit [Remote host closed the connection]
dweeb has quit [Quit: Computer has gone to sleep.]
ukd1 has quit [Ping timeout: 240 seconds]
tannerburson has quit [Quit: tannerburson]
tannerburson has joined #ruby
buscon has joined #ruby
robbyoconnor has quit [Max SendQ exceeded]
BizarreCake has quit [Quit: Leaving]
robbyoconnor has joined #ruby
jetblack has quit [Ping timeout: 245 seconds]
dgfdgf has quit [Ping timeout: 246 seconds]
mhd has quit [Quit: Leaving.]
banjara has quit [Quit: Leaving.]
jhulten_ has joined #ruby
jhulten has quit [Read error: Connection reset by peer]
dallasm_ has joined #ruby
banjara has joined #ruby
dallasm_ has quit [Remote host closed the connection]
Guest37962 has joined #ruby
Guest37962 is now known as parduse
Advocation has joined #ruby
dallasm_ has joined #ruby
parduse is now known as Guest76102
coderhs has quit [Ping timeout: 252 seconds]
Guest76102 has quit [Read error: Connection reset by peer]
aef has quit [Ping timeout: 245 seconds]
baordog has joined #ruby
brtdv has quit []
graydot has quit [Quit: graydot]
<Solnse> I've been working on this method all morning and I can't get the expected behavior... could somebody point me in the right direction please? https://gist.github.com/Solnse/7434931
aef has joined #ruby
<Solnse> trying to search the array of numbers for a missing number
ldnunes has quit [Quit: Leaving]
<Solnse> by splitting it in half multiple times until it drills down to the missing number
jhaals has joined #ruby
ukd1_ has quit [Quit: Leaving...]
<swarmy> why not add all the present numbers up, and subtract it from 5050?
hiyosi has quit [Ping timeout: 246 seconds]
buscon has quit [Remote host closed the connection]
MrZYX is now known as MrZYX|off
Czupa has quit [Remote host closed the connection]
jprovazn has quit [Quit: Odcházím]
polaco is now known as polaco_zZz
kdizzle has joined #ruby
<Solnse> I've done that too... I'm trying to accomplish this by dividing the array
kdizzle has left #ruby [#ruby]
banjara has quit [Quit: Leaving.]
iliketurtles has quit [Quit: zzzzz…..]
randomnick_ has joined #ruby
kindjal has quit [Quit: Computer has gone to sleep.]
banjara has joined #ruby
MrZYX|off is now known as MrZYX
mhd has joined #ruby
kindjal has joined #ruby
petey has joined #ruby
ekarlso has quit [Changing host]
ekarlso has joined #ruby
Mars___ has quit [Remote host closed the connection]
typicalbender has quit [Quit: Leaving.]
Advocation has quit [Quit: Advocation]
psyl0n has left #ruby [#ruby]
`MArceLL` has joined #ruby
hackeron has quit [Remote host closed the connection]
Mars__ has joined #ruby
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
skaflem has quit [Quit: Leaving]
krawchyk_ has joined #ruby
hackeron has joined #ruby
<Solnse> no ideas? I've tried using bsearch too, but I just can't get it to work.
MrThePlague has joined #ruby
Mars__ has quit [Ping timeout: 240 seconds]
krawchyk has quit [Ping timeout: 240 seconds]
vela has joined #ruby
theRoUS has quit [Ping timeout: 245 seconds]
vela has quit [Client Quit]
apeiros has joined #ruby
theoretick has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
coaster has joined #ruby
zz_scottstamp is now known as scottstamp
Biohazard has left #ruby ["WeeChat 0.4.3-dev"]
dangerousdave has quit [Read error: Connection reset by peer]
nanoyak has joined #ruby
jhulten_ has quit [Remote host closed the connection]
MrThePlague has quit [Ping timeout: 252 seconds]
robbyoconnor has quit [Max SendQ exceeded]
scarolan has quit [Ping timeout: 264 seconds]
mr_red has quit [Max SendQ exceeded]
robbyoconnor has joined #ruby
<mhd> Is there a heredoc syntax for regexes?
<swarmy> Solnse, I don't have other ideas - i generally try to use the most efficient, easiest to understand solution for a given problem
IcyDragon has quit [Ping timeout: 244 seconds]
<apeiros> mhd: no, but //x will allow you to have whitespace in your regex
<apeiros> mhd: and %r{} allows for different delimiters
<mhd> I know
mr_red has joined #ruby
jetblack has joined #ruby
MrThePlague has joined #ruby
funburn has joined #ruby
<Solnse> swarmy: agreed, I do too, but this is focusing on memory utilization so I want to chop the array down as much as possible.
Banistergalaxy has joined #ruby
tonni has joined #ruby
drakedouay has joined #ruby
AndChat| has quit [Ping timeout: 268 seconds]
scottstamp is now known as zz_scottstamp
<drakedouay> I have an editable pdf, and I would like to fill in values into this pdf dynamically. Is there a gem for this?
jwest has quit [Quit: WeeChat 0.4.1]
tvw has joined #ruby
<swarmy> drago777, yes.
<swarmy> er, drakedouay, yes
phansch has quit [Quit: Leaving]
Guest38072 has joined #ruby
hogeo has joined #ruby
diego1 has joined #ruby
diego1 is now known as diegoviola
leesharma has joined #ruby
RichardBaker has joined #ruby
mikepack has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
dkamioka has quit [Remote host closed the connection]
tharindu has joined #ruby
jamblack has quit [Quit: jamblack]
Guest38072 has quit []
dkamioka has joined #ruby
hogeo has quit [Ping timeout: 252 seconds]
jlast has quit [Remote host closed the connection]
d2dchat has joined #ruby
jlast has joined #ruby
robbyoconnor has quit [Max SendQ exceeded]
decoponio has quit [Quit: Leaving...]
sambao21 has joined #ruby
sbos99 has quit [Ping timeout: 240 seconds]
leesharma has quit [Quit: leesharma]
robbyoconnor has joined #ruby
Guedes0 has joined #ruby
dangerousdave has joined #ruby
dkamioka has quit [Ping timeout: 240 seconds]
tharindu has quit [Ping timeout: 264 seconds]
lmickh has joined #ruby
jlast has quit [Ping timeout: 245 seconds]
madb055 has quit [Ping timeout: 240 seconds]
MrThePlague has quit [Remote host closed the connection]
<drakedouay> swarmy: what is it called?
workmad3 has quit [Read error: Operation timed out]
Mars__ has joined #ruby
nanoyak has quit [Ping timeout: 244 seconds]
nism-pi has quit [Ping timeout: 272 seconds]
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<nobitanobi> If I have a require './my_module', why I can't access the methods within it by doing MyModule::my_method ?
_Andres has quit [Read error: Connection reset by peer]
Advocation has joined #ruby
yfeldblum has joined #ruby
theoretick has joined #ruby
Kamuela has joined #ruby
nanoyak has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
Dave has joined #ruby
Dave is now known as Guest90037
drumusician has quit [Ping timeout: 248 seconds]
achru has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 245 seconds]
achru has joined #ruby
madb055 has joined #ruby
apeiros has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
apeiros has joined #ruby
Advocation has quit [Ping timeout: 264 seconds]
<shevy> guys
<shevy> we need to bring ruby to the new era
<shevy> nobitanobi what do you mean
<shevy> nobitanobi what is the error
<Kamuela> shevy, what do YOU mean
<shevy> and did you do include Foo
<nobitanobi> shevy, I asked too early.
<shevy> nobitanobi otherwise, append "extend self" at the end of your module and see if it works
<shevy> nobitanobi, btw Foo::bla is so ugly, can't you use Foo.bla instead?
<Kamuela> I just reinstalled and went to Xubuntu from Ubuntu. So much beauty compared to goonity...
kindjal has quit [Ping timeout: 248 seconds]
<shevy> omg
<shevy> ubuntu
<shevy> Kamuela, does this work: require 'mkmf'
<shevy> in irb
<Kamuela> shevy, hang on, i still have to curl rvm and --rails n stawff
mansi_ has quit [Remote host closed the connection]
<shevy> ah then dont bother
sayan has quit [Ping timeout: 240 seconds]
benwoody has quit [Quit: benwoody]
<shevy> if you use rvm you wont run into that problem
amacgregor has joined #ruby
<shevy> I thought you would use the ubuntu default ruby
<Kamuela> ah i see, well heroku-toolkit uses ruby in the system so i can get ubuntu's ruby also if you like
<shevy> naaaah
<shevy> you are already past the "true noobie stage"
achru has quit [Ping timeout: 246 seconds]
<Kamuela> haha! i should make more money with the amount of illusion i can conjure
nanoyak has quit [Quit: Computer has gone to sleep.]
i_s has joined #ruby
MrThePlague has joined #ruby
mansi_ has joined #ruby
nanoyak has joined #ruby
whunt has quit [Ping timeout: 244 seconds]
iliketurtles has joined #ruby
timonv has quit [Remote host closed the connection]
basmoura has quit [Quit: Computer has gone to sleep.]
colonolGron has quit [Quit: leaving]
timonv has joined #ruby
yalue has quit [Quit: Leaving]
whunt has joined #ruby
mrfoto has quit []
mmitchell has quit [Remote host closed the connection]
MrThePlague has quit [Ping timeout: 264 seconds]
theoretick is now known as theoretick_
zz_scottstamp is now known as scottstamp
mikepack has quit [Remote host closed the connection]
mmitchell has joined #ruby
rudisimo has quit [Quit: Leaving.]
dallasm_ has quit [Remote host closed the connection]
vt102 has joined #ruby
theoretick_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv has quit [Ping timeout: 264 seconds]
aspires has joined #ruby
mikepack has joined #ruby
allsystemsarego_ has joined #ruby
wedgeV has quit [Quit: wedgeV]
butcher has joined #ruby
theoretick has joined #ruby
mmitchell has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
<drakedouay> I have an editable pdf, and I would like to fill in values into this pdf dynamically. Can someone recommend a gem for this?
hiyosi has joined #ruby
butcher has quit [Client Quit]
<shevy> drakedouay prawn
basmoura has joined #ruby
mansi_ has quit [Remote host closed the connection]
dallasm_ has joined #ruby
allsystemsarego has quit [Ping timeout: 264 seconds]
mansi_ has joined #ruby
timonv has quit [Remote host closed the connection]
mansi_ has quit [Read error: Connection reset by peer]
mansi_ has joined #ruby
timonv has joined #ruby
mansi_ has quit [Remote host closed the connection]
krawchyk_ has quit []
jlast has joined #ruby
mansi_ has joined #ruby
RaCx has quit [Ping timeout: 272 seconds]
freezey_ has quit [Remote host closed the connection]
tharindu has joined #ruby
mmitchell has joined #ruby
freezey has joined #ruby
mansi_ has quit [Read error: Connection reset by peer]
hiyosi has quit [Ping timeout: 246 seconds]
RaCx has joined #ruby
allsystemsarego has joined #ruby
allsystemsarego has joined #ruby
allsystemsarego has quit [Changing host]
mansi_ has joined #ruby
allsystemsarego_ has quit [Read error: Connection reset by peer]
jbpros has quit [Quit: jbpros]
allsystemsarego has quit [Client Quit]
capicue has joined #ruby
freezey has quit [Remote host closed the connection]
funburn has quit [Quit: funburn]
freezey has joined #ruby
pskosinski has quit [Quit: Til rivido Idisti!]
timonv has quit [Ping timeout: 240 seconds]
Czupa has joined #ruby
<drakedouay> shevy: will prawn let me fill in the values, or do I need to play battleship to position them?
Kamuela has quit [Quit: Leaving]
thelorax123 has quit [Remote host closed the connection]
dallasm_ has quit [Remote host closed the connection]
pu22l3r_ has joined #ruby
tharindu has quit [Ping timeout: 260 seconds]
pu22l3r_ has quit [Read error: Connection reset by peer]
vince_prignano has quit []
thelorax123 has joined #ruby
jbpros has joined #ruby
_Andres has joined #ruby
nisstyre has joined #ruby
Advocation has joined #ruby
pu22l3r has quit [Ping timeout: 268 seconds]
Czupa has quit [Ping timeout: 244 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
carraroj has quit [Quit: Konversation terminated!]
mansi_ has quit [Remote host closed the connection]
tonni has quit [Read error: Connection reset by peer]
jwest has joined #ruby
jhulten has joined #ruby
mansi_ has joined #ruby
zz_jrhorn424 is now known as jrhorn424
jbpros has quit [Quit: jbpros]
eval-in_ has quit [Remote host closed the connection]
vt102 has quit [Ping timeout: 264 seconds]
eval-in has joined #ruby
scarolan has joined #ruby
jlast has quit [Remote host closed the connection]
Advocation has quit [Ping timeout: 240 seconds]
ArchBeOS has quit [Quit: Page closed]
jlast has joined #ruby
vt102 has joined #ruby
mansi__ has joined #ruby
mansi_ has quit [Read error: Connection reset by peer]
Guest99667 has joined #ruby
Guest99667 is now known as parduse
Kamuela has joined #ruby
rdalin has quit [Quit: AndroIRC - my Android died]
parduse is now known as Guest95036
sambao21 has joined #ruby
thelorax123 has quit [Remote host closed the connection]
_zxq9_ has joined #ruby
anderse has quit [Quit: anderse]
Guest95036 has quit [Read error: Connection reset by peer]
jlast_ has joined #ruby
jlast has quit [Ping timeout: 264 seconds]
eval-in has quit [Remote host closed the connection]
eval-in has joined #ruby
thelorax123 has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
<shevy> drakedouay not sure
<shevy> drakedouay I actually do not use prawn myself
<Kamuela> it's a funny word to say, though
zxq9 has quit [Ping timeout: 240 seconds]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
whunt has quit [Quit: Computer has gone to sleep.]
tonni has joined #ruby
Astralum has quit [Ping timeout: 246 seconds]
iamjarvo has joined #ruby
hogeo has joined #ruby
weszlem has quit []
sambao21 has quit [Quit: Computer has gone to sleep.]
Czupa has joined #ruby
wildroman2 has joined #ruby
theoretick is now known as McSparticus
rubyguy has quit [Quit: Connection closed for inactivity]
asteros has joined #ruby
RaCx has quit [Ping timeout: 240 seconds]
amacgregor has quit [Ping timeout: 245 seconds]
RaCx has joined #ruby
hogeo has quit [Ping timeout: 264 seconds]
terrellt has quit [Ping timeout: 264 seconds]
amacgregor has joined #ruby
tonni has quit [Read error: Connection reset by peer]
mikepack has quit [Remote host closed the connection]
heidi has quit [Quit: Leaving.]
kevind has joined #ruby
jamesaanderson has joined #ruby
volty has joined #ruby
spider-mario has quit [Remote host closed the connection]
alekst has joined #ruby
nomenkun has quit [Remote host closed the connection]
<shevy> ruby projects often have totally stupid names
<shevy> god unicorn thor
failshell has quit [Read error: Connection reset by peer]
kindjal has joined #ruby
tonni has joined #ruby
failshell has joined #ruby
weszlem has joined #ruby
<shevy> lol
<Kamuela> for some reason "god" got me
<shevy> "fucking_fail (0.0.3) Track your Fucking FAIL!"
<shevy> "clusterfuck (0.1.3) Automate the execution of jobs across multiple machines with SSH. Ideal for systems with shared f..."
<shevy> "fucking-great-advice (0.1.0) That gem is to make easy access to great advices from fucking-great-advice"
<shevy> HAHAH THIS ONE RULES
<shevy> "fuck_you_rubygems (1.0.0) Fucks your Rubygems"
<shevy> people have way too much free time
pskosinski has joined #ruby
tonni has quit [Read error: Connection reset by peer]
diegoviola has quit [Ping timeout: 245 seconds]
<Kamuela> what's worse is that i want to gem install fuck_you_rubygems lol
<shevy> I would never make a troll-gem simply because I want to be clean with what I maintain. and if I dont use a gem project I wrote, I will remove it, so naming is important
<shevy> do it Kamuela!
<shevy> run it then tell us if rubygems still works
<Kamuela> i'm too new for this kind of trouble
bluOxigen has quit [Ping timeout: 272 seconds]
<pskosinski> In Ruby everything is easy!
<shevy> hmm
<shevy> you still require quite a bit of knowledge before things can really be easy
<shevy> if you never wrote an IRC bot before, how could you succeed!
Czupa has quit [Ping timeout: 272 seconds]
<breakingthings> look at the documentation
<breakingthings> and get confused
<Kamuela> i've written an IRC bot in mirc scripting back in the day lol
<breakingthings> because IRC documentation is weird
<pskosinski> I did write an IRC bot and it was a shitty bot :(
<breakingthings> and different irc daemons do weird stuff
jb41 has joined #ruby
mary5030 has quit [Remote host closed the connection]
jhaals has joined #ruby
claymore has quit [Quit: Leaving]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> my bot worked for the basic things but the code was awful
<gf3> BUT srsly who doesn't use Freenode? pssh
ehc has quit [Ping timeout: 245 seconds]
mary5030 has joined #ruby
<pskosinski> I could not implement all IRC commands because of a design failure :( Needed to rewrite a lot of code and gave up ;(
d2dchat has quit [Remote host closed the connection]
kevind has quit [Quit: kevind]
<Kamuela> i feel like the best way for me to learn rails would be to just go looking for example apps and deconstructing
<shevy> I gave up on my rewrite attempt as well
amacgregor has quit [Ping timeout: 245 seconds]
drakedouay has quit [Quit: leaving]
xk_id has joined #ruby
<err_ok> Kamuela: the Pragmatic Programmers book isn't bad if you want to start somewhere.
jamesaanderson has joined #ruby
heidi has joined #ruby
IceDragon has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
<Kamuela> err_ok, is that agile? i was thinking about taking a look at that but was discouraged in the rails channel
<Kamuela> my main question was whether or not there was a big enough difference between 4 and 3.2 to worry about not having the absolute latest version of the book
yfeldblum has joined #ruby
iamjarvo has quit [Ping timeout: 246 seconds]
jhaals has quit [Client Quit]
Rix has quit [Ping timeout: 260 seconds]
mary5030 has quit [Ping timeout: 272 seconds]
kaldrenon has quit [Remote host closed the connection]
snuffeluffegus has joined #ruby
jamesaanderson has quit [Client Quit]
kaldrenon has joined #ruby
<err_ok> Kamuela: Ah. Well I used the book when Rails was on version 2 or something like that. There is a big enough difference between the two versions for you to get confused, I hadn't realised they hadn't brought out a Rails4 version yet. I would wait.
<sayd> how to use specific version of installed gem?
whunt has joined #ruby
<Kamuela> err_ok, a big enough difference between 3.2 and 4?
<volty> anyone worked with ruby's rss ?
<err_ok> Kamuela: correct
<Kamuela> err_ok, ah ok, too bad. no, it's out, it's just the difference between $40 and $4
drumusician has joined #ruby
<err_ok> Ah ok.
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jhaals has joined #ruby
larissa has joined #ruby
<sayd> i guess uninstall is my only option/
mark_locklear has quit [Quit: Leaving]
<sayd> i have two versions installed, wanted to use a different version than the current one
Monie has joined #ruby
jamesaanderson has joined #ruby
danshultz has quit [Remote host closed the connection]
tannerburson has quit [Quit: tannerburson]
<Solnse> is there a way to inspect the next element of an array in an each block?
jetblack has quit [Quit: leaving]
Czupa has joined #ruby
NotreDev has joined #ruby
danshultz has joined #ruby
tannerburson has joined #ruby
kaldrenon has quit [Ping timeout: 272 seconds]
aryaching has joined #ruby
deception has joined #ruby
<NotreDev> in the past i've seen an code analytics framework which will give performance information and more. i can't for the life of me remember the name of it, though. anyone know what i'm talking about?
<NotreDev> it used to be just for ruby, but now it supports python, too.
<volty> (arr << [nil]).each_cons(2)
mary5030 has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
mary5030 has quit [Remote host closed the connection]
jdguzman has joined #ruby
mary5030 has joined #ruby
<volty> (arr + nil).each_cons(2)
<volty> (arr + [nil]).each_cons(2)
yfeldblum has quit [Read error: Connection reset by peer]
scottstamp is now known as zz_scottstamp
mhd has quit [Quit: Leaving.]
coderhs has joined #ruby
yfeldblum has joined #ruby
hiyosi has joined #ruby
<volty> nobody with ruby rss experience ?
benwoody has joined #ruby
benwoody has quit [Client Quit]
<Hanmac> volty: (arr + nil) does not work
danshultz has quit [Ping timeout: 245 seconds]
Guest37962 has joined #ruby
Guest37962 is now known as parduse
pskosinski has quit [Quit: Til rivido Idisti!]
jaegerpicker has quit [Remote host closed the connection]
srji has joined #ruby
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
rodan- has joined #ruby
parduse is now known as Guest38093
terrellt has joined #ruby
sambao21 has joined #ruby
[Neurotic] has joined #ruby
tharindu has joined #ruby
Guest38093 has quit [Remote host closed the connection]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hiyosi has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Remote host closed the connection]
Czupa has quit [Remote host closed the connection]
<volty> of course :)
kpshek has quit []
RichardBaker has joined #ruby
mmitchell has quit [Remote host closed the connection]
Guest37962 has joined #ruby
Guest37962 is now known as parduse
mmitchell has joined #ruby
tharindu has quit [Ping timeout: 245 seconds]
<Kamuela> hehehe, i'm a sneaky >:)
parduse is now known as Guest57784
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
scarolan has quit [Ping timeout: 272 seconds]
<volty> the prob. could be if Solnse understood, at all, that that was for him
deception has quit [Quit: Goodbye]
mansi__ has quit [Remote host closed the connection]
_Andres has quit [Read error: Connection reset by peer]
RaCx has quit [Quit: Computer has gone to sleep.]
failshel_ has joined #ruby
jhulten has quit [Remote host closed the connection]
ukd1 has joined #ruby
<volty> i have a prob.: i have to use rss for parsing and for producing. The ruby's RSS seems a monster and isn't well documented. So my question, for experienced rubyists (that could have similar problems -though not necessarily with rss), is: should I go after manually creating rss's xml?
mikepack has joined #ruby
Guest57784 has quit [Remote host closed the connection]
Astralum has joined #ruby
nisstyre has quit [Ping timeout: 252 seconds]
<volty> /have similar prob/have had similar prob/
mmitchell has quit [Ping timeout: 272 seconds]
scarolan has joined #ruby
failshell has quit [Ping timeout: 245 seconds]
<Solnse> what did I understand?
joshwines_ has joined #ruby
<Solnse> :)
Guest37962 has joined #ruby
Guest37962 is now known as parduse
<Solnse> volty: thanks.
vt102 has quit [Quit: vt102]
parduse is now known as Guest36071
Davey has joined #ruby
failshel_ has quit [Ping timeout: 272 seconds]
artm has quit [Ping timeout: 260 seconds]
flops has quit [Remote host closed the connection]
<volty> yw, I should prefix with nick
Guedes0 has quit [Ping timeout: 272 seconds]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Advocation has joined #ruby
acrussell has quit [Quit: Leaving.]
kpshek has joined #ruby
Guest36071 has quit [Remote host closed the connection]
duggiefresh has quit [Remote host closed the connection]
kcombs has quit [Remote host closed the connection]
duggiefresh has joined #ruby
ZoanthusR has joined #ruby
Advocation has quit [Ping timeout: 252 seconds]
ffranz has quit [Quit: Leaving]
jrhe has joined #ruby
platypine has joined #ruby
mixel has quit [Quit: mixel]
<Kamuela> wait a sec, Hello::Goodbye is just a hellodict wtih a goodbye symbol?!?!
blackmesa has quit [Remote host closed the connection]
* coldmethod would say that the greatest deficient for a python buff converting to a ruby is always missing out the "end"
nisstyre has joined #ruby
duggiefresh has quit [Ping timeout: 240 seconds]
<Kamuela> coldmethod, i've actually asked how hard it would be to remove that keyword entirely
cody-- has quit [Quit: derp]
* coldmethod was offtopic btw Kamuela
<Kamuela> but then again, i don't know if ruby takes whitespace/indentation as seriously as python does
hogeo has joined #ruby
blooberr_ has joined #ruby
<coldmethod> True .. it does not. Python makes you follow the indentation always
__zxq9__ has joined #ruby
ewnd9 has joined #ruby
jhulten has joined #ruby
jblack has joined #ruby
hogeo has quit [Ping timeout: 248 seconds]
_zxq9_ has quit [Ping timeout: 244 seconds]
TigerWolf has joined #ruby
ephemerian has joined #ruby
NotreDev has quit [Quit: NotreDev]
sambao21 has quit [Quit: Computer has gone to sleep.]
sailias has quit [Ping timeout: 246 seconds]
cescalante is now known as ce_afk
drumsrgr8forn8 has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
Kamuela has quit [Quit: Leaving]
mklappstuhl has joined #ruby
Soliah has joined #ruby
<Eiam> please no
<Eiam> control structures that I can see = good
capicue has quit [Quit: Leaving...]
workmad3 has joined #ruby
momomomomo has quit [Quit: momomomomo]
samuel02 has quit [Remote host closed the connection]
lfox has quit [Quit: ZZZzzz…]
yfeldblu_ has joined #ruby
ehc has joined #ruby
sambao21 has joined #ruby
dweeb has joined #ruby
Xeago has joined #ruby
stkowski has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
Notte has quit []
tonni has joined #ruby
<volty> please spread consciousness: the rdoc html style of black background for source (especially when the rest has opposite style) is ugly, irrispective of visually impaired, tiring - at least! On one word: ABSURD !
MrThePlague has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
sambao21 has quit [Client Quit]
<jblack> I will not help you rebel agaist your well documented, if blind, masters
yfeldblum has quit [Ping timeout: 264 seconds]
tonni has quit [Remote host closed the connection]
tonni has joined #ruby
<volty> help blind
baordog has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
funburn has joined #ruby
vlad_starkov has joined #ruby
McSparticus is now known as Carlos
Carlos is now known as PatrickMounts
mary5030 has quit [Ping timeout: 240 seconds]
breakingthings has quit []
PatrickMounts is now known as JizzleSkarbek
mklappstuhl has joined #ruby
JizzleSkarbek has left #ruby ["Textual IRC Client: www.textualapp.com"]
thesheff17 has quit [Ping timeout: 240 seconds]
sepp2k has quit [Quit: Leaving.]
nanoyak has quit [Quit: Computer has gone to sleep.]
danman has quit [Quit: danman]
carif has joined #ruby
kpshek has quit []
ewnd9 has quit [Ping timeout: 252 seconds]
Kricir has joined #ruby
theoretick has joined #ruby
theoretick has left #ruby [#ruby]
iamjarvo has joined #ruby
<volty> masters & slaves: for a discourse on voluntary servitude
crus has joined #ruby
iamjarvo has quit [Client Quit]
robbyoconnor has quit [Ping timeout: 246 seconds]
Guedes0 has joined #ruby
rodan- is now known as dmamills
jhulten has quit [Read error: Connection reset by peer]
jhulten has joined #ruby
kirun has quit [Quit: Client exiting]
nanoyak has joined #ruby
postmodern has quit [Quit: Leaving]
benlieb has quit [Quit: benlieb]
ereslibre has quit [Quit: No Ping reply in 180 seconds.]
mmitchell has joined #ruby
aryaching has quit []
nateberkopec has quit [Quit: Leaving...]
ZoanthusR has quit [Quit: Linkinus - http://linkinus.com]
ereslibre has joined #ruby
asobrasil has left #ruby [#ruby]
bronson_ has quit [Quit: bronson_]
Aryasam has joined #ruby
xerxas has quit [Quit: Connection closed for inactivity]
mhd has joined #ruby
mhd has left #ruby [#ruby]
MrZYX is now known as MrZYX|off
dmamills has quit []
timonv has joined #ruby
kpshek has joined #ruby
hiyosi has joined #ruby
dekz has joined #ruby
RORgasm has quit [Remote host closed the connection]
mmitchell has quit [Remote host closed the connection]
tharindu has joined #ruby
tomzx_mac has joined #ruby
timonv has quit [Ping timeout: 244 seconds]
hiyosi has quit [Ping timeout: 246 seconds]
danshultz has joined #ruby
noname001__ has joined #ruby
tharindu has quit [Ping timeout: 246 seconds]
jjbohn_ has quit [Quit: Leaving...]
Mars__ has quit [Ping timeout: 272 seconds]
Mars__ has joined #ruby
mmitchell has joined #ruby
jhulten has quit [Remote host closed the connection]
wildroman2 has quit [Remote host closed the connection]
elux has quit [Quit: Bye!]
danshultz has quit [Ping timeout: 245 seconds]
MrThePlague has quit [Remote host closed the connection]
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mixel has joined #ruby
jmimi1 has joined #ruby
bronson_ has joined #ruby
jmimi is now known as Guest48179
Guest48179 has quit [Killed (adams.freenode.net (Nickname regained by services))]
jmimi1 is now known as jmimi
freezey has quit [Remote host closed the connection]
freezey has joined #ruby
threesome has quit [Ping timeout: 260 seconds]
jonathanwallace has quit [Ping timeout: 246 seconds]
MrThePlague has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
MrThePlague has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
Advocation has joined #ruby
Mr_Wharfsnort has joined #ruby
yfeldblum has joined #ruby
freezey_ has joined #ruby
CreativeEmbassy has joined #ruby
freezey has quit [Read error: No route to host]
hiyosi has joined #ruby
GrantKH has quit [Remote host closed the connection]
Mr_Wharfsnort has quit [Remote host closed the connection]
GrantKH has joined #ruby
yfeldblum has quit [Remote host closed the connection]
<joshu> hi i'm trying to create a small ruby script which will save my home timeline tweets as i tend to miss a lot of them. I've got this simple code so far https://gist.github.com/anonymous/718c5582677e85e1b725 but every time I run it I get this error "Twitter::REST (NameError)" and I don't know why as the twitter gem is installed
CreativeEmbassy has quit [Max SendQ exceeded]
yfeldblu_ has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
Roa has joined #ruby
petey has quit [Ping timeout: 272 seconds]
Advocation has quit [Ping timeout: 246 seconds]
CreativeEmbassy has joined #ruby
NotreDev has joined #ruby
CreativeEmbassy has quit [Max SendQ exceeded]
tannerburson has quit [Quit: tannerburson]
jamesaanderson has joined #ruby
Guest63812 has joined #ruby
Guest63812 is now known as parduse
CreativeEmbassy has joined #ruby
parduse is now known as Guest70963
jibi has quit [Quit: .]
GrantKH_ has joined #ruby
GrantKH has quit [Ping timeout: 272 seconds]
carif has quit [Ping timeout: 244 seconds]
superscott[8] has joined #ruby
hogeo has joined #ruby
bronson_ has quit [Quit: bronson_]
Guest70963 has quit [Remote host closed the connection]
jhulten has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
Guest37962 has joined #ruby
Guest37962 is now known as parduse
workmad3 has quit [Ping timeout: 272 seconds]
havenwood has joined #ruby
bugsinlights has joined #ruby
Kricir has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
parduse is now known as Guest58864
mklappstuhl has joined #ruby
Soda has joined #ruby
danman has joined #ruby
jrhe has quit [Quit: jrhe]
vlad_starkov has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kpshek has quit []
<freezey_> running host = %x{hostname | sed 's/node.*\|nas.*//'} on the command line it returns the correct results but when its ran by ruby it does not
Guest58864 has quit [Remote host closed the connection]
hogeo has quit [Ping timeout: 245 seconds]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
Bira has joined #ruby
danman has quit [Client Quit]
babinho has quit [Ping timeout: 264 seconds]
babinho has joined #ruby
<volty> you have to run the shell for that to work
<volty> or do it in two phases
jrhe has joined #ruby
<freezey_> run the shell?
NotreDev has quit [Quit: NotreDev]
ce_afk is now known as cescalante
xibalba has joined #ruby
NotreDev has joined #ruby
prsn has quit [Quit: Lost terminal]
jdguzman has quit [Ping timeout: 245 seconds]
drumusician has quit [Ping timeout: 252 seconds]
jhulten has quit [Remote host closed the connection]
DonRichie has quit [Ping timeout: 240 seconds]
DonRichie has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
kindjal has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
jalcine has quit [Excess Flood]
<freezey_> volty:
parduse has joined #ruby
parduse is now known as Guest40118
jerius has quit [Ping timeout: 246 seconds]
<volty> imho the best is to get the output of hostname and invoke sed with that
thelorax123 has quit [Remote host closed the connection]
scarolan has quit [Ping timeout: 240 seconds]
jhulten has joined #ruby
jalcine has joined #ruby
Solnse has quit [Ping timeout: 252 seconds]
axl_ has quit [Quit: axl_]
hogeo has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
thelorax123 has joined #ruby
Guest40118 has quit [Remote host closed the connection]
NotreDev has quit [Quit: NotreDev]
PPH has joined #ruby
cescalante is now known as ce_afk