apeiros changed the topic of #ruby to: http://ruby-community.com || Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org, other public logging is prohibited
<ruboto> Mon_Ouie # => nil (https://eval.in/313617)
<jhass> I need to do Parent.var in the child, instead of just var ?
<Mon_Ouie> Parents don't get class variables from their children in Ruby either
<bricker> Secnz: I don't think anybody is saying that...
michaeldeol has joined #ruby
<ramfjord> Mon_Ouie: nevermind, I may be wrong about that
<ramfjord> yeah
<ramfjord> you already tried
<Mon_Ouie> Oh, I'm not sure of the scoping rules anymore either… but just cheated and you don't :p
Zamyatin has quit [Ping timeout: 272 seconds]
grindmodeon has joined #ruby
grindmodeon has quit [Max SendQ exceeded]
hornairs has quit [Ping timeout: 246 seconds]
grindmodeon has joined #ruby
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
snockerton has quit [Quit: Leaving.]
_djbkd has quit [Remote host closed the connection]
fabrice31 has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
GenghisKen has quit [Ping timeout: 265 seconds]
eshy has joined #ruby
_djbkd has joined #ruby
DerisiveLogic has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
paulcsmith has quit [Quit: Be back later ...]
vulix has joined #ruby
ponga has quit [Remote host closed the connection]
zorak8 has quit [Ping timeout: 255 seconds]
<Secnz> So is there any difference between using {@name} or @name ?
ghostmoth has quit [Quit: ghostmoth]
<Secnz> for puts
fabrice31 has quit [Ping timeout: 264 seconds]
<jhass> >> @name = "foo"; "@name #{@name}"
<ruboto> jhass # => "@name foo" (https://eval.in/313618)
<centrx> Secnz, #{} is string interpolation
<Secnz> centrx: What does that mean?
<centrx> Secnz, inserting a variable within the string
<vulix> Is there any comprehensive changelog that shows what gets deprecated every version of Ruby? Im currently on Windows and am worried that using one of the pre-packaged but older releases is going to be counter-productive for learning
<vulix> bricker tyvm
<centrx> vulix, What version will you be using?
<shevy> Secnz this is calling the .to_s method. Rather than: @name = "foo"; "@name #{@name}" you could also do: '@name '+@name.to_s
<vulix> Ruby installer lets me grab 2.2.1 but I'm finding setting up Rails with it is giving me some trouble (specifically, something with Sqlite3). RailsInstaller gives me 2.1.5
<Secnz> shevy: Ah I see thanks :)
ponga has joined #ruby
CloCkWeRX has joined #ruby
<shevy> string interpolation should also be faster than when you use + and .to_s by yourself
<shevy> and is also more failsave; you could forget to use .to_s
<shevy> and may have a nil object there... " "+nil+" " would not work
<shevy> *failsafe
<weaksauce> centrx you might want to add that it's any expression that can be to_s'd
<Secnz> shevy: But why do you have to do that, isn't @name already a string?
Zamyatin has joined #ruby
<centrx> vulix, That's fine then, everything you learn should be valid
<Secnz> shevy: Nvm what I said
noname has joined #ruby
jeramy_s has joined #ruby
<centrx> vulix, 1.9 is the main rubicon
<shevy> Secnz in this case it should not make a big difference
<jhass> Secnz: "string #{interpolation}" is more idiomatic and failsafe, stick to it, don't do "string" + concatenation
<vulix> centrx tyvm. Is there a major difference between 2.1.5 and 2.2.1?
<centrx> vulix, no
<vulix> Ah I see. 1.9 was the first I put it down a few years ago and now am back to pick up Ruby again
<shevy> Secnz but when you use a larger class, with several different @ivars, you may be confused what they are.. array..hash ... nil... integer
<Secnz> How does Ruby know if my input should be handled as an integer or string then?
Zamyatin has quit [Max SendQ exceeded]
<Secnz> shevy: Yea aight
<shevy> well, they have different methods right?
<jhass> Secnz: it just calls to_s
<shevy> :)
<vulix> Sencz it's a weak typed language so it figures it out based on what mehtods you call on the variable
ruby739 has joined #ruby
<shevy> there is .to_s and .to_str, it's ruby's way to get an object to show its "string representation"
<jhass> >> [1.to_s {}.to_s, [].to_s, :foo.to_s]
<ruboto> jhass # => ["1", "[]", "foo"] (https://eval.in/313619)
<Secnz> Is there any default type? I mean test = gets
Zamyatin has joined #ruby
<Secnz> what's the default type?
<centrx> methods are messages sent to objects
zachrab has joined #ruby
OtterCoder has quit [Remote host closed the connection]
<shevy> this will give you a string Secnz
<ruby739> messages sent to objects
<Secnz> shevy: Yea
<shevy> "gets ... get string" mnemonic
<shevy> puts ... put string
n80 has quit [Quit: n80]
<jhass> Secnz: gets returns a string or nil on EOF
ruby739 is now known as dudedudemanforgo
<Secnz> I see
moeabdol2 has joined #ruby
<shevy> ruby is really sugar-coated C in the end
<jhass> Secnz: a variable can have any type and switch types at any point, that's what dynamic typing means
<jhass> shevy: I disagree
<centrx> shevy bad
<Secnz> jhass: Yes lol that's not what I was looking for
<Secnz> but nvm
<shevy> it's true
<centrx> C is just sugar-coated PHP
<centrx> what say you!?
<shevy> how many C-established conventions does ruby not follow?
jenrzzz has quit [Quit: Lost terminal]
<centrx> C doesn't have classes
<shevy> gtk
jenrzzz has joined #ruby
jenrzzz has quit [Client Quit]
<shevy> look how pretty it is
<jhass> gobject you mean, and no, that's only faking it with a runtime system
<shevy> GtkWidget *gtk_toggle_button_new
Channel6 has quit [Quit: Leaving]
MyGreenPickle has quit [Ping timeout: 255 seconds]
<centrx> Ruby is Pure Object Wonderland
<centrx> Long time
<shevy> Gtk::ToggleButton.new
jenrzzz has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sevvie has quit [Ping timeout: 245 seconds]
<centrx> shevy, That is just sugar-coating over ASM
<shevy> jhass are you saying that ruby-gnome fakes objects :(
avahey has joined #ruby
<shevy> I actually liked the class concept in C++
<shevy> and cout was so much more fun to use than printf
<centrx> yeah yeah but do you like templates
anthony_ has joined #ruby
moeabdol2 has quit [Ping timeout: 244 seconds]
<jhass> or hanmac's macros
zachrab has quit [Ping timeout: 264 seconds]
<shevy> oh god
<shevy> if there ever has been any better reason than not writing C++
<shevy> it's hanmac writing C++ code
<shevy> or ruby code
<shevy> :)
MXfive_ has joined #ruby
lanemeyer has joined #ruby
MXfive has quit [Ping timeout: 248 seconds]
<riskish> anyone know why this doesn't work, assuming is_prime works as expected? http://codepad.org/S5jSKdio
<sevenseacat> riskish: define "doesnt work"
<riskish> gives the wrong answers
<sevenseacat> do we have to guess what they are?
gauke has joined #ruby
Secnz has quit [Ping timeout: 246 seconds]
<riskish> err. sorry.
PaulCapestany has joined #ruby
<jhass> riskish: you mean loops endlessly
<sevenseacat> or that
<weaksauce> riskish perhaps it's an off by one prime error?
ParmesanCaesar has joined #ruby
<riskish> i don't think it loops endlessly, its giving wrong answers though
sevvie has joined #ruby
<weaksauce> try while counter < n
<jhass> riskish: put puts "i: #{i} counter: #{counter}" into the loop
havenwood has joined #ruby
<riskish> hmm
<riskish> odd, it seems to display correct information when i did that
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<riskish> but it still produces the wrong answer
<shevy> hehe
<sevenseacat> riskish: and what value are you returning?
vivekananda has quit [Ping timeout: 272 seconds]
<riskish> i
quintinadam has quit []
<jhass> riskish: put it once at the top of the loop and once at the bottom
tier has joined #ruby
<sevenseacat> riskish: and which variable is counting primes
<riskish> counter
<sevenseacat> ohhh i totally misinterpreted the meaning of this method
<jhass> sevenseacat: yeah, took me 3 tries too :P
<jhass> I see the problem now
<riskish> that is completely my bad, sorry
<riskish> jhass: what is it?
<jhass> riskish: did you do as I said? put the debugging statement as the first and the last line of the loop?
DavidDudson has joined #ruby
<riskish> yea
<riskish> oh
MXfive_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> did you try with a low n that you can still easily follow, like 5 ?
<riskish> yes
_djbkd has quit [Remote host closed the connection]
<riskish> I'm trying with 1,2,3,4,5
kofione has joined #ruby
dfinninger has quit [Remote host closed the connection]
kblake has quit [Remote host closed the connection]
dfinninger has joined #ruby
<jhass> did it click yet or do you need more hints?
A124 has quit [Ping timeout: 244 seconds]
A124 has joined #ruby
tkuchiki has joined #ruby
oo_ has joined #ruby
<riskish> I need more hints
<riskish> frustrated
_djbkd has joined #ruby
<jhass> so when you found that is is prime, you increase the counter and then...?
silentpost has quit [Read error: Connection reset by peer]
<jhass> *that i is prime
dfinning_ has joined #ruby
silentpost has joined #ruby
thumpba_ has joined #ruby
<riskish> decrease i by 1?
<riskish> i don't know
bruno- has joined #ruby
Pupeno has joined #ruby
dfinninger has quit [Ping timeout: 245 seconds]
mjuszczak has quit []
musashi has quit [Quit: Connection closed for inactivity]
<jhass> += 1 decreases ?
chridal has joined #ruby
marr has quit [Ping timeout: 265 seconds]
<riskish> oh..yeah, increase i by 1
<jhass> do you see it now?
kofione has quit [Quit: Leaving...]
<riskish> no
<jhass> okay, so let's have some fun with basic math: there's only one prime p where p+1 is also prime. Can you name it and explain why?
<riskish> 2, it is prime, and 3 is prime as well
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kyrylo__ has joined #ruby
ponga has quit [Remote host closed the connection]
iteratorP has joined #ruby
<jhass> and why is there no other prime p where p+1 is also prime?
Pupeno has quit [Ping timeout: 240 seconds]
bruno- has quit [Ping timeout: 256 seconds]
Hobogrammer has joined #ruby
<centrx> because when p = 2k k must be 1
<centrx> !!!!
<riskish> yeah i don't know
<jhass> which primes do you know that are also even?
startupality has quit [Quit: startupality]
thumpba_ has quit [Read error: Connection reset by peer]
<riskish> 2
chridal has quit [Ping timeout: 264 seconds]
<jhass> what's an odd number + 1?
thumpba_ has joined #ruby
<riskish> an even number
<jhass> do you see the connection now?
ponga has joined #ruby
thumpba has quit [Ping timeout: 276 seconds]
iteratorP has quit [Remote host closed the connection]
<riskish> not really no
iteratorP has joined #ruby
lessless has joined #ruby
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> well, if 2 is the only even prime, what does that mean for all other primes?
dfinning_ has quit [Ping timeout: 245 seconds]
<riskish> they are all odd
<jhass> sooo, back to my theorem, why is there only one prime p where p+1 is also prime?
hornairs has joined #ruby
<riskish> i have no idea
<baweaver> >> p = 3; (p + 1).even?
<ruboto> baweaver # => true (https://eval.in/313622)
<baweaver> >> p = 5; (p + 1).even?
<ruboto> baweaver # => true (https://eval.in/313623)
<jhass> maybe it's because all primes beside 2 are odd, an odd number plus one is an even number and an even number besides 2 can't be prime?
thumpba_ has quit [Ping timeout: 250 seconds]
kyrylo has joined #ruby
<jhass> do you get that?
<riskish> right yeah
GeorgeThompson has joined #ruby
<jhass> sooo, back to your code
<jhass> you check that i is a prime, what do you next?
<riskish> increase a counter
kyrylo__ has quit [Ping timeout: 245 seconds]
<jhass> and then?
<riskish> then increase i
jenrzzz has quit [Ping timeout: 245 seconds]
<riskish> increase the prime
<jhass> by how much?
<riskish> by 1
<jhass> clicked? ;)
_djbkd has quit [Quit: My people need me...]
<riskish> no
<riskish> :(
<sevenseacat> so now i is not going to be prime anymore
<jhass> yeah, I think I give up
<sevenseacat> as we just established that any prime + 1 is not prime
<jhass> immune to logic :/
tubuliferous has joined #ruby
<riskish> but then the while loop will go around and check, and it will say its not prime, and then it will increase again to an odd number, and try again, right?
<sevenseacat> err, no
GenghisKen has joined #ruby
<riskish> jhass: I need to work on it.
<jhass> riskish: right, but say you increased counter to n+1
_honning_ has quit [Ping timeout: 264 seconds]
<jhass> what happens in that case
<sevenseacat> it wont go around if youre on the nth prime
basiclaser has quit [Quit: Connection closed for inactivity]
riskish has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> aaaand /quit
jenrzzz has joined #ruby
<jhass> there's probably indeed another off by one with the condition, I didn't check
MatthewsFace has joined #ruby
<jhass> but since counter starts at 0 and the condition is <= that's a red flag already
riskish has joined #ruby
<baweaver> jhass: https://gist.github.com/marshall-lee/7146028 - found this bit looking for a haskell-like lazy prime
<baweaver> interesting, but no nth. Not hard to make from there
keen__ has quit [Read error: Connection timed out]
<jhass> baweaver: looks like somebody reimplemented prime stdlib?
MatthewsFace has quit [Remote host closed the connection]
<havenwood> faster!
<baweaver> lazy enumerables
keen__ has joined #ruby
MatthewsFace has joined #ruby
<jhass> is lazy, must be faster, such logic
robustus has quit [Ping timeout: 255 seconds]
<riskish> jhass: are you talking about me?
<baweaver> more memory, yes. Faster, not really much the point for that one.
spider-mario has quit [Ping timeout: 248 seconds]
<centrx> lazy guy does little work, so gets it done quickly!
<jhass> riskish: no, the gist baweaver posted
<riskish> oh
<havenwood> oh, i thought we were talking about the proposed changes to the prime algo in Ruby
<baweaver> lazy is just a more succinct way to phrase some things. Takes something like Haskell for it to be efficient.
<baweaver> That's a thi... nevermind, of course it is.
vim_shimm has joined #ruby
<havenwood> which is... much faster
hannahkoala has joined #ruby
mjuszczak has joined #ruby
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
<jhass> havenwood: what do they switch it for? isn't it mersenne already?
spider-mario has joined #ruby
<havenwood> just #prime?
robustus has joined #ruby
musashi has joined #ruby
<havenwood> i just read the prime stdlib changes out of context and thought we were talking about #prime? since that's all that range a bell, nvm me
<havenwood> rang* >.>
<centrx> previous version used a for..in loop! stdlib is so wacky
reinaldob has joined #ruby
zorak8 has joined #ruby
apoplexy has joined #ruby
zorak8 has quit [Max SendQ exceeded]
iotouch has joined #ruby
ponga has quit [Remote host closed the connection]
zorak8 has joined #ruby
<havenwood> centrx: The Shell docs use the word 'idiomatic' in frighteningly close proximity to a for loop!: http://ruby-doc.org/stdlib/libdoc/shell/rdoc/Shell.html
mjuszczak has quit [Client Quit]
oo_ has quit [Remote host closed the connection]
vdamewood has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
n80 has joined #ruby
<weaksauce> beautiful code
ponga has joined #ruby
jottr_ has joined #ruby
Guest3210 has quit [Remote host closed the connection]
jottr has quit [Read error: Connection reset by peer]
Fezzler has joined #ruby
oo_ has joined #ruby
swgillespie has joined #ruby
ponga has quit [Remote host closed the connection]
Sawbones has joined #ruby
oo_ has quit [Remote host closed the connection]
sankaber has joined #ruby
ismaelga has quit [Remote host closed the connection]
neredsenvy1 has joined #ruby
neredsenvy1 has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
amclain has joined #ruby
ponga has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
neredsenvy has quit [Ping timeout: 244 seconds]
<bricker> Shell... interesting
Feyn has joined #ruby
<bricker> The example has "mkdir" but then it's not documented
<havenwood> bricker: here's a Shell "interpretation" of the Mat's Streem lang Fizz Buzz: https://gist.github.com/havenwood/979fbe4b0c07a627c05a
<havenwood> Matz*
<havenwood> I can't type today.
<bricker> nice
atmosx has quit [Ping timeout: 276 seconds]
nettoweb has joined #ruby
<baweaver> https://gist.github.com/judofyr/3230984 - FizzBuzz in a much more interesting way
<baweaver> no if checks
<baweaver> well, unless
<bricker> "no if checks" lol
tier has quit [Remote host closed the connection]
<baweaver> scratch that, but still
hannahkoala has quit [Read error: Connection reset by peer]
* baweaver needs to remember it's tuesday now.
<sevenseacat> its wednesday! \o/
charliesome has quit [Quit: zzz]
<bricker> >:(
aphprentice has joined #ruby
<baweaver> Was about to say
casshern2 has quit [Ping timeout: 264 seconds]
sargas has joined #ruby
<baweaver> Still Tuesday on the West Coast.
eytanfb has quit [Ping timeout: 256 seconds]
<centrx> Are you on Earth
<sevenseacat> its wednesday on this west coast!
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
Megtastique has joined #ruby
Yzguy has joined #ruby
pika_pika has quit [Ping timeout: 245 seconds]
data-cat has joined #ruby
oo_ has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
iotouch has quit [Quit: This computer has gone to sleep]
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mrmargolis has joined #ruby
Yzguy has quit [Client Quit]
horsecowdog has joined #ruby
<bricker> shhh
Yzguy has joined #ruby
hannahkoala has joined #ruby
vim_shimm has quit [Ping timeout: 240 seconds]
<data-cat> I'm having a problem writing a test for my controller. I was getting "RuntimeError: @controller is nil" but I get "NameError: uninitialized constant" when trying to initialize @controller in my setup method. Does this mean my test cannot find my controller?
greenbagels has joined #ruby
oo_ has joined #ruby
<jhass> ?rails data-cat
<ruboto> data-cat, Please join #RubyOnRails for Rails questions. You need to be authenticated with NickServ, see /msg NickServ help
<sevenseacat> and we'll just ask you for the code and error there :)
<data-cat> Oh my bad, I'll go there.
wookiehangover has quit [Ping timeout: 245 seconds]
data-cat has left #ruby [#ruby]
<havenwood> If it's divisible by 3 print "Flip", if it's divisible by 5 print "Flop"...
GeorgeThompson has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wookiehangover has joined #ruby
arescorpio has joined #ruby
zenith_ has joined #ruby
zenith_ has quit [Excess Flood]
Guest27791 has joined #ruby
Guest27791 has quit [Excess Flood]
vim_shimm has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hannahkoala has quit [Read error: Connection reset by peer]
gorpon_ has joined #ruby
paulcsmith has joined #ruby
hannahkoala has joined #ruby
amclain_ has joined #ruby
Fezzler has quit [Quit: Leaving]
Filete has quit [Ping timeout: 246 seconds]
Astrologos_ has joined #ruby
amclain has quit [Ping timeout: 245 seconds]
jottr has joined #ruby
NoNMaDDeN has joined #ruby
havenwood has quit []
kblake has joined #ruby
maximski has joined #ruby
vivekananda has joined #ruby
dorei has quit [Ping timeout: 264 seconds]
maximski has quit [Max SendQ exceeded]
jottr_ has quit [Ping timeout: 246 seconds]
maximski has joined #ruby
longfeet has joined #ruby
iotouch has joined #ruby
gorpon_ has quit [Quit: Konversation terminated!]
NoNMaDDeN has quit [Ping timeout: 265 seconds]
kblake has quit [Ping timeout: 252 seconds]
zzing has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rbennacer has joined #ruby
evanjs has joined #ruby
grindmodeon has quit [Quit: Leaving.]
paulcsmith has quit [Quit: Be back later ...]
nettoweb has quit [Ping timeout: 252 seconds]
krisquigley has joined #ruby
babykosh has quit [Quit: babykosh]
<vulix> So I'm on windows, if I install using RailsInstaller.com, I get this warning first tiem I boot up Ruby 'DL is deprecated, please use Fiddle'
jzigmund has quit [Ping timeout: 240 seconds]
<sevenseacat> its a safe warning to ignore.
zubov has joined #ruby
rbennacer has quit [Ping timeout: 272 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
FernandoBasso has quit [Quit: leaving]
Astrologos_ has quit []
wallerdev has quit [Quit: wallerdev]
dorei has joined #ruby
dopie has quit [Remote host closed the connection]
<vulix> Ah sevenseacat youre back :) Ty for your help so far
nettoweb has joined #ruby
krisquigley has quit [Ping timeout: 250 seconds]
doodlehaus has joined #ruby
nettoweb has quit [Max SendQ exceeded]
zubov has quit [Remote host closed the connection]
nettoweb has joined #ruby
tgunr has joined #ruby
Spleeze has quit [Ping timeout: 245 seconds]
mgberlin has quit [Remote host closed the connection]
DavidDudson has joined #ruby
iotouch has quit [Ping timeout: 256 seconds]
GeorgeThompson has joined #ruby
fabrice31 has joined #ruby
iotouch has joined #ruby
<vulix> Unable to download data from https://rubygems.org/ - SSL_connect returned=1
<vulix> anyone run into this?
sargas has quit [Quit: This computer has gone to sleep]
ag4ve_ has joined #ruby
<sevenseacat> a full error might help.
<sevenseacat> but i suspect its the 'rubygems needs an update' issue.
mrmargolis has quit [Remote host closed the connection]
tkuchiki_ has joined #ruby
Spleeze has joined #ruby
fabrice31 has quit [Ping timeout: 265 seconds]
tkuchiki has quit [Ping timeout: 240 seconds]
<vulix> I found a fix
anthony_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
doodlehaus has quit [Remote host closed the connection]
trollface is now known as Paradox
hannahkoala has quit [Read error: Connection reset by peer]
<sevenseacat> yep.
Astrologos_ has joined #ruby
graydot has quit [Quit: graydot]
hannahkoala has joined #ruby
Sawbones has quit [Remote host closed the connection]
dorei has quit [Ping timeout: 250 seconds]
oo_ has quit [Remote host closed the connection]
anthony has joined #ruby
babykosh has joined #ruby
evanjs has quit [Remote host closed the connection]
anthony is now known as Guest44126
zachrab has joined #ruby
moeabdol2 has joined #ruby
bintelli has joined #ruby
greenbagels has quit [Quit: Leaving]
<vulix> yay I got rails running on Windows finally :) Older version but whatever
bim has joined #ruby
gauke has quit [Read error: Connection reset by peer]
<vulix> good enough just to learn, its not production. Hopefully nothing major I learn is deprecated
bim is now known as Guest34681
Asher2 has joined #ruby
wallerdev has joined #ruby
<sevenseacat> vulix: what version are you on?
<vulix> Ruby 2.1.5 and Rails 4.1
<sevenseacat> good enough.
<Paradox> so…i actually used the flipflop operator at work the other day
<vulix> I know a CVE just went out so 2.2.2 is where I'd want to be for production but w/e
Asher has quit [Ping timeout: 244 seconds]
GeorgeThompson has quit [Ping timeout: 240 seconds]
<sevenseacat> you could have picked ruby 2.2.1, but eh
<sevenseacat> 2.1.5 is fine
<vulix> I was having issues with RubyInstaller.org
<vulix> I can get Rails installed manually using gems, but when it comes to SQLite it has some issues
moeabdol2 has quit [Ping timeout: 245 seconds]
dudedudemanforgo has quit [Ping timeout: 246 seconds]
<sevenseacat> so you said yesterday, without saying what they actually were
<sevenseacat> which is not something we can help with
zachrab has quit [Ping timeout: 264 seconds]
<vulix> `require': cannot load such file -- sqlite3/sqlite3_native
Asher2 has quit [Client Quit]
Guest34681 has quit [Ping timeout: 255 seconds]
Asher has joined #ruby
havenwood has joined #ruby
<sevenseacat> all good, you've got a good enough version installed, now go and learn!
quintinadam has joined #ruby
oo_ has joined #ruby
sankaber has joined #ruby
<vulix> So next question I have is, does Ruby supprt C bindings like Python does, and if so where should I be looking at for them?
<vulix> I have a bad habit of asking IRC before Googling.
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
anibara has joined #ruby
<vulix> gem install RubyInline found my answer
<vulix> so if I build a gem using ruby inline, can I bundle rubyinline with my gem or does any user have to download both separately?
<sevenseacat> you can make your gem depend on other gems.
gusrub has quit [Quit: Leaving]
Beoran has quit [Ping timeout: 256 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rickmasta has quit [Quit: Textual IRC Client: www.textualapp.com]
<bricker> ;o
hannahkoala has quit [Read error: Connection reset by peer]
<bricker> woa
<bricker> :O
zzing has joined #ruby
Filete has joined #ruby
nettoweb has joined #ruby
<vulix> Got it...that's pretty sweet
Renich has joined #ruby
gsd has joined #ruby
Renich has joined #ruby
ringarin has joined #ruby
quintinadam has quit []
Rickmasta has joined #ruby
nettoweb has quit [Client Quit]
<vulix> I'm basically just looking to use Ruby as a hobby language to implement some machine learning algorithms that there are already libraries for in Java and Python...figured a new language incentivizes me to learn by implementing myself rather than just using what exists :P. The C bindings will be great for widening any crippling bottlenecks
somnium has quit [Ping timeout: 272 seconds]
hannahkoala has joined #ruby
plutonic has joined #ruby
ramfjord has quit [Ping timeout: 244 seconds]
fedexo has joined #ruby
djbkd has quit [Remote host closed the connection]
sankaber has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
Fezzler has joined #ruby
wallerdev has quit [Quit: wallerdev]
djbkd has quit [Remote host closed the connection]
wallerdev has joined #ruby
djbkd has joined #ruby
ascarter has joined #ruby
sankaber has joined #ruby
djbkd_ has joined #ruby
Beoran has joined #ruby
Astrologos_ has quit []
zachrab has joined #ruby
somnium has joined #ruby
djbkd has quit [Ping timeout: 264 seconds]
silentpost has quit [Read error: Connection reset by peer]
hannahkoala has quit [Read error: Connection reset by peer]
silentpost has joined #ruby
hannahkoala has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
RegulationD has joined #ruby
NoNMaDDeN has joined #ruby
bricker has quit [Ping timeout: 250 seconds]
reinaldob has quit [Remote host closed the connection]
zachrab has quit [Remote host closed the connection]
Deele has quit [Ping timeout: 256 seconds]
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
maximski has quit []
chinmay_dd has joined #ruby
RegulationD has quit [Ping timeout: 240 seconds]
tus has quit []
mgberlin has joined #ruby
oo_ has quit [Remote host closed the connection]
evanjs has joined #ruby
mic has joined #ruby
arescorpio has quit [Ping timeout: 252 seconds]
Sawbones has joined #ruby
postmodern has joined #ruby
<mic> If there a perfered way to include preexisting command line gem into a command line gem i am creating and the included gem from mine?
amclain_ has quit [Quit: Leaving]
oo_ has joined #ruby
gauke has joined #ruby
casadei has joined #ruby
ramfjord has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
casadei has quit [Ping timeout: 276 seconds]
jottr has quit [Ping timeout: 264 seconds]
tiago_ has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
somnium has quit [Ping timeout: 264 seconds]
hannahkoala has quit [Quit: My computer has gone to sleep. ZZZzzz…]
tiago has quit [Ping timeout: 255 seconds]
tiago_ is now known as tiago
tiago has quit [Changing host]
tiago has joined #ruby
hmsimha has joined #ruby
tearan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
GeorgeThompson has joined #ruby
vim_shimm has quit [Ping timeout: 264 seconds]
Hijiri has quit [Quit: WeeChat 1.0.1]
<bintelli> any recommendations for a ruby natural language toolkit? Similar to Python's?
riskish has quit [Quit: Textual IRC Client: www.textualapp.com]
chinmay_dd has quit [Quit: Leaving]
michael_mbp has quit [Excess Flood]
<havenwood> bintelli: Here's a recently-compiled list of Ruby NLP gems: https://github.com/diasks2/ruby-nlp
michael_mbp has joined #ruby
vim_shimm has joined #ruby
lemur has joined #ruby
somnium has joined #ruby
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
sinkensabe has quit [Remote host closed the connection]
ponga has quit [Remote host closed the connection]
sinkensabe has joined #ruby
longfeet has quit [Quit: Leaving]
fwaokda_ has quit [Ping timeout: 246 seconds]
Sawbones has quit [Remote host closed the connection]
Guest44126 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
braincrash has quit [Quit: bye bye]
msmith has quit []
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
vim_shimm has quit [Ping timeout: 240 seconds]
moeabdol2 has joined #ruby
mic has quit [Remote host closed the connection]
silentpost has quit [Read error: Connection reset by peer]
gauke has quit [Read error: Connection reset by peer]
vivekananda has quit [Quit: Leaving]
silentpost has joined #ruby
bim has joined #ruby
XorSwap has quit [Ping timeout: 240 seconds]
bim is now known as Guest19404
work has joined #ruby
Sawbones has joined #ruby
moeabdol2 has quit [Ping timeout: 246 seconds]
Guest19404 has quit [Ping timeout: 264 seconds]
swgillespie has joined #ruby
amystephen has quit [Quit: amystephen]
swgillespie has quit [Client Quit]
braincras has joined #ruby
multi_io has quit [Ping timeout: 272 seconds]
multi_io has joined #ruby
A124 has quit [Quit: Luke's IRC Client v0.94 build 682]
jeramy_s has quit [Quit: Peace out!]
A124 has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
willharrison has joined #ruby
<willharrison> what should I use to create charts using ruby?
<sevenseacat> in a web app, I'd look at one of the many js frameworks for it
<willharrison> it's not a web app
<willharrison> I just need an image output
<centrx> nyaplot also looks good
hgl- has joined #ruby
<centrx> can also output to gnuplot
yfeldblum has quit [Remote host closed the connection]
hgl has quit [Read error: Connection reset by peer]
grindmodeon has joined #ruby
hgl- is now known as hgl
silentpost has quit [Ping timeout: 248 seconds]
<willharrison> cool I will look into it
<willharrison> I tried gruff but I get `require': cannot load such file -- gruff (LoadError)
<willharrison> not sure what that means
<sevenseacat> it means it couldnt load the file
bintelli has quit [Quit: Page closed]
colorisco has quit [Ping timeout: 248 seconds]
<willharrison> ah apparently the gem install failed
Sypheren has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
Axy has joined #ruby
Mia has quit [Ping timeout: 240 seconds]
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
krisquigley has joined #ruby
arup_r has joined #ruby
Fezzler has quit [Quit: Leaving]
horsecowdog has quit [Remote host closed the connection]
astrobunny has joined #ruby
MyGreenPickle has joined #ruby
moeabdol2 has joined #ruby
sinkensabe has quit [Ping timeout: 255 seconds]
reinaldob has joined #ruby
freerobby has quit [Quit: Leaving.]
krisquigley has quit [Ping timeout: 265 seconds]
colorisco has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
ringarin has quit [Read error: Connection reset by peer]
ringarin has joined #ruby
MyGreenPickle has quit [Ping timeout: 245 seconds]
reinaldob has quit [Ping timeout: 265 seconds]
fabrice31 has joined #ruby
ujihisa has joined #ruby
moeabdol2 has quit [Quit: WeeChat 1.1.1]
yfeldblum has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ponga has joined #ruby
<shevy> sounds like a naughty gem
fabrice31 has quit [Ping timeout: 240 seconds]
grindmodeon has quit [Quit: Leaving.]
Yzguy has quit [Quit: I'm sleeping, go away.]
musashi has quit [Quit: Connection closed for inactivity]
GenghisKen has quit [Ping timeout: 252 seconds]
<shevy> anyone happens to remember offhand how to find out the --prefix used for the ruby installation?
davedev24_ has quit []
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 37.0.1/2015040300]]
oo_ has quit [Remote host closed the connection]
n80 has quit [Quit: n80]
DavidDudson has joined #ruby
icebourg has joined #ruby
Vile` has quit [Ping timeout: 248 seconds]
Sawbones has quit []
paradisaeidae has quit [Ping timeout: 248 seconds]
swgillespie has joined #ruby
<Sypheren> So characteristics (denoted by the @ symbol) allow variables to exist within a whole class, and not only with in a method?
<Sypheren> Just making sure I'm understanding this correctly
towski__ has joined #ruby
Vile` has joined #ruby
towski_ has quit [Ping timeout: 245 seconds]
<sevenseacat> @ denotes instance variables - a variable belonging to the instance of the class. accessible from every instance method.
<sevenseacat> eg. if you had a Dog class, then an instance might have a @name (every dog has a name, right?)
Morkel has joined #ruby
NoNMaDDeN has quit [Quit: Leaving...]
<Sypheren> Right! So any @variable will only be accessible to methods inside of the class that it was defined in. While normal variable = *stuff* would only be accessible inside of the method?
<sevenseacat> right, that would be a local variable.
<Sypheren> I see! You used the same example codecademy did
<Sypheren> They use Dog a lot
<sevenseacat> that was purely by coincidence, ive never used codecademy lol
<Sypheren> I'm learning Rails :3
<Sypheren> The Ruby part came eaily... Rails... not so much
<sevenseacat> to pick a different example, every instance of a Tweet model would have @content, for example
<Sypheren> I don't understand quite a bit of it
<sevenseacat> rails is fuuuun
<Sypheren> model?
<Sypheren> Thats new
A205B064 has quit [Ping timeout: 276 seconds]
moeabdol has joined #ruby
<sevenseacat> blerp, using Rails terminology now
<sevenseacat> Tweet class works too
MasterPiece has quit [Quit: Leaving]
<Sypheren> I'm still having a hard time understanding how Rails does its thing >_<
<sevenseacat> i'm primarily a Rails developer, so, my apologies
<sevenseacat> if you have questions specifically on Rails, you can jump over to #rubyonrails to get more specialized help
<Sypheren> You're perfectly fine! I just don't know what a model is exactly yet, I've heard the term though
<sevenseacat> (i'll answer you there too)
<Sypheren> I'm in that channel too :3
<Sypheren> Thank you :)
oo_ has joined #ruby
evanjs has quit [Remote host closed the connection]
zorak8 has quit [Quit: Leaving]
Deele has joined #ruby
MyGreenPickle has joined #ruby
bruno- has joined #ruby
silentpost has joined #ruby
MyGreenPickle has quit [Ping timeout: 246 seconds]
centrx has quit [Remote host closed the connection]
ringarin has quit [Ping timeout: 244 seconds]
blazes816 has joined #ruby
RegulationD has joined #ruby
mitchellhenke has joined #ruby
bruno- has quit [Ping timeout: 255 seconds]
Hijiri has joined #ruby
silentpost has quit [Ping timeout: 255 seconds]
tcrypt has quit [Ping timeout: 252 seconds]
zachrab has joined #ruby
blazes816 has quit [Ping timeout: 244 seconds]
RegulationD has quit [Ping timeout: 244 seconds]
oo_ has quit [Remote host closed the connection]
zachrab has quit [Ping timeout: 256 seconds]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
oo_ has joined #ruby
konsolebox has joined #ruby
casadei has joined #ruby
mgberlin_ has joined #ruby
mgberlin has quit [Read error: Connection reset by peer]
sinkensabe has joined #ruby
konsolebox has quit [Read error: Connection reset by peer]
lolmaus has joined #ruby
work is now known as fxck
mary5030 has joined #ruby
casadei has quit [Ping timeout: 265 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hfp has quit [Ping timeout: 244 seconds]
rootsudo has quit [Remote host closed the connection]
hfp has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x1337807x has joined #ruby
konsolebox has joined #ruby
HanaNix has quit [Quit: Textual IRC Client: www.textualapp.com]
mary5030 has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 256 seconds]
konsolebox has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
havenwood has joined #ruby
lxsameer has joined #ruby
yfeldblum has quit [Remote host closed the connection]
havenn has joined #ruby
sevvie has quit [Ping timeout: 272 seconds]
sevvie has joined #ruby
jottr has joined #ruby
havenwood has quit [Ping timeout: 245 seconds]
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_whitelogger has quit [Ping timeout: 272 seconds]
_whitelogger has joined #ruby
krisquigley has joined #ruby
havenwood has joined #ruby
droidburgundy has joined #ruby
GeorgeThompson has quit [Quit: Textual IRC Client: www.textualapp.com]
havenn has quit [Ping timeout: 256 seconds]
GeorgeThompson has joined #ruby
MyGreenPickle has quit [Ping timeout: 250 seconds]
krisquigley has quit [Ping timeout: 248 seconds]
zachrab has joined #ruby
konsolebox has joined #ruby
konsolebox has quit [Read error: Connection reset by peer]
aphprentice has quit [Remote host closed the connection]
silentpost has joined #ruby
fabrice31 has joined #ruby
zachrab has quit [Ping timeout: 255 seconds]
joonty has joined #ruby
casadei has joined #ruby
joonty has quit [Client Quit]
fabrice31 has quit [Ping timeout: 245 seconds]
silentpost has quit [Ping timeout: 256 seconds]
pagios has joined #ruby
hmsimha has quit [Ping timeout: 256 seconds]
techsethi has joined #ruby
Eiam_ has joined #ruby
Pupeno has joined #ruby
soypirate has joined #ruby
casadei has quit [Ping timeout: 265 seconds]
ChoiKyuSang has quit [Quit: AdiIRC is updating to v1.9.7 Beta Build (2015/04/14)32 Bit]
sinkensabe has quit [Remote host closed the connection]
sinkensa_ has joined #ruby
ChoiKyuSang has joined #ruby
Pupeno has quit [Quit: Leaving...]
grindmodeon has joined #ruby
f3lp has joined #ruby
sinkensa_ has quit [Read error: No route to host]
grindmodeon has quit [Quit: Leaving.]
ohaibbq has joined #ruby
<havenwood> DeBot: !hangman ruby
<DeBot> ␣␣␣␣␣␣ [] 0/12
<havenwood> DeBot: e
<DeBot> ␣␣␣e␣␣ [] 0/12
<sevenseacat> DeBot: rst
<DeBot> ␣␣␣e␣␣ [rst] 3/12
<sevenseacat> DeBot: n
<DeBot> ␣␣␣e␣␣ [rstn] 4/12
grindmodeon has joined #ruby
<sevenseacat> DeBot: l
<DeBot> ␣␣␣e␣␣ [rstnl] 5/12
<sevenseacat> DeBot: o
<DeBot> ␣O␣eo␣ [rstnl] 5/12
<sevenseacat> DeBot: i
<DeBot> IO␣eo␣ [rstnl] 5/12
<havenwood> DeBot: #
<DeBot> IO#eo␣ [rstnl] 5/12
<sevenseacat> DeBot: f
<DeBot> IO#eof [rstnl] 5/12 You won!
<sevenseacat> that was a hard one
<havenwood> only one consonant
<havenwood> Alex, I'd like to buy a vowel.
ponga has quit [Remote host closed the connection]
<certaint1> moin
<havenwood> Pat*
<havenwood> certaint1: g'morn
<certaint1> ui hangman time
jottr has quit [Ping timeout: 250 seconds]
iamninja has quit [Read error: Connection reset by peer]
certaint1 is now known as certainty
iamninja has joined #ruby
lobolars has joined #ruby
<certainty> that reminds me that i wanted to write the hangman solver
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Spami has joined #ruby
aganov has joined #ruby
RegulationD has joined #ruby
<certainty> let's play another round
<certainty> hmm why does freenode tell me that i'm banned on #rubyonrails
<sevenseacat> lol
techsethi has quit [Quit: techsethi]
<havenwood> DeBot: !hangman nouns
<DeBot> ␣␣␣␣␣␣ [] 0/12
<certainty> DeBot: #
<DeBot> ␣␣␣␣␣␣ [#] 1/12
<certainty> hmm
<certainty> DeBot: e
<DeBot> ␣␣␣e␣␣ [#] 1/12
<certainty> DeBot: r
<DeBot> ␣␣␣e␣␣ [#r] 2/12
<certainty> DeBot: d
<DeBot> ␣␣␣e␣␣ [#rd] 3/12
<certainty> DeBot: f
<DeBot> ␣␣␣e␣␣ [#rdf] 4/12
<sevenseacat> DeBot: st
<DeBot> ␣␣se␣t [#rdf] 4/12
<Radar> DeBot: n
<DeBot> ␣nse␣t [#rdf] 4/12
<certainty> DeBot: n
<DeBot> ␣nse␣t [#rdf] 4/12
mary5030 has joined #ruby
<sevenseacat> DeBot: r
<DeBot> ␣nse␣t [#rdf] 4/12
<certainty> DeBot: u
<DeBot> ␣nse␣t [#rdfu] 5/12
<Radar> DeBot: i
<DeBot> inse␣t [#rdfu] 5/12
<quesker> c
<Radar> DeBot: c
<DeBot> insect [#rdfu] 5/12 You won!
<Radar> \o/
<certainty> ah it's nouns
<certainty> lol i thought of ruby
<havenwood> DeBot: !hangman gems
<DeBot> ␣␣␣␣␣␣␣␣␣␣ [] 0/12
RegulationD has quit [Ping timeout: 240 seconds]
<dodobrain> DeBot, a
<DeBot> ␣␣␣␣␣␣␣␣␣␣ [a] 1/12
<Radar> DeBot: e
<DeBot> ␣␣␣␣␣e␣␣e␣ [a] 1/12
<havenwood> DeBot: s
<DeBot> ␣␣␣␣␣e␣␣e␣ [as] 2/12
<Radar> DeBot: m
<DeBot> ␣␣m␣␣e␣␣e␣ [as] 2/12
<Radar> DeBot: i
<DeBot> ␣␣m␣␣e␣␣e␣ [asi] 3/12
<dodobrain> DeBot, o
<DeBot> ␣␣m␣␣e␣␣e␣ [asio] 4/12
<sevenseacat> DeBot: t
<DeBot> ␣␣m␣␣e␣␣e␣ [asiot] 5/12
<dodobrain> DeBot, b
<DeBot> ␣␣m␣␣e␣␣e␣ [asiotb] 6/12
<havenwood> gosh
<sevenseacat> DeBot: r
<DeBot> ␣␣m␣␣e␣␣er [asiotb] 6/12
<Radar> DeBot: p
<DeBot> ␣␣m␣␣e␣per [asiotb] 6/12
<sevenseacat> DeBot: l
<DeBot> ␣␣m␣␣elper [asiotb] 6/12
<dodobrain> DeBot, h
<DeBot> ␣␣m␣helper [asiotb] 6/12
<Radar> DeBot: -
<DeBot> ␣␣m␣helper [asiotb-] 7/12
<Radar> DeBot: _
<DeBot> ␣␣m_helper [asiotb-] 7/12
<sevenseacat> DeBot: :
<DeBot> ␣␣m_helper [asiotb-:] 8/12
<havenwood> DeBot: c
<DeBot> ␣cm_helper [asiotb-:] 8/12
<dodobrain> DeBot, g
<DeBot> gcm_helper [asiotb-:] 8/12 You won!
turtil has quit [Quit: WeeChat 1.1.1]
<sevenseacat> arr
<dodobrain> lol who won?
lobolars has quit [Read error: Connection reset by peer]
<havenwood> we did
<dodobrain> yay
<Radar> GO TEAM #RUBY
<havenwood> \o/
tagrudev has joined #ruby
hornairs has quit [Quit: hornairs]
mary5030 has quit [Ping timeout: 255 seconds]
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
mengu has joined #ruby
mengu has joined #ruby
konsolebox has joined #ruby
soypirate has quit [Quit: Leaving]
arturaz has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
mengu has quit [Ping timeout: 250 seconds]
fedexo has quit [Ping timeout: 245 seconds]
konsolebox has quit [Read error: Connection reset by peer]
sigurding has joined #ruby
dodobrain has quit [Quit: bye... o/]
andikr has joined #ruby
codecop has joined #ruby
Eiam_ has quit [Quit: Textual IRC Client: www.textualapp.com]
MyGreenPickle has joined #ruby
fabrice31 has joined #ruby
ponga has joined #ruby
zzing has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hannahkoala has joined #ruby
AlphaAtom has joined #ruby
DavidDudson has joined #ruby
ujihisa has quit [Ping timeout: 246 seconds]
MyGreenPickle has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby
Pupeno has joined #ruby
hannahkoala has quit [Read error: Connection reset by peer]
hannahkoala has joined #ruby
<shevy> \o/
<shevy> we rule
DavidDudson has quit [Client Quit]
hannahkoala has quit [Read error: Connection reset by peer]
hannahko_ has joined #ruby
Spami has quit [Ping timeout: 272 seconds]
hannahko_ has quit [Read error: Connection reset by peer]
Beliq has joined #ruby
zachrab has joined #ruby
moeabdol has quit [Quit: WeeChat 1.1.1]
hannahko_ has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
zachrab has quit [Ping timeout: 272 seconds]
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
riotjones has joined #ruby
musashi has joined #ruby
<ponga> shevy: thanks
<ponga> http://rubular.com this cheat sheet helped more than ever
<ponga> more than those tedious long documents
eshiffob has joined #ruby
gf3 has quit [Ping timeout: 264 seconds]
clamstar has quit [Ping timeout: 256 seconds]
ta_ has quit [Remote host closed the connection]
fabrice31 has quit [Remote host closed the connection]
<vulix> Anyone used C bindings in Ruby ? Theres a gem called RubyInline, not sure if there are others
fabrice31 has joined #ruby
rdark has joined #ruby
rfi has quit [Ping timeout: 256 seconds]
rfi has joined #ruby
plutonic has quit [Quit: plutonic]
gf3 has joined #ruby
cefkamcau has quit [Ping timeout: 264 seconds]
grindmodeon has quit [Quit: Leaving.]
<hanmac1> vulix: i prefer to write the C bindings myself in C(++) because with that i have more control over the code/memory
<vulix> How do you embed them in your ruby code?
<hanmac1> vulix: just with require? the binding self got compiled as native one without RubyInline
<vulix> hanmac1 sorry I'm new to Ruby, not quite following. You can just have some C++ and import it natively and call methods from it? Or...?
<hanmac1> vulix: Ruby (the MRI one and some others too) does have an C-API interface ... with that you can connect C(++) structures and functions into Ruby Objects and other way around ... for sample nokogiri is such a native binding
poguez_ has joined #ruby
<vulix> hanmac1 Interesting tyvm for the info, I didn't know that. That helps a lot
clamstar has joined #ruby
hannahko_ has quit [Read error: Connection reset by peer]
allenn has joined #ruby
hannahkoala has joined #ruby
A205B064 has joined #ruby
<hanmac1> vulix: for sample in one of my bindings would a WX::Color#red call turn the ruby object into a wxColor* pointer and call the color->GetRed() function from that and then use INT2NUM to turn the returned C Int into an Ruby Integer
<vulix> hm ill have to read more about it, you lost me a bit there xP
lobolars has joined #ruby
<shevy> ponga yeah that is lovely, I used it a few months ago to write a very complicated regex
<ponga> i always appreciate straight to the point data,table explanation
<ponga> rather than telling me never ending story
gagrio has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
towski__ has quit [Remote host closed the connection]
AlphaTech is now known as zz_AlphaTech
apoplexy has quit [Ping timeout: 245 seconds]
<certainty> http://tenderlovemaking.com/2015/02/13/predicting-test-failues.html in case you didn't read it already. that's an interesting idea
chridal has joined #ruby
hannahkoala has quit [Read error: Connection reset by peer]
hannahkoala has joined #ruby
pandaant has joined #ruby
robbyoconnor has joined #ruby
CorpusCallosum has joined #ruby
bradleyp_ has joined #ruby
charliesome has quit [Quit: zzz]
User458764 has joined #ruby
icebourg has quit []
krisquigley has joined #ruby
bradleyprice has quit [Ping timeout: 245 seconds]
pico-pete has quit [Ping timeout: 240 seconds]
bim has joined #ruby
bim is now known as Guest10893
oo_ has quit [Remote host closed the connection]
ki0 has joined #ruby
yfeldblu_ has joined #ruby
f3lp has quit [Ping timeout: 252 seconds]
kadoppe has quit [Ping timeout: 245 seconds]
krisquigley has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Ping timeout: 245 seconds]
chridal has quit [Ping timeout: 252 seconds]
Guest10893 has quit [Ping timeout: 272 seconds]
kadoppe has joined #ruby
oo_ has joined #ruby
avahey has quit [Quit: Connection closed for inactivity]
gauke has joined #ruby
fabrice31_ has joined #ruby
MyGreenPickle has joined #ruby
bradleyp_ has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 246 seconds]
casadei has joined #ruby
jheg has joined #ruby
MyGreenPickle has quit [Ping timeout: 245 seconds]
casadei has quit [Ping timeout: 272 seconds]
Filete has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hanmac has quit [Ping timeout: 265 seconds]
bradleyprice has joined #ruby
noname has quit [Ping timeout: 255 seconds]
<shevy> guys
<shevy> did you know that duck typing is an old term?
<shevy> from 1738
<shevy> looks like a duck
<shevy> walks like a duck
<shevy> is a duck!
ta has joined #ruby
robbyoconnor has quit [Quit: Konversation terminated!]
sevvie has quit [Ping timeout: 264 seconds]
grindmodeon has joined #ruby
kblake has joined #ruby
<mozzarella> now I want a robotic duck
spider-mario has quit [Ping timeout: 272 seconds]
Guest80710 has joined #ruby
antgel has joined #ruby
<arup_r> O I S
bluOxigen has joined #ruby
hannahkoala has quit [Quit: My computer has gone to sleep. ZZZzzz…]
kblake has quit [Ping timeout: 240 seconds]
chridal has joined #ruby
techsethi has joined #ruby
maximski has quit []
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
dumdedum has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest80710 is now known as marr
ohaibbq has quit [Quit: Leaving...]
hanmac has joined #ruby
User458764 has joined #ruby
sevvie has joined #ruby
<avril14th> moin
iamninja has quit [Read error: Connection reset by peer]
RegulationD has joined #ruby
kaspernj has joined #ruby
havenwood has quit [Ping timeout: 240 seconds]
iamninja has joined #ruby
theRoUS has quit [Quit: Coyote finally caught me]
mhib has joined #ruby
RegulationD has quit [Ping timeout: 252 seconds]
quimrstorres has joined #ruby
bruno- has joined #ruby
grzywacz has joined #ruby
<flughafen> suppppppper
<shevy> flughafen, don't go airborne man
<shevy> think of berlin
noname has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
chridal has quit [Ping timeout: 252 seconds]
mengu has quit [Remote host closed the connection]
mengu has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
bruno- has quit [Ping timeout: 248 seconds]
quimrstorres has quit [Remote host closed the connection]
imanzarrabian has joined #ruby
quimrstorres has joined #ruby
Takle has joined #ruby
CorpusCallosum has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
User458764 has joined #ruby
nuck has joined #ruby
ujihisa has joined #ruby
quimrstorres has quit [Remote host closed the connection]
<arup_r> A project is keep going on.. it seems never end.. What should I do ?
<arup_r> :D
<apeiros> delete it
krnlsndrs has quit [Ping timeout: 255 seconds]
<arup_r> Yes.. rm -rf is better option..
<arup_r> I was expecting same ... :)
<arup_r> I have one code `product.promotion_rules.first.promotion.actions.first.calculator.preferences[:percent].to_i`
<arup_r> LOD shouting for that'
joonty has joined #ruby
quimrstorres has joined #ruby
michael_mbp has quit [Excess Flood]
chthon has joined #ruby
nuck has quit [Ping timeout: 256 seconds]
quimrstorres has quit [Remote host closed the connection]
<ddv> arup_r: simple
<ddv> arup_r: finish it
krisquigley has joined #ruby
<adaedra> It's simple
<adaedra> We kill the project.
<ddv> sabotage the project
michael_mbp has joined #ruby
quimrstorres has joined #ruby
<shevy> rewrite it in PHP
<adaedra> don't say such atrocities, shevy
krnlsndrs has joined #ruby
HayesHimself has joined #ruby
nuck has joined #ruby
Takle has quit [Remote host closed the connection]
lordkryss has joined #ruby
quimrsto_ has joined #ruby
quimrstorres has quit [Remote host closed the connection]
bim has joined #ruby
krisquigley has quit [Ping timeout: 272 seconds]
zachrab has joined #ruby
bim is now known as Guest38174
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alienaut has joined #ruby
<sevenseacat> there's nothing we can do about your project arup_r , you have to either finish it or take it up with your boss
ujjain has joined #ruby
quimrsto_ has quit [Remote host closed the connection]
<arup_r> looking for tips.. how to convince Boss! ;)
mhib has quit [Remote host closed the connection]
<jhass> write nice expensive estimates "if you want X it gonna cost you Y"
MyGreenPickle has joined #ruby
Sypheren has quit [Ping timeout: 246 seconds]
zachrab has quit [Ping timeout: 256 seconds]
ujihisa has quit [Ping timeout: 256 seconds]
postmodern has quit [Quit: Leaving]
Cust0sL1men has joined #ruby
govg has joined #ruby
elaptics_away is now known as elaptics
krz has joined #ruby
MyGreenPickle has quit [Ping timeout: 250 seconds]
aswen has joined #ruby
mengu has quit [Remote host closed the connection]
huddy has joined #ruby
quimrstorres has joined #ruby
Zai00 has joined #ruby
grzywacz has left #ruby [":wq"]
<arup_r> ok
ponga has quit [Remote host closed the connection]
krnlsndrs has quit [Ping timeout: 250 seconds]
ponga has joined #ruby
grindmodeon has quit [Quit: Leaving.]
grindmodeon has joined #ruby
chridal has joined #ruby
sigurding has quit [Quit: sigurding]
Contigi777 has joined #ruby
anarang has joined #ruby
Contigi has quit [Ping timeout: 240 seconds]
grindmodeon has quit [Quit: Leaving.]
marr has quit [Ping timeout: 256 seconds]
turtil has joined #ruby
|insufficientfun has joined #ruby
|insufficientfun has left #ruby [#ruby]
krnlsndrs has joined #ruby
ikeike443 has joined #ruby
startupality has joined #ruby
Takle has joined #ruby
sevvie has quit [Ping timeout: 248 seconds]
ghr has joined #ruby
sigurding has joined #ruby
startupality has quit [Client Quit]
<shevy> arup_r disguise as a pretty girl and "convince" him
startupality has joined #ruby
<arup_r> lol
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arup_r has quit [Remote host closed the connection]
<shevy> arup_r perhaps set a smaller goal for it
<shevy> even if you can not finish the whole thing, you could finish the smaller goal
musashi has quit [Quit: Connection closed for inactivity]
<ddv> yeah I once made 100's of changes without checking if it worked :P
<ddv> you're in a world of pain
<shevy> haha
sevvie has joined #ruby
alienaut has quit [Remote host closed the connection]
moeabdol has joined #ruby
A205B064 has quit [Ping timeout: 264 seconds]
Igorshp has joined #ruby
Casshern2 has joined #ruby
pen has joined #ruby
jgoyon has joined #ruby
platzhirsch has joined #ruby
jenrzzz has joined #ruby
vtunka has joined #ruby
blackmesa has joined #ruby
astrobunny has quit [Remote host closed the connection]
marr has joined #ruby
leafybasil has quit [Remote host closed the connection]
nuck has quit [Ping timeout: 264 seconds]
<shevy> oh my god
<shevy> complex systems are surprising
Soda has joined #ruby
nfk has joined #ruby
<sonOfRa> ...ly complex? :)
Pharaoh2 has joined #ruby
workmad3 has joined #ruby
<adaedra> :|
nuck has joined #ruby
Guest38174 has quit [Remote host closed the connection]
casadei has joined #ruby
AlphaAtom has quit [Ping timeout: 265 seconds]
jgoyon has quit [Quit: WeeChat 1.0]
<shevy> so
<shevy> what is the program name
arup_r has joined #ruby
<shevy> and what is the program version
nuck has quit [Client Quit]
basiclaser has joined #ruby
tpimtts_away has quit [Ping timeout: 265 seconds]
casadei has quit [Ping timeout: 240 seconds]
tpimtts_away has joined #ruby
sevvie has quit [Ping timeout: 240 seconds]
Guest53782 has joined #ruby
fella6s has joined #ruby
bim has joined #ruby
lanemeyer has quit [Ping timeout: 252 seconds]
Takle has quit [Remote host closed the connection]
bim is now known as Guest50113
sevvie has joined #ruby
MXfive has joined #ruby
fella5s has quit [Ping timeout: 250 seconds]
MyGreenPickle has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
leafybasil has joined #ruby
serivich has joined #ruby
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #ruby
MyGreenPickle has quit [Ping timeout: 246 seconds]
withnale___ has joined #ruby
reinaldob has joined #ruby
Guest50113 has quit [Remote host closed the connection]
serivichi has joined #ruby
plutonic has joined #ruby
ChoiKyuSang has quit [Quit: Going offline, see ya! (( www.adiirc.com )]
Takle has joined #ruby
sevenseacat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_ixti_ has joined #ruby
iotouch has quit [Ping timeout: 245 seconds]
platzhirsch has quit [Ping timeout: 240 seconds]
iotouch has joined #ruby
ixti has quit [Ping timeout: 276 seconds]
shellfu_afk has quit [Read error: No route to host]
CloCkWeRX has left #ruby [#ruby]
iamninja has quit [Ping timeout: 246 seconds]
wallerdev has quit [Quit: wallerdev]
MXfive has quit [Quit: Textual IRC Client: www.textualapp.com]
platzhirsch has joined #ruby
jgoyon has joined #ruby
psy_ has quit [Read error: No route to host]
RegulationD has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
imanzarrabian has quit [Ping timeout: 264 seconds]
Takle_ has joined #ruby
withnale___ has quit [Remote host closed the connection]
withnale_ has joined #ruby
MXfive has joined #ruby
krz has quit [Read error: Connection reset by peer]
RegulationD has quit [Ping timeout: 244 seconds]
Takle has quit [Ping timeout: 272 seconds]
bruno- has joined #ruby
ponga has quit [Remote host closed the connection]
ponga has joined #ruby
iasoon has joined #ruby
psy_ has joined #ruby
krz has joined #ruby
hoelzro has quit [Ping timeout: 252 seconds]
ag4ve_ has quit [Ping timeout: 245 seconds]
jimms has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
hoelzro has joined #ruby
bruno- has quit [Ping timeout: 250 seconds]
selu has quit [Quit: Textual IRC Client: www.textualapp.com]
selu has joined #ruby
mikecmpbll has joined #ruby
ArchRogem has joined #ruby
ChoiKyuSang has joined #ruby
mattarse has joined #ruby
Akagi201_ has quit [Remote host closed the connection]
tkuchiki_ has quit [Remote host closed the connection]
Pharaoh2 has quit [Quit: Byebye]
Akagi201 has joined #ruby
Akagi201 has quit [Remote host closed the connection]
tkuchiki has joined #ruby
tkuchiki_ has joined #ruby
jimms has quit [Ping timeout: 272 seconds]
mengu has joined #ruby
mengu has joined #ruby
govg has quit [Quit: leaving]
tkuchiki has quit [Ping timeout: 256 seconds]
<arup_r> shevy: I'll be on leave from tomorrow for 2 weeks
<arup_r> *day after tomorrow :D
lolmaus has joined #ruby
krisquigley has joined #ruby
<arup_r> feeling good
Igorshp has quit [Remote host closed the connection]
ChoiKyuSang has quit [Quit: Going offline, see ya! (( www.adiirc.com )]
doodlehaus has joined #ruby
doodlehaus has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
joonty has quit [Quit: joonty]
iotouch has quit [Ping timeout: 246 seconds]
jheg has quit [Quit: jheg]
vtunka has quit [Quit: Leaving]
krisquigley has quit [Ping timeout: 248 seconds]
oo_ has joined #ruby
joonty has joined #ruby
zachrab has joined #ruby
panga has joined #ruby
krz has quit [Ping timeout: 264 seconds]
oo_ has quit [Remote host closed the connection]
<arup_r> flughafen: O/
zachrab has quit [Ping timeout: 264 seconds]
<adaedra> ✈️
sigurding has quit [Quit: sigurding]
iteratorP has quit [Remote host closed the connection]
User458764 has joined #ruby
krz has joined #ruby
nettoweb has joined #ruby
zotherst1pidguy has quit [Ping timeout: 256 seconds]
ChoiKyuSang has joined #ruby
<flughafen> hey arup_r
<arup_r> adaedra: nice flight.. yes.. I will be inside that only..
Rickmasta has joined #ruby
AlphaAtom has joined #ruby
elfuego has quit [Quit: elfuego]
GeorgeThompson has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iteratorP has joined #ruby
MyGreenPickle has joined #ruby
jimms has joined #ruby
meschi has joined #ruby
<arup_r> We love Lion
MyGreenPickle has quit [Ping timeout: 248 seconds]
tvw has joined #ruby
sdothum has joined #ruby
oddskill_away is now known as oddskill
fabrice31_ has quit [Remote host closed the connection]
<arup_r> flughafen: have you seen this Lion launch in your country ?
<arup_r> :D
vtunka has joined #ruby
dawkirst has joined #ruby
Zai00 has quit [Quit: Zai00]
jimms has quit [Remote host closed the connection]
<flughafen> no
oo_ has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mostlybadfly has joined #ruby
nettoweb has joined #ruby
dawkirst has quit [Ping timeout: 256 seconds]
iteratorP has quit [Remote host closed the connection]
iteratorP has joined #ruby
iteratorP has quit [Remote host closed the connection]
Igorshp has joined #ruby
magnificrab has joined #ruby
lessless has joined #ruby
<magnificrab> in a rake task, can I interpolate the FileTask into a string, eg, so I can pass each file to a single shell command as arguments?
gfawcettpq has joined #ruby
iteratorP has joined #ruby
<jhass> did you try it?
fabrice31 has joined #ruby
<magnificrab> jhass: actually, just realised that i'm completely wrong almost
CloCkWeRX has joined #ruby
plutonic has quit [Quit: plutonic]
platzhirsch has quit [Quit: Leaving.]
platzhirsch1 has joined #ruby
<magnificrab> task foo => bar |obj| <-- here, its going to loop over each element of bar and run the block. but I need the task to run once passing all the elements of bar to a shell command
platzhirsch1 has quit [Client Quit]
platzhirsch has joined #ruby
<jhass> wasn't rule where it does that or something?
<jhass> you want to watch ruby tapas 129-131 iirc
<jhass> 135 actually
rodfersou has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AlphaAtom has quit [Ping timeout: 245 seconds]
sigurding has joined #ruby
sankaber has joined #ruby
konsolebox has joined #ruby
camilasan has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
Akagi201 has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
chridal has quit [Ping timeout: 256 seconds]
camilasan has joined #ruby
Zai00 has joined #ruby
Beliq has quit [Quit:
konsolebox has quit [Read error: Connection reset by peer]
ujjain has quit [Quit: Textual IRC Client: www.textualapp.com]
casadei has joined #ruby
<shevy> jhass I asked on #kde
Xiti` has quit [Quit: Xiti`]
Guest53782 has quit [Ping timeout: 272 seconds]
<shevy> <shevy> the program name would be "polkit-qt", and the program version would be "1-0.112.0" ?
<shevy> <shumski> shevy: no, name is polkit-qt-1, and version is 0.112.0
meschi_ has joined #ruby
Xiti has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
<shevy> isn't it cool how things are simple and consistent?
zcreative has joined #ruby
<shevy> that pkgbuild seems old btw jhass
<jhass> how so?
bradleyprice has quit [Remote host closed the connection]
<jhass> updated 6 months ago
Igorshp has quit [Remote host closed the connection]
oddskill is now known as oddskill_afk
meschi has quit [Ping timeout: 245 seconds]
<shevy> aha
meschi_ has quit [Remote host closed the connection]
<shevy> they do not use a fixed URL?
Igorshp has joined #ruby
<jhass> yeah, so you can just bump pkgver and it's updated
casadei has quit [Ping timeout: 250 seconds]
<shevy> in the source variable, the PKGBUILD has: source=(${pkgbase}-${pkgver}.tar.bz2::"http://quickgit.kde.org/?p=${pkgbase}-1.git&a=snapshot&h=40afa675bfa4cacd95487ce8b0544654c5f34e21&fmt=tbz2"
<shevy> pkgbase is this though: polkit-qt
<jhass> yeah, what's not clear?
<shevy> and pkgver is: 0.112
lobolars has quit [Remote host closed the connection]
<shevy> so PKGBUILD source is: (polkit-qt-0.112.tar.bz2
amundj has joined #ruby
<shevy> where did the "1-0" part go?
<jhass> ${pkgbase}-1
<jhass> and the ....:: renames the download
<shevy> hmm
<shevy> interesting
iamninja has joined #ruby
ndrei has joined #ruby
lobolars has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
silentpost has joined #ruby
<shevy> a PKGBUILD requires a hardcoded program-name and version?
bim has joined #ruby
Takle_ has quit [Remote host closed the connection]
meschi has joined #ruby
bim is now known as Guest53081
silentpost has quit [Client Quit]
<jhass> well yeah
<jhass> but you can easily write some template generator, there probably are some already
Takle has joined #ruby
<jhass> I know of at least two gem2arch that stub out a PKGBUILD for a gem
<jhass> there's updpkgsums that updates the hashes and so on
<jhass> it's an easy to script format
<jhass> sed -i "s/pkgver=.\+/pkgver=$version/" PKGBUILD
<jhass> got that in a script
sevenseacat has joined #ruby
sevvie has quit [Ping timeout: 256 seconds]
<jhass> so I just for name in ruby1.9-bundler ruby2.0-bundler ruby2.1-bundler; do ./bump_pkg.sh $name 1.9.4; done to bump my bundler packages n the AUR
rodferso1 has joined #ruby
<jhass> didn't even save that, it's just in my shell history
<shevy> hmm
lobolars has quit [Remote host closed the connection]
yfeldblu_ has quit [Ping timeout: 245 seconds]
<shevy> You wrote above that the :: renames a download. Is that a common pattern in a PKGBUILD?
sevvie has joined #ruby
<jhass> only when you download from weird locations, like git snapshots
<jhass> github's tarball route doesn't yield nice filenames either
<jhass> stuff like that
<shevy> aaaaah
Takle has quit [Ping timeout: 256 seconds]
<shevy> yeah
<shevy> now that makes a lot more sense to me
konsolebox has joined #ruby
rodfersou has quit [Ping timeout: 248 seconds]
Guest53081 has quit [Remote host closed the connection]
<jhass> source also takes all kind of VCS URLs, git://, hg:// svn:// and so on and makepkg automatically fetches that and calls pkgver() and replaces the pkgver variable with it
<jhass> so you just rebuilt such a package if you want to update to the latest development version of something
rodferso1 has quit [Quit: leaving]
pen has quit []
rodfersou has joined #ruby
mengu has quit [Remote host closed the connection]
lobolars has joined #ruby
lobolars has quit [Remote host closed the connection]
konsolebox has quit [Quit: Leaving]
ringarin has joined #ruby
rkmylo has joined #ruby
Igorshp has quit [Remote host closed the connection]
MyGreenPickle has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
matcouto has joined #ruby
DerisiveLogic is now known as danecandor
RegulationD has joined #ruby
ringarin has quit [Ping timeout: 264 seconds]
elfuego has joined #ruby
RegulationD has quit [Ping timeout: 240 seconds]
Akagi201 has quit [Remote host closed the connection]
MyGreenPickle has quit [Ping timeout: 246 seconds]
Akagi201 has joined #ruby
Beliq has joined #ruby
_honning_ has joined #ruby
sandelius has joined #ruby
danecandor has quit [Ping timeout: 256 seconds]
renier has quit [Quit: Textual IRC Client: www.textualapp.com]
renier has joined #ruby
blackmesa has quit [Ping timeout: 248 seconds]
iasoon has quit [Ping timeout: 245 seconds]
AlphaAtom has joined #ruby
meschi has quit [Remote host closed the connection]
startupality has quit [Quit: startupality]
sevvie has quit [Ping timeout: 245 seconds]
mrsolow has quit [Read error: Connection reset by peer]
Kharma has joined #ruby
mrsolow has joined #ruby
Kharma has quit [Read error: Connection reset by peer]
Kharma has quit [Changing host]
Kharma has joined #ruby
mrsolow has joined #ruby
mrsolow has quit [Changing host]
sevvie has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
matcouto has quit [Quit: Textual IRC Client: www.textualapp.com]
sevenseacat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sdothum has joined #ruby
nszceta has joined #ruby
CloCkWeRX has quit [Ping timeout: 256 seconds]
jimms has joined #ruby
Takle has joined #ruby
Takle has quit [Remote host closed the connection]
Takle has joined #ruby
mengu has joined #ruby
noteugene has joined #ruby
vt102 has joined #ruby
<noteugene> Hi guys, has anybody else noticed a memory issue after upgrading from ruby 2.2.0 to 2.2.1?
rkmylo has left #ruby [#ruby]
krisquigley has joined #ruby
<ddv> no
chridal has joined #ruby
GeorgeThompson has joined #ruby
<noteugene> freaking weird, okay
xmad-afk is now known as xmaddness
doodlehaus has joined #ruby
doodlehaus has quit [Remote host closed the connection]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
doodlehaus has joined #ruby
rj-code has joined #ruby
elfuego has quit [Quit: elfuego]
krisquigley has quit [Ping timeout: 245 seconds]
elfuego has joined #ruby
Beliq has quit [Quit:
zachrab has joined #ruby
vivekananda has joined #ruby
doodlehaus has quit [Remote host closed the connection]
vt102 has quit [Remote host closed the connection]
max96at|off has quit [Quit: Bye!]
pika_pika has joined #ruby
vt102 has joined #ruby
max96at|off has joined #ruby
max96at|off is now known as max96at
ByronJohnson has quit [Ping timeout: 256 seconds]
MyGreenPickle has joined #ruby
elfuego has quit [Ping timeout: 245 seconds]
zachrab has quit [Ping timeout: 245 seconds]
ByronJohnson has joined #ruby
bim has joined #ruby
casadei has joined #ruby
brb3 has joined #ruby
bim is now known as Guest10679
jottr has joined #ruby
joonty has quit [Quit: joonty]
meschi has joined #ruby
vt102 has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
ldnunes has joined #ruby
startupality has joined #ruby
casadei has quit [Ping timeout: 245 seconds]
lordkryss has quit [Quit: Connection closed for inactivity]
ChoiKyuSang has quit [Quit: Going offline, see ya! (( www.adiirc.com )]
rhllor has joined #ruby
nszceta has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ChoiKyuSang has joined #ruby
Caius has quit [Ping timeout: 276 seconds]
bMalum has joined #ruby
quimrstorres has quit [Remote host closed the connection]
rsavage has joined #ruby
rsavage is now known as NinjaOps
nettoweb has joined #ruby
iotouch has joined #ruby
Caius has joined #ruby
sgambino has joined #ruby
CloCkWeRX has joined #ruby
bMalum has quit [Quit: bMalum]
ponga has quit [Quit: Connection closed for inactivity]
ringarin has joined #ruby
iteratorP has quit [Remote host closed the connection]
freerobby has joined #ruby
djellemah has joined #ruby
Beliq has joined #ruby
lanemeyer has joined #ruby
maximski has joined #ruby
sinkensabe has joined #ruby
Akagi201 has quit [Ping timeout: 246 seconds]
Akagi201 has joined #ruby
axilla has quit [Quit: Lost terminal]
arup_r has quit [Remote host closed the connection]
joonty has joined #ruby
Takle has quit []
turtil has quit [Quit: WeeChat 1.1.1]
Symbiosisz has quit [Quit: Leaving]
Pumukel has joined #ruby
zubov has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
amdbcg has joined #ruby
RegulationD has joined #ruby
Rapier- has joined #ruby
sigurding has quit [Quit: sigurding]
iteratorP has joined #ruby
livathinos has joined #ruby
pl1ght has quit [Quit: WeeChat 0.4.2]
arup_r has joined #ruby
RegulationD has quit [Ping timeout: 245 seconds]
joonty has quit [Quit: joonty]
naftilos76 has joined #ruby
vt102 has joined #ruby
joonty has joined #ruby
vt102 has quit [Max SendQ exceeded]
vt102 has joined #ruby
amdbcg has quit [Ping timeout: 250 seconds]
professor_soap has joined #ruby
hmsimha has joined #ruby
Beliq has quit [Quit:
ChoiKyuSang has quit [Quit: Going offline, see ya! (( www.adiirc.com )]
iotouch has quit [Quit: This computer has gone to sleep]
<professor_soap> Hi people
edma10 has joined #ruby
<edma10> ciao
jherbst has joined #ruby
nateberkopec has joined #ruby
bradleyprice has joined #ruby
ChoiKyuSang has joined #ruby
<professor_soap> Say you had a string looking like this [LINK]Lorem Ipsum Dalor@http://www.foo.com/bar[/LINK] and you needed to make it into a html <a> tag where href would be the url right to the @ and the text within the tag would be "Lorem Ipsum Dalor", how would you go about?
Jamo___ has quit [Ping timeout: 250 seconds]
sevenseacat has joined #ruby
<jhass> professor_soap: seems easy enough for a regexp
<professor_soap> hmm
Jamo__ has joined #ruby
_blizzy_ has quit [Ping timeout: 245 seconds]
<professor_soap> Will try
dorei has joined #ruby
vim_shimm has joined #ruby
SOLDIERz has joined #ruby
DEA7TH has joined #ruby
SOLDIERz has quit [Client Quit]
sinkensabe has quit [Remote host closed the connection]
<hanmac1> >> "[LINK]Lorem Ipsum Dalor@http://www.foo.com/bar[/LINK]".gsub(/\[LINK\](.+)@(.+)\[\/LINK\]/i) { "<a href='#$2'>#$1</a>"}
<ruboto> hanmac1 # => "<a href='http://www.foo.com/bar'>Lorem Ipsum Dalor</a>" (https://eval.in/313934)
SOLDIERz has joined #ruby
withnale_ has quit [Ping timeout: 264 seconds]
<jhass> hanmac1: why don't you let people learn :(
<hanmac1> its currently to hot outside ... i am to lazy to wait until he might gets it ...
withnale_ has joined #ruby
<jhass> besides yours is too greedy
dumdedum has quit [Quit: foo]
yqt has joined #ruby
joonty has quit [Quit: joonty]
<jhass> "[LINK]Lorem Ipsum Dalor@http://www.foo.com/bar[/LINK] and [LINK]another@one[/LINK]".gsub(/\[LINK\](.+)@(.+)\[\/LINK\]/i) { "<a href='#$2'>#$1</a>"}
<jhass> >> "[LINK]Lorem Ipsum Dalor@http://www.foo.com/bar[/LINK] and [LINK]another@one[/LINK]".gsub(/\[LINK\](.+)@(.+)\[\/LINK\]/i) { "<a href='#$2'>#$1</a>"}
<ruboto> jhass # => "<a href='one'>Lorem Ipsum Dalor@http://www.foo.com/bar[/LINK] and [LINK]another</a>" (https://eval.in/313935)
tier has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pl1ght has joined #ruby
<hanmac1> now less greedy:
<hanmac1> >> "[LINK]Lorem Ipsum Dalor@http://www.foo.com/bar[/LINK] and [LINK]Lorem Ipsum Dalor@http://www.foo.com/bar[/LINK]".gsub(/\[LINK\](.+?)@(.+?)\[\/LINK\]/i) { "<a href='#$2'>#$1</a>"}
<ruboto> hanmac1 # => "<a href='http://www.foo.com/bar'>Lorem Ipsum Dalor</a> and <a href='http://www.foo.com/bar'>Lorem ...check link for more (https://eval.in/313936)
joonty has joined #ruby
sigurding has joined #ruby
decoponio has joined #ruby
sinkensabe has joined #ruby
bruno- has joined #ruby
mengu has quit [Remote host closed the connection]
bobbrez has joined #ruby
<professor_soap> Thx for the help anyways, regexps is hard :(
edma10 has quit [Quit: MiRC 7.38 ITA by Jalina]
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
GeorgeThompson has quit [Ping timeout: 245 seconds]
Hirzu has joined #ruby
rhllor has quit [Quit: rhllor]
freerobby has quit [Quit: Leaving.]
bruno- has quit [Ping timeout: 256 seconds]
lxsameer has quit [Quit: Leaving]
noteugene has quit [Quit: Linkinus - http://linkinus.com]
<jhass> professor_soap: but worth the effort to learn
delianides has joined #ruby
<dorei> LoadError: cannot infer basepath
enebo has joined #ruby
yqt has quit [Ping timeout: 265 seconds]
chinmay_dd has joined #ruby
iotouch has joined #ruby
jimms has quit []
davedev24_ has joined #ruby
saturnflyer has joined #ruby
<MyGreenPickle> jhass: Nice, I had never heard of that. This is quite interesting to learn regex.
delianid_ has joined #ruby
kblake has joined #ruby
apoplexy has joined #ruby
oo_ has quit [Remote host closed the connection]
<jhass> it'll teach you the thinking at least, it doesn't quite get into all the features
<professor_soap> jhass: absolutely
maximski has quit [Ping timeout: 248 seconds]
delianides has quit [Remote host closed the connection]
vim_shimm has quit [Ping timeout: 245 seconds]
User458764 has joined #ruby
chinmay_dd has quit [Client Quit]
zubov has quit [Ping timeout: 250 seconds]
oo_ has joined #ruby
msmith has joined #ruby
Igorshp has joined #ruby
eshiffob has quit [Read error: Connection reset by peer]
ixti has joined #ruby
maximski has joined #ruby
lobolars has joined #ruby
kblake has quit [Ping timeout: 255 seconds]
_ixti_ has quit [Ping timeout: 245 seconds]
mgberlin has joined #ruby
sankaber has joined #ruby
spyderman4g63 has joined #ruby
msmith has quit [Remote host closed the connection]
lobolars has quit [Remote host closed the connection]
<hanmac1> dorei: you did try to use require_relative inside irb or pry which doesnt make much sense
cefkamcau has joined #ruby
lobolars has joined #ruby
dblessing has joined #ruby
Igorshp has quit [Ping timeout: 246 seconds]
sprihodko has joined #ruby
iamninja has quit [Ping timeout: 272 seconds]
spyderma_ has joined #ruby
jerius has joined #ruby
lavros has joined #ruby
spyderman4g63 has quit [Ping timeout: 246 seconds]
ismaelga has joined #ruby
bMalum has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
sprihodko is now known as homersimpson
homersimpson is now known as tokenvolt
maximski has quit []
ndrei has quit [Ping timeout: 264 seconds]
tokenvolt is now known as pinkman
elaptics is now known as elaptics_away
NoNMaDDeN has joined #ruby
agarie has joined #ruby
pinkman is now known as kshitijlakshmi
workmad3 has quit [Quit: Lost terminal]
brb3 has quit [Quit: <.<]
amdbcg has joined #ruby
brb3 has joined #ruby
sinkensabe has quit [Remote host closed the connection]
mrmargolis has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
doodlehaus has joined #ruby
sevvie has quit [Ping timeout: 248 seconds]
kobain has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
icebourg has joined #ruby
startupality has quit [Quit: startupality]
bMalum has quit [Quit: bMalum]
vim_shimm has joined #ruby
SOLDIERz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
elfuego has joined #ruby
startupality has joined #ruby
sgambino has quit [Remote host closed the connection]
colorados has joined #ruby
ag4ve_ has joined #ruby
mattarse has quit [Ping timeout: 245 seconds]
techsethi has quit [Quit: techsethi]
krz has joined #ruby
zz_AlphaTech is now known as AlphaTech
fryguy9 has joined #ruby
quimrstorres has joined #ruby
<sanguisdex> so I am sitting here feeling like a complete tool not understanding the documentation for find. I don't know how to define the input vars. would be some one be willing to explain like I am five. https://gist.github.com/sanguis/58109b76dd74404c1f36
SOLDIERz has joined #ruby
ta has quit [Remote host closed the connection]
<sanguisdex> how do I know what variables to use for i in the documentation (https://gist.github.com/sanguis/58109b76dd74404c1f36)
davedev24_ has quit [Ping timeout: 265 seconds]
delianid_ has quit []
workmad3 has joined #ruby
Vivex has quit [Read error: Connection reset by peer]
startupality has quit [Quit: startupality]
Igorshp has joined #ruby
<jhass> sanguisdex: (1..10).each do |i| # you understand what i is in this, right?
nettoweb has joined #ruby
<sanguisdex> jhass: it separates inputs input values right?
casadei has joined #ruby
bobbrez has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> I don't think so... (since I have trouble understanding what you mean with that)
fryguy9 has quit [Quit: Leaving.]
davedev24_ has joined #ruby
paulcsmith has joined #ruby
<jhass> which Ruby tutorial do you follow?
ta has joined #ruby
d10n-work has joined #ruby
noname has quit [Ping timeout: 272 seconds]
<sanguisdex> I tried using code schools, but I found it a little lacking.
<jhass> mh
<jhass> maybe Chris Pine's Learn to program would be something for you
sandelius has joined #ruby
techsethi has joined #ruby
fryguy9 has joined #ruby
shazaum has joined #ruby
fabrice31 has quit [Remote host closed the connection]
casadei has quit [Ping timeout: 250 seconds]
chridal has quit [Ping timeout: 252 seconds]
mgorbach has quit [Read error: Connection reset by peer]
sevvie has joined #ruby
mgorbach has joined #ruby
RegulationD has joined #ruby
dseitz has joined #ruby
sevenseacat has quit [Quit: Me dun like you no more.]
zenith_ has joined #ruby
startupality has joined #ruby
zenith_ has quit [Excess Flood]
sigurding has quit [Quit: sigurding]
zenith_ has joined #ruby
zenith_ has quit [Excess Flood]
krisquigley has joined #ruby
bkxd has joined #ruby
zenith_ has joined #ruby
zenith_ has quit [Excess Flood]
spyderma_ has quit [Remote host closed the connection]
kshitijlakshmi has quit [Quit: (null)]
zenith_ has joined #ruby
spyderman4g63 has joined #ruby
zenith_ has quit [Excess Flood]
zcreative has quit [Quit: (null)]
zenith_ has joined #ruby
zenith_ has quit [Excess Flood]
sgambino has joined #ruby
msmith has joined #ruby
fryguy9 has quit [Quit: Leaving.]
zenith_ has joined #ruby
zenith_ has quit [Excess Flood]
freerobby has quit [Quit: Leaving.]
zenith_ has joined #ruby
zenith_ has quit [Excess Flood]
zenith_ has joined #ruby
zenith_ has quit [Excess Flood]
mgberlin has quit [Remote host closed the connection]
failshell has joined #ruby
Sou|cutter has joined #ruby
zenith_ has joined #ruby
zenith_ has quit [Excess Flood]
zenith_ has joined #ruby
zenith_ has quit [Excess Flood]
Outlastsheep has joined #ruby
arup_r has quit []
zachrab has joined #ruby
zenith_ has joined #ruby
krisquigley has quit [Ping timeout: 272 seconds]
zenith_ has quit [Excess Flood]
selu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Feyn has quit [Quit: Leaving]
fryguy9 has joined #ruby
zenith_ has joined #ruby
zenith_ has quit [Excess Flood]
zenith_ has joined #ruby
zenith_ has quit [Excess Flood]
ianseyer has joined #ruby
zenith_ has joined #ruby
zenith_ has quit [Excess Flood]
zenith_ has joined #ruby
zenith_ has quit [Excess Flood]
Outlastsheep is now known as zz_Outlastsheep
zenith_ has joined #ruby
zenith_ has quit [Excess Flood]
<sanguisdex> jhass: I have been a developer for years, but mainly php. The hardest part about going from php to ruby is the each of multi dimensional arrays, and a more symbolic (operator driven) syntax.
<sanguisdex> So in your above each, I understand that inside of that do loop the i would represent the array index being accessed
fabrice31 has joined #ruby
zenith_ has joined #ruby
fabrice31 has quit [Remote host closed the connection]
zenith_ has quit [Excess Flood]
zz_Outlastsheep is now known as Outlastsheep
bruno- has joined #ruby
<jhass> no, it doesn't
<apeiros> sanguisdex: huh? how's traversing multi-dimensional arrays (structurally) different in php?
zenith_ has joined #ruby
<ddv> its not :)
zenith_ has quit [Excess Flood]
zachrab has quit [Ping timeout: 250 seconds]
B1n4r10 has joined #ruby
zenith_ has joined #ruby
<jhass> so if you're a programmer, the terms loop, iteration, enumeration should mean something to you, why not use them over "separates inputs input values"?
zenith_ has quit [Excess Flood]
zenith_ has joined #ruby
zenith_ has quit [Excess Flood]
<jhass> >> (5..20).to_a.each do |i| print i; end;
<ruboto> jhass # => 567891011121314151617181920[5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20] (https://eval.in/313971)
zenith_ has joined #ruby
zenith_ has quit [Excess Flood]
<jhass> it's not the index, it's the actual value
evanjs has joined #ruby
<jhass> and not different in .find
zenith_ has joined #ruby
zenith_ has quit [Excess Flood]
apoplexy has quit [Ping timeout: 250 seconds]
zenith_ has joined #ruby
zenith_ has quit [Excess Flood]
joonty has quit [Quit: joonty]
zenith_ has joined #ruby
zenith_ has quit [Excess Flood]
bruno- has quit [Ping timeout: 250 seconds]
fryguy9 has quit [Quit: Leaving.]
<apeiros> jhass: I think we have to still tweak the eval plugin of ruboto
<apeiros> aaaand we need a !fixcon
freerobby has joined #ruby
sgambino has quit [Remote host closed the connection]
fryguy9 has joined #ruby
<jhass> apeiros: I'll not touch plugin code till you declare your rewrite complete ;P
amdbcg has quit [Ping timeout: 248 seconds]
<apeiros> jhass: aaahaha. don't worry, I'll port plugins.
amdbcg has joined #ruby
<apeiros> should be (mostly) trivial
sinkensabe has joined #ruby
<apeiros> but I think I'll be done after the next week-end.
<jhass> yeah, but it won't go any faster anyhow
wmoxam_ is now known as wmoxam
werelivinginthef has joined #ruby
wmoxam has joined #ruby
wmoxam has quit [Changing host]
<sanguisdex> ahhhh index/vs value that is what I was missing
horsecowdog has joined #ruby
<jhass> whether I write stuff you have to port or wait until I can submit stuff you don't have to port... roughly the same
KramerC has quit [Ping timeout: 252 seconds]
axl_ has joined #ruby
ismaelga has quit [Ping timeout: 256 seconds]
rgb-one has joined #ruby
ismael__ has joined #ruby
<jhass> sanguisdex: yeah, I think PHP conflating list and map into the same datastructure does serious damage to programmer thinking :/
lobolars has quit [Remote host closed the connection]
amdbcg has quit [Read error: No route to host]
apoplexy has joined #ruby
amdbcg has joined #ruby
zerowaitstate has joined #ruby
<sanguisdex> jhass: it does, ontop of having learned on php, I learned in Druapl world
joonty has joined #ruby
banister has joined #ruby
<sanguisdex> which is off practice centric
<certainty> jhass: s/conflating list and map into the same datastructure//
<jhass> well, that's probably easily the main issue though
Hirzu has quit [Ping timeout: 240 seconds]
maximski has joined #ruby
<jhass> though weak typing doesn't help much either
Rickmasta has joined #ruby
amdbcg has quit [Read error: Connection reset by peer]
techsethi has quit [Quit: techsethi]
amdbcg1 has joined #ruby
Vivex has joined #ruby
rgb-one has quit [Read error: Connection reset by peer]
<certainty> indeed
iteratorP has quit [Remote host closed the connection]
sigurding has joined #ruby
antgel has quit [Ping timeout: 246 seconds]
ismael__ has quit [Ping timeout: 248 seconds]
sinkensabe has quit [Remote host closed the connection]
RegulationD has quit [Remote host closed the connection]
<Outlastsheep> certainty: certainly.
<Outlastsheep> Sorry, I had to.
rgb-one has joined #ruby
<certainty> :)
iteratorP has joined #ruby
chridal has joined #ruby
antgel has joined #ruby
SOLDIERz has quit [Ping timeout: 252 seconds]
RegulationD has joined #ruby
fryguy9 has quit [Quit: Leaving.]
bkxd has quit [Ping timeout: 245 seconds]
jlast has joined #ruby
RegulationD has quit [Remote host closed the connection]
iceden has quit [Read error: Connection reset by peer]
rgb-one has quit [Read error: Connection reset by peer]
freerobby has quit [Quit: Leaving.]
<ninjs> Does anyone have any experience with trying to parse a filetype that's not like excel, txt, or whatever? If I change the file extension to .txt I can open it and read all of the information... haha
Hirzu has joined #ruby
<adaedra> ninjs: file
<adaedra> (The command)
ujjain has joined #ruby
<adaedra> Or is it not your question ?
rbennacer has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
<Outlastsheep> ninjs: I used to make a tiny game with Lua, and saved all the savedata to a file with plain text. I just changed the extension from '.txt' to '.und'
RegulationD has joined #ruby
dfinninger has joined #ruby
tagrudev has quit [Remote host closed the connection]
<ninjs> Let me phrase my question differently. My company works with claim software that produces claims in two file types, with two different extensions. '.ub4' and '.npi' I need to write something in ruby that can go through a directory, parse each file, and then spit out some kind of output file. I've got the output part managed, but I'm struggling where to
<ninjs> start with the input
Morkel has quit [Quit: Morkel]
rbennacer has quit [Remote host closed the connection]
lolmaus_ has joined #ruby
riotjones has quit [Remote host closed the connection]
<certainty> i still don't get it
rbennacer has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
emocakes has joined #ruby
<apeiros> ninjs: do you know the structure of the data in those files?
fryguy9 has joined #ruby
<apeiros> I'm a bit confused as to how you managed to do the output part without having the input first :D
<ninjs> I mean I know how to handle the output (spreadsheet gem)
ndrei has joined #ruby
oo_ has quit [Remote host closed the connection]
<adaedra> ninjs: do you have the specification on the file format ?
mitchellhenke has joined #ruby
<ninjs> When you say structure... if I open it with the claim software all the values are mapped to places on the page. If I open them in a text editor or excel, all the values are like per line
<adaedra> no
<ninjs> no it's made by a stupid company that doesn't release anything
MyGreenPickle has quit [Ping timeout: 265 seconds]
<adaedra> ah
amdbcg1 has quit [Ping timeout: 246 seconds]
<adaedra> then you'll have to reverse eingeneer it
<ninjs> and they are like the sole competitor in their space
<apeiros> ninjs: so you have to guess the format…
<adaedra> or whatever this word is written
Outlastsheep is now known as zz_Outlastsheep
casadei has joined #ruby
<apeiros> ninjs: File.read(path, encoding: 'binary')
<toretore> so your question is, how do i parse some random format for which no spec exists?
<apeiros> that will get you the whole data in a string
<ninjs> Right! haha
<certainty> toretore: spot on
<apeiros> as to how to parse - depends *a lot* on how the data is actually structured
<ninjs> Well I can read the values...
<apeiros> there are parser generators like racc and ragel
<toretore> and the answer is ad adaedra said, reverse engineer it
<apeiros> there are parser libraries like parslet and treetop
<ddv> curl -v 10.0.1.1/ -H "Host: irrelevant" -H "Range: bytes=0-18446744073709551615”
Hirzu has quit [Quit: Leaving...]
<apeiros> then there are the less heavyweight solutions like just plain StringScanner and/or String#scan/#split/#match
* certainty fell in love with parselt recently
<certainty> parslet even
<apeiros> ninjs: but all of that starts with what everybody else just said - figure out the format
lolmaus__ has joined #ruby
ismaelga has joined #ruby
<ninjs> When you say figure out the format.. I'm lost. Like you think they are just using a format like XML or something and then putting their own extension on it?
lolmaus_ has quit [Quit: Konversation terminated!]
<certainty> more like looking at the data and trying to spot the pattern
<apeiros> ninjs: xml would be a way of structuring, yes.
<apeiros> but it could also be a binary data format
<apeiros> or some plaintext serialization
<apeiros> *we* can't do that for you ninjs.
<certainty> or music
<avril14th> Hello, any hint on how should one write a client that fires request to a server that has some request throttling limits (rejects all requests if more than 30 per 60 seconds)?
<apeiros> especially not without having any examples.
<ninjs> That's the frustrating part. There's no format. If I open it in .txt format, it's just like one of the values, some breaks, another value, some breaks
lolmaus__ has quit [Client Quit]
<apeiros> good luck then
dvxam has joined #ruby
<ddv> avril14th: pretty simple, just record the timestamp of the last request
<certainty> ninjs: did you try to run file(1) on it? maybe worth a shot
<ninjs> I guess it could be possible that they are just mapping values on each line to a box.. that would sort of make sense
<avril14th> ddv: that won't be enough. Since you also need to know how many requests were made on the past rolling 60 seconds. Now, the server API also supports batches (meaning to take one request for several jobs instead of one request per job, so I could merge my tasks and fire much less requests)
<ddv> avril14th: yeah so record that too
lolmaus has joined #ruby
<avril14th> well, yeah, though it would be much better to use the batch interface
<avril14th> since I could still hit the limit of requests per minute and so have a growing queue that could never reduce
ismaelga has quit [Ping timeout: 248 seconds]
<ddv> avril14th: ok, so why did you ask the question in the first place then if you already have the anwer?
ismaelga has joined #ruby
dfinninger has quit [Remote host closed the connection]
<avril14th> I don't have the answer
MyGreenPickle has joined #ruby
fryguy9 has quit [Quit: Leaving.]
andikr has quit [Remote host closed the connection]
bradleyprice has quit [Remote host closed the connection]
Obfuscate has quit [Ping timeout: 252 seconds]
oddskill_afk is now known as wellbutidkwtf
poguez_ has joined #ruby
chrissonar has quit [Remote host closed the connection]
solars has joined #ruby
<solars> hi, what's the right method to remove items from an array that are not in a second array? e.g. [a,b], [a, c] -> [a]?
<avril14th> solars: array1 - array2 ?
<avril14th> sorry
<avril14th> intersection
<avril14th> array1 & array2
<solars> exactly, thank you :)
<avril14th> >> (1..5).to_a & (3..8).to_a
<ruboto> avril14th # => [3, 4, 5] (https://eval.in/313972)
<dvxam> >> puts 'hello'
<ruboto> dvxam # => hello ...check link for more (https://eval.in/313973)
Obfuscate has joined #ruby
<dvxam> nice code execution feature !
jzigmund has joined #ruby
<jhass> dvxam: demo only, pry/irb for experiments ;)
<dvxam> Yes ;)
tkuchiki_ has quit [Ping timeout: 250 seconds]
jottr has quit [Ping timeout: 248 seconds]
<shevy> why aren't there more games in ruby
ta has quit [Remote host closed the connection]
<hanmac1> shevy write one ;P
<shevy> nobody would play it
hanmac1 has quit [Quit: Leaving.]
<dudedudeman> goooooOOOOODDD morning!
<adaedra> woah dude
<ninjs> Good news... If I do f = File.open('filename.ext', 'r') and then f.readline ... I can go through the file and find the values as strings with \r\n at the end of them.. So I could maybe write something that for each file, go through each line and store the value, then output it through the Spreadsheet gem? Sorry I'm just kind of thinking outloud but I want
<ninjs> to make sure I have the right idea
<adaedra> ninjs: it really depends on how the file is formatted
<adaedra> which we don't know
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
<adaedra> If it's binary, you should read values by size un #unpack
claw has joined #ruby
<ninjs> what's the alternative to binary formatting
<dudedudeman> trinary formatting?
<ninjs> lol
<adaedra> If it's text, you can read line by line and scan, or like apeiros said, use a parser
claw___ has quit [Ping timeout: 272 seconds]
<ninjs> It's text. for sure
<ninjs> like I said f.readline gives me the value for each line in just the way I need them, except with \r\n at the end
<adaedra> use #trim
startupality has quit [Quit: startupality]
<adaedra> >> %(your line\r\n).trim
<ruboto> adaedra # => undefined method `trim' for "your line\r\n":String (NoMethodError) ...check link for more (https://eval.in/313976)
<adaedra> or not
<adaedra> >> %(your line\r\n).strip
<ruboto> adaedra # => "your line" (https://eval.in/313977)
<adaedra> sorry, I always invert the two :x
imanzarrabian has joined #ruby
zorak8 has joined #ruby
<ninjs> yeah boom! .strip works perfectly
<adaedra> you can also call each_line on your file, althrough I don't remember if it keeps or not the line breaks
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ninjs> So I can just iterate through each file in the directory, go through each line and add .strip, store the values, and output my file! woohoo
<toretore> ninjs: tip: if you want help with parsing a file, post the file
<ninjs> adaedra: You're the bomb. Also thanks everyone else for the help. You are all wonderful
<adaedra> tic tic tic tic
<adaedra> boom
freerobby has joined #ruby
<ninjs> toretore: I thought about it but couldn't because it contains PHI. Let me create a dummy file
amdbcg has joined #ruby
n80 has joined #ruby
claw has quit [Ping timeout: 248 seconds]
Zamyatin has joined #ruby
claw has joined #ruby
Zamerick_ has quit [Ping timeout: 255 seconds]
DaniG2k has joined #ruby
maximski has quit []
mary5030 has joined #ruby
ianseyer has quit [Ping timeout: 246 seconds]
msmith has quit []
mary5030 has quit [Remote host closed the connection]
<shevy> >> "abc\r\n".chomp
<ruboto> shevy # => "abc" (https://eval.in/313979)
<shevy> \O/
mary5030 has joined #ruby
<shevy> if it is a small file, you can use: File.readlines('location to your file goes here').map(&:chomp)
sgambino has joined #ruby
failshel_ has joined #ruby
failshe__ has joined #ruby
Zamyatin has quit [Ping timeout: 264 seconds]
failshe__ is now known as failshell_
kraljev11 has joined #ruby
failshell has quit [Ping timeout: 245 seconds]
amdbcg has quit [Ping timeout: 264 seconds]
bruno- has joined #ruby
iotouch has quit [Quit: 离开]
cpt_yossarian has quit [Ping timeout: 246 seconds]
iteratorP has quit [Remote host closed the connection]
failshell_ is now known as failshell
rhllor has joined #ruby
lavros has quit [Ping timeout: 244 seconds]
failshel_ has quit [Read error: Connection reset by peer]
kraljev11 has quit [Client Quit]
kraljev11 has joined #ruby
julian-delphiki has quit [Quit: Leaving]
lavros has joined #ruby
mjmac has quit [Quit: ZNC - http://znc.sourceforge.net]
fryguy9 has joined #ruby
mjmac has joined #ruby
dsaf has joined #ruby
elaptics_away is now known as elaptics
teddyp1cker has joined #ruby
mengu has quit [Remote host closed the connection]
antgel has quit [Ping timeout: 272 seconds]
mengu has joined #ruby
mengu has joined #ruby
chridal has quit [Ping timeout: 276 seconds]
rhllor has quit [Quit: rhllor]
paulcsmith has quit [Quit: Lingo: www.lingoirc.com]
f3lp has joined #ruby
chridal has joined #ruby
kraljev11 has quit [Read error: Connection reset by peer]
kraljev11 has joined #ruby
paulcsmith has joined #ruby
professor_soap has quit []
dfinninger has joined #ruby
wedgeV has joined #ruby
evanjs has quit [Remote host closed the connection]
iceden has joined #ruby
tier_ has joined #ruby
amdbcg has joined #ruby
vire has joined #ruby
gagrio has quit [Ping timeout: 248 seconds]
noname has joined #ruby
joonty has quit [Quit: joonty]
arturaz has quit [Ping timeout: 250 seconds]
aganov has quit [Quit: Leaving]
joonty has joined #ruby
kraljev11 has quit [Read error: Connection reset by peer]
evanjs has joined #ruby
tus has joined #ruby
tier has quit [Ping timeout: 265 seconds]
Spami has joined #ruby
Igorshp has quit [Remote host closed the connection]
gfawcettpq has quit [Ping timeout: 272 seconds]
GeorgesLeYeti has joined #ruby
<GeorgesLeYeti> Hi
spyderman4g63 has quit [Read error: Connection reset by peer]
Igorshp has joined #ruby
<jhass> ninjs: I think you're right, it's probably just mapping line numbers to fields
Zamerick has joined #ruby
<GeorgesLeYeti> Let's sayt that I have a string like 'Hi World. Hello World World World ' I want to have 'Hi World. Hello'. So something like a.gsub(/World \z/, "") but recursivly.
cocotton has joined #ruby
uri_ has joined #ruby
baroquebobcat has joined #ruby
cpt_yossarian has joined #ruby
fabrice31 has joined #ruby
anibara has quit [Ping timeout: 250 seconds]
ianseyer has joined #ruby
sinkensabe has joined #ruby
oo_ has joined #ruby
riotjones has joined #ruby
tkuchiki has joined #ruby
solars has quit [Ping timeout: 246 seconds]
<pagios> :blah : "tesT" same as blah => "tesT" ?
<pagios> :blah => "tesT" same as blah: "tesT" ?
<toretore> yes
rhllor has joined #ruby
fabrice31 has quit [Ping timeout: 246 seconds]
antgel has joined #ruby
Azure has quit [Ping timeout: 246 seconds]
fryguy9 has quit [Read error: Connection reset by peer]
fryguy9 has joined #ruby
evanjs has quit [Remote host closed the connection]
paulcsmith has quit [Quit: Be back later ...]
speakingcode has joined #ruby
paulcsmith has joined #ruby
riotjones has quit [Ping timeout: 250 seconds]
hmsimha has quit [Ping timeout: 256 seconds]
<jhass> pagios: almost {blah: "tesT"} == {:blah => "tesT"}
izzol has joined #ruby
<pagios> this amazon thing is killing me..
evanjs has joined #ruby
<izzol> Is it possible to (somehow) get the data from sqlite not in array?
<dudedudeman> thank you for saying Amazon. reminds me i need to go buy the pickaxe book
MyGreenPickle has quit [Ping timeout: 245 seconds]
<izzol> I'm trying to get data from sqlite but each data/select is array.
failshell has quit [Read error: Connection reset by peer]
<dudedudeman> izzol: i know you can use column mode and turn on header output
failshell has joined #ruby
spyderman4g63 has joined #ruby
<toretore> izzol: you say what you don't want, but not what you want
mengu has quit [Remote host closed the connection]
gfawcettpq has joined #ruby
<izzol> toretore: I'm keeping the Time.now in one column, and I need it as it is (Time).
<izzol> not the array :(
snockerton has joined #ruby
<izzol> So not on the putput I have: "[["2015-04-15 11:13:09 -0400"]]"
<izzol> which is wrong, as It's hard to use it :(
<jhass> GeorgesLeYeti: (Word )+\z ?
<jhass> prolly non-capturing: (?:World )+\z
grindmodeon has joined #ruby
wellbutidkwtf is now known as oddskill
chridal has quit [Ping timeout: 272 seconds]
bradleyprice has joined #ruby
<a5i> Lets say I have a hash like {"food" => "apple"}
<a5i> can I do hash["apple"] so it returns the key ?
jheg has joined #ruby
bradleyprice has quit [Read error: Connection reset by peer]
<jhass> .key("apple"), but (a big one): why is it not {"apple" => "food"} ?
speaking1ode has joined #ruby
gauke has quit [Quit: gauke]
bradleyprice has joined #ruby
nathanows has joined #ruby
speakingcode has quit [Ping timeout: 250 seconds]
<a5i> jhass, maybe I dont know the key but the value
<jhass> but if that's the case, why don't you build you hash so that the value is the key?
speaking1ode is now known as speakingcode
allenn has quit [Remote host closed the connection]
<a5i> o
<a5i> I never thought of it that way
meschi has quit [Remote host closed the connection]
HayesHimself has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
renier_ has joined #ruby
<pagios> is this valid? string_value: "{ \'data\': { \'message\': \'hi\' } }",
krisquigley has joined #ruby
selu has joined #ruby
<jhass> >> {string_value: "{ \'data\': { \'message\': \'hi\' } }"} # sooo easy to try out
<ruboto> jhass # => {:string_value=>"{ 'data': { 'message': 'hi' } }"} (https://eval.in/313997)
blackmesa has joined #ruby
mattarse has joined #ruby
Igorshp has quit [Remote host closed the connection]
teddyp1cker has quit []
Crisix has joined #ruby
renier has quit [Ping timeout: 256 seconds]
DerisiveLogic has joined #ruby
meschi has joined #ruby
luser_ has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
joonty has quit [Quit: joonty]
<luser_> Hi guys. Is it possible to make date look like that: Fri, 10 Apr 2015 09:13:21 UTC +00:00 to look like that: 10/Apr/15 using ruby?
krisquigley has quit [Ping timeout: 256 seconds]
<jhass> luser_: strftime
joonty has joined #ruby
Igorshp has joined #ruby
<jhass> and strptime if the input is a string
zachrab has joined #ruby
grindmodeon has quit [Quit: Leaving.]
lolmaus_ has joined #ruby
<jhass> >> Time.now.strftime("%-d/%b/%-d")
<ruboto> jhass # => "15/Apr/15" (https://eval.in/313999)
mjuszczak has joined #ruby
<jhass> eh
meschi has quit [Remote host closed the connection]
<jhass> >> Time.now.strftime("%-d/%b/%-Y")
<ruboto> jhass # => "15/Apr/2015" (https://eval.in/314000)
nathanow1 has joined #ruby
<jhass> mh, still not, but you get the idea
DerisiveLogic has quit [Ping timeout: 246 seconds]
bradleyprice has quit [Remote host closed the connection]
mattarse has quit [Remote host closed the connection]
failshel_ has joined #ruby
lolmaus has quit [Ping timeout: 245 seconds]
bricker has joined #ruby
sinkensabe has quit [Remote host closed the connection]
nathanows has quit [Quit: Page closed]
blueOxigen has joined #ruby
agarie has quit [Remote host closed the connection]
zachrab has quit [Ping timeout: 252 seconds]
<ninjs> >> Time.now.strftime("%-d/%b/%-y")
<ruboto> ninjs # => "15/Apr/15" (https://eval.in/314003)
nathanow1 has quit [Client Quit]
freerobby has quit [Ping timeout: 256 seconds]
nathanows has joined #ruby
failshell has quit [Ping timeout: 246 seconds]
freerobby has joined #ruby
ych_ has joined #ruby
havenwood has joined #ruby
gfawcettpq has quit [Ping timeout: 245 seconds]
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
kblake has joined #ruby
bluOxigen has quit [Ping timeout: 276 seconds]
chridal has joined #ruby
The_Phoenix has joined #ruby
MyGreenPickle has joined #ruby
teddyp1cker has joined #ruby
sgambino has quit [Remote host closed the connection]
claw has quit [Ping timeout: 245 seconds]
claw_ has joined #ruby
<ninjs> >> date_string = DateTime.parse('Fri, 10 Apr 2015 09:13:21 UTC +00:00').to_date.to_s; date_string.strftime("%-d/%b/%-y")
<ruboto> ninjs # => uninitialized constant DateTime (NameError) ...check link for more (https://eval.in/314004)
cpt_yossarian has quit [Ping timeout: 256 seconds]
<ninjs> >> require 'date'; date_string = DateTime.parse('Fri, 10 Apr 2015 09:13:21 UTC +00:00').to_date.to_s; date_string.strftime("%-d/%b/%-y")
<jhass> .parse is often just luck though
<ruboto> ninjs # => undefined method `strftime' for "2015-04-10":String (NoMethodError) ...check link for more (https://eval.in/314005)
<jhass> strptime is much better if you know the format
saturnflyer has quit []
aphprentice has joined #ruby
zorak8 has quit [Ping timeout: 246 seconds]
mistermocha has joined #ruby
endash has joined #ruby
shellfu has joined #ruby
GenghisKen has quit [Ping timeout: 245 seconds]
maximski has joined #ruby
Akagi201 has quit [Remote host closed the connection]
Casshern2 has quit [Ping timeout: 246 seconds]
oo_ has quit [Remote host closed the connection]
dumdedum has joined #ruby
maximski has quit [Client Quit]
luser_ has quit [Remote host closed the connection]
oo_ has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
ndrei has joined #ruby
graydot has joined #ruby
nathanows_ has joined #ruby
graydot has quit [Client Quit]
mistermocha has quit [Read error: Connection reset by peer]
Soda has quit [Remote host closed the connection]
amdbcg has quit [Ping timeout: 244 seconds]
blueOxigen has quit [Ping timeout: 255 seconds]
bluOxigen has joined #ruby
mistermocha has joined #ruby
sethetter has joined #ruby
xtreak has joined #ruby
<sethetter> I have a an object I'm trying to use `.send` on with a variable like 'foo.bar.baz', and what I want is `obj.foo.bar.baz`. Can that be achieved with .send?
havenwood has quit [Ping timeout: 245 seconds]
Guest10679 has quit [Remote host closed the connection]
<jhass> sethetter: yeah, just split it up and call .send each time
<jhass> .inject will be handy
baroquebobcat has joined #ruby
<jhass> I prefer public_send btw
<sethetter> What about .instance_eval? I just found that and it seems to work.
User458764 has joined #ruby
lavros has quit [Ping timeout: 250 seconds]
dsaf has quit [Remote host closed the connection]
<jhass> send is saner
<sethetter> Seems that way, haha
<jhass> where does that string come from in the first place?
<sethetter> A URL param >_<
<jhass> d'oh
<sethetter> Yeah, I know :(
<jhass> then neither do eval nor send
<jhass> just don't
<jhass> find a different design
<sethetter> Fair enough. I've decided on that already, but I have a hotfix I have to get out and working at the moment.
<jhass> back to the drawing board, there's shame and death further along this path
<sethetter> Haha, noted.
<sethetter> Bandaids aren't fun, but my hands are tied at the moment.
horsecowdog has quit [Ping timeout: 252 seconds]
latemus has quit [Quit: leaving]
bim has joined #ruby
<jhass> do you work for d-link by any chance? http://www.devttys0.com/2015/04/what-the-ridiculous-fuck-d-link/
bim is now known as Guest68617
<jhass> because a hotfix send'ing an URL param is that kind of category
michaeldeol has joined #ruby
<sethetter> I don't
mistermocha has quit [Ping timeout: 240 seconds]
<certainty> muha reminds me of cisco ip phones that would do their firmware upgrade from an url that you pass as a GET-Parameter to and endpoint on their webinterface
nathanows_ has quit [Quit: nathanows_]
MyGreenPickle has quit [Ping timeout: 245 seconds]
imanzarrabian has quit [Quit: Textual IRC Client: www.textualapp.com]
<certainty> scary stuff
cassianoleal has joined #ruby
kofione has joined #ruby
Igorshp has quit [Remote host closed the connection]
Hijiri has quit [Quit: WeeChat 1.0.1]
vire has quit [Ping timeout: 276 seconds]
RegulationD has quit [Remote host closed the connection]
A124 has quit [Remote host closed the connection]
nathanows has quit [Ping timeout: 250 seconds]
serivichi has quit [Ping timeout: 240 seconds]
gfawcettpq has joined #ruby
serivich has quit [Ping timeout: 255 seconds]
dumdedum has quit [Quit: foo]
enebo has quit [Quit: enebo]
failshel_ has quit []
RegulationD has joined #ruby
joonty has quit [Read error: Connection reset by peer]
rbennacer has quit [Remote host closed the connection]
nathanows has joined #ruby
anaeem1 has joined #ruby
nathanows_ has joined #ruby
gsd has joined #ruby
<certainty> DeBot: !hangman ruby
<DeBot> ␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣ [] 0/12
<certainty> DeBot: :#
<DeBot> ␣␣␣␣␣␣␣␣␣␣␣␣␣␣#␣␣␣␣␣␣ [:] 1/12
Cust0sL1men has quit [Ping timeout: 248 seconds]
<certainty> DeBot: _
<DeBot> ␣␣␣␣␣␣␣␣␣␣␣␣␣␣#␣␣␣␣␣␣ [:_] 2/12
CustosLimen has quit [Ping timeout: 264 seconds]
<certainty> DeBot: ei
<DeBot> ␣␣␣␣␣␣␣␣␣E␣␣␣␣#␣e␣␣␣␣ [:_i] 3/12
<certainty> DeBot: r
<DeBot> ␣␣␣␣␣␣␣␣␣Err␣r#re␣␣␣␣ [:_i] 3/12
sigurding has quit [Quit: sigurding]
<certainty> DeBot: o tu
<certainty> woops
<certainty> DeBot: otu
<DeBot> ␣o␣␣␣␣u␣␣Error#re␣␣o␣ [:_it] 4/12
<certainty> DeBot: h
<DeBot> ␣o␣␣␣␣u␣␣Error#re␣␣o␣ [:_ith] 5/12
<certainty> DeBot: mn
<DeBot> ␣o␣␣␣␣um␣Error#re␣␣on [:_ith] 5/12
paulcsmith has quit [Quit: Be back later ...]
<certainty> DeBot: s
<DeBot> ␣o␣␣␣␣um␣Error#re␣son [:_ith] 5/12
ramfjord has joined #ruby
<certainty> DeBot: p
<DeBot> ␣o␣␣␣␣umpError#re␣son [:_ith] 5/12
<certainty> DeBot: j
<DeBot> ␣o␣␣␣JumpError#re␣son [:_ith] 5/12
<jhass> DeBot: lc
<DeBot> Loc␣lJumpError#re␣son [:_ith] 5/12
pandaant has quit [Remote host closed the connection]
<certainty> DeBot: a
<DeBot> LocalJumpError#reason [:_ith] 5/12 You won!
<certainty> \o/
ascarter has joined #ruby
<jhass> so message is aliased as reason? TIL
tearan has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
RegulationD has quit [Remote host closed the connection]
GeorgesLeYeti has quit [Quit: Quitte]
spider-mario has joined #ruby
ndrei has joined #ruby
tearan has quit [Client Quit]
selu has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> actually no
<jhass> "The reason this block was terminated: :break, :redo, :retry, :next, :return, or :noreason."
<jhass> so somebody thought you might want to catch these? oO
<pagios> what is the equivalent of this in ruby? { "GCM": "{ \"data\": { \"message\": \"a\" } }" }
gregf1 has quit [Quit: WeeChat 1.0.1]
<pagios> setting this as a hash complains about the :
Rollabunna has quit [Remote host closed the connection]
GenghisKen has joined #ruby
GenghisKen has joined #ruby
Rollabunna has joined #ruby
wallerdev has joined #ruby
<jhass> if you want a hash with the same structure, replace the first : with =>
ujihisa has joined #ruby
<jhass> >> { "GCM" => "{ \"data\": { \"message\": \"a\" } }" }
<ruboto> jhass # => {"GCM"=>"{ \"data\": { \"message\": \"a\" } }"} (https://eval.in/314057)
<pagios> its not a valid hash
panga has quit [Remote host closed the connection]
<jhass> ?
<pagios> ok wil ltry it
<certainty> >> :valid.hash
<ruboto> certainty # => 673380093 (https://eval.in/314058)
ki0_ has joined #ruby
rbennacer has joined #ruby
aswen has quit [Ping timeout: 248 seconds]
ndrei has quit [Ping timeout: 244 seconds]
n80 has quit [Quit: n80]
mrmargolis has quit [Read error: Connection reset by peer]
baroquebobcat has quit [Quit: baroquebobcat]
ki0 has quit [Ping timeout: 245 seconds]
eytanfb has joined #ruby
mrmargol_ has joined #ruby
sevvie has quit [Ping timeout: 248 seconds]
nemish has joined #ruby
B1n4r10 has joined #ruby
sevvie has joined #ruby
<nemish> how can i lower case a value: Facter.add(fact) { setcode { tag["value"] } }
<nemish> tried Facter.add(fact) { setcode { tag["value".downcase] } }
<nemish> but didn't work
B1n4r10 has quit [Read error: Connection reset by peer]
Zai00 has quit [Quit: Zai00]
<shevy> >> "ABC".downcase
<ruboto> shevy # => "abc" (https://eval.in/314064)
rodfersou has quit [Ping timeout: 250 seconds]
<shevy> nemish works; add the .downcase after the ]
<nemish> doh.. okay thanks
naftilos76_ has joined #ruby
izzol has quit [Quit: leaving]
<pagios> optprase.rb in '===' invalid bytre sequence in UTF-8 ArgumentError jhass
livathinos is now known as livathinos|away
livathinos|away has quit []
<jhass> aha
<jhass> thanks for the info
DaniG2k has quit [Quit: leaving]
* jhass carries on
xtreak has left #ruby ["AndroIRC"]
rzewski has joined #ruby
nathanows_ has quit [Ping timeout: 252 seconds]
<naftilos76_> Is there any reason why i should not do IO.read("filename") but instead do : File.open(filename, "r") do |f| f.flock(File::LOCK_SH) f.read end ???
<adaedra> none
<adaedra> except if you absolutely want a lock during the read
<adaedra> which seems useless
<jhass> in that particular example, yeah, the locking
nathanow1 has joined #ruby
rodfersou has joined #ruby
<naftilos76_> i think so too
<shevy> I had opinions on Emacs vs Vim (obviously Emacs)
<shevy> !!!!
<naftilos76_> thanks
<adaedra> !!!!
<shevy> there can only be two losers in the epic struggle of emacs vs. vim!
<withnale_> Not thinking well today... Is there a ruby one liner that given %w(1 2 3 4) will return [[1], [1,2], [1,2,3], [1,2,3,4]] ?
MyGreenPickle has joined #ruby
nathanows has quit [Ping timeout: 256 seconds]
<jhass> naftilos76_: adaedra the locking is not useless, it can prevent the file from being overwritten while you're in the middle of reading it
<shevy> withnale_ that seems a non standard aggregation
A124 has joined #ruby
<adaedra> There is only one area emacs is immensly over vim: loading time.
<jhass> naftilos76_: but only care if there's actually a concurrent writer
<adaedra> jhass: your OS should assure this.
<shevy> so you have a [1,2,3,4] array and want to expand it into several expanded arrays
krisquigley has joined #ruby
<naftilos76_> jhass: You are right, i am aware of that
jaygen has quit []
<shevy> there probably is a one liner for that too... how to turn 1.upto(4) into an expanded array :)
mleung has joined #ruby
<adaedra> jhass: under Linux, you keep fd on old File, on Windows erasure is forbidden (Sharing violation), afaik
anaeem1 has quit [Remote host closed the connection]
pengin has joined #ruby
mrmargol_ has quit [Read error: Connection reset by peer]
anaeem1 has joined #ruby
<withnale_> yes. the various ordered options starting from the head. Like doing dirname on a path iteratively til you get to the root.
<jhass> mh, I'd actually expect that to be FS dependent
mrmargolis has joined #ruby
<adaedra> it may be
<naftilos76_> How can anybody be with two nick names in irc? Isn't that funny?
naftilos76_ has quit [Remote host closed the connection]
<adaedra> ok
<naftilos76> yes it is
ndrei has joined #ruby
<naftilos76> :-)
nathanows has joined #ruby
x1337807x has joined #ruby
Filete has joined #ruby
<shevy> naftilos76 those guys make me angry
<shevy> apeiros used to be like that
<shevy> he had the nick apeiros_
<shevy> and apieros
<shevy> it confused the hell outta everybody
<naftilos76> me too... I promise i'll never login as naftilos76_ :-)
Guest66798 has joined #ruby
Guest66798 has quit [Excess Flood]
nathanows has quit [Client Quit]
mistermocha has joined #ruby
agarie has joined #ruby
<shevy> "Now I?m part of the irrelevant, established order of brogrammers"
<shevy> she is funny :)
<jhass> withnale_: (0...array.size).map {|i| array[0..i] } # best I can come up with atm
amdbcg has joined #ruby
<shevy> whoever came up with the "brogrammer" word should be sued to courts though
<shevy> jhass is my brogramma friend
mikecmpbll has quit [Ping timeout: 264 seconds]
anarang has quit [Quit: Leaving]
<shevy> letz brogramma togetha
* adaedra hits shevy
<shevy> hey adaedra
<adaedra> hey shevy
paulcsmith has joined #ruby
<shevy> or take pair programming
JimmyNeutron has quit [Read error: Connection reset by peer]
<shevy> can you pair with someone who writes awful code?
<dudedudeman> brogramming. i like that
<shevy> cuz you are the dude
<adaedra> shevy: If I have a flamethrower, yes.
<dudedudeman> straight up
<shevy> not everyone can be like a lebowski brogrammer
<shevy> although his attitude towards life is a good one
nathanows has joined #ruby
n80 has joined #ruby
rzewski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dsaf has joined #ruby
<dudedudeman> the dude does abide
ki0_ has quit [Remote host closed the connection]
<dudedudeman> and he's currently sitting here abiding while he snacks on m&ms
<shevy> haha
<shevy> and beer?
<dudedudeman> that's in about 20 minutes when i go to lunch
<shevy> \o/
nathanow1 has quit [Quit: Lost terminal]
maximski has joined #ruby
<dudedudeman> i work in an environment where if i had a beer on my desk, no one would really say anything
jenrzzz has joined #ruby
ianseyer has quit [Ping timeout: 252 seconds]
<shevy> have it an inspirational beer to all the dude brogrammers out there
<dudedudeman> but, it's still nto best practice
maximski has quit [Max SendQ exceeded]
<shevy> lucky you
ki0 has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
* dudedudeman has_many beers
<shevy> in my old work place I would be obliged to buy everyone else beer as well... that's going to become very costly very quickly
maximski has joined #ruby
noobQ is now known as hectortrope
dsaf has quit [Remote host closed the connection]
<dudedudeman> that's when you just go, i don't get paid enough, here's a case of keystone light to fight over
<shevy> though actually, they were into coffee. I can't cope with coffee
<dudedudeman> really. the dude definitely gets down with some coffee
vtunka has quit [Quit: Leaving]
sgambino has joined #ruby
<dudedudeman> i'm several cups in
amdbcg has quit [Read error: Connection reset by peer]
noname has quit [Ping timeout: 255 seconds]
tcrypt has joined #ruby
amdbcg has joined #ruby
charliesome has joined #ruby
blueOxigen has joined #ruby
hollywood has joined #ruby
andikr has joined #ruby
havenwood has joined #ruby
rzewski has joined #ruby
AlphaTech is now known as zz_AlphaTech
MyGreenPickle has quit [Ping timeout: 255 seconds]
jottr has joined #ruby
maximski has quit [Client Quit]
baroquebobcat has joined #ruby
bluOxigen has quit [Ping timeout: 250 seconds]
moeabdol has quit [Ping timeout: 264 seconds]
ianseyer has joined #ruby
gregf1 has joined #ruby
MatthewsFace has joined #ruby
hiyosi has joined #ruby
wallerdev has quit [Quit: wallerdev]
jobewan has joined #ruby
oddskill is now known as oddskill_away
foureight84 has joined #ruby
rhllor has quit [Quit: rhllor]
krz has quit [Quit: WeeChat 1.0.1]
riceandbeans has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
jerius_ has joined #ruby
ArchRogem has quit [Quit: Textual IRC Client: www.textualapp.com]
mikecmpbll has joined #ruby
matiaslina has joined #ruby
zachrab has joined #ruby
Akagi201 has joined #ruby
mjuszczak has quit []
vim_shimm has quit [Ping timeout: 256 seconds]
jerius has quit [Ping timeout: 244 seconds]
oddskill_away is now known as oddskill
kotk has quit [Read error: Connection reset by peer]
dvxam has quit [Quit: Lost terminal]
kotk has joined #ruby
mrmargol_ has joined #ruby
MyGreenPickle has joined #ruby
mrmargolis has quit [Ping timeout: 276 seconds]
dfinninger has quit [Remote host closed the connection]
KramerC has joined #ruby
rzewski has quit [Remote host closed the connection]
DerisiveLogic has joined #ruby
fabrice31 has joined #ruby
grindmodeon has joined #ruby
Joufflu has joined #ruby
chthon has quit [Ping timeout: 244 seconds]
lele is now known as Guest24
oo_ has quit [Remote host closed the connection]
mjuszczak has joined #ruby
djbkd has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
GaryOak_ has joined #ruby
paulcsmith has joined #ruby
davedev2_ has joined #ruby
iamninja has joined #ruby
lemur has quit [Remote host closed the connection]
davedev24_ has quit [Ping timeout: 240 seconds]
jottr has quit [Ping timeout: 244 seconds]
sevvie has quit [Remote host closed the connection]
jerius has joined #ruby
JimmyNeutron has joined #ruby
sevvie has joined #ruby
platzhirsch has left #ruby [#ruby]
A205B064 has joined #ruby
fabrice31 has quit [Ping timeout: 250 seconds]
krisquigley has quit [Remote host closed the connection]
riotjones has joined #ruby
krisquigley has joined #ruby
emocakes has quit [Ping timeout: 264 seconds]
psy_ has quit [Remote host closed the connection]
gfawcettpq has quit [Ping timeout: 252 seconds]
jerius_ has quit [Ping timeout: 250 seconds]
atmosx has joined #ruby
mary5030 has quit [Ping timeout: 255 seconds]
arturhoo has joined #ruby
Hijiri has joined #ruby
iceyec has joined #ruby
charliesome has quit [Quit: zzz]
mbeasley has quit [Quit: WeeChat 0.4.2]
riotjones has quit [Ping timeout: 245 seconds]
mbeasley has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
krisquigley has quit [Ping timeout: 276 seconds]
wallerdev has joined #ruby
fryguy9 has quit [Quit: Leaving.]
<atmosx> hello
sevvie has quit [Ping timeout: 245 seconds]
Morkel has joined #ruby
jheg has quit [Ping timeout: 252 seconds]
sevvie has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
poguez_ has quit [Quit: Connection closed for inactivity]
krisquigley has joined #ruby
krisquigley has quit [Remote host closed the connection]
pengin has quit [Remote host closed the connection]
krisquigley has joined #ruby
startupality has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
<dudedudeman> sup, atmosx
antgel has quit [Ping timeout: 256 seconds]
Xiti has quit [Quit: Xiti]
<atmosx> good
<atmosx> reading news, trying to find a stream to watch a bball game. u?
chridal has quit [Ping timeout: 252 seconds]
<dudedudeman> plucking away at some routes in sinatra
<atmosx> I see
RegulationD has joined #ruby
allcentury has joined #ruby
<allcentury> Hi Rubyists - I'm struggling to understand a benchmark today, hoping someone can shed some light on the scenario I outlined here - http://codereview.stackexchange.com/questions/86983/logging-to-a-file-vs-udp
grindmodeon has quit [Quit: Leaving.]
rdark has quit [Quit: leaving]
Joufflu has quit [Read error: Connection reset by peer]
eytanfb has quit [Ping timeout: 256 seconds]
deric_skibotn has joined #ruby
jheg has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
cpt_yossarian has joined #ruby
zzing has joined #ruby
<jhass> allcentury: first wild guess: s/localhost/127.0.0.1/
vt102 has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
fryguy9 has joined #ruby
vt102 has joined #ruby
hectortrope has quit [Quit: WeeChat 0.4.2]
<jhass> allcentury: then I think you want to use connect instead of the send form that takes those params
gfawcettpq has joined #ruby
Senjai has joined #ruby
Senjai has quit [Changing host]
mary5030 has joined #ruby
DuoSRX has joined #ruby
<allcentury> I'm not sure I understand what s/localhost/127.0.0.1 means?
amdbcg has quit [Ping timeout: 272 seconds]
vt102 has quit [Remote host closed the connection]
<jhass> replace by
MyGreenPickle has quit [Ping timeout: 245 seconds]
<jhass> avoid the lookup in each iteration
_honning_ has quit [Ping timeout: 245 seconds]
<jhass> though using connect would solve that too
<atmosx> allcentury: localhost must be matched against /etc/host, must be 'resolved'
<atmosx> allcentury: but I don't that is going to add too much... if it does your DNS setup is fucked up
<allcentury> hrm
<jhass> but still enough to be slower than a file
<atmosx> yes, sure
<atmosx> it's a +1 call
<jhass> what's your requirements for the receiving side?
<jhass> I'd dig into a named pipe
<allcentury> so in the real world this was getting sent over UDP into logstash
MyGreenPickle has joined #ruby
<allcentury> I'm trying to isolate where our bottleneck is at the moment
ujihisa has quit [Ping timeout: 276 seconds]
<pagios> how can i put GCM inside default and not put it as a sibling in json? [{ "default": "Str" } , {"GCM": "{ \"data\": { \"message\": \"c\" } }"}]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
basiclaser has quit [Quit: Connection closed for inactivity]
RegulationD has joined #ruby
RegulationD has quit [Remote host closed the connection]
<jhass> allcentury: so for starters I'd try using connect on the socket
riskish has joined #ruby
<pagios> finally it works
RegulationD has joined #ruby
jgoyon has quit [Remote host closed the connection]
pengin has joined #ruby
<allcentury> jhass: WHOA! 1.27 if I use connect instead
<allcentury> 1.27seconds*
User458764 has joined #ruby
thomcom has joined #ruby
amdbcg has joined #ruby
<jhass> maybe there's some interesting flag that you can pass too, digging through Socket::MSG_* might be worth it
vt102 has joined #ruby
grindmodeon has joined #ruby
mary5030 has quit [Remote host closed the connection]
elaptics is now known as elaptics_away
mary5030 has joined #ruby
Crisix has quit [Quit: Textual IRC Client: www.textualapp.com]
gfawcettpq1 has joined #ruby
maximski has joined #ruby
mjuszczak has quit []
<allcentury> that's amazing
<allcentury> I'm so glad I asked
kirun has joined #ruby
vim_shimm has joined #ruby
gfawcettpq has quit [Ping timeout: 250 seconds]
wet88 has joined #ruby
Xiti has joined #ruby
<atmosx> allcentury: what was your previous number?
zz_Outlastsheep is now known as Outlastsheep
djbkd has quit [Remote host closed the connection]
Hijiri has quit [Quit: WeeChat 1.0.1]
<allcentury> 24 seconds
ki0 has quit [Ping timeout: 250 seconds]
<atmosx> oh I se..
ismaelga has quit [Remote host closed the connection]
<marens> allcentury: we implemented that in our app recently but went for async writing log events to a queue and periodically pushing them to logstash via tcp
djbkd has joined #ruby
thiagovsk has joined #ruby
<marens> allcentury: the question is if you want the logger call to return fast or to have the mesaage send to the receiving end as fast as possible
lolmaus_ has quit [Quit: Konversation terminated!]
<marens> with udp you might end up with split messages due to udp size limitations
CloCkWeRX has quit [Quit: Leaving.]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
krisquigley has quit [Remote host closed the connection]
colorados has quit [Ping timeout: 250 seconds]
colorisco has quit [Ping timeout: 272 seconds]
krisquigley has joined #ruby
Kricir has joined #ruby
ramfjord has quit [Ping timeout: 276 seconds]
ta has joined #ruby
dmmoody has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
krisquigley has quit [Ping timeout: 248 seconds]
cpt_yossarian has quit [Ping timeout: 245 seconds]
chridal has joined #ruby
blackmesa has quit [Ping timeout: 256 seconds]
chrisja has joined #ruby
failshell has joined #ruby
ghr has quit [Ping timeout: 276 seconds]
zzing has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
djellemah has quit [Remote host closed the connection]
nathanows has quit [Ping timeout: 265 seconds]
Advocation has joined #ruby
dfinninger has joined #ruby
f3lp has quit [Ping timeout: 246 seconds]
cosmicfires has quit [Quit: bye...]
dfinninger has quit [Read error: Connection reset by peer]
withnale_ has quit [Ping timeout: 252 seconds]
colorados has joined #ruby
dfinninger has joined #ruby
colorisco has joined #ruby
chridal has quit [Ping timeout: 272 seconds]
mengu has joined #ruby
mengu has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fryguy9 has quit [Quit: Leaving.]
mengu has quit [Remote host closed the connection]
wald0 has joined #ruby
Hijiri has joined #ruby
mengu has joined #ruby
djbkd has quit [Remote host closed the connection]
small-chimp has joined #ruby
meschi has joined #ruby
n80 has quit [Quit: n80]
<small-chimp> burn all jews in oven
jlast has quit [Remote host closed the connection]
davispuh has joined #ruby
<jhass> !ban small-chimp bye
jlast has joined #ruby
<small-chimp> burn all jews in oven
<small-chimp> sieg heil
<jhass> !ban small-chimp !P bye
<small-chimp> only muslims have a right to live
small-chimp was kicked from #ruby by ChanServ [Banned: bye]
tier has joined #ruby
dfinninger has quit [Ping timeout: 245 seconds]
djbkd has joined #ruby
<jhass> apeiros: what about defaulting to !P if it seems missing?
nathanows has joined #ruby
<crowell> chanserv has commands like that?
bMalum has joined #ruby
Caius has quit [Ping timeout: 276 seconds]
<crowell> i had no idea
<GaryOak_> It's 2015 why do people still do that shit
dmmoody_ has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
<jhass> crowell: yeah, chanserv help kick, chanserv help akick
jlast has quit [Read error: Connection reset by peer]
jlast_ has joined #ruby
tier_ has quit [Ping timeout: 264 seconds]
bluOxigen has joined #ruby
fryguy9 has joined #ruby
blueOxigen has quit [Ping timeout: 246 seconds]
Caius has joined #ruby
DrCode has joined #ruby
XorSwap has joined #ruby
<dmmoody_> msg NickServ IDENTIFY dmmoody bango1
<jhass> dmmoody_: new password time!
<tmadsen> :D
<jhass> and choose a bettter one this time
<dmmoody_> grrr...yup
teddyp1cker has joined #ruby
ta has quit [Remote host closed the connection]
mengu has quit [Read error: Connection reset by peer]
<thomcom> hahaha
<thomcom> lawls
jenrzzz has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
apoplexy has quit [Ping timeout: 250 seconds]
<thomcom> Using a high security password here seems kind of silly, the primary risk is being impersonated on IRC
hyperjuice has joined #ruby
Renich has quit [Quit: leaving]
fryguy9 has quit [Quit: Leaving.]
Outlastsheep is now known as zz_Outlastsheep
kaspernj has quit [Remote host closed the connection]
doodlehaus has quit [Remote host closed the connection]
<bricker> thomcom: can be pretty dangerous though
<bricker> if someone things you are someone you're not
vdamewood has joined #ruby
bluOxigen has quit [Remote host closed the connection]
fryguy9 has joined #ruby
Filete has quit [Remote host closed the connection]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
bluOxigen has joined #ruby
Hounddog has quit [Remote host closed the connection]
havenn has joined #ruby
<eam> why would you ever have a password not randomly generated and stored in a password manager?
<atmosx> GaryOak_: racism is growing rampant throughout Europe :-(
<GaryOak_> Really?!
havenwood has quit [Ping timeout: 246 seconds]
<atmosx> lol
jheg has quit [Quit: jheg]
<atmosx> GaryOak_: You didn't notice?
<GaryOak_> I thought Europe was finally getting their shit together
<atmosx> GaryOak_: hm, apparently in 2 weeks time there will be plenty of shit around and won't be *together* by no means.
allcentury has quit [Ping timeout: 256 seconds]
ghr has joined #ruby
<GaryOak_> What does that mean?
<GaryOak_> In 2 weeks time?
gusrub has joined #ruby
felltir has joined #ruby
<atmosx> GaryOak_: time will tell of course, but right-wing parties are growing in UK, France and Germany.
felltir has quit [Client Quit]
thatslifeson_ has joined #ruby
leafybas_ has joined #ruby
<GaryOak_> They are mad at Islam this time instead of Judism
<atmosx> GaryOak_: well by April 24 Greece might default (like officially). Then I seriously don't know what's gonna happen. because shit will hit in weeks or month Italy and Spain or maybe not. We'll see.
<eam> not that racism is primarily a function of where one stands on a left/right spectrum
<eam> in the US, most racists self-identify with the left
<atmosx> eam: well it was kinda associated with far-right. But generally speaking it's poverty which gives political space to extremists
<eam> and both sides think the other is racist
leafybas_ has quit [Remote host closed the connection]
<atmosx> eam: I find that hard to believe.
<atmosx> eam: btw there's no 'left' in the US
pandaant has joined #ruby
<eam> atmosx: poverty / lack of education give rise to certain types of racism, but privilige gives rise to other types
<shellfu> Racism will be alive until we're all in silver jumpsuits with robots with flailing arms.
<atmosx> eam: like which one?
<eam> atmosx: well, I think left/right is largely a false dichotomy so I won't argue :)
<ytti> in two party system you really have only one party
<atmosx> eam: If we're talking about the US, I agree.
<eam> ytti: but there are minor differences! And the branding is totally different
<ytti> because neither can afford to alienate half of the voters
<eam> atmosx: I'm talking about humans in general, in all places and historical contexts
lobolars has joined #ruby
amdbcg has quit [Ping timeout: 250 seconds]
<ytti> i found it lulzy how it was utterly obvious to both candidates that military expenses need to be increased
charliesome has joined #ruby
<eam> I agree all the "sides" in america have a lot in common with each other
<GaryOak_> The US has institutional racism, so we can feel better about ourselves
<atmosx> eam: then you probably better stick with programming? :-P
leafybasil has quit [Ping timeout: 255 seconds]
<ytti> that would be something that left-leaning party would never propose in country with multiple parties
thatslifeson has quit [Ping timeout: 245 seconds]
ghr has quit [Ping timeout: 256 seconds]
<eam> every group thinks every other group is subject to issues which they aren't
<eam> it's rarely true
<shellfu> yeah. what flared up this topic in a ruby channel? Kinda counter-productive to ruby learning. Not that I give two shits, but this may not be the right forum for such a discussion.
<GaryOak_> shellfu: some spammer came on the channel shouting racist crap
<shellfu> Ah
<GaryOak_> But yes back to ruby
gcheng has joined #ruby
<gcheng> hi
<gcheng> hi friends
<shellfu> :)
<havenn> gcheng: hi
bruno- has quit [Ping timeout: 265 seconds]
havenn is now known as havenwood
n80 has joined #ruby
<gcheng> newbie to ruby & ERB
<gcheng> I am newbie :)
<atmosx> I am a newbie too
huddy has quit [Quit: Connection closed for inactivity]
<gcheng> how can I stop one variable inside ERB from interpolating?
<atmosx> gcheng: by removing it?
<shellfu> exclude it :)
dfinninger has joined #ruby
<gcheng> say, I have 4 variables, 3 needs to be interpolated, and one should not.
<gcheng> basically the ideas is from ERB into another ERB
<atmosx> gcheng: from erb into another erb?
<gcheng> yes
<atmosx> I don't understand what that might mean
<shellfu> maybe throw your vars into an array and if array val == one you dont want dont print it
dmmoody_ has quit []
dmmoody_ has joined #ruby
* shellfu is dropping turkey sandwich into his mechanical keyboard!!!
<shellfu> brb
<gcheng> say I have ‘<%= var1 %> <\%\= var2 %>
<gcheng> can I do that?
<atmosx> doesn't make sense
<gcheng> my app needs the output to be: value1 <%= var2 %>
ebbflowgo has quit [Read error: Connection reset by peer]
<gcheng> is that possible with escaping and similar tweak?
enebo has joined #ruby
ebbflowgo has joined #ruby
agarie has quit []
<atmosx> You cant to not render erb code?
anthony has joined #ruby
<gcheng> say, if my input is <%= var1 %> <\%\= var2 %>, then var2 will not be escaped, then can I use another ruby function to unescape the output?
<gcheng> unescape to <%= var2 %> ?
anthony is now known as Guest18935
<adaedra> what are you trying to do, just print ’<%’ ?
towski_ has joined #ruby
Guest18935 has quit [Max SendQ exceeded]
CustosLimen has joined #ruby
zz_AlphaTech is now known as AlphaTech
<atmosx> adaedra: I think so, he might be writing some sort of documentation or something.
<adaedra> ah
<atmosx> adaedra: although markdown would seem more appropriate... I't sjust a feeling not sure what he is actually trying to do.
<gcheng> great.
<gcheng> I’ll try that tweak now.
Azure has joined #ruby
<adaedra> ”tweak"
rikai has quit [Quit: No Ping reply in 180 seconds.]
mrmargol_ has quit [Ping timeout: 276 seconds]
mrmargolis has joined #ruby
serivichi has joined #ruby
doodlehaus has joined #ruby
serivich has joined #ruby
dmmoody has quit [Disconnected by services]
braincras has quit [Remote host closed the connection]
dmmoody_ is now known as dmmoody
allcentury has joined #ruby
<gcheng> interesting
tvw has quit [Remote host closed the connection]
<gcheng> <%% is interpolated to ‘<%’
<gcheng> while %%> is still ‘%%>’
<atmosx> ah shit, that was a good article.
_blizzy_ has joined #ruby
<gcheng> my ruby version is 1.8.7 on centos 6.6
<atmosx> > I had opinions on Emacs vs Vim (obviously Emacs) - I stopped reading after this line
<atmosx> gcheng: does it have telent open by default?
<atmosx> telnet/telent/g
<gcheng> @Jhass, do you have any ideas is that the interpolatiion bug?
_honning_ has joined #ruby
amdbcg has joined #ruby
<gcheng> what is telnet?
<jhass> <% %%> %> I presume
<atmosx> gcheng: a protocol
rikai has joined #ruby
<atmosx> application protocol
<wasamasa> atmosx: lol
<atmosx> to be more specific
joonty has joined #ruby
<atmosx> wasamasa: what? he asked :-P
<wasamasa> atmosx: it's ok, the dark side will come and get you eventually
The_Phoenix has quit [Quit: Leaving.]
<jhass> telnet is a protocol that's "abused as netcat since 1982"(tm)
<wasamasa> atmosx: no need to pretend you'd drop reading an article over that
<gcheng> @jhass, you mean, ‘<%= abc %%>’ will be interpolated into ‘<%= abc %>’?
<jhass> gcheng: no, I mean that <%= "%%>" %> will insert %> into the document
MyGreenPickle has quit [Ping timeout: 276 seconds]
Synthead has quit [Read error: Connection reset by peer]
<atmosx> jhass: that's true. When I wanna test smtpds or https I still use telnet sometimes, instead of nc. hehehe old habbits are hard to come by.
<gcheng> my ‘<%% abc %%>’ is interpolated into ‘<% abc %%>’ — one extra ‘%’ at the end
<atmosx> gcheng: then remove it
<jhass> gcheng: yeah, why would you need to escape it outside a tag
vim_shimm has quit [Ping timeout: 264 seconds]
<jhass> it's not ambiguous
sinkensabe has joined #ruby
<gcheng> so how to make it happen that after interpolation I can get: <%= abc %> ? Thanks.
sgambino has quit [Remote host closed the connection]
<jhass> <%%= abc %>
ramfjord has joined #ruby
solars has joined #ruby
rikai has quit [Client Quit]
<gcheng> @jhass, it works as expected! Thanks.
_honning_ has quit [Ping timeout: 276 seconds]
<gcheng> Thanks, every one, my problem disappears!
<gcheng> :)
bruno- has joined #ruby
MyGreenPickle has joined #ruby
baweaver has quit [Remote host closed the connection]
sinkensabe has quit [Ping timeout: 245 seconds]
fryguy9 has quit [Quit: Leaving.]
chridal has joined #ruby
Guest68617 has quit [Remote host closed the connection]
bim has joined #ruby
bim is now known as Guest12600
vulix has quit [Ping timeout: 246 seconds]
bruno- has quit [Ping timeout: 250 seconds]
quimrstorres has quit [Remote host closed the connection]
nathanows has quit [Quit: nathanows]
ki0 has joined #ruby
sigurding has joined #ruby
poguez_ has joined #ruby
rbennacer has quit [Remote host closed the connection]
quimrstorres has joined #ruby
thumpba has joined #ruby
MyGreenP1 has joined #ruby
startupality has quit [Quit: startupality]
MyGreenPickle has quit [Ping timeout: 264 seconds]
shazaum has quit [Quit: This computer has gone to sleep]
thumpba_ has joined #ruby
tier has quit [Read error: Connection reset by peer]
ndrei has quit [Ping timeout: 272 seconds]
delianides has joined #ruby
<A124> Would like to write an interpreter for a limited subset of C++ .. anyone tips or resources?
yqt has joined #ruby
<adaedra> C++ is supposed to be compiled, not interpreted
<adaedra> You’ll need a parser first
krisquigley has joined #ruby
momomomomo has joined #ruby
thumpba has quit [Ping timeout: 245 seconds]
bigmac_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
makepkgnotwar has joined #ruby
bluOxigen has quit [Ping timeout: 256 seconds]
gfawcettpq1 has quit [Ping timeout: 264 seconds]
dmmoody has quit [Remote host closed the connection]
bluOxigen has joined #ruby
fryguy9 has joined #ruby
crdpink has joined #ruby
makepkgnotwar has quit [Max SendQ exceeded]
hollywood has quit [Quit: Leaving]
makepkgnotwar has joined #ruby
mrmargolis has quit [Remote host closed the connection]
yqt has quit [Ping timeout: 245 seconds]
bigmac has quit [Ping timeout: 255 seconds]
_honning_ has joined #ruby
<apeiros> jhass: I have to rework that anyway
serivichi has quit [Ping timeout: 245 seconds]
<momomomomo> >> 1<< 8
serivich has quit [Ping timeout: 240 seconds]
<ruboto> momomomomo # => 256 (https://eval.in/314163)
<jhass> apeiros: to choose smarter masks? yeah
makepkgnotwar has quit [Client Quit]
krisquigley has quit [Ping timeout: 264 seconds]
<apeiros> not just
<apeiros> also always limit the IP ban
<apeiros> there's no point in long term ip bans
oddskill is now known as oddskill_away
<wasamasa> A124: just use cling
<apeiros> hm, well, except for servers maybe…
<jhass> heh, I have my IP for probably 2-3 months
<wasamasa> A124: it's torture enough to get that packaged properly
zzing has joined #ruby
<wasamasa> A124: why are you asking #ruby anyways
<apeiros> so check whether an IP was banned more than once, if so, prolong the ban
Hijiri has quit [Quit: WeeChat 1.0.1]
Sawbones has joined #ruby
dmmoody has joined #ruby
lidenskap has joined #ruby
<adaedra> wasamasa: maybe he wants to do it in Ruby
<wasamasa> adaedra: lol
Kricir has quit [Remote host closed the connection]
<wasamasa> adaedra: that sounds even sillier than the original proposal
bradleyprice has joined #ruby
<wasamasa> adaedra: if I want to use ruby to do advanced analysis of code, then I'd do that for ruby code of course
<adaedra> yes, you
_honning_ has quit [Ping timeout: 276 seconds]
<wasamasa> unlike the rsense guy who thought it to be good to use java for an autocompletion thing
nathanows has joined #ruby
<wasamasa> which got cleaned up a bit and wired up to jruby
blizzy has joined #ruby
postmodern has joined #ruby
turtil has joined #ruby
<A124> wasamasa As I want to implement that interpreter in ruby :P
<wasamasa> A124: then why the heck are you asking here
rikai has joined #ruby
cpt_yossarian has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_blizzy_ has quit [Ping timeout: 245 seconds]
Dreamer3 has joined #ruby
vim_shimm has joined #ruby
CorpusCallosum has joined #ruby
voodookobra has joined #ruby
<voodookobra> sigh
charliesome has quit [Quit: zzz]
teddyp1cker has quit [Remote host closed the connection]
wald0 has quit [Ping timeout: 248 seconds]
odin22 has joined #ruby
<dudedudeman> let's say i have a has {:thing1 => "1", :thing2 => "2"} and i want to pass user input to the values of my keys. so basically, this: {:thing1 => "user field", :thing2 => "user field"}
<dudedudeman> have a hash*
Juanchito has quit [Quit: Connection closed for inactivity]
Pixi_ has joined #ruby
mengu has quit [Remote host closed the connection]
<A124> wasamasa Where should I ask then?
_honning_ has joined #ruby
fryguy9 has quit [Quit: Leaving.]
ndrei has joined #ruby
<wasamasa> A124: ##c
<wasamasa> A124: or ##programming
Xiti has quit [Ping timeout: 248 seconds]
<A124> It concerns ruby not c.
<wasamasa> uh
<A124> Its code in Ruby not code in C
<toretore> A124: what exactly is it you want to asking about?
XorSwap has quit [Ping timeout: 240 seconds]
<wasamasa> A124: you don't want that really
<toretore> *ask
<wasamasa> A124: besides, it's better to understand C++ first, so ask them
Lingo__ has joined #ruby
<jhass> hash[:thing1] = user_input; hash[:thing2] = user_input; or directly in the hash definition: {thing1: user_input, thing2: user_input}
<A124> tekacs Imlpementing an interpreter for a very limited subset of c++
<jhass> dudedudeman: ^
<dudedudeman> jhass: thanks. and can i assign and instance variable to that user_input? so like @user_input1, @user_input2 and so on?
<toretore> A124: that's not a question; be more specific
<voodookobra> show of hands, who uses open-uri? :D
<jhass> dudedudeman: you can put whatever valid ruby expression there really
<toretore> open-uri is stupid
<A124> toretore How do I proceed with parsing and interpretting a relatively simple language aka subset of c++?
<dudedudeman> jhass: thank you. i officially love you.
<voodookobra> toretore: :D
balazs_ has joined #ruby
<ninjs> jhass is the best
* dudedudeman flaunts his new knowledge like a badge of honor
<toretore> A124: that is like asking "how do i make a program that does the same as excel"
<toretore> A124: be more specific
<balazs_> Hi, I'm having problems with bundler. Any chance there's an online form where I can upload my Gemfile and get a fresh Gemfile.lock ?
<A124> How do I proceed with lexical parsing and analysis in Ruby?
n80_ has joined #ruby
<toretore> balazs_: rm Gemfile.lock ?
<A124> Or do I need some magic fascist question?
<wasamasa> A124: learn the basics first, they are independent of the language of implementation
crazydiamond has joined #ruby
<ytti> stringscanner is pretty good for lexing
<toretore> A124: be polite
wedgeV has quit [Quit: wedgeV]
rikai has quit [Quit: No Ping reply in 180 seconds.]
<toretore> A124: you have actually asked a question now, and you're getting answers
<wasamasa> A124: you'll need to lex, parse, then interprete it according to the rules of the language
ych_ has quit [Quit: Textual IRC Client: www.textualapp.com]
tvw has joined #ruby
Spami has joined #ruby
<A124> wasamasa I am aware of that, hoped that someone would have some output more specific to Ruby, but alright.. channels change over the years.
<eam> A124: Ripper
<A124> Thank you.
<wasamasa> A124: there is nothing specific to ruby to this
mjuszczak has joined #ruby
<eam> A124: ruby -e'require "ripper"; Ripper.sexp "1 + 1 - 1"'
ndrei has quit [Ping timeout: 256 seconds]
yfeldblum has joined #ruby
<wasamasa> eam: that's a very limited C++ subset :P
<balazs_> toretore: It's a Docker build, so I cannot easily just run the same binary
<eam> who said c++? I'm just answering for ruby
horsecowdog has joined #ruby
voodookobra has left #ruby [#ruby]
<wasamasa> the questioner of course
<toretore> balazs_: elaborate
<eam> wasamasa: eh, #include "ruby.h" and just call ripper and feed it to your interpreter :)
<A124> There might be ways or materials specific to Ruby. And I was not lucky on search.. and eam delivered something, thank you!
riskish has quit [Quit: Textual IRC Client: www.textualapp.com]
joonty has quit [Quit: joonty]
<jhass> balazs_: Gemfile, Gemfile.lock, full command output + invocation that's causing you issues -> gist
<wasamasa> eam: it's not about implementing it in C++, they want to parse C++ in ruby
<wasamasa> eam: not the other way around
<eam> oh, parsing C++ in ruby? use libclang
<wasamasa> and interpreting it afterwards
<wasamasa> because, uh, using cling is too simple
<eam> wasamasa: well interpreting it is easy
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<wasamasa> eam: if it were, cling would be usable for more than running it on existing C++ code
zzing has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
leafybasil has joined #ruby
NinjaOps has quit [Quit: Konversation terminated!]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<A124> clang, cling, impressive, ripper handy. Thank you. That is input I hoped for. I personally only bumped across Treetop.
n80_ has quit [Quit: n80_]
<wasamasa> cling is using the llvm project which is what powers clang
<wasamasa> it is an example of a tool actually used in production
startupality has joined #ruby
vulix has joined #ruby
<balazs_> jhass: It's way too involved. So I take there isn't an online tool to turn a Gemfile to a Gemfile.lock ?
n80_ has joined #ruby
n80_ has quit [Client Quit]
qwertme has joined #ruby
<wasamasa> I don't get why it's insistent on this weird workflow of running it on a file (instead of defining functions interactively), but whatever
rikai has joined #ruby
<jhass> balazs_: no, that seems silly. I told you what you need to provide to get actual help, if you choose not to, don't expect actual help
<wasamasa> A124: if you want to take a look at a hackier tool that only supports C, there's cint
<wasamasa> A124: I suspect it's doing it the way you planned to do
amdbcg has quit [Ping timeout: 246 seconds]
<A124> Yep, found that out. If I will be able to use cling, or clang to run C++ and have own functions interfacing with stuff and also interfacing with Ruby that is all I hoped. Basically an interpreter, and specific functions handled in Ruby not C. Which gives my familiar coding and dynamic stuff.
momomomomo_ has joined #ruby
zachrab has quit [Remote host closed the connection]
Lingo__ has quit [Quit: (null)]
momomomomo has quit [Ping timeout: 256 seconds]
momomomomo_ is now known as momomomomo
Synthead has joined #ruby
delianides has quit []
zzing has joined #ruby
<A124> "CINT is an interpreter for C and C++ code" Excellent, thank you wasamasa. I am interested in both, but for this purpose I am looking to have C++ and certain functions to interface with Ruby, which can process and return a value back to the function.
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Synthead> Is there a name for doing "#{foo}#{bar}" vs foo + bar?
<wasamasa> it supports C++, too?
<wasamasa> oh well, I haven't went that far with testing
<toretore> balazs_: why do you need an online tool when you have bundler on your machine?
<dudedudeman> Synthead: concatinating? i think..
<ytti> Synthead, string interpolation versus string concatenation?
<A124> Yup, they say. Not teh new one, but I do not the new one.
<Synthead> dudedudeman: I thought a + b was concatenating
<dudedudeman> Synthead: ah, it is. now that I see what you're saying
<Synthead> ytti: isn't "%s" % "foo" string interpolation?
cocotton has quit [Remote host closed the connection]
<Synthead> ytti: (that's Python, not sure about ruby)
cocotton has joined #ruby
<ytti> Synthead, i think % is formatting :)
<ytti> or substituion
<toretore> it can be called interpolation to
<GaryOak_> yeah I think it's just substitution
amdbcg has joined #ruby
<toretore> it's the same thing basically, only one is built in to ruby
<Synthead> ytti: thanks!
<ytti> np
<GaryOak_> Does ruby have a form of list comprehensions like python?
ndrei has joined #ruby
<toretore> no
<wasamasa> ruby has loads of enumerable methods
nathanows has quit [Quit: nathanows]
<wasamasa> which is pretty nice, I can deal with them better than with python's itertools
<weaksauce> I haven't used those in a while can you emulate it with a range and select?
lobolars has quit [Read error: Connection reset by peer]
sgambino has joined #ruby
<GaryOak_> I don't like python's syntax for that stuff
zzing has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<wasamasa> weaksauce: it's map and filter
<weaksauce> >> (1..10).select { |x| x > 5}
<ruboto> weaksauce # => [6, 7, 8, 9, 10] (https://eval.in/314203)
snockerton has quit [Quit: Leaving.]
iasoon has joined #ruby
dmmoody has quit [Remote host closed the connection]
<wasamasa> [f(x) for x in foobar if g(x)]
<weaksauce> ah
<jhass> GaryOak_: share a lit comprehension and we'll try to guess what it does and provide a nice Ruby equivalent!
charliesome has joined #ruby
<wasamasa> foobar.map(&:f).select(&:g)
<wasamasa> so, no, I don't miss it
<jhass> other way around, no?
<wasamasa> oh, right
<wasamasa> first the select, then the map
<GaryOak_> [os.path.join(d[0], f) for d in os.walk(".")
<GaryOak_> for f in d[2] if f.endswith(".rst")]
ndrei has quit [Ping timeout: 264 seconds]
bruno- has joined #ruby
<GaryOak_> like if you were starting in python you would be like "wtf"
snockerton has joined #ruby
<jhass> Dir["./**/*.rst"]
<jhass> I think
ndrei has joined #ruby
<weaksauce> >> Dir["./**/*.rst"]
<ruboto> weaksauce # => (https://eval.in/314204)
<GaryOak_> I just plucked this off the net anyways
vulix has quit [Ping timeout: 246 seconds]
Rickmasta has joined #ruby
mengu has joined #ruby
Zai00 has joined #ruby
<toretore> i'm guessing python uses something like iterators behind the scenes for this that you can use
winghouchan has joined #ruby
<wasamasa> yes
<wasamasa> it's using laziness
<weaksauce> the python one is less readable.
last_staff has joined #ruby
<weaksauce> at least to these eyes
maximski has quit []
<winghouchan> Howdy everyone! Is anyone here based in or around London, UK?
<jhass> probably, wonder why it's relevant though?
<winghouchan> I'm trying recruit some peeps who might want to volunteer to help kids code :)
<dudedudeman> do you have a page with info or anything about it?
<jhass> see, always good to include that in the initial question ;)
<dudedudeman> i'm not from the UK, but having a link for someone might be good
xmaddness is now known as xmad-afk
chridal has quit [Ping timeout: 248 seconds]
vulix has joined #ruby
<winghouchan> jhass: I usually see if anyone fits the criteria first or if there's interest ;)
bruno- has quit [Ping timeout: 244 seconds]
fryguy9 has joined #ruby
lidenskap has quit [Remote host closed the connection]
<winghouchan> dudedudeman: Yea sure. The centre I run is in Westminster. Our Twitter is here: twitter.com/YRSWestminster. We form part of a larger organisation called Young Rewired State yrs.io twitter.com/youngrewired
<winghouchan> dudedudeman: Cheers!
xiq has joined #ruby
<jhass> thing is that question is kinda vague and usually motivated by recruiting or trying to get somebody local to mentor you for whatever reason. It's likely just ignored by many potential candidates
<toretore> so no priests is what you're saying?
<dudedudeman> winghouchan: I dig it! teaching youngsters to code is always a plus
<jhass> so including your motivation for it is always a good thing and should actually yield you more responses
momomomomo has quit [Quit: momomomomo]
<winghouchan> jhass: The sea is wide and deep ;) And I only need to cast my net in shallow waters :)
<winghouchan> jhass: But cheers for the advice! :)
andikr has quit [Remote host closed the connection]
rbennacer has joined #ruby
<winghouchan> dudedudeman: There's some great organisations out there, get involved if you can :)
startupality has quit [Quit: startupality]
<winghouchan> dudedudeman: I can recommend some if you want?
<dudedudeman> i have a bit more to learn myself before i become a teacher, that's for sure. lol. see my question earlier about hashes *derp*
tier has joined #ruby
<winghouchan> dudedudeman: Haha, fair enough. Have fun learning and good luck! You'll be sure to become a master.
<dudedudeman> ha. thanks for the encouragement!!
nathanows has joined #ruby
decoponio has quit [Quit: Leaving...]
<winghouchan> No probs :)
_honning_ has quit [Ping timeout: 264 seconds]
<thomcom> Hey all
<winghouchan> thomcom: Heyo!
camilasan has quit [Remote host closed the connection]
<thomcom> I'm trying to figure out how to do roles
<jhass> thomcom: sounds Rail-ish, check #RubyOnRails ;)
<thomcom> That's truee jhass
<thomcom> It is a lot busier here.
mitchel__ has joined #ruby
Sawbones has quit [Remote host closed the connection]
x1337807x has joined #ruby
apoplexy has joined #ruby
<jhass> not IME
mitchellhenke has quit [Ping timeout: 276 seconds]
delianides has joined #ruby
<thomcom> ime?
<winghouchan> jhass, dudedudeman: Cheers for your time! You've made it pleasant! I'm off now!
<jhass> in my experience
<thomcom> oh nice
winghouchan has left #ruby ["Leaving. Have a great day everyone!"]
lidenskap has joined #ruby
<jhass> what a... I have no English expression for that :P
camilasan has joined #ruby
thiagovsk has quit [Quit: Connection closed for inactivity]
solars has quit [Ping timeout: 255 seconds]
Zai00 has quit [Ping timeout: 245 seconds]
cocotton has quit [Read error: Connection reset by peer]
cocotton has joined #ruby
guintwi has joined #ruby
<thomcom> What a TLA?
<guintwi> 1+2+3
CustosLimen has quit [Ping timeout: 276 seconds]
horsecowdog has quit [Remote host closed the connection]
<thomcom> I like to drop funky internet abbreviations, but IME is knew to me, kwim?
AlphaTech is now known as zz_AlphaTech
lidenskap has quit [Remote host closed the connection]
momomomomo has joined #ruby
momomomomo has quit [Client Quit]
<thomcom> Meh
baweaver has joined #ruby
<toretore> i know more internet abbreviations than you
rbennacer has quit [Remote host closed the connection]
pietr0 has joined #ruby
rbennacer has joined #ruby
foureight84 has quit [Quit: Be back later ...]
<toretore> LOL IMO SFW AFAIK that's just a few
lidenskap has joined #ruby
<thomcom> Is that what you put on your resume toretore?
<guintwi> IANAL
<guintwi> AMA
sigurding has quit [Quit: sigurding]
<guintwi> YUSIWYG
<bricker> "IANAL" is the stupidest abbreviation
<bricker> whoever thought that was okay is a retarded person
<toretore> yes, i have an appendix of 4 pages with internet abbreviations i know
<toretore> size 7 a4
<guintwi> YMCV
chintanparikh has joined #ruby
<thomcom> hahahaha
lanemeyer has quit [Ping timeout: 276 seconds]
<toretore> i downloaded most of the from an ftp server, but i've memorized them
<ninjs> If I call methods like... method1 (return) method 2 (return) do they wait for the first method to complete before starting?
<toretore> yes
<dudedudeman> order of operations for the win
<toretore> (usually)
<ninjs> so like file_operation would finish before move starts
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> yeah, most likely
<toretore> it depends, but most likely yes
mtakkman has joined #ruby
Zai00 has joined #ruby
<ninjs> That most likely bit scares me
Morkel has quit [Quit: Morkel]
<toretore> what you're talking about is synchronous code; the alternative is asynchronous code, but it's usually pretty clear from the context if that's the case
<ninjs> because file_operation uses some files in a directory to create an output file, then move moves those files to a different directory
<toretore> it's not something you should be worrying about
<ninjs> Great. That's what I wanted to hear haha
<Sou|cutter> ninjs: "most likely" is only a qualifier because without knowing the context, the implementation of method1 could do something asyncronously. You would probably know
foureight84 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
mjuszczak has quit []
spyderman4g63 has joined #ruby
nathanows has quit [Ping timeout: 264 seconds]
arturhoo has quit [Quit: arturhoo]
growlove has quit [Ping timeout: 240 seconds]
<xxneolithicxx> why do older ppl find git so difficult (i know that sounds stereotypical and over generalizing, but seriously)
<toretore> cause it's not like what they're used to
<jhass> what's your sample set?
<xxneolithicxx> jhass: my sample set of old ppl lol ?
<shellfu> "old habits die hard"
<toretore> {that guy who works at my company}
<xxneolithicxx> ^
foureight84_ has joined #ruby
<shellfu> old is relative :)
<xxneolithicxx> gsub(/guy/, "guys")
xiq has quit [Remote host closed the connection]
<jhass> so generalizing from that one personal experience sample... mmh
<xxneolithicxx> its not one, its one of many
<xxneolithicxx> its like they have given up on learning
<tcrypt> how old do you mean?
<shellfu> besides VCS is just VCS it doesnt matter. Its like getting on a dude for using joe or emacs or vim or textmate or pen and paper
<shellfu> ok maybe not pen and paper :)
<toretore> maybe older people just have the experience to know that newer isn't usually better and that jumping on the latest trend is usually just a way to introduce more complexity and uncertainty
<ytti> i thought everyone uses google as UI to git
<shellfu> heh
<xxneolithicxx> theres a difference between jumping on a source control trend and not knowing how to do it at all
<ytti> because it's hella confusing the moment you're doing something new
<ytti> then you fat finger question to google, and cheap from stackexcahnge
<xxneolithicxx> lol
last_staff has quit [Quit: last_staff]
twistedpixels is now known as zz_twistedpixels
<toretore> people who are new to programming are the most likely to install new shit just because it's new
<jhass> xxneolithicxx: I usually link people https://www.youtube.com/watch?v=1ffBJ4sVUb4
<ytti> i mean i use git
<ytti> but i don't think the UI is intuitive
<GaryOak_> I like trying new stuff to see if it might be worthwhile to use in the futrue
<ytti> the moment you need to do something complex, it's shitshortm
<ytti> shitstorm
nathanows has joined #ruby
<c-c> xxneolithicxx: I think older people made git
x1337807x has joined #ruby
<toretore> hah
<ytti> if all you do is commit to feature branch, push it
<c-c> xxneolithicxx: your stereotype is yours entirely
<ytti> merge
<GaryOak_> I think Linus made git
<ytti> repeat
<ytti> it's fine
<Nilium> I like git.
<xxneolithicxx> c-c: i did say it was stereotypical and overgeneralized
<atmosx> c-c: Linus made git
<c-c> My question is, why are almost all young people age-racist
<Nilium> Granted, I'm also the person converting our company from Mercurial to git.
foureight84_ has quit [Read error: Connection reset by peer]
foureight84 has quit [Ping timeout: 276 seconds]
<toretore> c-c: you can't be racist about age
<atmosx> c-c: don't ask him about svn and cvs
<c-c> incorrect, toretore
<Nilium> I think he means age-ist.
<Nilium> Which is actually a thing.
<atmosx> age-ist? what's that?
<GaryOak_> most places don't 'need' most of git's features
<shellfu> dudes who only like young chicks?
<shellfu> i keep getting older and high school girls stay the same age
<shellfu> lol
<Nilium> Being biased in some way by someone's age.
<atmosx> why are we discussing git ina ruby channel. shellfu do something!
<guintwi> git is a glitch
<shellfu> YOU GUISE!!!!
foureight84_ has joined #ruby
<atmosx> haha
<c-c> I like git, its great
<shellfu> Its ruby!!! not VCS
<eam> "all young people are agest" is itself an agest statement
catcher has joined #ruby
<Nilium> GaryOak_: Most don't, but we dropped git 'cause mercurial has worse tool support and a worse branching model.
<GaryOak_> >> 1 + 3 ^ 4
<ruboto> GaryOak_ # => 0 (https://eval.in/314208)
<Nilium> i.e., the branching model for local branches being "clone it again"
<weaksauce> GaryOak_ like what?
<toretore> well, just be glad it's not emacs, which sucks
<shellfu> ^ opinion
<guintwi> emacs + slime = ok
<c-c> Well, all of these tools are still in their infancy, and it is up to us to make it better!
<weaksauce> git is really simple at its core actually
<c-c> Cause we know they suck, sometimes
<GaryOak_> weaksauce: most places just end up using bitbucket or github like a centralized repo
<shellfu> I use a combination of word perfect and abode indesign for my programming needs!
<Nilium> If you just use git or mercurial as though it were svn, you're probably better with mercurial or just using svn.
<Nilium> Granted, telling people they can use svn now is a sin.
<GaryOak_> lol
<weaksauce> wat. git is fantastic even if you have a canonical repo
<c-c> shellfu: You are a design-abode prefect?
<guintwi> I am a hobby programmer so don't use git
<Nilium> weaksauce: It's fine for anything.
<shellfu> its the best editor out there!
<GaryOak_> guintwi: you heathen!
<c-c> git can be used as svn transparently
<jhass> can svn do git add -p ? or mercurial?
<Nilium> Mercurial: sort of but not really.
<dudedudeman> you know, git question then. do you like -m on your commits or do you prefer to jump in to an editor and line it out
frem has joined #ruby
<Nilium> SVN: no.
<GaryOak_> jhass laying down the line
<ytti> dudedudeman, definitely editor
<Nilium> dudedudeman: I use an editor, but that's 'cause I try to ensure I'm not doing one-line commit messages.
<shellfu> I typically use -m unless I have some splaining to do
<ytti> unless change is trivial and subject is sufficient
<jhass> I rely on that feature in my workflows nowadays
<weaksauce> partial line by line additions to your staging area is one of git's killer features
fryguy9 has quit [Quit: Leaving.]
<ytti> if change is trivial, maybe you should amend or rebase anyhow
<Nilium> Something I'd really recommend is always do git commit --verbose or -v
<guintwi> what is heathen (sorry not native English here)
<hanmac> hahaha i heard the new GTA5 does have problems if the username have something orthodox like that " " XD
<Nilium> That way, when your editor does open to write the commit message, you'll also see the changes in that commit
wikiziner has joined #ruby
colorisco has quit [Quit: colorisco]
<dudedudeman> i see what you're saying weaksauce. instead of just doing one large one, git add and commit individual files and put messages with each file
<Nilium> Being forced to stare at the horrors made by your own hand is useful.
<shellfu> ha
<dudedudeman> Nilium: ain't that the truth
<shellfu> the horrors :)
<dudedudeman> also, thanks for all of those replies
<guintwi> who is at the stage in git?
<jhass> Nilium: -p does that pretty much for me
<weaksauce> dudedudeman yes. precisely. it lets you craft the development story
<dudedudeman> weaksauce: i like it when you talk like that
<Nilium> jhass: Yeah, but having it all together can help you describe the commit better.
<xxneolithicxx> one question and i derailed the channel, who needs help lol
<jhass> which is why I do it quite regularly even if I intend to stage fully
<dudedudeman> currently, i'm using -m because i'm really just in a small project where i keep forgetting small, stupid things
vt102 has quit [Remote host closed the connection]
<Nilium> Still trying to get my coworkers to stop doing one-line commit messages.
<dudedudeman> this is helping me!
<dudedudeman> one of my latest -m's was "because I like doing things twice"
<weaksauce> if you haven't tried sourcetree it's really good for 99% of git's day to day use
meschi has quit [Remote host closed the connection]
fryguy9 has joined #ruby
<Nilium> dudedudeman: If you haven't already, consider reading Tim Pope's git commit message thing
ki0 has quit []
<Nilium> weaksauce: It's fantastic.
<xxneolithicxx> Nilium: nothing wrong with it unless you have commit msg standards
<guintwi> git -m dry
<Nilium> xxneolithicxx: We've got none.
<weaksauce> if you have a tricky rebase or something you might want to drop down to the cl
baweaver has quit [Remote host closed the connection]
<Nilium> Side-note: do not try to get git beginners to use git rebase or anything.
davejacobs has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
charliesome has quit [Quit: zzz]
tier_ has joined #ruby
<dudedudeman> Nilium: i have, and it's great. brief all caps intro of commit, then a detailed summary, write in the imperative, things like that
<jhass> !commit
<DeBot> My bad
<Nilium> That crap's hard to explain and it's better to just let them ask about it when they find it.
<jhass> scnr
<weaksauce> yeah no doubt. that's a running with scissors kind of feature Nilium
<dudedudeman> ?commit
<ruboto> I don't know anything about commit
<dudedudeman> ?git
<ruboto> I don't know anything about git
* dudedudeman throws shoe at ruboto
<ytti> dudedudeman, all caps? que
<ytti> either i don't understand humor
<jhass> okay, one more
<ytti> or you're terrible preson
<jhass> !commit
<DeBot> hey, what's that over there?!
<Nilium> Pretty sure Pope didn't advocate all-caps
<xxneolithicxx> Nilium: i had to introduce them to orphan branches on the first day due to how our project was being used
<xxneolithicxx> did not go well
<dudedudeman> ytti: i may have mistyped. i think it's just a capitalized first line
<Nilium> xxneolithicxx: I almost had to do that with an SVN migration where we were tagging subdirectories
<ytti> dudedudeman, fair enough
<Nilium> Ultimately I decided to just truncate the directory structure and re-merge later.
<Nilium> To be fair, that's kind of unique to weird SVN repos
<shellfu> ^ work safe?
ndrei has joined #ruby
guintwi is now known as lawandand
<Nilium> Yes.
djbkd has quit [Remote host closed the connection]
<dudedudeman> definitely sfw
<Nilium> It's Tim Pope, so there's bound to be weird innuendo, but otherwise it's safe.
<dudedudeman> though i guess that main page url is misleading
<shellfu> yeah :)
<dudedudeman> lol. sorry about that
michaeldeol has joined #ruby
<xxneolithicxx> jhass: is this guy really doing an interactive GIT presentation with a model lol
<jhass> xxneolithicxx: yes, and it's awesome
djbkd has joined #ruby
<xxneolithicxx> that is too funny
<dudedudeman> wait, where
pengin has quit [Remote host closed the connection]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tier has quit [Ping timeout: 245 seconds]
<xxneolithicxx> ill have to watch this in full later
charliesome has joined #ruby
<dudedudeman> man, you said model and i'm here like......
sgambino has quit [Remote host closed the connection]
sgambino has joined #ruby
f3lp has joined #ruby
<xxneolithicxx> lol
charliesome has quit [Client Quit]
<xxneolithicxx> no not a perty feminine model
<ninjs> how do I get the position of a certain string, say 'ABC' in an array of strings like ['123', 'DEF', 'ABC', '456']
<xxneolithicxx> index
<xxneolithicxx> i think
<jhass> yup, index
<jhass> but why do you need it? what's your goal?
<shellfu> So since we're all off topic anyhow. Star Citizen... who wants to jump into some arena commander later?
<ninjs> I have this long array that I'm trying to find what position I need to look at for a certain value, and I'm just trying not to count how many spaces over
Casshern2 has joined #ruby
mtakkman has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
foureight84_ has quit [Quit: Be back later ...]
<jhass> k, fair enough
Guest12600 has quit [Remote host closed the connection]
<ninjs> I.E. I'm going to hard code where in the array to look at, but in order to find out where, I'd like to just use ruby to find the position for me
RegulationD has quit [Remote host closed the connection]
<jhass> make sure to make pretty constants
<jhass> SOME_FILED = 123
<jhass> some_field = data[SOME_FIELD]
Conner__ has joined #ruby
<xxneolithicxx> its like hes using a high school science molecule kit to teach git lol
naftilos76 has quit [Remote host closed the connection]
meschi has joined #ruby
<jhass> xxneolithicxx: it's also a pretty decent explanation of rebase and what branches and tags actually are
sumark has quit [Ping timeout: 255 seconds]
<pagios> getting: ArgumentError - wrong number of arguments (2 for 1):when using result = client[:'userTable'].find({"token" => token}, {:fields => {"_id" => 0, "arn" => 1} }) any idea?
<jhass> yeah, find doesn't work like that
<jhass> check its docs again
<xxneolithicxx> err, that symbol
<dudedudeman> beginner question incoming
foureight84_ has joined #ruby
wikiziner has quit [Quit: Textual IRC Client: www.textualapp.com]
foureight84_ has quit [Read error: Connection reset by peer]
<jhass> everybody hide!
Conner__ is now known as thatslifeson
icebourg has quit []
foureight84_ has joined #ruby
chridal has joined #ruby
* jhass hides behind ruboto
<dudedudeman> i have a URL i'm building, and i want to user input a tag(what i'm calling it). "/monitors/:tag/calibrations"
<dudedudeman> HA
* dudedudeman throws 3 shoes at ruboto
<Nilium> Ruboto doesn't taste like apples, your fate is sealed.
thatslifeson_ has quit [Ping timeout: 252 seconds]
sumark has joined #ruby
<Nilium> Everyone knows success is measured by apple flavoring.
<dudedudeman> how do i pass in :tag
<Nilium> In what?
thatslifeson is now known as Conner_
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
Conner_ is now known as Conner_A
<dudedudeman> in my "/monitors/:tag/calibrations" URL.
<zenspider_> dudedudeman: #rubyonrails ?
<Nilium> Are you write your own muxer or something?
<jhass> dudedudeman: .gsub, or define tag like %(tag) (iirc) and String#%
<dudedudeman> so many words...
<dudedudeman> and zenspider_, i'm in Sinatra for this
<dudedudeman> don't know if the rails dudes would hate me
<jhass> or actually String#[]= should work too (it's just sub anyway)
<Nilium> Otherwise, uh, url["/monitors/".length..-1] and then slice to the next slash.
<zenspider_> then... #sinatra ?
<dudedudeman> wait, that exists?
<zenspider_> did last time I needed help
<Nilium> I find the use of overly complicated muxers weird. People really go overboard on those things.
<jhass> dudedudeman: /msg alis help for easy access to all the channels
<dudedudeman> no kidding, it's there
<dudedudeman> i'm logged in and there
<dudedudeman> i'll intro myself and get down to the diry
<dudedudeman> dirty*
<Nilium> Do not under any circumstances request a list of all channels on freenode or you will be very unhappy.
nfk has quit [Quit: yawn]
<jhass> /msg alis * -topic *what_i_need_help_with*
<jhass> Nilium: that's what alis is for ;)
<dudedudeman> Nilium: speaking from experience?
mjuszczak has joined #ruby
davejacobs has quit []
<zenspider_> wtf is alis?
<pagios> jhass: result = client[:'userTable'].find({"token" => token}, :fields => ["arn"]) thats like in the doc https://github.com/mongodb/mongo-ruby-driver/wiki/Tutorial
<jhass> a service
<xxneolithicxx> Nilium: pidgin hates that
<dudedudeman> yay pidgin!
zachrab has joined #ruby
<zenspider_> huh. new to me. and I thought I've been around the block a few times... :P
vt102 has joined #ruby
fabrice31 has joined #ruby
foureight84_ has quit [Ping timeout: 240 seconds]
<zenspider_> tho I hide behind my emacs irc client, so who knows...
<Nilium> All IRC clients hate Freenode's volume of channels.
dmmoody has joined #ruby
<Nilium> Mostly 'cause all IRC clients weren't made to handle such a huge server.
chridal has quit [Ping timeout: 252 seconds]
matiaslina has quit [Read error: Connection reset by peer]
jottr has joined #ruby
<jhass> zenspider_: btw do you have commit access to ruby-lang.org?
<xxneolithicxx> dont make an excuse for shitty coding
<Nilium> It's the server, not the client
<Nilium> The client can't request a slice of channels
<dudedudeman> yeah, there's no one active in that room. :(
<Nilium> It's all or nothing.
<dudedudeman> off to the docs i go
qwertme has joined #ruby
nathanows has quit [Quit: nathanows]
<Nilium> Just split the URL path into components
<Nilium> You don't need to do anything complicated here.
<dudedudeman> params[:tag]
<Nilium> First component is monitor, second component is the tag thing, third yadda yadda
fryguy9 has quit [Quit: Leaving.]
<Nilium> This comes up a lot in Go programming 'cause everyone's insistent on having some sort of web framework
<Nilium> And it's like, really, it's just a path, grab the Nth component and use it.
<dudedudeman> yeah, i'm on the web framework side of things for sure
<dudedudeman> i'm still studying and learning my RESTful things
ismaelga has joined #ruby
<Nilium> I almost never see REST done the same way twice, so I wouldn't worry too much about that.
zachrab has quit [Ping timeout: 246 seconds]
<pagios> anyone?
<Nilium> http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html ← Best thing you can do is probably read over this, actually
<Nilium> pagios: What?
<dudedudeman> i'll do that. I bought the pragprog book about it as well
kyrylo has quit [Ping timeout: 252 seconds]
fabrice31 has quit [Ping timeout: 256 seconds]
<pagios> Nilium: i asked a question above
<Nilium> All I saw was a line of code and a URL to a wiki
blizzy is now known as _blizzy_
<pagios> ArgumentError - wrong number of arguments (2 for 1):
Hijiri has joined #ruby
swgillespie has joined #ruby
<Nilium> If you break it into multiple lines instead of method chaining, which one is the error for?
QKO_ has joined #ruby
fryguy9 has joined #ruby
arescorpio has joined #ruby
<Nilium> I'm assuming the .find call, in which case it sounds like something is off
foureight84_ has joined #ruby
<pagios> Nilium: if i remove that :fields => it works
<pagios> but i want to do a projection
<toretore> pagios: paste the entire file at gist.github.com then give us the url here
<Nilium> Which version of Ruby are you using?
<pagios> 1.9.3p194
ismaelga has quit [Ping timeout: 240 seconds]
QKO has quit [Ping timeout: 276 seconds]
krisquigley has joined #ruby
<pagios> http://pastie.org/10094672 Nilium toretore
amdbcg has quit [Ping timeout: 248 seconds]
bruno- has joined #ruby
Sembei has quit [Ping timeout: 250 seconds]
CustosLimen has joined #ruby
gsd has joined #ruby
<adaedra> dudedudeman: when you cross-ask, be kind and inform both channels of it, next time
Rapier- has quit [Quit: (null)]
<toretore> pagios: that is not the entire file
zerowaitstate has quit [Quit: leaving]
<weaksauce> pagios also gist the full stack trace
<jhass> zenspider_: saw my question? :)
edwinvdgraaf has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
RegulationD has joined #ruby
<dudedudeman> adaedra: ah, i'm sorry. :( should i just say i'm cross posting from #ruby?
kadoppe has quit [Ping timeout: 264 seconds]
<shellfu> you're in #ruby :)
<adaedra> Yes, something along the lines of ”I asked #ruby and they redirected me there” or something
<zenspider_> jhass: sorry. no. what's the q?
<Nilium> pagios: Let me start a Mongo server and see if I get the same thing.
zenspider_ is now known as zenspider
<jhass> zenspider: I wonder if you have commit access to ruby-lang.org
<adaedra> shellfu: he asked the same thing in #sinatra, and since it’s the source of the crosspost...
<shellfu> ah
zachrab has joined #ruby
<dudedudeman> adaedra: makes sense, i'll make sure to do that next time
<zenspider> jhass: for the website? no. what's up?
meschi has quit [Remote host closed the connection]
krisquigley has quit [Ping timeout: 250 seconds]
<jhass> zenspider: I have this PR running: https://github.com/ruby/www.ruby-lang.org/pull/1039
ismaelga has joined #ruby
bruno- has quit [Ping timeout: 245 seconds]
kadoppe has joined #ruby
<toretore> jhass: :(
<jhass> I tried pinging drbrain but got no response in the last couple of days, and since you have +F on #ruby-lang too I figured I'd ask you
<Nilium> pagios: I'm going to say ignore that wiki page, it appears to be wildly out of date
<jhass> zenspider: especially there's no discussion inside the PR
<jhass> *since there's
<zenspider> poking now
djbkd has quit [Remote host closed the connection]
<pagios> Nilium: any other reference?
wallerdev has joined #ruby
<pagios> .projection
jherbst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pengin has joined #ruby
<shellfu> pagios, https://github.com/shellfu/automaton/blob/master/lib/backends/mongo_backend.rb you can reference. It's certainly not THE way, but it's A way. Take it with a single grain of salt
<shellfu> maybe 2
<shellfu> :)
nathanows has joined #ruby
pandaant has quit [Remote host closed the connection]
growlove has joined #ruby
tubuliferous has joined #ruby
<ninjs> what was that command that clears blanks out of an array?
<ninjs> .clean or something
<ninjs> not command, method sorry
<matugm> .compact?
quimrstorres has quit [Remote host closed the connection]
<tubuliferous> Hey folks, I want to connect to a publically-accessible folder on a web server and recursively download all of the files that match a particular regex
<ninjs> matugm: yeah, thanks! Doesn't work for "" strings though. D:
<Nilium> pagios: That should hopefully work.
<Nilium> Does for me, at least.
<tubuliferous> *publicly =)
<toretore> tubuliferous: curl or wget
<tubuliferous> ah...yeah...
<tubuliferous> good call
<tubuliferous> thanks toretore
<pagios> Nilium: can you share your .projection line?
<pagios> result2 = client[:'userTable'].find({"token" => token}).projection(:arn => 1)
<ninjs> oh, .reject(&:empty) works for that. :D :D
<Nilium> .projection(Foo: 1)
<pagios> not good for me still
<Nilium> e.g., cli['collectionName'].find.projection(Foo: 1)
<Nilium> After which you get a cursor.
<pagios> i want to find a specific token
<pagios> so find needs to take an argument
<Nilium> Then search for it as part of the find call
<Nilium> I'm not writing your code for you.
djbkd has joined #ruby
jottr has quit [Read error: Connection reset by peer]
nathanows has quit [Ping timeout: 256 seconds]
<ninjs> havenwood: yeah I found what I was looking for, it was the .reject method
<shellfu> Nilium only writes my code. Because teamwork is where others do your work for you
failshell has quit [Remote host closed the connection]
Sembei has joined #ruby
jottr has joined #ruby
Sawbones has joined #ruby
<zenspider> jhass: I threw a comment in there. basically negating your PR, but hopefully getting the right people talking. maybe we can make another stab at getting freenode to actually help.
<jhass> zenspider: check #ruby access list
<zenspider> jhass: thanks for poking the beehive (seriously). it needs it.
<Nilium> shellfu: You tell 'em. I'll have your bash implementation of Java done any minute now.
<jhass> zenspider: we recently got zzzak as founder appointed by freenode staff, which in turn appointed apeiros as founder which in turn appointed a whole bunch of new ops (including me)
<Nilium> I wonder how hard it'd be to implement the Lua VM as a shell script.
<jhass> zenspider: so we're pretty good staffed now
zachrab has quit [Remote host closed the connection]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> probably should write that into the PR
<havenwood> pretty good 24hr coverage
<ytti> i reaaaally dislike shell scripting
<ytti> almost violently
<ytti> it's like 'woo i can do this and this in shell scripting', which is just calling bunch of external binaries
<havenwood> ytti: it can be elegantly simple for small things, but quickly gets... gross
<lawandand> shell is a cute solution when the problem is short
zachrab has joined #ruby
<zenspider> how in the hell did you get freenode to actually act? we've been trying for years
<zenspider> tho, I have no idea how long it's been since we last tried
<jhass> ask apeiros, he did
<ytti> sadly unix is too mature and resists innovation
<pagios> Nilium: i am not able to put arguments to the find, find.projection works fine though
lidenskap has quit [Remote host closed the connection]
<ytti> something like 'powerscript' just can't happen in nix systems
<ytti> s/powerscrip/powershell/
snockerton has quit [Quit: Leaving.]
<jhass> zenspider: I think he massaged a staff long enough to get it when somebody with commit access requests
Rickmasta has joined #ruby
Sawbones has quit [Ping timeout: 250 seconds]
<p8952> Can minitest be instructed to always run the takedown method even if the tests fail?
Spami has quit [Quit: This computer has gone to sleep]
<zenspider> p8952: did you try?
<zenspider> jhass: well.. congrats to zzak for getting through. wow.
<havenwood> just took a few years ;)
blueOxigen has joined #ruby
bluOxigen has quit [Read error: Connection reset by peer]
Lingo_ has joined #ruby
<zenspider> "just" :P
<jhass> zenspider: anyway I'd be fine with switching the official channel for now, merging I'd actually like as a separate discussion
fryguy9 has quit [Quit: Leaving.]
<lawandand> I was trying to understand what people are talking here about but not an easy task
<p8952> zenspider, by default it doesn't. I could monkeypatch Test::Unit::TestCase with begin/rescue to call teardown on failure but I was hoping there was a more correct way
<vulix> how often do core libraries and function calls break with ruby updates? I know 1.9 -> 2 was huge, but what about 2.1 -> 2.2?
<zenspider> well... I'd like it to happen together, if at all possible... I don't want to leave those in #ruby-lang out in the cold. I still find the signal:noise better there
<zenspider> p8952: minitest != test/unit
<ytti> vulix, 1.9 -> 2.0 wasn't big to me
<toretore> vulix: i can't think of anyhink that has
tier_ has quit []
<ytti> 1.8 -> 1.9 was way bigger for me
<zenspider> vulix: 1.8 -> 1.9 was the worst. 1.9 -> 2.0 wasn't too bad. everything since has been rather minor
<p8952> zenspider, in > 1.9 Test:Unit is provided by minitest
<shevy> vulix don't think there were any major changes from 2.1 to 2.2 ... GC collects symbols now if I remember correctly, not sure when that happened... syntax: no change I think
<zenspider> all in all, I'd say that the 2.x line has done a pretty good job of stabilizing
<pagios> fixed it
FernandoBasso has joined #ruby
<vulix> Ty guys, I am trying to do Ruby on both Win and Linux and I'm a bit sketched out on the Windows side of things since the packages available are a bit older than the newest release
<zenspider> p8952: no, it isn't.
<ytti> i don't have beef with breaking stuff
<ytti> as long as you bring some candy
blueOxigen has quit [Remote host closed the connection]
<dudedudeman> who said candy?
* dudedudeman desires much candy
<ytti> mine
<zenspider> vulix: talk to imperator in #ruby-lang about windows stuff. he and luis pretty much own that platform
<shellfu> addicts
<shellfu> :)
<vulix> ty zenspider
zachrab has quit [Remote host closed the connection]
<ytti> python3 is good example of breaking without candy
bluOxigen has joined #ruby
zachrab has joined #ruby
Lingo_ has quit [Client Quit]
anaeem1 has quit [Remote host closed the connection]
zachrab has quit [Remote host closed the connection]
<lawandand> many people are expecting some more speed (candy)
<zenspider> p8952: ruby -rminitest/autorun -e 'class X < Minitest::Test; def test_bad; raise; end; def teardown; p :good; end; end' # prints :good just fine
<shevy> ytti: speaking of python3... I can't compile pycairo... with mysterious things like "waf"... I have both python3 and python2 compiled from source just fine, "./waf configure" still fails with a mysterious error "command ['/usr/bin/python', '/usr/bin/python3.4-config', '--includes'] returned 1"
<zenspider> hrm...
<zenspider> >> require "minitest/autorun"; class X < Minitest::Test; def test_bad; raise; end; def teardown; p :good; end; end
<ruboto> zenspider # => (https://eval.in/314237)
<zenspider> ooh... what's "Forbidden syscall clone" mean?
<shevy> hehe
<ytti> shevy, sorry no clue, but i would pr obably run those manually in shell and see what happens
ianseyer has quit [Ping timeout: 248 seconds]
<ninjs> can I instantiate a variable outside of a method, reference the variable inside the method, change it, and have it be changed external to the method?
<ninjs> Sorry if that makes no sense
<jhass> zenspider: anyway, thanks for the shoutout
amdbcg has joined #ruby
fryguy9 has joined #ruby
MyGreenP1 has quit [Ping timeout: 250 seconds]
delianides has quit [Remote host closed the connection]
<thomcom> Soudns like a static variable ninjs
<thomcom> I believe we have those in ruby
Sawbones has joined #ruby
lawandand has quit [Quit: Page closed]
lidenskap has joined #ruby
<Mon_Ouie> Does loading minitest involve loading some C extension from stdlib? Last time I checked eval-in's sandbox didn't let you do that
<ninjs> is that like the @@variable
<ninjs> thomcom: ^
snockerton has joined #ruby
teddyp1cker has joined #ruby
shellfu has quit [Quit: Leaving]
<thomcom> ninjs exactly
h00d has joined #ruby
<thomcom> commonly used for counting the number of instances that have been created
<zenspider> Mon_Ouie: nope. it does use an at_exit to run tests... maybe that's it?
<ninjs> hmm... can I get a callback from a method then?
bluOxigen has quit [Ping timeout: 276 seconds]
<ninjs> Sorry for so many stupid questions. Let me just post what I'm trying to do here..
<thomcom> Sounds like you have to access it via getter/setter methods
<h00d> Guys, how I create an array whose size I still do not know?
ldnunes has quit [Quit: Leaving]
<shevy> h00d array = Array.new \o/
<thomcom> So you create static methods with def self.varname and def self.varname=argname
<shevy> you create class methods via def self.bla
<h00d> shevy ok man
<zenspider> >> require "minitest"; Class.new(Minitest::Test) do def test_bad; raise; end; def teardown; p :good; end; end.run Minitest::Reporter.new, {}
<shevy> dunno if "def self.varname=argname" would be valid, I think you must use the ()? "def self.bla=(i)"
<ruboto> zenspider # => (https://eval.in/314239)
<zenspider> wtf? it should at least tell you where/why
yikw has joined #ruby
<zenspider> no parens needed
teddyp1cker has quit [Ping timeout: 252 seconds]
Guest39478 has joined #ruby
<thomcom> h00d I like to say array = []
<yikw> /join #clojure
<jhass> zenspider: I think it blocks the syscall and aborts the program on not whitelisted ones or something
<Guest39478> any idea why i cant seem to be able to JSON.parse "{\n \"event_name\": \"sign_ups\",\n \"event_info\": {\n \"name\": \"John Smith\",\n \"email\": \"john@smith.com\",\n \"location\": \"New York, NY\"\n }\n}"
uri_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<Guest39478> im sending that as a post body and i cant parse it...
<zenspider> jhass: _what_ syscall?
<Mon_Ouie> "clone" is the name of a syscall
<Guest39478> in irb i can JSON.parse it
<zenspider> Mon_Ouie: the word doesn't exist in minitest
<jhass> zenspider: open() actually
<yikw> JSON.parse perhaps has to encode the string urlencode?
charliesome has joined #ruby
blackmesa has joined #ruby
amdbcg has quit [Remote host closed the connection]
<jhass> parameter whitelist as far as I can deduce from experience
<h00d> is that I will filter data from a file and, depending on the column can contain more than one User, so the array can get bigger.
<ninjs> I need to take the values returned in lines 76-83 and append them to newsheet1 that I created at line 4.
<Nilium> It's starting to get hard for me to keep track of my many different iTerm tabs
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Nilium> I might have to get into the habit of naming them.
amdbcg has joined #ruby
Casshern2 has quit [Ping timeout: 256 seconds]
bintelli has joined #ruby
<zenspider> jhass: the existance of it, or calling? because the code above shouldn't be calling.... Tempfile.open w/ a plain string seems harmless enough tho
gcheng has left #ruby [#ruby]
<jhass> zenspider: calling it with certain parameters, various parts of stdlib can't be required
jerius has quit [Quit: /quit]
dling has quit []
<shevy> Nilium give them names, like... first tab is "George", second tab is "Michael", third tab is "Gunther"
grindmodeon has quit [Quit: Leaving.]
<jhass> zenspider: but I'm just guessing, charliesome is the owner of the service if you bother enough ;)
rbennacer has quit [Ping timeout: 256 seconds]
Sawbones has quit [Remote host closed the connection]
fryguy9 has quit [Quit: Leaving.]
<thomcom> Nilium you need a 4k monitor
<thomcom> When you can see all of your term sessions/code windows at the same time they don't need names :)
quimrstorres has joined #ruby
<thomcom> On hard problems I'll run 10 code windows simultaneously, 600 loc simultaneously :D
<Guest39478> in eventmachine how do i return a http callback?
<Guest39478> http.callback { |response| return {status: response}.to_json } i have this line
<Guest39478> but it doesnt respond with that :\
XorSwap has joined #ruby
endash has quit [Quit: endash]
Sawbones has joined #ruby
yikw has quit [Quit: Page closed]
bim has joined #ruby
fryguy9 has joined #ruby
bim is now known as Guest61149
hakunin has quit []
mary5030 has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
Megtastique has quit []
zzing has joined #ruby
XorSwap has quit [Client Quit]
djbkd has joined #ruby
quimrstorres has quit [Ping timeout: 276 seconds]
oo_ has joined #ruby
centrx has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
brb3 has quit [Quit: <.<]
mjuszczak has quit []
amdbcg has quit [Ping timeout: 265 seconds]
<weaksauce> ninjs anytime you use a bunch of elsif's for identical code you might want to think about using a hash instead
<ninjs> oh! Good point
<ninjs> weaksauce: Thanks a bunch for that tip. :) I didn't even think of that
<weaksauce> and use fetch for the default value
doodlehaus has quit [Remote host closed the connection]
RegulationD has quit [Remote host closed the connection]
d10n-work has quit [Quit: Connection closed for inactivity]
Guest61149 has quit [Ping timeout: 250 seconds]
jottr has quit [Read error: Connection reset by peer]
<Nilium> thomcom: I have enough screens to do that, but I don't really want to see them all, just need to remember which one is which for when I occasionally go to check something
<Nilium> I think I just need to close them more proactively.. it's like browser tabs.
<Nilium> Though in the case of browser tabs, I have a plugin auto-closing old ones.
hiyosi has joined #ruby
_djbkd has joined #ruby
djbkd has quit [Ping timeout: 264 seconds]
dblessing has quit [Ping timeout: 240 seconds]
<weaksauce> also ninjs you can't access newsheet1 from across function calls
<ninjs> weaksauce: I can't use a hash if multiple keys correspond to one value, right?
<ninjs> weaksauce: That's what I was afraid of
<ninjs> So I'm not sure how to store the information I get out of that function call
<weaksauce> huh
jottr has joined #ruby
<ninjs> I suppose I *don't* need to make that into a function, I can store it all in the file_operation function, just under the if statement..
<weaksauce> an elsif would stop at the first match anyway ninjs
<ninjs> Right, but I need for example both '1002' and '1001' to return 'RTC'
<thomcom> keep an array as the hash value ninjs
<zenspider> Coraline: *ping*
MyGreenP1 has joined #ruby
<weaksauce> you could yield each keypair and do it from a block in the main call ninjs
<ninjs> so like {['1001','1002']: 'RTC'} ?
<weaksauce> also {"1002' => "RTC", "1001" => "RTC" }
<weaksauce> the keys need to be unique not the values
<ninjs> ahhhh
<zenspider> I was just about to say
<weaksauce> >> {"1002' => "RTC", "1001" => "RTC" }.fetch "10", "unknown"
<ruboto> weaksauce # => /tmp/execpad-bc709f531904/source-bc709f531904:2: syntax error, unexpected tCONSTANT, expecting => ...check link for more (https://eval.in/314242)
allcentury has quit [Ping timeout: 250 seconds]
<weaksauce> >> {"1002' => "RTC", "1001" => "RTC" }.fetch ("10", "unknown")
<ruboto> weaksauce # => /tmp/execpad-4e3e0eb73556/source-4e3e0eb73556:2: syntax error, unexpected tCONSTANT, expecting => ...check link for more (https://eval.in/314243)
snockerton has quit [Quit: Leaving.]
icebourg has joined #ruby
<weaksauce> >> {"1002" => "RTC", "1001" => "RTC" }.fetch ("10", "unknown")
<ruboto> weaksauce # => /tmp/execpad-05e81daac05f/source-05e81daac05f:2: syntax error, unexpected ',', expecting ')' ...check link for more (https://eval.in/314244)
<zenspider> can't do the space in front of the paren
<weaksauce> ah yeah
<thomcom> haha
<weaksauce> >> {"1002" => "RTC", "1001" => "RTC" }.fetch("10", "unknown")
<ruboto> weaksauce # => "unknown" (https://eval.in/314245)
<thomcom> is there an irb in here!!?!?!!
<weaksauce> >> {"1002" => "RTC", "1001" => "RTC" }.fetch("1001", "unknown")
<ruboto> weaksauce # => "RTC" (https://eval.in/314246)
<zenspider> I dislike fetch. I'd rather do `h[] || val` personally
nateberkopec has quit [Read error: Connection reset by peer]
<thomcom> >> [:interpret_me => "wooooo"]
<ruboto> thomcom # => [{:interpret_me=>"wooooo"}] (https://eval.in/314247)
<thomcom> >> {:interpret_me => "wooooo"}
<ruboto> thomcom # => {:interpret_me=>"wooooo"} (https://eval.in/314248)
<weaksauce> I like fetch because it handles nil zenspider
codecop has quit [Remote host closed the connection]
mjuszczak has joined #ruby
<weaksauce> but in this case either way
<thomcom> yeah handling nil is nice
<zenspider> weaksauce: *nod* I rarely need that.
catcher has quit [Quit: Leaving]
<zenspider> if ever...
<weaksauce> and false
<ninjs> I need it though
kirun has quit [Quit: Client exiting]
<ninjs> so .fetch works. :D Thanks haha
<weaksauce> ninjs not in this case you don't actually
havenwood has quit [Remote host closed the connection]
MyGreenP1 has quit [Ping timeout: 245 seconds]
<ninjs> oh right.. the value would be "" not nil
<weaksauce> but in general I like fetch because of the false and nil not oring to the default case
mitchel__ has quit [Quit: Computer has gone to sleep.]
<zenspider> ninjs: no you don't (not with your gist above at least)
<weaksauce> >> {"test" => "this"}["something"] || "unknown key"
<ruboto> weaksauce # => "unknown key" (https://eval.in/314249)
<weaksauce> ninjs ^
n80 has quit [Quit: n80]
rodfersou has quit [Quit: leaving]
bruno- has joined #ruby
<zenspider> ok. fuck. I need to work on my talk. bad distractions! BAD!
CorpusCallosum has quit [Read error: Connection reset by peer]
<eam> w/in 4
thomcom has quit [Quit: Textual IRC Client: www.textualapp.com]
centrx has quit [Quit: Shutting down, Please wait...]
<weaksauce> >> {"1002" => "RTC", "1001" => false }["1001"] || "unkown even though 1001 is valid"
<ruboto> weaksauce # => "unkown even though 1001 is valid" (https://eval.in/314250)
<weaksauce> ninjs see the difference?
<zenspider> weaksauce: I'd argue at that point that you're doing it wrong. but that's just me
<zenspider> damnit... ok. logging out.
<weaksauce> :D
<ninjs> oh Okay
<ninjs> I see now haha
<weaksauce> for known keys and values sure
hakunin has joined #ruby
jenrzzz has joined #ruby
Notte has joined #ruby
NoNMaDDeN has quit [Remote host closed the connection]
juanpaucar has joined #ruby
foureight84_ has quit [Quit: Lingo: www.lingoirc.com]
quimrstorres has joined #ruby
bruno- has quit [Ping timeout: 255 seconds]
poguez_ has quit [Quit: Connection closed for inactivity]
<ninjs> Okay. So I cleaned up that elsif mess and made an array and it works great. :) I'm still not sure how I get all of my cell values into an array I can pass back outside of my function
sgambino has quit [Remote host closed the connection]
hyperjuice has quit [Read error: Connection reset by peer]
quimrstorres has quit [Remote host closed the connection]
<ninjs> Or should I not even worry about separating all of that into a function and just leave it in the main function of my code
sgambino has joined #ruby
<weaksauce> it's kindof a mess ninjs
<weaksauce> ruby code typically is small methods that are easy to reason about.
<ninjs> I would expect so.. it's just a refactor of my very first Ruby script ever haha
Joufflu has joined #ruby
fryguy9 has quit [Quit: Leaving.]
dmmoody has quit []
<weaksauce> :)
quimrstorres has joined #ruby
fxck has quit [Read error: Connection reset by peer]
<ninjs> So I guess I'm not sure how to split it into small little methods haha
<ninjs> Like maybe each column operation is it's own method?
<ninjs> and they just return a value to the main method
Notte has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
dling has joined #ruby
fxck has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
fxck has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
failshell has joined #ruby
vdamewood has quit [Quit: Computer has gone to sleep.]
<weaksauce> col_n is not a great variable name.
GenghisKen has quit [Ping timeout: 245 seconds]
shellfu_afk has joined #ruby
werelivinginthef has quit [Remote host closed the connection]
vdamewood has joined #ruby
snockerton has joined #ruby
f3lp has quit [Ping timeout: 252 seconds]
jlast_ has quit [Remote host closed the connection]
evanjs has quit [Remote host closed the connection]
<ninjs> right but you get my point right? like def get_payor_name(claim_array); payor_name = claim_array[92]; end; ? etc
baweaver has joined #ruby
jlast has joined #ruby
failshell has quit [Ping timeout: 245 seconds]
<weaksauce> ninjs that doesn't work because payor_name falls out of scope
<weaksauce> it will return whatever is in claim_array[92] though
<ninjs> crap.
elfuego has quit [Quit: elfuego]
<ninjs> so just def get_payor_name(claim_array); claim_array[92]; end; payor_name = get_payor_name(claim_array)
<weaksauce> that would clean it up a bit yeah
tkuchiki has quit [Read error: Connection reset by peer]
GenghisKen has joined #ruby
GenghisKen has joined #ruby
icebourg has quit [Ping timeout: 276 seconds]
odin22 has quit [Read error: Connection reset by peer]
michael_mbp has quit [Excess Flood]
danzilio has joined #ruby
icebourg has joined #ruby
danzilio has quit [Max SendQ exceeded]
jlast has quit [Ping timeout: 264 seconds]
danzilio has joined #ruby
fryguy9 has joined #ruby
shellfu_afk has quit [Ping timeout: 265 seconds]
michael_mbp has joined #ruby
cocotton has quit [Remote host closed the connection]
axl_ has quit [Quit: axl_]
x1337807x has joined #ruby
<ninjs> awesome. that would actually be easier because I need to return the same values no matter what type of file it is, they are just in different places.
Casshern2 has joined #ruby
speakingcode has quit [Ping timeout: 265 seconds]
<ninjs> so I could just do def get_payor_name(claim_array, claim_ext); if claim_ext == '.ub4', claim_array[92]; else, claim_array[406]; end; payor_name = get_payor_name(claim_array)
<ninjs> not exact, but illustrates my point
fryguy9 has quit [Quit: Leaving.]
fxck has joined #ruby
fxck has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
<baweaver> Well that was magical
<baweaver> A recruiter in SF just tried to recruit me for my own team
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AlphaAtom has quit [Ping timeout: 244 seconds]
rgs has quit [Ping timeout: 246 seconds]
AlphaAtom has joined #ruby
<ninjs> rofl. A recruiter for our company got one of our employees let go because he had posted that he was looking for work somewhere and the recruiter tried to refer him back to us, when he already worked here.
rgs has joined #ruby
<adaedra> the wonders of work world
nathanows has joined #ruby
cek has joined #ruby
<cek> how do you view anotehr file in byebug?
shellfu_afk has joined #ruby
quimrstorres has quit [Remote host closed the connection]
dling has quit [Read error: Connection reset by peer]
dling has joined #ruby
magnificrab has left #ruby [#ruby]
quimrstorres has joined #ruby
NoNMaDDeN has joined #ruby
<vulix> So if I develop a fairly basic rails app on my Windows box, can I just take the app's folder and drop it into my Linux install and it should be good to go?
mjuszczak has quit []
MyGreenP1 has joined #ruby
Rickmasta has joined #ruby
<baweaver> ninjs: I should have played along a bit for kicks. Ah well.
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
willharrison has joined #ruby
baweaver has quit [Remote host closed the connection]
quimrstorres has quit [Ping timeout: 264 seconds]
Sawbones has quit [Remote host closed the connection]
NoNMaDDeN has quit [Ping timeout: 250 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has quit [Quit: Leaving.]
mjuszczak has joined #ruby
krisquigley has joined #ruby
nathanows has quit [Ping timeout: 240 seconds]
noname has joined #ruby
RegulationD has joined #ruby
pdoherty has joined #ruby
jenrzzz has joined #ruby
<shevy> vulix yeah
anibara has joined #ruby
mjuszczak has quit [Client Quit]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
elfuego has joined #ruby
CloCkWeRX has joined #ruby
krisquigley has quit [Ping timeout: 276 seconds]
elfuego has quit [Client Quit]
pika_pika has quit [Ping timeout: 245 seconds]
RegulationD has quit [Ping timeout: 264 seconds]
vdamewood has quit [Quit: Computer has gone to sleep.]
nathanows has joined #ruby
mengu has quit []
bMalum has quit [Quit: bMalum]
<shevy> aaah the shapechanging lemur is a beaver again \o/
mjuszczak has joined #ruby
baweaver has joined #ruby
alvaro_o has joined #ruby
zzing has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wallerdev has quit [Quit: wallerdev]
sankaber has joined #ruby
horsecowdog has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
vim_shimm has quit [Ping timeout: 256 seconds]
_honning_ has joined #ruby
mjuszczak has quit []
zachrab has joined #ruby
grindmodeon has joined #ruby
grindmodeon has quit [Max SendQ exceeded]
cek has left #ruby [#ruby]
mjuszczak has joined #ruby
vt102 has quit [Read error: Connection reset by peer]
grindmodeon has joined #ruby
mjuszczak has quit [Remote host closed the connection]
qwertme has joined #ruby
grindmodeon has quit [Client Quit]
rodfersou has joined #ruby
sankaber has quit [Ping timeout: 250 seconds]
jobewan has quit [Quit: Leaving]
sgambino has quit [Remote host closed the connection]
elfuego has joined #ruby
rek2gnulinux has joined #ruby
grindmodeon has joined #ruby
grindmodeon has quit [Max SendQ exceeded]
zachrab has quit [Ping timeout: 276 seconds]
grindmodeon has joined #ruby
grindmodeon has quit [Max SendQ exceeded]
grindmodeon has joined #ruby
grindmodeon has quit [Max SendQ exceeded]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
grindmodeon has joined #ruby
grindmodeon has quit [Max SendQ exceeded]
rodferso1 has joined #ruby
grindmodeon has joined #ruby
grindmodeon has quit [Max SendQ exceeded]
sankaber has joined #ruby
lanemeyer has joined #ruby
grindmodeon has joined #ruby
grindmodeon has quit [Max SendQ exceeded]
grindmodeon has joined #ruby
grindmodeon has quit [Max SendQ exceeded]
serivich has joined #ruby
serivichi has joined #ruby
grindmodeon has joined #ruby
rodfersou has quit [Ping timeout: 256 seconds]
Sawbones has joined #ruby
chrisja has quit [Quit: leaving]
ianseyer has joined #ruby
rek2gnulinux is now known as rek2wilds
Deele has quit [Ping timeout: 256 seconds]
GeorgeThompson has joined #ruby
GenghisKen has quit [Ping timeout: 256 seconds]
machty has quit [Ping timeout: 252 seconds]
artmann has quit [Ping timeout: 252 seconds]
jenrzzz has quit [Ping timeout: 256 seconds]
artmann has joined #ruby
serivich has quit [Ping timeout: 240 seconds]
serivichi has quit [Ping timeout: 240 seconds]
machty has joined #ruby
jenrzzz has joined #ruby
werelivinginthef has joined #ruby
iamninja_ has joined #ruby
predator117 has joined #ruby
Deele has joined #ruby
Zai00 has quit [Quit: Zai00]
iamninja has quit [Ping timeout: 252 seconds]
predator217 has quit [Ping timeout: 246 seconds]
jlast has joined #ruby
teddyp1cker has joined #ruby
bintelli has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 256 seconds]
failshell has joined #ruby
teotwaki has quit [Ping timeout: 256 seconds]
kartouch has quit [Ping timeout: 256 seconds]
werelivinginthef has quit [Ping timeout: 264 seconds]
gz_rain has joined #ruby
gz_rain has quit [Client Quit]
jaxxstorm has quit [Ping timeout: 256 seconds]
enebo has quit [Quit: enebo]
kartouch has joined #ruby
max96at has quit [Ping timeout: 252 seconds]
teotwaki has joined #ruby
jlast has quit [Ping timeout: 265 seconds]
pdoherty has quit [Ping timeout: 252 seconds]
jaxxstorm has joined #ruby
teddyp1cker has quit [Ping timeout: 264 seconds]
max96at|off has joined #ruby
delianides has joined #ruby
failshell has quit [Ping timeout: 245 seconds]
max96at|off is now known as max96at
oo_ has joined #ruby
zubov has joined #ruby
<Coraline> zenspider: pong
plutonic has joined #ruby
davedev24_ has joined #ruby
davedev2_ has quit [Ping timeout: 250 seconds]
_djbkd has quit [Remote host closed the connection]
vdamewood has joined #ruby
djbkd has joined #ruby
tkuchiki has joined #ruby
baweaver has quit [Remote host closed the connection]
Rickmasta has joined #ruby
zzing has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maximski has joined #ruby
felixjet has joined #ruby
felixjet_ has quit [Read error: Connection reset by peer]
zacts has joined #ruby
baweaver has joined #ruby
marr has quit [Ping timeout: 245 seconds]
cats has quit [Ping timeout: 240 seconds]
pdoherty has joined #ruby
cats has joined #ruby
bim has joined #ruby
ss__ has joined #ruby
bim is now known as Guest15638
mikecmpb_ has joined #ruby
anibara_ has joined #ruby
Sawbones has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
kt2 has joined #ruby
klaas_ has joined #ruby
horsecow_ has joined #ruby
kotk_ has joined #ruby
kt2 has quit [Client Quit]
bigkevmc_ has joined #ruby
x77686d has joined #ruby
swgillespie has joined #ruby
rodferso1 has quit [Quit: leaving]
paulcsmith has joined #ruby
Rollabun_ has joined #ruby
rodfersou has joined #ruby
delianides has quit [Remote host closed the connection]
djbkd has joined #ruby
Guest15638 has quit [Ping timeout: 245 seconds]
oddskillz has joined #ruby
Ove___ has joined #ruby
swgillespie has quit [Client Quit]
icebourg has quit []
Advocation_ has joined #ruby
bhaak_ has joined #ruby
xxi has joined #ruby
pygospa has quit [Disconnected by services]
matrixfo1 has joined #ruby
queequeg1 has joined #ruby
Freijo has joined #ruby
dfinninger has quit [Remote host closed the connection]
pygospa has joined #ruby
nathanows_ has joined #ruby
sivoais_ has joined #ruby
daed_ has joined #ruby
skinny_much has joined #ruby
rdema_ has joined #ruby
haroldwu_ has joined #ruby
Casshern2_ has joined #ruby
gsd_ has joined #ruby
camilasann has joined #ruby
mikecmpb_ has quit [Quit: i've nodded off.]
hasB4K_ has joined #ruby
davidcelis_ has joined #ruby
aef_ has joined #ruby
nomadic_ has joined #ruby
nathanows has quit [Ping timeout: 250 seconds]
gsd has quit [Ping timeout: 250 seconds]
davidcelis has quit [Ping timeout: 250 seconds]
Casshern2 has quit [Ping timeout: 250 seconds]
daynaskully has quit [Ping timeout: 250 seconds]
oddskill_away has quit [Ping timeout: 250 seconds]
kotk has quit [Ping timeout: 250 seconds]
nomadic has quit [Ping timeout: 250 seconds]
wmoxam has quit [Ping timeout: 250 seconds]
sivoais has quit [Ping timeout: 250 seconds]
ixx has quit [Ping timeout: 250 seconds]
qwertme has quit [Ping timeout: 250 seconds]
Advocation has quit [Ping timeout: 250 seconds]
aef has quit [Ping timeout: 250 seconds]
SHyx0rmZ has quit [Ping timeout: 250 seconds]
ping-pong has quit [Ping timeout: 250 seconds]
ninjazach has quit [Ping timeout: 250 seconds]
camilasan has quit [Ping timeout: 250 seconds]
Azure has quit [Ping timeout: 250 seconds]
bigkevmcd has quit [Ping timeout: 250 seconds]
benlieb has quit [Ping timeout: 250 seconds]
klaas has quit [Ping timeout: 250 seconds]
kies has quit [Ping timeout: 250 seconds]
hasB4K has quit [Ping timeout: 250 seconds]
sjohnsen has quit [Ping timeout: 250 seconds]
sethette1 has joined #ruby
_honning__ has joined #ruby
Advocation_ is now known as Advocation
ping-pong has joined #ruby
bashusr2 has joined #ruby
digifiv5e has joined #ruby
KramerC_ has joined #ruby
RandyT_ has joined #ruby
digifiv5e is now known as Guest94978
plantigrade has joined #ruby
sanguisdex has quit [Ping timeout: 248 seconds]
anibara has quit [Ping timeout: 248 seconds]
predator117 has quit [Ping timeout: 248 seconds]
horsecowdog has quit [Ping timeout: 248 seconds]
KramerC has quit [Ping timeout: 248 seconds]
Rollabunna has quit [Ping timeout: 248 seconds]
RandyT has quit [Ping timeout: 248 seconds]
snapcase has quit [Ping timeout: 248 seconds]
queequeg2 has quit [Ping timeout: 248 seconds]
Fraeon has quit [Ping timeout: 248 seconds]
bhaak has quit [Ping timeout: 248 seconds]
matrixfox has quit [Ping timeout: 248 seconds]
loop3r has quit [Ping timeout: 248 seconds]
sethetter has quit [Ping timeout: 248 seconds]
avelldiroll has quit [Ping timeout: 248 seconds]
daed has quit [Ping timeout: 248 seconds]
_honning_ has quit [Ping timeout: 248 seconds]
Guest39478 has quit [Ping timeout: 248 seconds]
mikecmpbll has quit [Ping timeout: 248 seconds]
CaptainCibai has quit [Ping timeout: 248 seconds]
troyready has quit [Ping timeout: 248 seconds]
bashusr has quit [Ping timeout: 248 seconds]
rdema has quit [Ping timeout: 248 seconds]
jokester has quit [Ping timeout: 248 seconds]
Ove_ has quit [Ping timeout: 248 seconds]
haroldwu has quit [Ping timeout: 248 seconds]
skinny_much_ has quit [Ping timeout: 248 seconds]
DylanJ has quit [Ping timeout: 248 seconds]
DylanJ has joined #ruby
sjohnsen- has joined #ruby
thomas has quit [Read error: Connection reset by peer]
anibara_ is now known as anibara
KramerC_ is now known as KramerC
DylanJ has quit [Changing host]
DylanJ has joined #ruby
kies has joined #ruby
plantigrade has quit [Client Quit]
troyready has joined #ruby
djbkd has quit [Remote host closed the connection]
Casshern2_ has quit [Client Quit]
jokester has joined #ruby
benlieb has joined #ruby
wallerdev has joined #ruby
CaptainCibai has joined #ruby
avelldiroll has joined #ruby
sanguisdex has joined #ruby
predator117 has joined #ruby
crazydiamond has quit [Remote host closed the connection]
nathanows_ has quit [Quit: nathanows_]
ninjazach has joined #ruby
wmoxam has joined #ruby
thomas has joined #ruby
jenrzzz has joined #ruby
ducklobster has quit [Ping timeout: 255 seconds]
loop3r has joined #ruby
snapcase has joined #ruby
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jottr has quit [Ping timeout: 250 seconds]
paulcsmith has quit [Quit: Lingo: www.lingoirc.com]
<chintanparikh> I have a loop and inside the block is a case/when with a state variable that's updated. Is there a better way to share a variabe (not the case variable) between each of the when's than using an @variable?
sarlalia1 has quit [Quit: WeeChat 0.4.2]
sarlalian has joined #ruby
<chintanparikh> Nevermind
sarlalian has quit [Client Quit]
havox has joined #ruby
Lingo has joined #ruby
sarlalian has joined #ruby
Lingo_ has joined #ruby
Lingo has quit [Read error: Connection reset by peer]
Lingo_ has quit [Read error: Connection reset by peer]
maximski has quit [Read error: Connection reset by peer]
Lingo has joined #ruby
vdamewood has quit [Quit: Computer has gone to sleep.]
maximski has joined #ruby
AlphaAtom has quit [Ping timeout: 272 seconds]
GenghisKen has joined #ruby
AlphaAtom has joined #ruby
lordkryss has joined #ruby
Adran is now known as Ttech
Ttech is now known as Adran
ianseyer has quit [Ping timeout: 250 seconds]
jeramy_s has joined #ruby
DerisiveLogic has quit [Ping timeout: 264 seconds]
maximski has quit []
sevenseacat has joined #ruby
Lingo has quit [Read error: Connection reset by peer]
Lingo has joined #ruby
tvw has quit [Remote host closed the connection]
zachrab has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
davispuh has quit [Ping timeout: 250 seconds]
Akagi201 has quit [Remote host closed the connection]
Akagi201 has joined #ruby
Akagi201 has quit [Remote host closed the connection]
Akagi201 has joined #ruby
davispuh has joined #ruby
<h00d> personal, I wanna associate a name to a number. but there is the need for the number of be changed over time.
Akagi201 has quit [Remote host closed the connection]
icebourg has joined #ruby
<h00d> how can I have this effect?
djbkd has joined #ruby
Pixi_ has quit [Quit: Pixi_]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JoshGlzBrk has joined #ruby
Xiti has joined #ruby