apeiros changed the topic of #ruby to: Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
thepumpkin has joined #ruby
<existensil> which comes earlier in the lookup i guess
Thanatermesis has quit [Quit: ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ]
<volty> gone - for a deeper, lonely, thinking
kofno has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
DanKnox_away is now known as DanKnox
<bnagy> imho that syntax approach is not a great example of the pure object model :/ But it is what it is
thepumpkin has joined #ruby
<bnagy> it makes it look like String(3) is some weird class-calling thing
thepumpkin has quit [Read error: Connection reset by peer]
<existensil> its not really an idiom i've seen used much in Ruby. URI is really the only example I can think of seeing.
<bnagy> oh it's definitely common
thepumpkin has joined #ruby
<existensil> ah
<bnagy> String() Integer() etc
<existensil> oh, right. heh. I use Array() sometimes
thepumpkin has quit [Read error: No route to host]
hogeo has quit [Ping timeout: 244 seconds]
<bnagy> it's supposed to be a 'strict' 'cast'
SegFaultAX has quit [Ping timeout: 252 seconds]
thepumpkin has joined #ruby
<bnagy> like 'q'.to_i vs Integer('q')
<bnagy> anyways, it's all smoke and mirrors
amacgregor_ has quit [Ping timeout: 245 seconds]
typicalbender has quit [Ping timeout: 272 seconds]
<RubyPanther> Float() is a common use, and in gems there is the classic Hpricot()
thelorax123 has quit [Remote host closed the connection]
thelorax1231 has quit [Remote host closed the connection]
cescalante is now known as ce_afk
ce_afk is now known as cescalante
Czupa has quit [Remote host closed the connection]
SegFaultAX has joined #ruby
thelorax123 has joined #ruby
thepumpkin has quit [Ping timeout: 264 seconds]
laputa has quit [Quit: WeeChat 0.4.2]
vlad_starkov has joined #ruby
mojjojo has quit [Quit: mojjojo]
aley has joined #ruby
danshultz has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
bruno- has quit [Quit: leaving]
<nullsign> we need to start sending ppl to codeacademy.com...
thepumpkin has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
thepumpkin has joined #ruby
weszlem has quit []
bruno- has quit [Client Quit]
thepumpkin has quit [Read error: Connection reset by peer]
brennanMKE has joined #ruby
weszlem has joined #ruby
thepumpkin has joined #ruby
burgess has quit [Quit: ^zzz]
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
banjara has quit [Quit: Leaving.]
hiroyuki_ has quit [Read error: Connection reset by peer]
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
bruno- has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
freezey has quit [Remote host closed the connection]
brennanMKE has quit [Ping timeout: 264 seconds]
thepumpkin has quit [Read error: Connection reset by peer]
freezey has joined #ruby
thepumpkin has joined #ruby
DanKnox is now known as DanKnox_away
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
ephemerian has left #ruby [#ruby]
petey has quit [Remote host closed the connection]
canoon has quit [Ping timeout: 245 seconds]
MrZYX is now known as MrZYX|off
petey has joined #ruby
err_ok has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oldschool has joined #ruby
vlad_starkov has joined #ruby
bruno- has quit [Quit: leaving]
snath has quit [Ping timeout: 245 seconds]
bruno- has joined #ruby
typicalbender has joined #ruby
<oldschool> Is there any way to freeze gems now?
Beoran_ has joined #ruby
thepumpkin has quit [Ping timeout: 240 seconds]
amacgregor has joined #ruby
<existensil> I've heard LN2 is highly effective at freezing things
<oldschool> hmmm, is that: > rake gems:LN2? ;)
petey has quit [Ping timeout: 272 seconds]
atmosx has joined #ruby
earthquake has joined #ruby
bruno- has quit [Client Quit]
bruno- has joined #ruby
Beoran__ has quit [Ping timeout: 272 seconds]
bruno- has quit [Client Quit]
<atmosx> hello
bruno- has joined #ruby
nXqd has joined #ruby
ua has quit [Quit: Leaving]
thepumpkin has joined #ruby
nXqd has quit [Client Quit]
thepumpkin has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
<existensil> :-P
thepumpkin has joined #ruby
nXqd has joined #ruby
thepumpkin has quit [Read error: No route to host]
thepumpkin has joined #ruby
nXqd has quit [Client Quit]
thepumpkin has quit [Read error: Connection reset by peer]
sheap has joined #ruby
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
pwh has quit []
thepumpkin has joined #ruby
bugsinlights has joined #ruby
nXqd has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
<oldschool> Anyone *besides* Ex?
thepumpkin has joined #ruby
<bnagy> what do you mean by freeze
thepumpkin has quit [Read error: Connection reset by peer]
<existensil> oldschool: have you used bundler? it's Gemfile.lock does an effective job of freezing gems for me
yfeldblum has joined #ruby
thepumpkin has joined #ruby
<Rudde> Why do I get this error in debug mode?
thepumpkin has quit [Read error: Connection reset by peer]
snath has joined #ruby
<existensil> you can also configure bundler to install gems in a vendor dir within a project, for an even colder gems
noname001 has joined #ruby
thepumpkin has joined #ruby
tkuchiki has quit [Remote host closed the connection]
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
tkuchiki has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
<bnagy> Rudde: hard to say, but looks most likely to be missing dependencies
<bnagy> I don't know that gem
bruno- has quit [Quit: leaving]
sergicles has joined #ruby
bruno- has joined #ruby
bruno- has quit [Client Quit]
danshultz has quit [Remote host closed the connection]
bruno- has joined #ruby
kofno has quit [Ping timeout: 245 seconds]
danshultz has joined #ruby
<Rudde> I have that one
<Rudde> with the DevKit
<Rudde> both for 64 bit
kcombs has joined #ruby
<bnagy> yeah but some DB stuff on windows needs to be installed separately
<bnagy> well.. on *nix as well
<Rudde> yes I did run the gem install debase in CMD as admin
<Rudde> and it said OK
wesside has quit [Ping timeout: 246 seconds]
<atmosx> anyone into animations?
<bnagy> basically you want to be looking into the gem itself and see a) if it says it supports windows and b) what the requirements are
tkuchiki has quit [Ping timeout: 272 seconds]
snath has quit [Ping timeout: 252 seconds]
cescalante is now known as ce_afk
nXqd has quit [Quit: leaving]
thepumpkin has quit [Ping timeout: 265 seconds]
amacgregor_ has joined #ruby
mark_locklear has joined #ruby
hogeo has joined #ruby
amacgregor__ has joined #ruby
banisterfiend has quit [Quit: Textual IRC Client: www.textualapp.com]
wesside has joined #ruby
amacgregor has quit [Ping timeout: 245 seconds]
<Rudde> on the gem site it only says Ruby 2.0.0 or higher in requirements
<Rudde> I have ruby 2
Fuzai has joined #ruby
amacgregor_ has quit [Read error: Connection reset by peer]
danshultz has quit [Ping timeout: 272 seconds]
<atmosx> Rudde: then you're fine
Fuzai has quit [Read error: Connection reset by peer]
<IceDragon> ^
<atmosx> 2 or higher means 2 or higher
<atmosx> as in 2 or higher
<Rudde> But I still get the error in RubyMine
<IceDragon> if you're not sure, just open a console and type: ruby -v
<atmosx> Rudde: ruby-what?
<atmosx> hmm
thepumpkin has joined #ruby
<Rudde> JetBrains RubyMine 5.4
<Rudde> its a IDE
<atmosx> Rudde: sounds like something evil
<atmosx> ruby and ide?
<Rudde> lolol
<Rudde> yes?
thepumpkin has quit [Read error: Connection reset by peer]
<Rudde> It's very nice
* IceDragon uses Sublime Text 3
<atmosx> that's outrageous
<Rudde> and I try to debug, and thats when I get that error
thepumpkin has joined #ruby
<Rudde> whats wrong with a IDE?
* atmosx opens his vim
<IceDragon> x; I could never get the hang of Vim
<atmosx> Rudde: cluttered, uneneeded and apparently you are having troubles with it
thepumpkin has quit [Read error: Connection reset by peer]
<atmosx> IceDragon: I never used sublime, they say it's good
<Rudde> Well it's not trouble with it, it only sends the command to ruby
<Rudde> and returns the error
<IceDragon> :) It is
<atmosx> IceDragon: but vim is a sort of religion
amacgregor__ has quit [Client Quit]
thepumpkin has joined #ruby
<IceDragon> It stays out of your way, has nice navigation
predator117 has joined #ruby
amacgregor has joined #ruby
<atmosx> Rudde: never used really, I hate windows with a passion nothing against ides :-P
thepumpkin has quit [Read error: Connection reset by peer]
<atmosx> IceDragon: sounds cool
banisterfiend has joined #ruby
<Rudde> It is a RubyMine for linux too
<IceDragon> :) yeah
<atmosx> Rudde: under linux you can use vim!
thepumpkin has joined #ruby
<IceDragon> and Sublime
<atmosx> you can use it under windows too, but why use windows at this point?
<atmosx> and emacs
<atmosx> and pico and gedit
thepumpkin has quit [Read error: Connection reset by peer]
<atmosx> and kate
* atmosx is out of editors
<bnagy> ... ok that all looks like a clusterf*ck
<IceDragon> Windows without a IDE: HELL ON EARTH here we go again
<Rudde> vim? no never!
<atmosx> cluster-fuck is a cluster that is fucked up?
thepumpkin has joined #ruby
<bnagy> Rudde: I suggest trying to get help closer to either your IDE or that gem
derebos has quit [Read error: Connection reset by peer]
<IceDragon> atmosx: don't forget leafpad
<IceDragon> and nano
bruno- has quit [Quit: leaving]
<Rudde> well, I get the same error running the .rb from command line
<atmosx> oh yeah
<IceDragon> and kwrite
<bnagy> you don't appear to be having a 'ruby' problem, and neither IDEs nor windows are very common in here
<IceDragon> >.>
<atmosx> leafpad? never used that one
<IceDragon> <.<
bruno- has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
<IceDragon> It ships with Parted Magic
<IceDragon> the only reason I found it
thepumpkin has joined #ruby
<atmosx> parted magic, strange name
bruno- has quit [Client Quit]
<IceDragon> its a linux distro
<atmosx> like if hte magic was here and now it's gone because you installed that silly progam
predator217 has quit [Ping timeout: 245 seconds]
<atmosx> omg
<IceDragon> tuned for, well.. partitioning
<atmosx> freedom is going to kill UNIX after all.
thepumpkin has quit [Read error: Connection reset by peer]
<atmosx> partitioning what?
<IceDragon> hard disks
earthquake has quit [Quit: earthquake]
thepumpkin has joined #ruby
<oldschool> @bnagy It looks like 'gems' have changed since I last used them - but I want to copy all used gems into the rails' project's directory structure.
<IceDragon> Though I just abuse it since its portable, and a bit small
DanKnox_away is now known as DanKnox
thepumpkin has quit [Read error: Connection reset by peer]
<IceDragon> Rudde: so what exactly is RubyMine spitting out?
<bnagy> oldschool: ie have different versions for different configs etc? I think people use bundler for that
thepumpkin has joined #ruby
<bnagy> but you might be better checking in #rubyonrails
<bnagy> cause rails people do stuff funny like
thepumpkin has quit [Read error: No route to host]
bruno- has joined #ruby
marr has quit [Ping timeout: 264 seconds]
<IceDragon> Rudde: try a: gem install debase_internals
<atmosx> anyone using docker here?
kaspergrubbe has quit [Remote host closed the connection]
thepumpkin has joined #ruby
<IceDragon> if not, you may need to google what that file belongs to
mrsolo has joined #ruby
<IceDragon> docker..?
<Rudde> Not found in repository
<atmosx> yes
<IceDragon> I think I've heard that somewhere before...
kaspergrubbe has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
robustus has quit [Ping timeout: 245 seconds]
<atmosx> IceDragon: it's an alternative for using a full-blown os installation, like a wrapper for linux containers
<oldschool> bnagy Do they? :) I thought they were the bleeding edge ;) But 'bundler', eh?....
snath has joined #ruby
jaybonci has quit [Ping timeout: 272 seconds]
thepumpkin has joined #ruby
<IceDragon> gem install debase
<bnagy> rails is oly bleeding because it keeps shutting its own dick in the door
<Rudde> I have that
<atmosx> IceDragon: say you have an app and want to deploy it, you test at home then you move your small-size image to the server and your online
<atmosx> on-the-line
<IceDragon> :O
<IceDragon> !
<IceDragon> AHA
<vpretzel> Rubyconf in san diego next year woo!
<IceDragon> I knew I heard it somewhere before
<IceDragon> :) A friend of mine showed it to me
<IceDragon> he's also teaching me the ropes of web-dev/apps
Zelest has left #ruby [#ruby]
<IceDragon> Rudde: try reinstalling it again
<CaptainJet> Wait you guys are telling me
<Rudde> how do I uninnstall the gem?
<CaptainJet> You don't all use SciTe for Ruby?
<bnagy> no because it's not 2002
<IceDragon> no
<CaptainJet> =(
<CaptainJet> I love my SciTE, the settings are just right
<IceDragon> Rudde: you said it yourself
<IceDragon> :P
robustus has joined #ruby
<IceDragon> gem uninstall debase
<volty> what do you have with sciite that is 'ruby friendly'?
mojjojo has joined #ruby
<CaptainJet> Everything I need
<CaptainJet> syntax highlighting, soft tabs, monpsaced font
tkuchiki has joined #ruby
<Rudde> ERROR: Error installing debase:
<Rudde> ERROR: Failed to build gem native extension.
<IceDragon> ^
<IceDragon> There is your problem!
<bnagy> it's definitely not the worst editor ever
<Rudde> yes...
<atmosx> Rudde: Why don't you install virtualbox and a linux distribution on top of your windows machine
<IceDragon> Rudde: do you have the ruby dev kit installed?
burgess has joined #ruby
<atmosx> Rudde: and create a dev enviroment in ther
<volty> specific with ruby, running scripts, loading on cursor, finding on cursor?
Jetchisel has quit [Ping timeout: 260 seconds]
<atmosx> where everything works fine
<Rudde> yes IceDragon
<IceDragon> :O does it work correctly?
<Rudde> because I develop in windows
<IceDragon> I guess it does then
<oldschool> If you try VirtualBox, don't try CentOS - the CD fails to boot and the DVD claims I have i686 with VirtualBox...
<CaptainJet> Running scripts yes
<volty> (finding - locating the where the method or class is defined)
thepumpkin has quit [Ping timeout: 272 seconds]
<IceDragon> Rudde: the other option is to manually build it and then install the gem
<volty> and on error? jumping on the offending line?
<CaptainJet> it has a search, that can search other files in the directory structure yeah
<CaptainJet> so you'd just have to search for it
<CaptainJet> Classicly
<bnagy> Rudde: sometimes on windows you need to add --platform=ruby for native extensions
<IceDragon> Rudde: navigate to gem's directory, and manually invoke "rake"
<bnagy> to make sure you don't get a binary version for a different platform ( forces it to build )
<IceDragon> gem is sometimes mean with its error messages >:
<volty> CaptainJet: i mean, i'm asking if there's an output window in scite editor
sevenseacat has joined #ruby
dorei has joined #ruby
<bnagy> also gem build errors will have a more detailed log in a file, which is sometimes useful
kaspergr_ has joined #ruby
thepumpkin has joined #ruby
lyanchih has joined #ruby
<volty> and, e.g., clicking in that win positions you (if appropriate) on a certain line
thepumpkin has quit [Read error: Connection reset by peer]
<CaptainJet> nope don't think so
thepumpkin has joined #ruby
<volty> just an editor, not ide
kaspergrubbe has quit [Ping timeout: 264 seconds]
thepumpkin has quit [Read error: Connection reset by peer]
<CaptainJet> It suits all my needs, proper project structure does the rest
Jetchisel has joined #ruby
<volty> of course :)
thepumpkin has joined #ruby
<CaptainJet> I know exactly where "Jimmy" is defined as a class
<CaptainJet> Because the file is named "Jimmy.rb", in the "class" folder
<IceDragon> that really rustled my jimmies...
thepumpkin has quit [Read error: Connection reset by peer]
<IceDragon> someone get thepumkin an ambulance D:
thepumpkin has joined #ruby
snath has quit [Ping timeout: 272 seconds]
thepumpkin has quit [Read error: Connection reset by peer]
<IceDragon> MY POINT
thepumpkin has joined #ruby
typicalbender has left #ruby [#ruby]
thepumpkin has quit [Read error: No route to host]
vlad_starkov has quit [Remote host closed the connection]
thepumpkin has joined #ruby
kaspergr_ has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
kaspergrubbe has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
Clooth has quit [Quit: Leaving...]
thepumpkin has joined #ruby
bruno- has quit [Quit: leaving]
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
ewnd9_ has joined #ruby
bruno- has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
<volty> a good soul to save me time? Nokogiri: i would like to convert hrefs to their content underlined.
Kricir has joined #ruby
aley has quit [Quit: aley]
thepumpkin has joined #ruby
<volty> or just plain (not underlined)
bruno- has quit [Client Quit]
thepumpkin has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
amacgregor has quit [Ping timeout: 245 seconds]
bruno- has quit [Client Quit]
thepumpkin has joined #ruby
bruno- has joined #ruby
oldschool has quit [Quit: Page closed]
thepumpkin has quit [Read error: Connection reset by peer]
bruno- has quit [Client Quit]
thepumpkin has joined #ruby
kaspergrubbe has quit [Ping timeout: 264 seconds]
jamesaanderson has quit [Ping timeout: 252 seconds]
bruno- has joined #ruby
bruno- has quit [Client Quit]
thepumpkin has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
thepumpkin has joined #ruby
Clooth has joined #ruby
bruno- has quit [Client Quit]
pu22l3r has quit [Remote host closed the connection]
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
pu22l3r has joined #ruby
brennanMKE has joined #ruby
<volty> found, thx
dhruvasagar has quit [Ping timeout: 272 seconds]
DanKnox is now known as DanKnox_away
jamesaanderson has joined #ruby
Guedes0 has joined #ruby
thepumpkin has quit [Ping timeout: 245 seconds]
bruno- has joined #ruby
bruno- has quit [Client Quit]
bruno- has joined #ruby
bruno- has quit [Client Quit]
bruno- has joined #ruby
pu22l3r has quit [Ping timeout: 268 seconds]
snath has joined #ruby
bruno- has quit [Client Quit]
earthquake has joined #ruby
Clooth has quit [Quit: Leaving...]
bruno- has joined #ruby
benzrf has joined #ruby
<benzrf> hi
bruno- has quit [Client Quit]
thepumpkin has joined #ruby
<volty> python bye
bruno- has joined #ruby
<benzrf> what's the best way to process an array where subsequent elements may affect each other, but not in a predictable pattern?
brennanMKE has quit [Ping timeout: 272 seconds]
<volty> by 'affect' you mean change value?
mark_locklear has quit [Quit: Leaving]
<benzrf> specific example right now:
<benzrf> command line args
<benzrf> if you have a list of args, each arg is its own thing to be processed separately
<benzrf> except for argument flags
<benzrf> i.e. 'foo -c 3 -abc bar
<benzrf> in this case, foo, -abc, and bar are all separate
<benzrf> but -c and 3 have to be absorbed as a unit
<benzrf> if I were to just iterate over it, id have to set some a variable to indicate that I saw an argument flag, or something
blackmesa has quit [Remote host closed the connection]
<volty> there's already something ready for that -- if you are about that one specific
<benzrf> or if I wanted to be functionally pure and used inject, I'd have to leave something in the list
<benzrf> it all feels inelegant
<benzrf> volty: no not really
<benzrf> I mean that kind of thing in general
<volty> ok, imho you'd better couple your elements in subarrays
<benzrf> hmm
bruno- has quit [Client Quit]
<volty> talking in abstract way though - it all depends on real prob.
<benzrf> yeah
thepumpkin has quit [Ping timeout: 264 seconds]
bruno- has joined #ruby
axl_ has joined #ruby
zeade has joined #ruby
thelorax123 has quit [Remote host closed the connection]
cpruitt has quit [Quit: cpruitt]
bradhe has joined #ruby
bruno- has quit [Client Quit]
thelorax123 has joined #ruby
s3itz has joined #ruby
<benzrf> hmm
bruno- has joined #ruby
thepumpkin has joined #ruby
capicue has quit [Quit: Leaving...]
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
freerobby has quit [Quit: Leaving.]
dobry-den has left #ruby ["weechat 0.4.0"]
thepumpkin has joined #ruby
huttan has quit [Ping timeout: 264 seconds]
thepumpkin has quit [Read error: Connection reset by peer]
brennanMKE has joined #ruby
mojjojo has quit [Quit: mojjojo]
thepumpkin has joined #ruby
petey has joined #ruby
rdalin has quit [Quit: AndroIRC - my Android died]
falood has joined #ruby
capicue has joined #ruby
<benzrf> banisterfiend: context?
<volty> quite stupid, spanish style candid camera - frightening and/or offensive
<volty> usually fake because they would have to pay a lot of money after legal action or accident
mojjojo has joined #ruby
brennanMKE has quit [Ping timeout: 252 seconds]
rickruby has quit [Remote host closed the connection]
<bnagy> benzrf: probably just unshift and use a state machine
thepumpkin has quit [Ping timeout: 264 seconds]
kevinykchan has joined #ruby
<bnagy> you could do it using inject using the accumulator, but it's not elegant imho
timonv has joined #ruby
<volty> he has to couple - one way or another
<benzrf> bnagy: i was thinking of the latter
<benzrf> state machine?
<benzrf> the simplest solution would just be if there's some way to pass an argument to the next iteration only
jkamenik has joined #ruby
<bnagy> yeah but you still need logic to handle that anyway
<benzrf> hm
<bnagy> so you may as well just put it in an unshift loop
silentpost has joined #ruby
<bnagy> for arg parsing in particular though it's a well covered problem - cause arg parsing has about a jillion other little annoyances
thepumpkin has joined #ruby
<benzrf> unshift loop?
<bnagy> if you _knew_ it was flag, arg always you could iterate with like each_slice(2) {|flag,arg| ...
thepumpkin has quit [Read error: Connection reset by peer]
<benzrf> yeah, that's why im asking
<benzrf> :p
<benzrf> it doesnt need to be advanced, i'm only doing it as a challenge
thepumpkin has joined #ruby
<benzrf> there's this website ive been using where you can write coding challenges and then solve ones written by other people, anad I thought simplified arg parsing would make a good one
thepumpkin has quit [Read error: Connection reset by peer]
soba has joined #ruby
<bnagy> unshift loop is just while args.any? this = args.unshift; #do logic
<bnagy> or until args.empty? if you prefer
<benzrf> ehhh
thepumpkin has joined #ruby
<benzrf> looks gross
<benzrf> u.u
timonv has quit [Ping timeout: 240 seconds]
soba_ has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
ce_afk is now known as cescalante
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
<bnagy> functionally: process args.unshift until args.empty?
<bnagy> OO we'd do it with a block and a mini-DSL
starchild_ has quit [Ping timeout: 264 seconds]
<bnagy> eg look at Trollop
<benzrf> what is trollop
thepumpkin has joined #ruby
<bnagy> arg parser
TheShaun is now known as TheShaun|AFK
thepumpkin has quit [Read error: Connection reset by peer]
<benzrf> alright
thepumpkin has joined #ruby
soba has quit [Ping timeout: 245 seconds]
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: No route to host]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
SteveBenner9 has joined #ruby
thepumpkin has joined #ruby
earthquake has quit [Quit: earthquake]
mojjojo has quit [Quit: mojjojo]
psyl0n has joined #ruby
CaptainJet has quit []
carif has joined #ruby
nfk has quit [Quit: yawn]
sergicles has quit [Quit: sergicles]
CaptainJet has joined #ruby
danshultz has joined #ruby
Aryasam has joined #ruby
cescalante is now known as ce_afk
weszlem has quit []
sergicles has joined #ruby
carif has quit [Read error: No route to host]
thepumpkin has quit [Ping timeout: 272 seconds]
dhruvasagar has joined #ruby
drumusician has quit [Ping timeout: 272 seconds]
<benzrf> wait how does unshift loop work
<benzrf> what are you unshifting onto it
snath has quit [Ping timeout: 265 seconds]
snath has joined #ruby
danshultz has quit [Read error: Operation timed out]
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
thepumpkin has joined #ruby
<bnagy> your options starts as an array, you unshift items off it one by one and process each item
sergicles has quit [Client Quit]
thepumpkin has quit [Read error: Connection reset by peer]
<benzrf> you mean shift??
<benzrf> >> [1, 2, 3].shift
<eval-in_> benzrf => 1 (https://eval.in/65577)
<bnagy> unshift is 'left to right'
<benzrf> w8
<bnagy> yes, I mean shift
<benzrf> ok
<bnagy> I have no idea why my brain did that
thepumpkin has joined #ruby
<benzrf> why use shift instead of each?
<bnagy> I am kind of doing two things at once :/
sergicles has joined #ruby
<bnagy> no reason in particular, it just makes it clear when you're done, easy to see how many options remaining, seek forwards etc
jrobeson has joined #ruby
<benzrf> ah, ok
<benzrf> oh right
<benzrf> so you can shift it without causing problem
<benzrf> s
<benzrf> makes sense o:
yfeldblum has quit [Remote host closed the connection]
<benzrf> how about 'while item = shift'
<benzrf> >> [].shift
<eval-in_> benzrf => nil (https://eval.in/65578)
yfeldblum has joined #ruby
<bnagy> sure
DanKnox_away is now known as DanKnox
bradhe has quit [Ping timeout: 264 seconds]
lethjakm1 has quit [Ping timeout: 264 seconds]
thepumpkin has quit [Ping timeout: 240 seconds]
IceDragon has quit [Ping timeout: 264 seconds]
jb41 has quit [Quit: leaving]
amacgregor has joined #ruby
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
lethjakm1 has joined #ruby
samfisher has quit [Ping timeout: 264 seconds]
tsykoduk is now known as zz_tsykoduk
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
<volty> a = ['go', '-c',3, 4]; t = []; h = {}; e = a.each; loop { (el = e.next) =~ /^-/ ? h[el] = e.next : t << el }; [h, t]
<volty> >> a = ['go', '-c',3, 4]; t = []; h = {}; e = a.each; loop { (el = e.next) =~ /^-/ ? h[el] = e.next : t << el }; [h, t]
<eval-in_> volty => [{"-c"=>3}, ["go", 4]] (https://eval.in/65579)
thepumpkin has joined #ruby
<benzrf> wat
blarghmatey has joined #ruby
s3itz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
rickruby has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
<volty> enumerators are a great thing
thepumpkin has joined #ruby
RichardBaker has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
Pessimism has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
CreativeEmbassy has joined #ruby
CreativeEmbassy has quit [Client Quit]
ravster has quit [Quit: Leaving.]
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
silentpost has quit [Remote host closed the connection]
<volty> the options could be placed inside the array of args if order (because specific for the arg) is to be preserved
mrsolo has quit [Quit: This computer has gone to sleep]
<benzrf> its ok
<benzrf> i got it
<volty> or coupled
<benzrf> i just needed the shift loop
<benzrf> :u
<benzrf> >> [1, 2, 3].peek
<eval-in_> benzrf => undefined method `peek' for [1, 2, 3]:Array (NoMethodError) ... (https://eval.in/65580)
<benzrf> lame
rickruby has quit [Remote host closed the connection]
snath has quit [Ping timeout: 264 seconds]
<benzrf> i wish ruby had currying & sections & composition
<benzrf> dang that would be awesome
<benzrf> also .= could be neat
<coldmethod> shevy: ping
einarj has joined #ruby
<shevy> wat
rjhunter has joined #ruby
thepumpkin has quit [Ping timeout: 252 seconds]
<coldmethod> I just fell in love with Ruby
kaspergrubbe has joined #ruby
<volty> want to marry?
go_espsilon_go has joined #ruby
reset has joined #ruby
ewnd9_ has quit [Ping timeout: 272 seconds]
Alina-malina has quit [Ping timeout: 240 seconds]
<shevy> yeah
<shevy> coldmethod but why right now
<shevy> why not 10 years ago
kaspergrubbe has quit [Read error: Operation timed out]
go_espsilon_go has quit [Client Quit]
burgess has quit [Quit: ^zzz]
go_espsilon_go has joined #ruby
<benzrf> coldmethod: what triggered it
<coldmethod> shevy: as i am pacing through it, i found out that in Ruby it takes at least half amount of lines to do the same work I have been doing in Python
thepumpkin has joined #ruby
<volty> coldmethod: what about time?
<benzrf> coldmethod: its cuz of those sweet sweet HOFs
olivier_bK has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
<benzrf> i think id prefer python actually if it adopted HOFs and blocks
<benzrf> but as it is meh
einarj has quit [Ping timeout: 252 seconds]
<coldmethod> volty: i guess time would be the same after I go through all of the major differences
<shevy> cool
thepumpkin has joined #ruby
<benzrf> GvR isnt into FP
<shevy> coldmethod I thought it would be about equal
<benzrf> what a jerk
<volty> i don't like python and, above all, its formatting
<shevy> what I can not forgive python is explicit self
<benzrf> volty: resistance is futile
<coldmethod> string interpolation and nesting of methods wowed me.. Python's methods are quite disoriented and inconsisten
thepumpkin has quit [Read error: Connection reset by peer]
<benzrf> coldmethod: u wot
<benzrf> shevy: it's not exactly explicit self
<shevy> you must pass it
<shevy> otherwise it does not know what self is
<coldmethod> yes, you must pass it
thepumpkin has joined #ruby
<benzrf> it is a pain indeed
go_espsilon_go has quit [Client Quit]
<shevy> well
soba_ has quit [Read error: Connection reset by peer]
<volty> but i learned a lesson: funny ruby makes you write things that you do not understand after some time (or at least you need time to understand them)
<shevy> perhaps python was designed just differently
<benzrf> otoh it means less magic and allows super cool hax
<benzrf> shevy: do you understand how self passing works in py?
zz_tsykoduk is now known as tsykoduk
thepumpkin has quit [Read error: Connection reset by peer]
<shevy> benzrf I think so. you must always pass one argument to denote what self is
<volty> python is just older and had to be "patched"
<benzrf> shevy: not exactly
* coldmethod LOLing after looking at the "selfs" i had to write in this small 1k lines script
<shevy> benzrf I can omit doing that?
RichardBaker has quit [Quit: RichardBaker]
IceDragon has joined #ruby
<benzrf> no but
thepumpkin has joined #ruby
<benzrf> one sec
<shevy> in ruby I can! self is available existing!
Alina-malina has joined #ruby
<benzrf> basically there is a hook you can intercept when attrs are inherited from a class
<shevy> wait
<shevy> is that magic benzrf? :-)
thepumpkin has quit [Read error: Connection reset by peer]
<benzrf> for the function type, this hook is implemented such that
<shevy> !
<shevy> magic!!!
<shevy> in python!
<benzrf> it is not magic
<coldmethod> wrote "self" 102 times in that script haha
<shevy> well, I have not really written enough python
<shevy> I wrote more php in my life :(
<shevy> I was young, innocent
thepumpkin has joined #ruby
<shevy> and needed the money...
Hanmac1 has joined #ruby
<benzrf> >basically there is a hook you can intercept when attrs are inherited from a class
<shevy> ok how does this work
<benzrf> for the function type, this hook is implemented such that inheriting a function attr from a class instead returns a wrapper around the function
thepumpkin has quit [Read error: Connection reset by peer]
<benzrf> that passes in the object you got it from as the first arg
<coldmethod> that's part of the life shevy .. don't be sad.. you at least converted me
<benzrf> you can override this hook yourself
<coldmethod> lol
thepumpkin has joined #ruby
<benzrf> which is how @classmethod works, fr example
<shevy> coldmethod I did? I dont remember doing anything...
<shevy> perhaps I was drunk
cibs_ has quit [Quit: leaving]
<benzrf> the neat thing about nonmagical self is that it allows you to make methods where self is something other than self
<shevy> aha
<shevy> benzrf, how can you manage two languages at the same time
thepumpkin has quit [Read error: Connection reset by peer]
<benzrf> im just amazing
cibs has joined #ruby
<benzrf> that way
<coldmethod> you did sir .. and now i am all Ruby LOL
thepumpkin has joined #ruby
<coldmethod> cannot wait to finish off this book
<benzrf> anyway hopefully you are not defining too many classes in py
<shevy> coldmethod well... I don't remember... but at any rate, start to write gem projects on your own as quickly as possible. you will learn a LOT doing that... I wish I would have done that many years ago
<shevy> even if it is small gems
thepumpkin has quit [Read error: Connection reset by peer]
<shevy> sooner or later the more you have, the more you write, the larger some of these will become
<benzrf> anyway whats with ruby's shitty ass import system
<shevy> ha yeah
<shevy> benzrf python has some definite advantages over ruby
snath has joined #ruby
<volty> but the question remains: what for?
thepumpkin has joined #ruby
<shevy> the import system is one... the docu another
varfoo has joined #ruby
<shevy> volty for complete fine tuning everything!
Hanmac has quit [Ping timeout: 264 seconds]
<shevy> I imagine a system where magical things were to happen
thepumpkin has quit [Read error: Connection reset by peer]
<shevy> require 'pizza'
<coldmethod> thanks for the advice shevy
<coldmethod> i plan to start small system administration gems, move up the notch by converting existing apps from Pythons and finally do the rails
<shevy> require 'pizza/import' <--- automatically import them into the namespace without having to do include
<volty> i have to tune for my goal
thepumpkin has joined #ruby
<shevy> coldmethod oh... I still have to dive into rails. perhaps I'll do so soon
<benzrf> in PYTHON, every file is a module and the file-scoped vars are attributes in the object you get when you import it
<benzrf> B)
<shevy> see volty?
<benzrf> which if you ask me is an extremely good way to do it
<shevy> ^^^ a kick ass system
parduse is now known as pardusf
<coldmethod> that's right .. you can import classes and functions off a python "*.py" file
<shevy> I often want to be able to put a file I require into a module, at runtime in ruby
<benzrf> shevy: not classes & functions
<shevy> or to rearrange modules in ways I see fit
<benzrf> all top level vars
<shevy> :(
<shevy> see, I dont know what matz is doing
<shevy> mruby
<shevy> that'll be ready in like 5 years...
<coldmethod> shevy: yes, please do so i can follow and learn :D
<benzrf> another thing i like about python is that it doesn't have a bajillion different things for similar purposes
<shevy> coldmethod rails is hard for me, I need to dig into things, experiment a lot ... as if I would knew nothing
<benzrf> ruby has constants, locals, class vars, methods, ivars
<benzrf> python just has vars & attrs
<shevy> *know
<jrobeson> i'd be able to have real namespaces mapped to an autoloader..
<benzrf> and they are CONSISTENT
<shevy> jrobeson autoloader? didn't matz say he hates it?
<volty> it is not that easy, the things in ruby get complicated when a project becomes quite big
<jrobeson> shevy, no idea
<benzrf> class vars are attrs on the class object, ivars and methods are attrs on the instance
<benzrf> simple
<coldmethod> .sort() and len() and del() and not consistent benzrf
<volty> how do you call that? when people can work separately on single pieces that feet well together?
<benzrf> del() is not a function
<shevy> benzrf yeah but it's a tradeoff... ruby uses @ and @@, python uses only _ denotion as part of the name I think or? that seems a simpler system
<jrobeson> benzrf, that's like not at all that complicated compare to any other language.. that isn't python.
<benzrf> jrobeson: there you go
<benzrf> :-D
brennanMKE has joined #ruby
<benzrf> that just means pythons awesome, not ruby's bad
<benzrf> shevy: yeah, that is a thing
<shevy> python code written by someone else must read as if you would have written it yourself
<benzrf> shevy: yep
<shevy> when I look at volty's code, I want to stab him
zz_michael_mbp is now known as michael_mbp
<jrobeson> i kinda wish i was using python
<benzrf> thats the upside of !timtwotdi
<shevy> when I look at Hanmac1's code, I want to stab him
zodiak has quit [Ping timeout: 272 seconds]
<benzrf> ok I think the ideal would be
<shevy> in ruby there is too much individualism on code
<benzrf> python with syntactic sugar
<shevy> yeah
<shevy> and its docu!
<benzrf> i.e. @foo -> self.foo
<benzrf> or something
<shevy> ruthon!
<jrobeson> hah
<benzrf> coldmethod: anyway yeah python is annoyingly inconsistent about methods vs functinos
<shevy> with a rolling rrrr
<benzrf> *functions
<shevy> I am sure php is worse
<coldmethod> python's greatest weakness is "self", unefficient implementation of classes and OOP, non-nestable string objects and what not..
thepumpkin has quit [Ping timeout: 264 seconds]
<shevy> oh one thing too benzrf
<benzrf> coldmethod: let me address those one by one
<benzrf> :-D
<coldmethod> lol ok
<benzrf> coldmethod: what's this unefficient impl stuff
<benzrf> shevy: yeah?
<shevy> benzrf in a hybrid language, I would want to have the ability to choose whether I want to use indent or not on a per-file level
<shevy> so in ruby you dont have to indent
<shevy> in python you have
<shevy> hybrid - you can decide!
<benzrf> shevy: personally id like something like haskell
<shevy> then I could omit "end" in ruby
<benzrf> where you indent by default, but if you put curlies around, it uses that
<benzrf> :U
<shevy> hmm
<shevy> haskell scares me
<jrobeson> i like the end.. it's easier to read
<benzrf> pfft
<volty> why don't you program in haskell?
<benzrf> volty: because im not hardcore enough
<benzrf> but haskell is great man
<shevy> jrobeson but you dont get a real extra information if you format properly, you only put it so to satisfy the parser
<shevy> I mean with end
<shevy> def foo
<shevy> puts 'Hi there'
<shevy> (here either a newline, or end)
thepumpkin has joined #ruby
<volty> yes, from that little I saw, it is great
<shevy> though in python you must use the :
<benzrf> pattern matching is the SHIT
<shevy> I never understood that...
<benzrf> shevy: i like the :
<shevy> def foo(input):
<jrobeson> shevy, imeant that it's easier while browsing code to say.. here's the beginning here's the end .. together
<benzrf> i thought it was annoying at first
<shevy> why? what does the : give you benzrf?
<benzrf> but it makes it easier to read
thepumpkin has quit [Read error: Connection reset by peer]
<shevy> it doesn't give anything meaningful
<shevy> so does (lisp( argue :D
<benzrf> shevy: it gives you more readable continuation lines actually
<jrobeson> ok.. so why don't you just start with coffeescript
pu22l3r has joined #ruby
<benzrf> shevy: watch this
thepumpkin has joined #ruby
<benzrf> if (foo and
<benzrf> bar):
<shevy> jrobeson hmm... what I dont like is that it targets javascript
reset has quit [Quit: Leaving...]
brennanMKE has quit [Ping timeout: 252 seconds]
justsee has quit [Ping timeout: 244 seconds]
<shevy> the syntax seems much better than javascript
<benzrf> you can see much more easily where the condition end
<benzrf> s
<coldmethod> benzrf: when making classes in python, you have to initialize all instance variables with self.. a method doesn't take any number of arguments still requires self to be passed onto it.. and you cannot really pass on an instance variable as an argument to another method directly
zodiak has joined #ruby
<benzrf> coldmethod: yes, but this:
<jrobeson> javascript is getting better though.. and it'll keep getting better.. and faster
thepumpkin has quit [Read error: Connection reset by peer]
<shevy> benzrf do you really make continuations like that?!
<benzrf> a. cuts down on magic like FUCK
<benzrf> b. allows overriding builtin behaviour
<coldmethod> stuff like that, which make look classes overly lengthy and cumbersome
<benzrf> shevy: yes
<jrobeson> you could also target lua with it not too difficut like
<shevy> !!!
<benzrf> shevy: ?
thepumpkin has joined #ruby
<shevy> how can you read that!
<benzrf> well you can also use \
<shevy> that's awful as well hehehe
<benzrf> how is it awful
aspires has joined #ruby
<benzrf> D:<
<shevy> one day I want a perfect language
<jrhorn424> I'm in my project directory, and I've prepended 'test' to $LOAD_PATH, but `require test/helper` still fails in console. `./test/helper.rb` is present.
thepumpkin has quit [Read error: No route to host]
earthquake has joined #ruby
<shevy> benzrf I dunno, I think I just hate the \ in general
<jrobeson> hah.. perfect language :(
sergicles has quit [Ping timeout: 245 seconds]
<shevy> jrobeson well better than the other languages at least :)
volty has quit [Quit: good night, too fat the log goes ...]
<coldmethod> i guess that won't be the case.. shevy
thepumpkin has joined #ruby
<shevy> 98% perfection is acceptable!
<benzrf> shevy: oh yeah \ is awfu
<benzrf> l
<coldmethod> cause, on this planet there's a law of imperfection
thepumpkin has quit [Read error: Connection reset by peer]
<shevy> it is awfu\
<shevy> l
<benzrf> parens allow line continues though
<benzrf> how does ruby do them?
<shevy> ok
<shevy> I am not sure...
<shevy> probably with \
<benzrf> ew
<shevy> :/
<coldmethod> but ruby at least for me, makes me realize that it is currently *the* best thing my eyes can feed on
thepumpkin has joined #ruby
<benzrf> meh
sergicles has joined #ruby
<shevy> benzrf, the ruby parser is a strange thing
Lewix has joined #ruby
Lewix has joined #ruby
Lewix has quit [Changing host]
<benzrf> ruby's syntax allows some really nice shit i wish python had
<shevy> I think matz had to sacrifice some chickens in order to write it and not fail
<benzrf> ON THE OTHER HAND
<benzrf> it sucks like hell
thepumpkin has quit [Read error: Connection reset by peer]
<coldmethod> oh yea, and passing on arguments without parentheses really surprised me first LOL
<benzrf> coldmethod: clearly uve never perled
<coldmethod> i guess that is a good "minimalist" thing
thepumpkin has joined #ruby
<shevy> coldmethod that's strange. I really thought that python and ruby are very comparable to one another
<coldmethod> yes, i have never
<shevy> I was not happy with perl either
<alpha123> shevy: Ruby has some nice syntactic sugar and is just a prettier language in general
<shevy> I was more productive in php, I am ashamed to admit :(
thepumpkin has quit [Read error: Connection reset by peer]
<benzrf> im always upset with paren stuff
<coldmethod> my best guess is Matz took inspiration from the Python's simplicity and took good things from it
<shevy> benzrf, I often forgot to use ";" in perl
<alpha123> shevy: Semantically I guess they're pretty comparable
<coldmethod> but clearly the differences are huge..
axl_ has quit [Ping timeout: 241 seconds]
<benzrf> the thing is
thepumpkin has joined #ruby
<benzrf> being able to leave off parens in calls is AWESOME
<shevy> benzrf, after doing so over many months, a few hundred times, I got fed up and realized I was too dumb for perl
<shevy> yeah
danshultz has joined #ruby
<benzrf> but it also means
<benzrf> you either:
<shevy> well, in python you can omit ";" too
<benzrf> 1. make no args and no parens diffrfent, which is inconsistent
<benzrf> or
<coldmethod> oh and i don't have to abide by the universal "law" of indenting every other line hahaha
thepumpkin has quit [Read error: Connection reset by peer]
<benzrf> 2. lose first class funcs
<benzrf> and haskell does it right
<benzrf> god damn
thepumpkin has joined #ruby
<shevy> coldmethod it's kinda true, I think matz had a great idea to pick what is good, kinda like a copycat. typical japanese or chinese mentality, they take existing things and improve them :D
<alpha123> haskell does a lot of things right =P
<benzrf> purity means that there is no significant diff. between a 0-arg function & a variable
<poutine> I personally think TCL or coldfusion will be the future
<benzrf> so the point is moot!
<benzrf> :D
<shevy> man TCL
thepumpkin has quit [Read error: Connection reset by peer]
<shevy> it just won't die will it!!!
<benzrf> hs basically has perfect syntax
<coldmethod> shevy: so true LOL
<benzrf> id like to see anybody improveit
<alpha123> poutine: cobol will be making a comeback too!
<shevy> benzrf I found haskell very, very difficult to get into
<benzrf> shevy: how so
thepumpkin has joined #ruby
<shevy> I dunno, it seemed very complicated
aapzak has quit [Read error: Connection reset by peer]
<alpha123> benzrf: Yup, Haskell probably has my favorite syntax. Ruby is a decent 2nd place though
<benzrf> well
<shevy> I still try to understand monads
<benzrf> the thing is
<coldmethod> also, forgetting about keeping everything in indentation unlike Python, makes me feel like an evil genius haha
<benzrf> haskell is basically 80% different from any other language u know
<benzrf> probably
<shevy> coldmethod ok but be careful, you could pickup sloppy technique that way
<benzrf> so you go in expecting something that's 30% new
thepumpkin has quit [Read error: Connection reset by peer]
<benzrf> and you get something80% new
<benzrf> and it seems absurdly hard
<benzrf> you just need to get it through your head that this is something totally new
<shevy> hmm
<alpha123> I actually found Haskell very simple, but very abstract which took a lot of getting used to.
thepumpkin has joined #ruby
<benzrf> alpha123: yup
<benzrf> at its core haskell is super simple
eka has quit [Quit: Computer has gone to sleep.]
<benzrf> anyway monads arent THAT hard
<shevy> benzrf well... I think I would have like no problem with python... and probably not with javascript... and probably not with java either, if I dont mind the verbosity... but
<benzrf> the problem is that everybody makes a big deal about them
<shevy> haskell... that seems to be only for truly clever people
snuffeluffegus has quit [Quit: Leaving]
<benzrf> nah
<alpha123> monads seem extremely easy once you "get" them
<benzrf> again, see my above descriptions
<alpha123> but I was confused as heck until I finally understood what they are
<benzrf> shevy: it's like if you learn to drive a car
<benzrf> then you learn to drive a truck
<benzrf> then you learn to drive a tractor
<coldmethod> ah ok shevy: i comment/uncomment/debug things on multiline and in python that is difficult since it requires you to realign subsequent code blocks
<alpha123> shevy: would it help if I told you jQuery is a monad? (it's not quite, but it's the same general concept)
<coldmethod> now at least i am free for the indent barrier LOL
<benzrf> shevy: everything up to this point is basically similar
<Rudde> Is it possible to make Apps for Anroid in Ruby?
<benzrf> then if you try to learn how to drive a motorboat
<benzrf> it's pretty different
capicue has quit [Quit: Leaving...]
<alpha123> Rudde: jRuby I guess
<benzrf> and if youre expecting something like your car, it might just seem like youre bad at it
<jrobeson> no there's something better
<alpha123> Rudde: I just found http://ruboto.org/
<jrobeson> i mean it likely uses jruby.. but there's something more specific.. trying to remember
<alpha123> jrobeson: Was it ruboto?
<Rudde> o_O
<jrobeson> Rudde, search for ruby in the play store.. it has a ruby console
<Rudde> will that be a native app?
<jrobeson> yeah that's it Alasdairrr
<jrobeson> err
<jrobeson> alpha123, *
<benzrf> shevy: monads are just what their type is
psyl0n has quit [Quit: psyl0n]
<benzrf> shevy: a monad is the ADT + the definitions for bind & return
jkamenik has quit [Quit: Leaving.]
<shevy> hmmm
<benzrf> shevy: m a -> (a -> m b) -> m b
<benzrf> that's all there is to it
capicue has joined #ruby
mary5030 has quit [Remote host closed the connection]
<benzrf> anything where that's useful is a monad
<benzrf> sort of
<benzrf> monads are just a way to chain computations that way
aapzak has joined #ruby
rickruby has joined #ruby
<benzrf> the m b becomes the m a for the next bind
<alpha123> shevy: Basically you're just wrapping one type with another.
<benzrf> read that
<benzrf> it's the best thing ive seen on the topi
<benzrf> c
thepumpkin has quit [Ping timeout: 245 seconds]
Kricir has quit [Remote host closed the connection]
tsykoduk is now known as zz_tsykoduk
braincra- has joined #ruby
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thepumpkin has joined #ruby
dhruvasagar has quit [Ping timeout: 272 seconds]
thelorax123 has quit [Remote host closed the connection]
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: No route to host]
thepumpkin has joined #ruby
braincrash has quit [Ping timeout: 240 seconds]
thepumpkin has quit [Read error: Connection reset by peer]
thelorax123 has joined #ruby
hogeo has quit [Remote host closed the connection]
thepumpkin has joined #ruby
hogeo has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
aspires has quit [Quit: sudo making a sandwich]
thepumpkin has quit [Read error: Connection reset by peer]
sross07 has quit [Quit: KVIrc 4.1.1 Equilibrium http://www.kvirc.net/]
thepumpkin has joined #ruby
bradhe has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
<benzrf> shevy: how are you finding that article
endash has quit [Quit: endash]
thepumpkin has joined #ruby
s3itz has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
<benzrf> >> "foo".first
<eval-in_> benzrf => undefined method `first' for "foo":String (NoMethodError) ... (https://eval.in/65587)
<benzrf> >> "foo"[0]
<eval-in_> benzrf => "f" (https://eval.in/65588)
<shevy> benzrf confusing
<benzrf> shevy: hmm ok
<benzrf> do you understand haskells type system
<shevy> "If you hadn't guessed, this is about monads as they appear in pure functional programming languages like Haskell."
<shevy> this is ok so far and now
thepumpkin has quit [Read error: Connection reset by peer]
<benzrf> & do you know about typeclasses
<shevy> "They are closely related to the monads of category theory"
<shevy> I have no idea what "category theory" is
thepumpkin has joined #ruby
<benzrf> doesnt matter
<benzrf> skip that
ewnd9_ has joined #ruby
<shevy> but it continues!
<shevy> "Haskell doesn't enforce the identities satisfied by categorical monads."
<benzrf> its an area of math that haskell borrows from
<shevy> categorical monads!
<benzrf> yes ignore anything about cat theary
<benzrf> *theory
<benzrf> it's not relevant
<shevy> I dont even know what a monad is but apparently there are also categorical monads
<benzrf> they mean monads in cat theory
<shevy> it reminds me of xcd
<benzrf> look ill just paraphrase it @ u
<benzrf> :p
<benzrf> ok, i assume you know how haskell's types work
alpha123 has quit [Ping timeout: 260 seconds]
<shevy> I dont think I do
<benzrf> ...
<benzrf> do you know about urrying
<benzrf> *currying
<shevy> what is urrying
<shevy> I think I heard that name before but I have no idea what currying means
apOcalypse__ has joined #ruby
<benzrf> ok
<benzrf> basically, in haskell all functions take one arg
TheShaun|AFK is now known as TheShaun
<benzrf> if you see a function that 'takes 2 args'
maoko has joined #ruby
<benzrf> what is happening is that it takes 1 arg, then returns another function that takes 1 arg
huttan has joined #ruby
<benzrf> take 'div'
<benzrf> div 3 5 is actually running 'div 3', which returns a function, then applying 5 to that
<benzrf> or drop
<shevy> hmm
<benzrf> drop 3 [1, 2, 3, 4, 5]
<benzrf> is actually
<benzrf> (drop 3) [1, 2, 3, 4, 5]
<benzrf> try this:
<benzrf> let dropthree = drop 3
<shevy> this blows my mind right now
<benzrf> dropthree [1, 2, 3, 4, 5]
<shevy> why can the functions accept only 1 argument?
<benzrf> because that's how haskell works
<benzrf> look at the type of drop:
<benzrf> drop :: Int -> [a] -> [a]
<benzrf> the type of drop is
<benzrf> Int -> ([a] -> [a])
thepumpkin has quit [Ping timeout: 264 seconds]
<benzrf> it takes Int, then returns ([a] -> [a])
<benzrf> pop open ghci
justsee has joined #ruby
<Rudde> How do I call a function in my own class in ruby?
<benzrf> Rudde: explain better?
<shevy> Rudde by just writing the name
freezey has quit [Remote host closed the connection]
<shevy> >> class Foo; def test; puts 'test here'; end; def bar; test; end; end; Foo.new.bar
<eval-in_> shevy => test here ... (https://eval.in/65591)
<Rudde> nothing like self::name or anything?
thepumpkin has joined #ruby
<RubyPanther> shevy: I think the idea is that you can represent math more easily with functional programming, which is mostly about having a lot of constraints
freezey has joined #ruby
<shevy> why so complicated Rudde
<shevy> well that was always a big problem
thepumpkin has quit [Read error: Connection reset by peer]
<shevy> I really suck at math :(
<Rudde> Because not having anything there dont work
<benzrf> RubyPanther: not at all
<shevy> Rudde this can not be, I just showed you in the >> line that it works!
_br_ has quit [Ping timeout: 272 seconds]
kobain has quit [Ping timeout: 245 seconds]
thepumpkin has joined #ruby
<RubyPanther> yeah, math sucks, all I need BigDecimal and sin()
huttan has quit [Ping timeout: 244 seconds]
<benzrf> RubyPanther: lack of state has significant advantages once you adapt to it
<shevy> higher math I always fail
thepumpkin has quit [Read error: Connection reset by peer]
magbeat has quit [Ping timeout: 272 seconds]
<Rudde> if (isPrime(i))
<RubyPanther> lack of state also has lots of disadvantages, if you've adapted to them, or not
<benzrf> name onewheelskyward
<benzrf> *one
<benzrf> :D
thepumpkin has joined #ruby
<shevy> lol
<shevy> that is a good nick to tab complete
<RubyPanther> that is why Ruby makes programmers more happy
<jrhorn424> I'm in my project directory, and I've prepended 'test' to $LOAD_PATH, but `require test/helper` still fails in console. `./test/helper.rb` is present.
<shevy> twosheelskyward
_br_ has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
<shevy> jrhorn424 no idea what you have do. I solve this by installing things into SITE DIR always when I have a project
<benzrf> RubyPanther: state monad m8
<shevy> so I never have to modify $LOAD_PATH
magbeat has joined #ruby
mikee has quit [Ping timeout: 246 seconds]
<RubyPanther> In other areas of life we can have a little state whenever we need it. I have lots of state on my whiteboard.
thepumpkin has joined #ruby
<benzrf> yeah im not denying that state is often useful
<shevy> I have the sleeping state and the zombie state
<Rudde> what is the difference between to_i and to_int?
<jrhorn424> shevy: i see.
<benzrf> im saying that it's usually easy to work around any issues the lack causes if you know how
thepumpkin has quit [Read error: Connection reset by peer]
zarubin has quit [Ping timeout: 264 seconds]
<benzrf> Rudde: exremely confusing
<benzrf> *extremely
thepumpkin has joined #ruby
apOcalypse__ is now known as dm_apOc
mikee has joined #ruby
<benzrf> anyway ruby isn't named after anything as awesome as python
<benzrf> so clearly pthon wins
<RubyPanther> I want to get the crud on the whiteboard into my code, so naturally the least surprising way is going to be translating the diagrammed state machine into code
<shevy> jrhorn424 one advantage is that you can always do: require 'name_of_project_here'. but I guess you can always modify $LOAD_PATH ... http://stackoverflow.com/questions/10837900/how-is-the-default-ruby-load-path-determined and perhaps http://www.mikeheijmans.com/2010/09/using-load_path-for-better-library-loading-in-ruby/
<benzrf> RubyPanther: that's your fault for diagramming a state machine
<benzrf> ;_)
<Rudde> Do ruby have any possebillity for multithreading?
thepumpkin has quit [Read error: Connection reset by peer]
<benzrf> RubyPanther: also: state monad
<benzrf> or not
aspires has joined #ruby
<benzrf> i hear its a pain
<shevy> Rudde kinda, I think. you can use many threads and sync them
thepumpkin has joined #ruby
<RubyPanther> very few people, and very few programming problems, have their focus in translating a formula. The vast majority of use cases involves lists of actions and responses
elcontrastador has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> there is a pickaxe example for that Rudde
<benzrf> shevy: do you know about generic types
<jrhorn424> shevy: thanks, require 'foo_project' might be it. reading up on loadpath now.
<benzrf> RubyPanther: so?
<benzrf> why does that make haskell bad?
<Rudde> I will read it
<Rudde> but it isn't read in a day
thepumpkin has quit [Read error: Connection reset by peer]
<benzrf> since when is wimax a ting?!
<RubyPanther> and involve data that is represented in state. This is true even if you're writing instructions for humans on 3x5 cards
<benzrf> *thing
vt102 has quit [Read error: Operation timed out]
thepumpkin has joined #ruby
<benzrf> RubyPanther: you just need to change your way of thinking
<benzrf> ;)
<RubyPanther> you will have something like: "maximum field length: 120 yards"
<shevy> threads << Thread.new(page) { |myPage|
<shevy> benzrf to be honest
thepumpkin has quit [Read error: No route to host]
<benzrf> RubyPanther: ok, how is that not something you can do in haskell?
<shevy> benzrf I am still not sure I understand what a type is
<benzrf> shevy: oh man
<RubyPanther> And then in other parts of the instructions, it will reference "maximum field length"
<shevy> it is something invariant, right?
vt102 has joined #ruby
<benzrf> shevy: a type is the type of data something is
thepumpkin has joined #ruby
<shevy> like an apple is always an apple and a car is always a car
<benzrf> well, kind of
cpruitt has joined #ruby
<benzrf> haskell's types are interesting
<shevy> so a generic type I would assume that it could become any kind of type
<benzrf> not exactly
<shevy> :(
thepumpkin has quit [Read error: Connection reset by peer]
<benzrf> by generic type i really mean a parameterized type
<shevy> what is that
<benzrf> the most common kind is for containers
<benzrf> the classic example is a list
<benzrf> list is a type
<benzrf> list of Ints is a type
thepumpkin has joined #ruby
<benzrf> list is parameterized
<benzrf> it takes one parameter
cpruitt has quit [Client Quit]
<benzrf> so you can have [Int] or [String] or [[Int]]
thepumpkin has quit [Read error: Connection reset by peer]
<benzrf> [a] matches any kind of list
<benzrf> [in haskell, type names are always uppercase]
thepumpkin has joined #ruby
elcontrastador has joined #ruby
<benzrf> types allow type checking, which can significantly reduce bugs
thepumpkin has quit [Read error: Connection reset by peer]
<benzrf> of course static typing can be a huge pain
<benzrf> see java
<benzrf> but haskell has type inference, which is amazing
thepumpkin has joined #ruby
<RubyPanther> And there are actually serious engineering disadvantages if you require each place you say "maximum field length" to have it embedded in there as a self-sufficient instruction, because then you lose the ability to abstract other than in one precise way. What if you start building a field, and then they tell you part way through, no this one is for Canadian Football. Now you're re-generating a whole stack of instruction cards.
wildroman2 has joined #ruby
<RubyPanther> If you have state, you just use whiteout in one spot
<benzrf> RubyPanther: i'm sorry, but haskell has constants
<benzrf> just not variables
<benzrf> maxFieldLength = 120
<RubyPanther> ugh
<benzrf> ^^compiles
alpha123 has joined #ruby
<RubyPanther> that's like being punched in the stomach, compared to a beautiful language like Ruby, and state everywhere, every context has some state
<benzrf> believe it or not, hs was designed for humans, not math majors
<benzrf> excuse me
ghostjangles has joined #ruby
<benzrf> did you just call ruby more beautiful than haskell
<RubyPanther> just like in life, I could take out a postit and create state at any moment
agjacome has joined #ruby
<bnagy> ruby is strongly typed, btw
<benzrf> bnagy: yes it is
<benzrf> it is also dynamically typed
<benzrf> RubyPanther: How often do you actually mutate things that are passed to you and are not local to the current method?
ewnd9_ has quit [Ping timeout: 272 seconds]
zz_tsykoduk is now known as tsykoduk
thepumpkin has quit [Ping timeout: 252 seconds]
<bnagy> all the time
CaptainJet has quit [Ping timeout: 252 seconds]
DanKnox is now known as DanKnox_away
<RubyPanther> benzrf: constantly, databases and datastores. Frequently, class variables
<benzrf> bnagy: really?
<benzrf> RubyPanther: apart from dbs
<benzrf> i mean internal program things
<Rudde> I try to write puts "Found #{found} primes in ", (ending-start)*1000, " ms" but after every comma it gets on a new line
<bnagy> every String and Array ! method does that
<Rudde> how do I avoid this?
<RubyPanther> I use all the available layers of state
<bnagy> not that it's what ! means, but it's common
Kricir has joined #ruby
<benzrf> bnagy: and do you ! method things that are passed to you?
thepumpkin has joined #ruby
<bnagy> depends what's being passed
<RubyPanther> things are local to an object instance more often than a method
<RubyPanther> if a method has a bunch of state it is probably doing too much
CreativeEmbassy has joined #ruby
<bnagy> this is going to get into by value / ref and it will be irritating :/
<benzrf> RubyPanther: there you go
thepumpkin has quit [Read error: Connection reset by peer]
<benzrf> just reduce it a little more
<benzrf> :)
<bnagy> RubyPanther: puts adds a newline, you can use print
thepumpkin has joined #ruby
<bnagy> sorry
<benzrf> RubyPanther: have you actually written much haskell?
<bnagy> Rudde: ^^
<RubyPanther> egads, why would I write much haskell?
<benzrf> and there you go
<benzrf> ;)
thepumpkin has quit [Read error: Connection reset by peer]
<Rudde> nice lol :P
<benzrf> lack of state sounds restrictive, doesn't it?
thepumpkin has joined #ruby
<RubyPanther> Ruby brings happiness and joy, it is pragmatic, and tries not to be surprising or clever
amacgregor_ has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
<benzrf> RubyPanther: fun fact:
<benzrf> haskell is even less surprising
<benzrf> it is almost impossible for haskell to surprise you
<benzrf> the reason?
<benzrf> no mutation or state
<benzrf> ;)
thepumpkin has joined #ruby
capicue_ has joined #ruby
<benzrf> also, the type system is amazing
amacgregor__ has joined #ruby
<benzrf> it's actually possible sometimes to figure out what a function does just from its type
thepumpkin has quit [Read error: Connection reset by peer]
<RubyPanther> because it is almost impossible to implement a use case, so you switch tools without having been very surprised
thelorax123 has quit [Remote host closed the connection]
<benzrf> ha
<benzrf> v. clever
<benzrf> haskell is sometimes not pragmatic, true
thepumpkin has joined #ruby
<RubyPanther> I can say this, haskell lends itself well to code generation. If I really needed to write haskell, I would write it in Ruby.
jetblack has joined #ruby
amacgregor has quit [Ping timeout: 245 seconds]
thepumpkin has quit [Read error: Connection reset by peer]
timonv has joined #ruby
thepumpkin has joined #ruby
<benzrf> i'm sorry, but can you give me a concrete example of when you would prefer mutation to returning something new?
lethjakm1 has quit [Ping timeout: 272 seconds]
<benzrf> ok thats unfair
capicue has quit [Ping timeout: 245 seconds]
thepumpkin has quit [Read error: Connection reset by peer]
<benzrf> there are plenty of times when it's useful since ruby does not have haskell's facilities for dealing with lack of state
<RubyPanther> whenever I would rather cross out the old answer instead of retyping the whole card
<benzrf> but haskell does the rewriting for you!
<benzrf> usually.
thepumpkin has joined #ruby
kevinykchan has quit [Ping timeout: 245 seconds]
<RubyPanther> by faking some state
<benzrf> your point?
thepumpkin has quit [Read error: No route to host]
<RubyPanther> that the state is good, and embracing it brings happiness
<benzrf> nah man
thepumpkin has joined #ruby
amacgregor_ has quit [Ping timeout: 245 seconds]
Guedes0 has quit [Read error: Operation timed out]
<benzrf> state is convenient, often
<benzrf> but it leads to bugs
pwh has joined #ruby
michael_mbp is now known as zz_michael_mbp
thepumpkin has quit [Read error: Connection reset by peer]
<RubyPanther> no, inputting code leads to bugs
Zesty has joined #ruby
<benzrf> anyway just get back to me in about 2 years and im sure ill have changed what im raving about
thepumpkin has joined #ruby
bradhe has quit [Remote host closed the connection]
<Rudde> bnagy: What ^ didnt work?
rickruby has quit [Remote host closed the connection]
bradhe has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
<bnagy> haha :)
thepumpkin has joined #ruby
<coldmethod> benzrf: since you know haskell, how would you compare that to ruby, like over 400 miles?
<Rudde> So how does one do it?
Kricir has quit [Remote host closed the connection]
<benzrf> coldmethod: 'like over 400 miles'?
<benzrf> can you explain?
<coldmethod> like in a bigger picture lol
Kricir has joined #ruby
timonv has quit [Ping timeout: 272 seconds]
<benzrf> well
<benzrf> personally id definitely use ruby for almost everything
<coldmethod> (p.s. for some reason saying 'haskell' makes me feel naughty LOL)
<benzrf> because im not yet fully comfortable with haskell in more than 30 lines or so
<benzrf> but if i were, id almost certainly use haskell
<coldmethod> wow
Bulters has quit [Ping timeout: 272 seconds]
<coldmethod> i see
<benzrf> haskell is basically completely different from most other languages i've ever used
<coldmethod> and the top reason be?
<benzrf> so it's like learning to program all over
danshultz has quit [Remote host closed the connection]
<benzrf> hmm
<benzrf> there are several
<benzrf> one is just speed
<coldmethod> quite interesting
<benzrf> haskell done right is much faster than ruby
<benzrf> another is the typing
danshultz has joined #ruby
<benzrf> static typing is great for catching bugs
<coldmethod> duck typing?
<coldmethod> ahh
<coldmethod> ok
brennanMKE has joined #ruby
<benzrf> static typing is generally better than dynamic IMO, except for the fact that it's a huge goddamn pain in langs like java
<benzrf> haskell manages to get the perks of static typing with little of the drawbacks
pardusf has quit []
<benzrf> also i just like haskell
<benzrf> it's a pretty awesome language
<benzrf> i can only hope that someday i understand it
s3itz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<coldmethod> wow
<benzrf> :o
bradhe has quit [Ping timeout: 248 seconds]
olivier_bK has quit [Ping timeout: 252 seconds]
<benzrf> Haskell has no state and no side effect
<benzrf> a
<coldmethod> seems inspirational
<benzrf> *effects
<benzrf> :p
bradhe has joined #ruby
<benzrf> all functions in haskell are referentially transparent
reset has joined #ruby
thepumpkin has quit [Ping timeout: 264 seconds]
<benzrf> that basically means that functions do nothing at all besides returning a value, and the same args will always return the same value
<benzrf> so addition is referentially transparent
<benzrf> but rand() and gets are not
<RubyPanther> In Ruby I just use C when I need something faster
<coldmethod> I remember in a recent conf, someone asked Matz about his programming language enthusiasm and he said that he couldn't understand Haskell for more than five lines
<benzrf> heh
devoldmx has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
<coldmethod> quite agree with RubyPanther
devoldmx has joined #ruby
<benzrf> haskell has lazy evaluation
banjara has joined #ruby
nobitanobi has joined #ruby
<benzrf> or at least non strict
thepumpkin has quit [Read error: Connection reset by peer]
merica has joined #ruby
thepumpkin has joined #ruby
radic_ has quit [Read error: Operation timed out]
thepumpkin has quit [Read error: No route to host]
danshultz has quit [Ping timeout: 264 seconds]
<benzrf> ruby: 'print "N"; loop { print 'o'};'
thepumpkin has joined #ruby
<benzrf> haskell: putStrLn $ 'N':(repeat 'O')
Bulters has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
<benzrf> 'N':(repeat 'O') is an infintely long string that consists of NOOOO(etc)
<benzrf> in ruby, it would take forever to evaluate it and it would never get printed
parduse has joined #ruby
thepumpkin has joined #ruby
<benzrf> in haskell, it evaluates more of it as it needs it
<benzrf> instead of doing it all ahead of time
<coldmethod> damn, Haskell seems to be written for humans with alien intelligence haha
<benzrf> coldmethod: that's what regular programming seems like to people who dont know it
thepumpkin has quit [Read error: Connection reset by peer]
<benzrf> the key is that it's something totally different
<RubyPanther> In Ruby that would be implemented as a range or something
<benzrf> it's like learning to program all over again
thepumpkin has joined #ruby
<coldmethod> benzrf: people, who are like aliens
reset has quit [Ping timeout: 272 seconds]
<coldmethod> lol
<h0rrorvacui> there is lazy enumeration in ruby
<benzrf> h0rrorvacui: yes, but haskell does it by default for normal expressions
parduse has quit [Client Quit]
mixel has quit [Quit: mixel]
thepumpkin has quit [Read error: Connection reset by peer]
<benzrf> coldmethod: also, haskell has no function for getting input, because that would not be referentially transparent
pu22l3r has quit [Remote host closed the connection]
thepumpkin has joined #ruby
<coldmethod> benzrf: really? holly cow
gr33n7007h has quit [Remote host closed the connection]
<benzrf> haskell has a thing called 'monadic IO'
tomzx_mac has quit [Ping timeout: 272 seconds]
<benzrf> there's more than one way to explain how it works
<benzrf> personally, I favor this one
thepumpkin has quit [Read error: Connection reset by peer]
pu22l3r has joined #ruby
krz has joined #ruby
<benzrf> basically, the return value of 'getLine' is an 'IO action'
<benzrf> what you do is, you bind the action to another action
thepumpkin has joined #ruby
<benzrf> you build up one big program composed of actions
<benzrf> then you return it and it gets executed
randomnick_ has quit [Remote host closed the connection]
thepumpkin has quit [Read error: Connection reset by peer]
<benzrf> printing is also not accomplished through a function, because that would be a side effect
thepumpkin has joined #ruby
<benzrf> basically, calling a function should do nothing other than getting something back
<h0rrorvacui> That seems like a downside, perhaps thats a reason to use a less purely functional language instead :P
alpha123 has quit [Quit: WeeChat 0.4.2]
<nobitanobi> Why would something like this: expect { 'json' }.to be_eql('json') return 'false'?
<benzrf> h0rrorvacui: why?
io_syl has quit []
<benzrf> there's sugar to make it more palatable
thepumpkin has quit [Read error: Connection reset by peer]
<h0rrorvacui> So I can have side effects when I want, and not when I don't.
<benzrf> on the whole, you can use it almost like regular IO
elcontrastador has quit [Quit: Textual IRC Client: www.textualapp.com]
thepumpkin has joined #ruby
DanKnox_away is now known as DanKnox
<RubyPanther> so you wave your hands when it comes to getting input, because you really do need to get input, and it really isn't referentially transparent at compile time
elcontrastador has joined #ruby
<benzrf> RubyPanther: not exactly
thepumpkin has quit [Read error: Connection reset by peer]
<benzrf> if you choose to view the monads as building a structure, then your main function returns the same value every time
<benzrf> which is then executed
<coldmethod> but that is kinda turn off in ruby world since that monadic IO you mentioned looks as if it's there to facilitate the programming language itself and not the humans
<RubyPanther> it has all the same problems as LISP
<benzrf> how so?
<benzrf> RubyPanther: excuse me but what problems does lisp have
thepumpkin has joined #ruby
<benzrf> & i don't think it's been allcaps since the 80s or something
<RubyPanther> LISP makes programmers cry. And that is bad.
<coldmethod> Haha
<benzrf> u kidding
thepumpkin has quit [Read error: Connection reset by peer]
<benzrf> one of ruby's major inspirations is scheme
<benzrf> coldmethod: in practice, you can write this:
<benzrf> main = do
<benzrf> putStrLn "what is your name?"
<coldmethod> I like it to the part where it's involved in Emacs.. and that it.. no more, on less!!!
<benzrf> name <- getLine
thepumpkin has joined #ruby
<benzrf> putStrLn "Hello " ++ name
<coldmethod> lol
<benzrf> coldmethod: that's syntactic sugar for:
freezey has quit [Remote host closed the connection]
thepumpkin has quit [Read error: No route to host]
<coldmethod> for?
<RubyPanther> The built-in restrictions mean that you can not simply translate a normal use case, expressed in human terms, into a program. Instead, you have a translate it into a whole different logical system that anybody would have used to describe a needed program
<benzrf> main = putStrLn "what is your name?" >> getLine >>= \name -> putStrLn "Hello " + name
pu22l3r has quit [Ping timeout: 268 seconds]
thepumpkin has joined #ruby
<benzrf> RubyPanther: you are using preconceived notions of what is natural
<RubyPanther> There are good reasons that emacs is actually written in C, and LISP is just the configuration/plugin language
<h0rrorvacui> benzrf: I've never heard anyone say ruby was inspired by scheme
JonahR has joined #ruby
<h0rrorvacui> benzrf: Lisp on the other hand...
* coldmethod agreeing with RubyPanther
* coldmethod once again!!!
<benzrf> h0rrorvacui: hmm, i couldve sworn i saw it said somewhere that ruby was partially inspired by scheme
<benzrf> huh
<jrobeson> smalltalk
<h0rrorvacui> benzrf: smalltalk
<benzrf> yeah ik
<benzrf> but the whole 'everything is an expression' thing looks a LOT like lisp
<benzrf> i've been reading land of lisp, and the code looks similar to ruby semantically
jrhe_ has joined #ruby
jrhe has quit [Read error: Connection reset by peer]
jrhe_ is now known as jrhe
<benzrf> aside from methods vs functions
<h0rrorvacui> Lisp influenced smalltalk so it double influenced ruby
<benzrf> yup
<RubyPanther> "smalltalk object semantics with Perl/C syntax" or something
lethjakm1 has joined #ruby
<benzrf> RubyPanther: and lisp non-object semantics
<benzrf> :)
gr33n7007h has joined #ruby
<benzrf> RubyPanther: anyway i think you are working off of preconceived notions of what is natural
<nobitanobi> Why am I getting this when running the tests "NameError:
<Rudde> Why is the Prime.prime?() feature so slow?
<nobitanobi> `format' is not allowed as an instance variable name" - I have tried changing the name, and I get the same error: http://pastebin.com/VH7ZhBW1
xk_id has quit [Quit:
peterdec_ has quit [Remote host closed the connection]
<benzrf> evaluating an expression for its side effects may seem stranger to somebody who doesn't know about coding than purity does to you
<RubyPanther> well, if I say "natural" I mean it in the same way as Larry Wall would mean it
peterdecroos has joined #ruby
bradhe has quit [Remote host closed the connection]
thepumpkin has quit [Ping timeout: 244 seconds]
<benzrf> ha
bradhe has joined #ruby
<h0rrorvacui> I would have to say that the world is better modeled the OOP and procedural way than functional. So I think RubyPanther means in that way it is more natural.
capicue_ has quit [Quit: Leaving...]
thepumpkin has joined #ruby
<RubyPanther> my first interest in Ruby was when Larry Wall gave a streamed interview in the late 90s and said if you want to do everything with OOP instead of procedural, then Ruby is a better language than Perl (because Perl's OO support was an afterthought that was "bolted-through"). He then went on to give a defense of procedural. But I was already using Perl and trying to do everything as OOP
thepumpkin has quit [Read error: Connection reset by peer]
<benzrf> h0rrorvacui: what exactly do you mean by OOP in this sense?
thepumpkin has joined #ruby
radic has joined #ruby
nullsign has quit [Quit: Lost terminal]
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
<RubyPanther> Yeah, basic human instructions are procedural, not functional. And then when you start engineering things, OOP is natural; it represents the subjective groupings of things, and records information about those things _with_ the things.
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
<benzrf> RubyPanther: ADTs
peterdecroos has quit [Ping timeout: 252 seconds]
thepumpkin has quit [Read error: Connection reset by peer]
<benzrf> and typeclasses got you covered for polymorphism
thepumpkin has joined #ruby
bradhe has quit [Ping timeout: 272 seconds]
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
Kricir has quit [Remote host closed the connection]
thepumpkin has quit [Read error: Connection reset by peer]
zeeraw has quit [Quit: Computer has gone to sleep.]
<benzrf> anyway, haskell is better at imperative than ruby is at functional
<benzrf> :)
thepumpkin has joined #ruby
<benzrf> and monadic IO has definite upsides
Guest59857 has joined #ruby
<benzrf> being able to manipulate side effects like data is useful
Guest59857 is now known as diegoviola
thepumpkin has quit [Read error: Connection reset by peer]
<RubyPanther> The difference is, Ruby doesn't have to do functional at all, and functional has to "fake it" constantly
<benzrf> excuse me
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
Tarential has quit [Excess Flood]
Tarential has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
dorei has quit []
thepumpkin has joined #ruby
coldmethod1 has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
aspires has quit [Quit: sudo making a sandwich]
thepumpkin has joined #ruby
Aryasam has quit [Ping timeout: 265 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
thepumpkin has quit [Read error: Connection reset by peer]
Jetchisel has quit [Quit: Unfortunately time is always against us -- *Morpheus*]
coldmethod has quit [Ping timeout: 252 seconds]
thepumpkin has joined #ruby
bradhe has joined #ruby
aspires has joined #ruby
Aryasam has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
OdNairy has joined #ruby
lyanchih has quit [Quit: lyanchih]
<shevy> hmm
varfoo has quit [Quit: WeeChat 0.4.0]
<shevy> I want a prototypic language like ruby
<shevy> I mean, like ruby in the essence of the syntax
pw3 has joined #ruby
<shevy> there was Io but the syntax was not a lot of fun
reset has joined #ruby
amacgregor has joined #ruby
<shevy> x := "hi world"
<benzrf> whaaat
<h0rrorvacui> Ioke
<benzrf> io has nifty syntax
<benzrf> h0rrorvacui: i saw that but it looked exactly like io
<benzrf> is it not
<shevy> oh
<shevy> Ioke seems to have gotten away with the :
<benzrf> well a plain = means change but not create
<benzrf> [in io]
jrhorn424 is now known as zz_jrhorn424
<shevy> = means updateSlot if I recall correctly
<benzrf> i want python with symbols and blocks and better method chaining
amacgregor__ has quit [Ping timeout: 245 seconds]
<shevy> hehe
<benzrf> and interpolation
<shevy> python 4.0
<benzrf> and a bit more sugar
<benzrf> :-D
<shevy> ok
<shevy> python 5.0
<shevy> we have to be realistic
<benzrf> heh
parduse has joined #ruby
<benzrf> nah blocks in python isnt happening
<benzrf> gvr may be a bdfl but hes still a dfl
nisstyre has quit [Quit: Leaving]
<benzrf> and damn he isn't a fan of FP
<benzrf> :|
<benzrf> he tried to kill python lambdas
thepumpkin has quit [Ping timeout: 272 seconds]
<benzrf> not that they're any good anway
<benzrf> totally couldve gone for barry_as_FLUFL
sbos99 has joined #ruby
<shevy> hehe
<shevy> he tried to kill python lambdas which you dislike but you also dislike the python lambdas at the same time
<shevy> I find that funny :D
<benzrf> what i mean is that he tried to kill what little was left
thepumpkin has joined #ruby
<benzrf> oh btw can i add ruby's everythingasanexpression to my wishlist
varfoo has joined #ruby
<benzrf> make it python X
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
<coldmethod1> i liked lambdas
coldmethod1 is now known as coldmethod
<benzrf> u serious?
aspires has quit [Quit: sudo making a sandwich]
thepumpkin has quit [Read error: Connection reset by peer]
<coldmethod> yea LOL
<coldmethod> makes few things easier for me
<benzrf> like?
thepumpkin has joined #ruby
reset has quit [Ping timeout: 248 seconds]
Jetchisel has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
drag00n has joined #ruby
bradhe has quit [Remote host closed the connection]
blarghmatey has quit [Read error: Connection reset by peer]
<coldmethod> checking which value to return based on one of many passed arguments to a function, from two
thepumpkin has joined #ruby
<coldmethod> i.e. for simple small things
bradhe has joined #ruby
wallerdev has joined #ruby
<benzrf> this is why i like ruby
thepumpkin has quit [Read error: Connection reset by peer]
<benzrf> non shitty method chaining, symbols, and everything is an expression
<benzrf> and of course
<benzrf> the holy grail
bradhe has quit [Read error: Connection reset by peer]
<benzrf> GOD DAMN HOFS
thepumpkin has joined #ruby
bradhe_ has joined #ruby
<shevy> hmm
<shevy> benzrf
<benzrf> hofs are the best thing since slicred bread
<coldmethod> yea, of course, cause of simple nature.. i will have to see how Ruby simplifies that as I move further into my study
<coldmethod> :D
<benzrf> shevy: yeah?
<shevy> sometimes I am concerned that you are about to lose your sanity :(
rodan- has quit [Remote host closed the connection]
thepumpkin has quit [Read error: Connection reset by peer]
<benzrf> sorry im young & enthusiastic
<benzrf> im sure once i actually get a prog job ill lose all of my joy
hiyosi has quit [Ping timeout: 252 seconds]
<benzrf> then ill be less hyper
thepumpkin has joined #ruby
rodan- has joined #ruby
<benzrf> as it is i have plenty of time to be all snooty about things that don't actually matter
oller has joined #ruby
<benzrf> :-D
<coldmethod> benzrf: likely but always find something to cheer yourself up
<h0rrorvacui> benzrf: how old are you?
sarpanch1 has joined #ruby
<coldmethod> same question how old are you?
<benzrf> 16
<coldmethod> if you don't mind asking
ananthakumaran has joined #ruby
<RubyPanther> no, the best thing since sliced bread was mixins
freezey has joined #ruby
<benzrf> RubyPanther: bah
<coldmethod> half my age then..
<benzrf> hofs are the shit man
<coldmethod> well i advised you already lol
<RubyPanther> mixins means never having to ask for resource injection
<benzrf> hofs are so amazingly useful in so many ways that I can't even boil them down to one advantage like that
zastern has joined #ruby
amacgregor_ has joined #ruby
freezey has quit [Read error: Connection reset by peer]
freezey_ has joined #ruby
RORgasm has quit [Remote host closed the connection]
Aryasam has quit [Ping timeout: 272 seconds]
rodan- has quit [Ping timeout: 245 seconds]
amacgregor has quit [Ping timeout: 245 seconds]
bugsinlights has quit [Remote host closed the connection]
thepumpkin has quit [Ping timeout: 272 seconds]
earthquake has quit [Quit: earthquake]
wildroman2 has quit [Remote host closed the connection]
aspires has joined #ruby
thepumpkin has joined #ruby
freezey_ has quit [Ping timeout: 248 seconds]
sarpanch1 has quit []
bradhe_ has quit [Remote host closed the connection]
linoge has joined #ruby
sarpanch1 has joined #ruby
sarpanch1 is now known as sarpanch
<RubyPanther> generally in Ruby we use enumerables
WickedAtMelb has joined #ruby
Zesty has quit [Quit: Linkinus - http://linkinus.com]
thesheff17 has quit [Ping timeout: 248 seconds]
bubbajones has quit [Ping timeout: 272 seconds]
sarpanch has quit [Client Quit]
zz_karupanerura is now known as karupanerura
Kricir has joined #ruby
<benzrf> RubyPanther: what does that have to do with hofs
<linoge> Hi, I'm doing a software that uses MySQL. What would be the best way the creation of the tables?
<linoge> *to handle
thepumpkin has quit [Ping timeout: 264 seconds]
rickruby has joined #ruby
rickruby has quit [Read error: Connection reset by peer]
sarpanch has joined #ruby
<linoge> See, I've got a first run wizard and it should set up everything for the app to be ready to use
rickruby has joined #ruby
thepumpkin has joined #ruby
banjara has quit [Quit: Leaving.]
thepumpkin has quit [Read error: Connection reset by peer]
<linoge> But I don't what would be the best way to create tables :/
<pw3> have you decided on what library you're going to use to access mysql?
thepumpkin has joined #ruby
<RubyPanther> benzrf: it is the same thing, except that Ruby does it with OO so it has even more power (for example, the list doesn't have to be an array)
<benzrf> ...i do not understand what that has to do with hofs
<h0rrorvacui> benzrf: you do mean high order functions right?
<benzrf> yeah
thepumpkin has quit [Read error: Connection reset by peer]
<h0rrorvacui> well then it solves the same problem
<benzrf> ???
xk_id has joined #ruby
<linoge> pw3: the mysql gem (2.9.1)..
thepumpkin has joined #ruby
karupanerura is now known as zz_karupanerura
tsykoduk is now known as zz_tsykoduk
<benzrf> how are higher order functions and enumerables the same?
thepumpkin has quit [Read error: Connection reset by peer]
soba has joined #ruby
thepumpkin has joined #ruby
<pw3> linoge: can't you just create a query to create the tables? Perhaps I'm not understanding your problem.
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
kitak has quit [Read error: Connection reset by peer]
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
kitak has joined #ruby
Rudde has quit [Remote host closed the connection]
thepumpkin has quit [Read error: No route to host]
merica has quit [Remote host closed the connection]
Spami has quit [Remote host closed the connection]
thepumpkin has joined #ruby
macmartine has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
<RubyPanther> (1..100).sort {|a,b| (b%a**(b%3)) <=> a}
thepumpkin has joined #ruby
<benzrf> yes
<benzrf> sort is a HOF
thepumpkin has quit [Read error: No route to host]
<benzrf> also, are you saying that list operations are the only use of HOFs?
bluOxigen has joined #ruby
<linoge> pw3: Yes, I could, that was my first thought, but... I thought maybe there was a better way.
<RubyPanther> well, the ones with use cases
thepumpkin has joined #ruby
<benzrf> uh
<benzrf> -.-
thepumpkin has quit [Read error: Connection reset by peer]
<benzrf> im not going to argue with you any more, neither of us are moving at all
Aryasam has joined #ruby
<h0rrorvacui> benzrf: I don't think he is arguing.
<benzrf> Ok
thepumpkin has joined #ruby
<benzrf> then ill stop arguing AT him
<h0rrorvacui> benzrf: but if you would, think for a second what OOP is doing.
jamesaanderson has joined #ruby
<h0rrorvacui> You could achieve something similar with OOP.
<benzrf> oh yes oop is pretty awesome
thepumpkin has quit [Read error: Connection reset by peer]
<benzrf> h0rrorvacui: how so
oller has quit [Ping timeout: 260 seconds]
PeNNyWiSe182__ has joined #ruby
unholycrab has quit [Ping timeout: 260 seconds]
thepumpkin has joined #ruby
<h0rrorvacui> objects can be used in place of methods
PeNNyWiSe182__ has quit [Client Quit]
<benzrf> true
zz_tsykoduk is now known as tsykoduk
<benzrf> but that's just an unnecessary layer
<benzrf> you're really using HOFs
<pw3> linoge: I'm not real familiar with the mysql gem, but unless it provides some sort of abstraction for creating tables, I think you're just stuck using a query. If you were using something like Sequel, you might have some other options.
lyanchih has joined #ruby
<benzrf> like how Runnables in java are really just functions
Tearan has quit [Quit: Sleepy Badger....]
<benzrf> but wrapped in a nice objecty wrapper because java doesn't like things that arent objects
<RubyPanther> presumably a block counts as a "function"
<benzrf> yep
<benzrf> any block method is HOF in my book
<benzrf> ^_^
<shevy> coldmethod with old age comes wisdom
hiyosi has joined #ruby
<benzrf> shevy: you can also become complacent in your ideas with old age tho
amacgregor has joined #ruby
<shevy> benzrf oh I am, I find it insanely hard to learn new things :(
<benzrf> of course i like that one more being young
<benzrf> :>
<shevy> I am like
<shevy> where is cold beer...
Aryasam has quit [Ping timeout: 245 seconds]
<shevy> like Al from "married, with children"
<h0rrorvacui> benzrf: I think you should look at this from a practical point of view.
danshultz has joined #ruby
<benzrf> h0rrorvacui: look at what exactly?
aspires has quit [Quit: sudo making a sandwich]
ananthakumaran has quit [Quit: Leaving.]
amacgregor_ has quit [Ping timeout: 245 seconds]
thepumpkin has quit [Ping timeout: 272 seconds]
<h0rrorvacui> Everything
<shevy> lol
<shevy> that is gonna take a long time
<benzrf> bah
<benzrf> who needs pragmatism
<benzrf> it's not like i have to program for a living or anything
<benzrf> :D
<h0rrorvacui> its only O(n) if you just look
Kricir has quit [Ping timeout: 264 seconds]
<benzrf> but it's O(1) if I don't
ananthakumaran has joined #ruby
<h0rrorvacui> But what does that get you?
<shevy> 42
<benzrf> more time to force myself to finally start reading the dragon book
<h0rrorvacui> exactlyl
<RubyPanther> learn lots and lots of languages when you're young. Then when something new like python comes along, you can say, "COBOL already taught me how awful whitespace is" and avoid the whole boondoggle
rodan- has joined #ruby
<shevy> hey
<benzrf> RubyPanther: excuse me but whitespace is ths hit
hiyosi has quit [Ping timeout: 245 seconds]
<benzrf> *the shit
<shevy> he was not even born when python was coming "new" RubyPanther!
<RubyPanther> benzrf: that just tells me you don't know COBOL
<benzrf> ha
<benzrf> I try not to learn truly awful languages
<shevy> :)
<shevy> we need lisbol
<shevy> the merger of COBOL with Lisp
<benzrf> god why
<shevy> dont know really
thepumpkin has joined #ruby
<shevy> perhaps something good will come out of that
<RubyPanther> COBOL is pass-by-value, so it is very transparent
<benzrf> perbol
<benzrf> the readability of perl and the beauty of cobol
thepumpkin has quit [Read error: Connection reset by peer]
danshultz has quit [Ping timeout: 272 seconds]
<benzrf> and what a wonderful name!
IceDragon has quit [Quit: Space~~~]
thepumpkin has joined #ruby
<RubyPanther> I've embedded a Perl interpreter into a COBOL program before, modern-ish COBOL has a C interface
<RubyPanther> That's how I survived Y2K
thepumpkin has quit [Read error: No route to host]
chrisbolton has joined #ruby
<benzrf> do you think the unix rollover is going to cause any real probs
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
<RubyPanther> I wish, I'm anxiously waiting for Time.at(0x7fffffff). sadly, most of the key libraries have already been patched. Everything will be storing it in lots of bits before it matters
thepumpkin has joined #ruby
<RubyPanther> Y2K was a once-in-a-century cash cow
<benzrf> >> 3 === [1, 2, 3]
<eval-in_> benzrf => false (https://eval.in/65628)
thepumpkin has quit [Read error: Connection reset by peer]
rodan- has quit [Ping timeout: 272 seconds]
<benzrf> why 0x7fffffff?
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
Tearan has joined #ruby
thepumpkin has joined #ruby
Tearan has quit [Client Quit]
<RubyPanther> That's the shortest way to write it in Ruby for doing maximum expire on a HTTP cookie :o but why they chose that many bits for the entire epoch, I think it was just a practical kludge given historical memory constraints
thepumpkin has quit [Read error: Connection reset by peer]
sdavis has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.2]
nism-pi has joined #ruby
<benzrf> ah, ok
thepumpkin has joined #ruby
<benzrf> i assumed it was in full bytes
<benzrf> my bad >.>
<coldmethod> hahah shevy
<coldmethod> and experience too shevy
thepumpkin has quit [Read error: Connection reset by peer]
macmartine has quit []
devoldmx3 has joined #ruby
thepumpkin has joined #ruby
keyvan_ has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
sdavis has left #ruby [#ruby]
LexicalScope has quit [Read error: Connection reset by peer]
keyvan_ is now known as keyvan
thepumpkin has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
keyvan has joined #ruby
keyvan has quit [Changing host]
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
amacgregor_ has joined #ruby
aspires has joined #ruby
<benzrf> >> "foo".startswith ?f
<eval-in_> benzrf => undefined method `startswith' for "foo":String (NoMethodError) ... (https://eval.in/65630)
<benzrf> aw
<RubyPanther> benzrf: it is full, that is the max value of a signed int (even though the sign isn't used)
<benzrf> >> "foo".startwith? ?f
<eval-in_> benzrf => undefined method `startwith?' for "foo":String (NoMethodError) ... (https://eval.in/65631)
OdNairy has quit []
<benzrf> ok
<RubyPanther> if they'd used an unsigned int we'd have another 70 years, but presumably they had important other uses for that bit
<benzrf> i am not good at bytes >.>
devoldmx has quit [Ping timeout: 252 seconds]
<benzrf> well it was a time when kilobytes were precious
<shevy> benzrf .start_with? I think, dont forget the _
<benzrf> ah
<benzrf> >> "foo".start_with? ?f
<eval-in_> benzrf => true (https://eval.in/65632)
<benzrf> :D
<shevy> hmm
<chrisbolton> Need some help finding a value via nested hash. Need to loop through this type of hash (https://gist.github.com/Iknewthisguy/7408040), find the hash where 'name' has the word 'Trailer' in it and then return the value in the next level down 'source'?
sevenseacat has quit [Remote host closed the connection]
tsykoduk is now known as zz_tsykoduk
<shevy> >> "foo"[0,1] == ?f
<eval-in_> shevy => true (https://eval.in/65633)
Hanmac1 has quit [Quit: Leaving.]
amacgregor has quit [Ping timeout: 245 seconds]
sevenseacat has joined #ruby
<shevy> that's one fat hash
jlast has quit [Remote host closed the connection]
jlast has joined #ruby
* coldmethod really wants to keep reading but has a terrible sore throat
<chrisbolton> Yeah, it's ugly.
<coldmethod> so see ya all soon
<coldmethod> have a good one
thepumpkin has quit [Ping timeout: 252 seconds]
<benzrf> you too
Aryasam has joined #ruby
freezey has joined #ruby
dhruvasagar has joined #ruby
<RubyPanther> my first home computer had 2K RAM and a BASIC ROM, and when I tried to write "hangman" and hit the memory limit, it just froze. And it didn't have any main memory, only auxiliary.
earthquake has joined #ruby
<nobitanobi> `format' is not allowed as an instance variable name" - I have tried changing the name, and I get the same error: http://pastebin.com/VH7ZhBW1
<benzrf> wow
<shevy> well the hash value can be accessed as hash['quicktime'][0]['name']
<benzrf> my dad told me stories about the Dark Ages
<RubyPanther> chrisbolton: you should parse it into an object structure, then you don't have to something kludgey like search and then grab the next value
thepumpkin has joined #ruby
sarpanch has quit []
thepumpkin has quit [Read error: Connection reset by peer]
linoge has quit [Quit: WeeChat 0.4.2]
<chrisbolton> RubyPanther: Can you elaborate? Mind you this is the data I get back from an API hit.
peterdecroos has joined #ruby
thepumpkin has joined #ruby
peterdecroos has quit [Remote host closed the connection]
Deele has joined #ruby
peterdecroos has joined #ruby
<chrisbolton> shevy: I can access the data. That's not a problem. It's accessing it in an intelligent way and taking what I want from it.
thepumpkin has quit [Read error: No route to host]
<shevy> nobitanobi can you not include the error in the pastie?
<shevy> .instance_variable_get(:format))
thepumpkin has joined #ruby
<nobitanobi> shevy, what do you mean?
jlast has quit [Ping timeout: 264 seconds]
<shevy> the error you get
thepumpkin has quit [Read error: Connection reset by peer]
<shevy> it is not included in the pastie
coldmethod has quit [Ping timeout: 265 seconds]
thepumpkin has joined #ruby
<shevy> >> @foo = "hi"; instance_variable_get(:@foo)
<eval-in_> shevy => "hi" (https://eval.in/65636)
<nobitanobi> Ok. The error I get is this one "NameError:`format' is not allowed as an instance variable name"
<shevy> no please
<shevy> always include all the information in the pastie
<shevy> it makes life so much easier
<shevy> and use a better pastie site too
<shevy> gist
thepumpkin has quit [Read error: Connection reset by peer]
<shevy> https://gist.github.com/ <--- we can highlight errors on it
<nobitanobi> I usually use gist. Just wanted to try pastie. Hold on.
thepumpkin has joined #ruby
<shevy> you used :format but this is not a valid instance variable
<shevy> I mean a valid name for an @ivar
<shevy> nobitanobi and no need to do so right now, just for the future
thepumpkin has quit [Read error: Connection reset by peer]
kung has joined #ruby
<nobitanobi> shevy, I tried using another name. And I got the same error.
thepumpkin has joined #ruby
<shevy> ok then explain why my code above worked
<nobitanobi> shevy, here is all the code: https://gist.github.com/novito/7408176
aspires has quit [Quit: sudo making a sandwich]
reset has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
bklane has quit [Quit: Leaving...]
<shevy> ok did you change anything at all?
<shevy> because I see you still have .instance_variable_get(:format))
thepumpkin has joined #ruby
<RubyPanther> chrisbolton: what I mean is to have classes like Movie and Source then when you get the data back, you construct a tree of related objects out of it
aagdbl has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
<nobitanobi> shevy, just update it to: https://gist.github.com/novito/7408176 -- "NameError:`test_var' is not allowed as an instance variable name"
elcontrastador has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
znode has joined #ruby
<shevy> cool
darkstar| has joined #ruby
<shevy> nobitanobi, did you read my line with >> above ?
thepumpkin has quit [Read error: Connection reset by peer]
<nobitanobi> shevy, I guess I am missing the @.
thepumpkin has joined #ruby
<chrisbolton> RubyPanther: Gotcha. May be a little exhaustive for what I'm I want to get out of that hash structure.
<shevy> well
<h0rrorvacui> RubyPanther: Isn't this a good time to use structs?
<shevy> nobitanobi, you can pass a string as well
<shevy> >> @foo = "hi"; instance_variable_get('@foo')
<eval-in_> shevy => "hi" (https://eval.in/65637)
tewmten has quit [Ping timeout: 272 seconds]
<shevy> so if you know the name of your variables, you could do this:
Kricir has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
<shevy> name = :format; instance_variable_get('@'+name.to_s)
banjara has joined #ruby
yacks has quit [Quit: Leaving]
thepumpkin has joined #ruby
<shevy> or "@#{name}" should work as well, I just hate the {}
<nobitanobi> shevy, I was thinking that since it's an instance variable, and we are using an 'instance_variable_get' the @ should not be necessary
<shevy> yeah, dont ask me, I did not write this method :D
thepumpkin has quit [Read error: Connection reset by peer]
elcontrastador has joined #ruby
<shevy> perhaps there is some reason for having it the way it is right now
<RubyPanther> chrisbolton: No, trying to juggle a data structure complex enough to make you unsure of the intelligent approach to take data out is way too exhausting. It is not at all exhaustive to create a class to represent your objects, it is just the basics
thepumpkin has joined #ruby
reset has quit [Ping timeout: 252 seconds]
<nobitanobi> shevy, thanks
<shevy> you are welcome!
<darkstar|> hello im having some difficulty this embedly gem https://github.com/embedly/embedly-ruby im trying to get a resized thumbnail using this line of code x=api.oembed :url=>'http://www.guardian.co.uk/media/2011/jan/21/andy-coulson-phone-hacking-statement', :maxwidth=>230 and this is the output im getting https://gist.github.com/anonymous/7408216 no sign of a resized thumbnail, any ideas?
timonv has joined #ruby
<shevy> guys got a question
<shevy> can CVS module in ruby be used to use another delimiter rather than '|' character?
<shevy> nevermind
<shevy> I simply .gsub
<h0rrorvacui> :P
amacgregor has joined #ruby
<h0rrorvacui> I was about to say just gsub if you don't mind the overhead of another iteration over it
<chrisbolton> RubyPanther: Maybe I'm not totally understanding what your getting at. Would you mind giving me a brief example via gist or pointing me to some reading material?
<shevy> h0rrorvacui yeah
thepumpkin has quit [Ping timeout: 240 seconds]
<chrisbolton> RubyPanther: I would rather not write some quirky piece of code that handles these very particular API hits.
<nobitanobi> shevy, btw. This is my first 'gem' I am trying to do :P
<shevy> nobitanobi \o/
amacgregor__ has joined #ruby
<shevy> nobitanobi dont forget documentation and one working example!
<nobitanobi> it's an API wrapper
<nobitanobi> I won't forget that hehe
<darkstar|> any ideas anyone?
amacgregor_ has quit [Ping timeout: 245 seconds]
<h0rrorvacui> chrisbolton: It isn't quirky its what you do. You said the "structure" of the data, and well wouldn't it be easier to make sense of that thing if you could just do message passing to a class or struct?
<RubyPanther> chrisbolton: I just mean basic OOP, you should have related objects instead of trying to traverse a big data structure full of strings. You should only be traversing it in order to parse it and create objects. Then you can do your searching across those objects, and the related things will end up right in your hands
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Fire-Dragon-DoL has quit [Quit: Leaving.]
tharindu has joined #ruby
aspires has joined #ruby
thepumpkin has joined #ruby
<RubyPanther> Then you end up with movie.trailer.sources.collect{ ... } or something
thepumpkin has quit [Read error: Connection reset by peer]
timonv has quit [Ping timeout: 245 seconds]
robertjpayne has quit [Remote host closed the connection]
thepumpkin has joined #ruby
petey has quit [Ping timeout: 264 seconds]
petey has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
amacgregor has quit [Ping timeout: 245 seconds]
mephux has quit [Quit: w0ots...]
<chrisbolton> RubyPanther & h0rrorvacui: Makes sense. I'm going to go tinker with it. Thanks for the insight.
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
ananthakumaran has quit [Quit: Leaving.]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
<RubyPanther> darkstar|: it looks like you're outputting the object instead of making an image tag with like .thumbnail_url or something. I don't know their API so I'm not sure the correct way, but that looks like the mistake
drag00n has quit [Ping timeout: 265 seconds]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
ananthakumaran has joined #ruby
thepumpkin has joined #ruby
sbos99 has quit [Quit: Leaving]
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
zipper has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
Kricir has quit [Remote host closed the connection]
thepumpkin has joined #ruby
kiri has quit [Ping timeout: 244 seconds]
thepumpkin has quit [Read error: Connection reset by peer]
aryaching has joined #ruby
thepumpkin has joined #ruby
Aryasam has quit [Quit: Bye]
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
ananthakumaran has quit [Ping timeout: 241 seconds]
kiri has joined #ruby
lethjakm1 has quit [Ping timeout: 272 seconds]
sayan has joined #ruby
jlast has joined #ruby
drumusician has joined #ruby
zastern has quit []
zz_tsykoduk is now known as tsykoduk
nism-pi has quit [Ping timeout: 272 seconds]
thepumpkin has quit [Ping timeout: 240 seconds]
wildroman2 has joined #ruby
<benzrf> sleeping now
<benzrf> thanks for the conversation
<benzrf> :}
benzrf has quit [Quit: zzz]
merica has joined #ruby
thepumpkin has joined #ruby
thepumpk_ has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
aspires has quit [Quit: sudo making a sandwich]
thepumpk_ has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
chrisbolton has quit [Quit: chrisbolton]
JohnBat26 has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
wildroman2 has quit [Ping timeout: 240 seconds]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: No route to host]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
jlast has quit [Ping timeout: 264 seconds]
thepumpkin has joined #ruby
aspires has joined #ruby
mrsolo has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
jrhe has quit [Read error: No route to host]
jrhe has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
aspiers has joined #ruby
tsykoduk is now known as zz_tsykoduk
zz_tsykoduk is now known as tsykoduk
thepumpkin has joined #ruby
maxiaojun has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
hiyosi has joined #ruby
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
musl_ has quit [Quit: WeeChat 0.4.1]
thepumpkin has joined #ruby
musl has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Ping timeout: 265 seconds]
thepumpkin has joined #ruby
rodan- has joined #ruby
<zipper> Could anyone direct me to a resource that teaches writing tests in ruby?
<zipper> One which willbe like TDD from beginner
hiyosi has quit [Ping timeout: 272 seconds]
<zipper> but includes stucbs mocks and more stuff I don't know about
thepumpkin has quit [Ping timeout: 272 seconds]
<sevenseacat> the rspec book?
simoz has joined #ruby
vlad_starkov has joined #ruby
tsykoduk is now known as zz_tsykoduk
thepumpkin has joined #ruby
existensil has quit [Quit: leaving]
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: No route to host]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
s3itz has joined #ruby
ananthakumaran has joined #ruby
capicue has joined #ruby
drumusician has quit [Ping timeout: 244 seconds]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
maoko has quit [Quit: Textual IRC Client: www.textualapp.com]
thepumpkin has joined #ruby
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
banjara has quit [Quit: Leaving.]
thepumpkin has quit [Read error: No route to host]
elcontrastador has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thepumpkin has joined #ruby
darkstar| has quit [Read error: Connection reset by peer]
thepumpkin has quit [Read error: No route to host]
thepumpkin has joined #ruby
rodan- has quit [Ping timeout: 245 seconds]
thepumpkin has quit [Read error: No route to host]
deegen has joined #ruby
capicue has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
capicue has joined #ruby
kevinykchan has joined #ruby
Kricir has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
vlad_sta_ has joined #ruby
thepumpkin has joined #ruby
maxiaojun has quit [Quit: maxiaojun]
mary5030 has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
darkstar| has joined #ruby
elcontrastador has joined #ruby
lukec has quit [Quit: lukec]
thepumpkin has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
Kricir has quit [Ping timeout: 245 seconds]
Bulters has quit [Read error: Operation timed out]
pithagorians has joined #ruby
nilcolor has joined #ruby
capicue has quit [Ping timeout: 272 seconds]
<nilcolor> Hello! Is there any way to export email as .eml file using Mail gem? https://github.com/mikel/mail
samfisher has joined #ruby
samfisher has joined #ruby
h0rrorvacui has quit [Quit: ZQ]
platypine has quit [Ping timeout: 245 seconds]
thepumpkin has quit [Ping timeout: 272 seconds]
vpretzel has quit [Quit: Adios!]
gyre007 has quit [Remote host closed the connection]
simoz has quit [Ping timeout: 240 seconds]
reset has joined #ruby
maxiaojun has joined #ruby
thepumpkin has joined #ruby
petey has quit [Remote host closed the connection]
superscott[8] has quit [Quit: superscott[8]]
reset has quit [Ping timeout: 264 seconds]
nullsign has joined #ruby
<nullsign> yo..
thepumpkin has quit [Ping timeout: 265 seconds]
petey has joined #ruby
artm has joined #ruby
tesuji has joined #ruby
thepumpkin has joined #ruby
agent_white has joined #ruby
mary5030 has quit [Remote host closed the connection]
varfoo has quit [Quit: WeeChat 0.4.0]
Bulters has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
earthquake has quit [Quit: earthquake]
jonathanwallace has joined #ruby
thepumpkin has quit [Ping timeout: 272 seconds]
Tearan has joined #ruby
tharindu has quit [Quit: Leaving...]
DanKnox is now known as DanKnox_away
aryaching has quit []
kevinykchan has quit [Ping timeout: 248 seconds]
Bulters has quit [Ping timeout: 240 seconds]
rellin has quit [Read error: Connection reset by peer]
jmimi has joined #ruby
varfoo has joined #ruby
Bulters has joined #ruby
TheShaun is now known as TheShaun|AFK
maxiaojun has quit [Quit: maxiaojun]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
Guest64279 has quit [Ping timeout: 272 seconds]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: No route to host]
timonv has joined #ruby
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
jamesaanderson has joined #ruby
thepumpkin has joined #ruby
wallerdev has quit [Quit: wallerdev]
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
Bulters has quit [Remote host closed the connection]
thepumpkin has joined #ruby
Bulters has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
aagdbl0 has joined #ruby
vlad_starkov has joined #ruby
aagdbl has quit [Ping timeout: 248 seconds]
vlad_starkov has quit [Remote host closed the connection]
jlast has joined #ruby
rellin has joined #ruby
jrhe has quit [Quit: jrhe]
thepumpkin has quit [Ping timeout: 240 seconds]
tharindu has joined #ruby
huttan has joined #ruby
larissa has quit [Quit: Leaving]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
freezey has quit [Remote host closed the connection]
thepumpkin has joined #ruby
freezey has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
DonRichie has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
tagrudev has joined #ruby
hiyosi has joined #ruby
thepumpkin has joined #ruby
parduse has quit []
huttan has quit [Ping timeout: 264 seconds]
jlast has quit [Ping timeout: 240 seconds]
thepumpkin has quit [Read error: Connection reset by peer]
nbrosnahan has joined #ruby
thepumpkin has joined #ruby
yfeldblu_ has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
freezey has quit [Ping timeout: 272 seconds]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
parduse has joined #ruby
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 272 seconds]
hiyosi has quit [Ping timeout: 252 seconds]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: No route to host]
yfeldblu_ has quit [Ping timeout: 248 seconds]
<nobitanobi> I have added VCR and Webmock in the gem I am doing, but when running the test it still does HTTP request and is not creating any cassettes/fixtures. Here is the code:
thepumpkin has joined #ruby
DonRichie has quit [Quit: Verlassend]
sergicles has quit [Quit: sergicles]
amritanshu_RnD has joined #ruby
thepumpkin has quit [Read error: No route to host]
matsumoto_r has left #ruby ["Leaving..."]
thepumpkin has joined #ruby
pw3 has quit [Ping timeout: 250 seconds]
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
Kricir has joined #ruby
pranny has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aagdbl0 has quit [Ping timeout: 264 seconds]
noop has joined #ruby
rodan- has joined #ruby
<rjhunter> nobitanobi: Have you configured VCR anywhere? eg VCR.configure {|c| c.hook_into :webmock }
cheeti has joined #ruby
<nobitanobi> rjhunter, yup. Is under spec/support/vcr.rb
thepumpkin has quit [Ping timeout: 272 seconds]
<nobitanobi> VCR.configure do |c|
<nobitanobi> c.cassette_library_dir = 'fixtures/vcr_cassettes'
<nobitanobi> c.stub_with :webmock
<nobitanobi> end
<nobitanobi> ups, sorry for multiple line.
<cheeti> hi how to use Fragment Caching in rails 4?
mephux has joined #ruby
<bnagy> cheeti: #rubyonrails
timonv has quit [Ping timeout: 264 seconds]
thepumpkin has joined #ruby
<cheeti> <bnagy> yes
artm has quit [Ping timeout: 252 seconds]
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
<nobitanobi> rjhunter, I've changed stub_with to hook_into... Same thing
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
rodan- has quit [Ping timeout: 272 seconds]
thepumpkin has quit [Read error: No route to host]
<bnagy> :) no, that's the name of the channek tyou;l you should try :)
thepumpkin has joined #ruby
<cheeti> <bnagy> i have this code in my app https://gist.github.com/mamatharao/7409027
thepumpkin has quit [Read error: Connection reset by peer]
ghostjangles has quit [Quit: Leaving]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: No route to host]
zz_michael_mbp is now known as michael_mbp
<nobitanobi> rjhunter, I think it's because the config file is not being loaded.
thepumpkin has joined #ruby
<bnagy> eesh my Internet :/
<bnagy> cheeti: you need to ask in #rubyonrails
<nobitanobi> it's under spec/support/vcr.rb, but the test does not know it
<bnagy> ie not here
dm_apOc has quit [Quit: WeeChat 0.3.2]
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
cheeti has quit [Quit: Page closed]
Drewch has joined #ruby
apeiros has quit [Remote host closed the connection]
thepumpkin has quit [Read error: No route to host]
thepumpkin has joined #ruby
sungai_keruh has joined #ruby
cheeti has joined #ruby
cheeti has quit [Client Quit]
thepumpkin has quit [Read error: Connection reset by peer]
maxiaojun has joined #ruby
<rjhunter> nobitanobi: if the test depends on spec/support/vcr.rb being loaded, then I suggest `require`-ing it in the test
thepumpkin has joined #ruby
<nobitanobi> rjhunter, yep.
<nobitanobi> actually, I already require 'spec_helper'
<nobitanobi> I should require /support folder in spec_helper
thepumpkin has quit [Read error: Connection reset by peer]
aspires has quit [Quit: sudo making a sandwich]
thepumpkin has joined #ruby
tewmten has joined #ruby
cheeti has joined #ruby
darkstar| has quit []
cheeti has quit [Client Quit]
michael_mbp is now known as zz_michael_mbp
lyanchih has quit [Quit: lyanchih]
mrsolo has quit [Quit: This computer has gone to sleep]
mmcdaris has joined #ruby
cheeti has joined #ruby
WickedAtMelb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cheeti has quit [Client Quit]
zz_jrhorn424 is now known as jrhorn424
cheeti has joined #ruby
lyanchih has joined #ruby
cheeti has quit [Client Quit]
nism-pi has joined #ruby
cheeti has joined #ruby
thepumpkin has quit [Ping timeout: 240 seconds]
reset has joined #ruby
bousquet has joined #ruby
bousquet has quit [Remote host closed the connection]
bousquet has joined #ruby
<jrhorn424> is it a good idea to test negative behavior, even if I'm not defining a custom error?
thepumpkin has joined #ruby
<jrhorn424> <- new to testing
<cheeti> it's not going to ruby on rails page why it's redirecting to ruby page, when i login i am entering "ruby on rails" as channel name
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
<bousquet> cheeti: the channel name for rails is all one word: rubyonrails
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
aryaching has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
ayaz has joined #ruby
thepumpkin has joined #ruby
<cheeti> <bousquet> when i enter thi s it's giving this error "#rubyonrails Cannot join channel (+r) - you need to be identified with services"
petey has quit [Remote host closed the connection]
thepumpkin has quit [Read error: Connection reset by peer]
Fuzai has joined #ruby
<bousquet> cheeti: You need to register your nick probably. http://meta.wikimedia.org/wiki/IRC/Instructions#Register_your_nickname.2C_identify.2C_and_enforce
<sevenseacat> you need to have a registered freenode account
thepumpkin has joined #ruby
petey has joined #ruby
Fuzai has quit [Remote host closed the connection]
thepumpkin has quit [Read error: Connection reset by peer]
reset has quit [Ping timeout: 272 seconds]
thepumpkin has joined #ruby
iliketurtles has joined #ruby
mrsolo has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
tharindu has quit [Quit: Leaving...]
thepumpkin has quit [Read error: No route to host]
thepumpkin has joined #ruby
jrhe has joined #ruby
petey has quit [Ping timeout: 248 seconds]
thepumpkin has quit [Read error: No route to host]
coderhs has joined #ruby
thepumpkin has joined #ruby
jrhe has left #ruby [#ruby]
Kricir has quit [Read error: Connection reset by peer]
thepumpkin has quit [Ping timeout: 245 seconds]
rosendale has joined #ruby
artm has joined #ruby
pithagorians has quit [Remote host closed the connection]
thepumpkin has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
tjad has quit [Ping timeout: 244 seconds]
mrsolo has quit [Read error: Connection reset by peer]
thepumpkin has quit [Read error: Connection reset by peer]
mrsolo has joined #ruby
thepumpkin has joined #ruby
apeiros has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
mr`spock has quit [Quit: Leaving]
Biohazard has quit [Ping timeout: 245 seconds]
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
Lewix has quit [Remote host closed the connection]
thepumpkin has quit [Read error: Connection reset by peer]
bubbajones has joined #ruby
thepumpkin has joined #ruby
thepumpkin has quit [Read error: No route to host]
thepumpkin has joined #ruby
tharindu has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
bio has joined #ruby
thepumpkin has joined #ruby
ananthakumaran1 has joined #ruby
jprovazn has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
Kricir has joined #ruby
bigkevmcd has joined #ruby
ananthakumaran has quit [Ping timeout: 248 seconds]
threesome has joined #ruby
thepumpkin has quit [Ping timeout: 264 seconds]
Kricir has quit [Ping timeout: 272 seconds]
DouweM has quit [Ping timeout: 264 seconds]
s3itz has quit [Quit: Textual IRC Client: www.textualapp.com]
hiyosi has joined #ruby
thepumpkin has joined #ruby
nobitanobi has quit [Remote host closed the connection]
thepumpkin has quit [Read error: Connection reset by peer]
JonahR has quit [Quit: jonahR]
thepumpkin has joined #ruby
noname001 has quit [Ping timeout: 248 seconds]
zz_michael_mbp is now known as michael_mbp
thepumpkin has quit [Read error: Connection reset by peer]
ayaz has quit [Ping timeout: 240 seconds]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
zeade has quit [Quit: Leaving.]
hiyosi has quit [Ping timeout: 252 seconds]
thepumpkin has quit [Read error: No route to host]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
bousquet has quit []
RichardBaker has joined #ruby
RichardBaker has quit [Remote host closed the connection]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
tjad has joined #ruby
thepumpkin has joined #ruby
jprovazn has quit [Read error: Connection reset by peer]
braoru has joined #ruby
kevinykchan has joined #ruby
leonidlm has joined #ruby
artm has quit [Ping timeout: 272 seconds]
rodan- has joined #ruby
dagobah has joined #ruby
zoee has joined #ruby
Kneferilis has quit [Ping timeout: 252 seconds]
Kneferilis has joined #ruby
thepumpkin has quit [Ping timeout: 272 seconds]
gr33n7007h has quit [Read error: No route to host]
thepumpkin has joined #ruby
h_kon has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
relix has joined #ruby
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
TheShaun|AFK is now known as TheShaun
thepumpkin has joined #ruby
rodan- has quit [Ping timeout: 264 seconds]
kevinykchan has quit [Ping timeout: 248 seconds]
ayaz has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
mrfoto has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
elcontrastador has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hanmac has joined #ruby
thepumpkin has joined #ruby
mrfoto has quit [Client Quit]
thepumpkin has quit [Read error: Connection reset by peer]
mrfoto has joined #ruby
thepumpkin has joined #ruby
zigomir has joined #ruby
sheap has quit [Quit: Lost terminal]
merica has quit []
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
Kneferilis has quit [Quit: Leaving]
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
blaxter_ has joined #ruby
Boohbah has quit [Remote host closed the connection]
thepumpkin has quit [Read error: No route to host]
Boohbah has joined #ruby
thepumpkin has joined #ruby
Kneferilis has joined #ruby
shay- has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
samfisher has quit [Ping timeout: 264 seconds]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
<shay-> hi guys, is there a nice way to start several bash scripts in parallel and catch their output and user prompts?
thepumpkin has joined #ruby
vlad_starkov has joined #ruby
jprovazn has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
coderhs has quit [Ping timeout: 240 seconds]
danguita has joined #ruby
reset has joined #ruby
vlad_starkov has joined #ruby
Gooder has joined #ruby
thepumpkin has quit [Ping timeout: 240 seconds]
rosendale has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
mirelez has joined #ruby
thepumpkin has joined #ruby
reset has quit [Ping timeout: 252 seconds]
maxiaojun has quit [Quit: maxiaojun]
thepumpk_ has joined #ruby
<jrhorn424> shay-: You could use Kernel#system and threads. just assign output to a variable.
thepumpk_ has quit [Read error: No route to host]
RichardBaker has joined #ruby
thepumpk_ has joined #ruby
RichardBaker has quit [Client Quit]
thepumpk_ has quit [Read error: No route to host]
obs has joined #ruby
thepumpk_ has joined #ruby
thepumpk_ has quit [Read error: Connection reset by peer]
aganov has joined #ruby
s3itz has joined #ruby
claymore has joined #ruby
thepumpk_ has joined #ruby
thepumpk_ has quit [Read error: Connection reset by peer]
thepumpkin has quit [Ping timeout: 244 seconds]
thepumpkin has joined #ruby
einarj has joined #ruby
tziOm has joined #ruby
canoon has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
DouweM has joined #ruby
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
mirelez has quit [Remote host closed the connection]
thepumpkin has quit [Read error: Connection reset by peer]
hiall has quit [Quit: hiall]
thepumpkin has joined #ruby
<apeiros> jrhorn424: system does not return the output
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
TMM has joined #ruby
<jrhorn424> apeiros: you're right. shay- should use %x or backticks http://stackoverflow.com/a/6338954/402618
gonska has joined #ruby
<apeiros> or popen or spawn
<jrhorn424> sorry about that
<jrhorn424> didn't know about those. ;)
<jrhorn424> thx
dnyy has quit []
Thanatermesis has joined #ruby
Kricir has joined #ruby
justsee has quit [Ping timeout: 265 seconds]
<shay-> jrhorn424: thanks! I am going to take a look on that.
huttan has joined #ruby
coderhs has joined #ruby
<jrhorn424> np. you should probably thank apeiros, though. ;)
<shay-> ah right, didn't read this -.-' thanks apeiros :)
err_ok has joined #ruby
thepumpkin has quit [Ping timeout: 272 seconds]
codenapper has joined #ruby
drumusician has joined #ruby
<apeiros> yw
thepumpkin has joined #ruby
sbos99 has joined #ruby
alup has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
kaspergrubbe has joined #ruby
Kricir has quit [Ping timeout: 264 seconds]
Thanatermesis has quit [Quit: ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ]
thepumpkin has joined #ruby
<shay-> apeiros: is the output returned "live" or just when the command finished? I really need it live, because the scripts are prompting for user input and I want to forward the prompts with ruby to the user in a nice stylish way. And then send the answer back to the script
thepumpkin has quit [Read error: Connection reset by peer]
<apeiros> shay-: with `` it blocks until the command is finished
thepumpkin has joined #ruby
<apeiros> with popen/spawn its just subject to whatever buffering is in place (e.g. by your command plus usually line buffering on rubys side)
thepumpkin has quit [Read error: Connection reset by peer]
<bnagy> sounds like this is going to end up with popen
huttan has quit [Ping timeout: 272 seconds]
<apeiros> line buffering on rubys side probably only if you use e.g. #gets.
<bnagy> but in my experience these kind of wrappers are a little fiddly :<
<shay-> open3.popen looks quite good, but I want to make sure this fits for me, so i save some time =)
thepumpkin has joined #ruby
Kneferilis has quit [Quit: Leaving]
<shay-> thanks for all the ansers, it is realyl grate to have some helping hands =)
ayaz has quit [Ping timeout: 264 seconds]
thepumpkin has quit [Read error: Connection reset by peer]
<bnagy> if they're bash scripts, honestly - just port them
VTLob has joined #ruby
Drewch has quit [Quit: Computer has gone to sleep.]
<bnagy> you'll make life easier instead of adding a ruby layer to things and making it even more complex
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
nomenkun has joined #ruby
<shay-> bnagy: my problem is that my colleagus want to write only bash scripts. and i want to provide a nice framework to execute this scripts in a nice way in the right order and parallel
<shay-> I tried to do that with bash, but this is horror -.-
thepumpkin has joined #ruby
<bnagy> well you should sort out your team
<bnagy> but imho anyone still writing nontrivial stuff in bash is batshit insane
thepumpkin has quit [Read error: Connection reset by peer]
<apeiros> +1
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
Tearan has quit [Quit: Sleepy Badger....]
banisterfiend has joined #ruby
<bnagy> getting threads working right is hard enough without IO issues :/
<shay-> bnagy: i told my boss but he's not listenting, I guess he likes fighting with shit :D
ycy has quit [Quit: WeeChat 0.4.1]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
andikr has joined #ruby
d45h has joined #ruby
jrhorn424 is now known as zz_jrhorn424
<shay-> bnagy: but good to know that mostly all guys are sharing my opinion
thepumpkin has joined #ruby
Xeago has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
<apeiros> anything which has even a single control structure in it should IMO not be written in bash.
thepumpkin has joined #ruby
<Hanmac> good that my libs are not thread safe so i mostly do not need to care about that ;P
mrsolo has quit [Quit: This computer has gone to sleep]
echevemaster has quit [Read error: Connection reset by peer]
ahawkins has joined #ruby
mrsolo has joined #ruby
noname001 has joined #ruby
zz_tsykoduk is now known as tsykoduk
weszlem has joined #ruby
justsee has joined #ruby
thepumpkin has quit [Ping timeout: 272 seconds]
hiyosi has joined #ruby
<apeiros> hah, I love this - after "the DB asn an API", I now have "the file system as an API"
jhaals has joined #ruby
thepumpkin has joined #ruby
sergicles has joined #ruby
cheeti has quit [Quit: Page closed]
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
<Hanmac> apeiros: hm i dont get the reference ..
mmcdaris has quit [Quit: mmcdaris]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: No route to host]
<apeiros> it wasn't a reference.
<apeiros> some people abuse the database as an API
<apeiros> (and the DB isn't really an API, so that's *bad*)
rickruby has quit [Ping timeout: 264 seconds]
thepumpkin has joined #ruby
<apeiros> and in this current project, I have people who abuse the file system as an API
<apeiros> (which is even worse than the DB)
camilasan has joined #ruby
<apeiros> "you have to copy those files in that order and we then poll for changes on the FS"
thepumpkin has quit [Read error: Connection reset by peer]
<apeiros> -- awesome
thepumpkin has joined #ruby
Lewix has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
hiyosi has quit [Ping timeout: 264 seconds]
thepumpkin has joined #ruby
artm has joined #ruby
thepumpk_ has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
tsykoduk is now known as zz_tsykoduk
thepumpk_ has quit [Read error: Connection reset by peer]
mihirrege has joined #ruby
thepumpkin has joined #ruby
ephemerian has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
coder_neo has joined #ruby
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
<Hanmac> apeiros: i am working at WE on an sfml-ruby binding, last time i added Audio stuff, and one of the classes can be marshal dumped ;P
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thepumpkin has joined #ruby
funburn has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
Kneferilis has joined #ruby
rodan- has joined #ruby
thepumpkin has joined #ruby
_Andres has joined #ruby
aagdbl has joined #ruby
tesuji has quit [Ping timeout: 264 seconds]
Thanatermesis has joined #ruby
thepumpkin has quit [Ping timeout: 245 seconds]
rodan- has quit [Ping timeout: 264 seconds]
aryaching has quit [Ping timeout: 265 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
zz_scottstamp is now known as scottstamp
gyre007 has joined #ruby
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
banjara has joined #ruby
obs has quit [Quit: Saliendo]
thepumpkin has quit [Read error: Connection reset by peer]
vadviktor has quit [Disconnected by services]
thepumpkin has joined #ruby
vadviktor__ is now known as vadviktor
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
vadviktor_ has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
brennanMKE has quit [Remote host closed the connection]
thepumpkin has joined #ruby
brennanMKE has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
Astral__ has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
sungai_keruh has quit [Quit: Leaving]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
marr has joined #ruby
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
reset has joined #ruby
Bulters has left #ruby [#ruby]
thepumpkin has joined #ruby
brennanMKE has quit [Ping timeout: 245 seconds]
Astral_ has quit [Ping timeout: 264 seconds]
zz_jrhorn424 is now known as jrhorn424
<jrhorn424> I'm trying to get [:foo, :bar, :baz] to work as an arglist... what's the idiom for "dropping the brackets"?
<jrhorn424> well, i guess that would be splat, right? but is there a way to post-fix splat?
<tobiasvl> post-fix?
<bnagy> drop brackets?
<tobiasvl> he wants to splat the array
<tobiasvl> but i don't understand what he means by post-fixing it
thepumpkin has quit [Ping timeout: 240 seconds]
reset has quit [Ping timeout: 264 seconds]
<tobiasvl> jrhorn424: do you need to put the * after the array instead of before? why?
<jrhorn424> tobiasvl: n/m, i thought i tried this earlier and it didn't work, but it seems to work now: Struct.new(*[:foo, :bar, :baz])
scottstamp is now known as zz_scottstamp
<tobiasvl> yes, that should work fine
banjara has left #ruby [#ruby]
parduse has quit [Remote host closed the connection]
blaxter_ is now known as blaxter
parduse has joined #ruby
<bnagy> I have never in my life used this class
<jrhorn424> tobiasvl: any idea why this won't work? where's the \n coming from? https://eval.in/65755
phansch has joined #ruby
thepumpkin has joined #ruby
Kneferilis has quit [Quit: Leaving]
thepumpkin has quit [Read error: Connection reset by peer]
gyre007 has quit [Remote host closed the connection]
thepumpkin has joined #ruby
s3itz has quit [Quit: Textual IRC Client: www.textualapp.com]
thepumpkin has quit [Read error: Connection reset by peer]
gyre007 has joined #ruby
thepumpkin has joined #ruby
Kricir has joined #ruby
<tobiasvl> jrhorn424: you can't do that without an assignment
<jrhorn424> ah!
thepumpkin has quit [Read error: Connection reset by peer]
<jrhorn424> i was in explore-mode. or something. that makes sense, thanks!
<tobiasvl> >> a = *(%w[foo bar baz].map(&:to_sym))
<eval-in_> tobiasvl => [:foo, :bar, :baz] (https://eval.in/65757)
thepumpkin has joined #ruby
parduse has quit [Remote host closed the connection]
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
<Hanmac> PS: you need to be careful about to_sym … never EVER run it on user input, otherwise it can flood your system
<jrhorn424> excellent! now i have a new test failure.
parduse has joined #ruby
zoee has quit [Quit: This computer has gone to sleep]
thepumpkin has quit [Read error: Connection reset by peer]
<jrhorn424> hanmac: didn't know that. it's in a private method, though. :)
thepumpkin has joined #ruby
Kneferilis has joined #ruby
<bnagy> doesn't matter where it is
thepumpkin has quit [Read error: Connection reset by peer]
<bnagy> also, ruby private methods are more figleaf than locked door
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
<Hanmac> jrhorn424: the problem: to_sym creates new symbols, and for sample 1000.times {|i| "abc#{i}".to_sym } creates 1000 symbols that cant be destroyed
mihirrege has quit [Ping timeout: 240 seconds]
thepumpkin has joined #ruby
gyre007 has quit [Ping timeout: 272 seconds]
Kricir has quit [Ping timeout: 244 seconds]
thepumpkin has quit [Read error: Connection reset by peer]
Elhu has joined #ruby
Kneferilis has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
fntzr has joined #ruby
<DouweM> hanmac: thanks for reminding me of that fact, just found a case where a param was #to_sym'ed. :)
ephemerian has quit [Quit: Leaving.]
thepumpkin has quit [Read error: Connection reset by peer]
huttan has joined #ruby
<jrhorn424> hanmac: i see. i think for this problem, i'll be ok. i should be the only one to run this code, and I know my input.
thepumpkin has joined #ruby
staafl has quit [Read error: Connection reset by peer]
<jrhorn424> i appreciate the advice though, I'd never thought of it.
sevenseacat has quit [Remote host closed the connection]
staafl has joined #ruby
ghr has joined #ruby
err_ok has quit [Quit: Textual IRC Client: www.textualapp.com]
err_ok has joined #ruby
WickedAtMelb has joined #ruby
WickedAtMelb has quit [Max SendQ exceeded]
zoee has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
<Hanmac> thats a reason why i use for one of my projects: @height = (node[:height] || node["height"]).to_i
err_ok has quit [Client Quit]
leonidlm has quit [Ping timeout: 244 seconds]
err_ok has joined #ruby
einarj has quit [Remote host closed the connection]
parduse has quit [Remote host closed the connection]
thepumpkin has quit [Ping timeout: 248 seconds]
parduse has joined #ruby
mrsolo has joined #ruby
thepumpkin has joined #ruby
Kneferilis has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
parduse has quit [Read error: Connection reset by peer]
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
shaunbaker has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
shaunbaker has quit [Remote host closed the connection]
aep has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
shaunbaker has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
nomenkun has quit [Remote host closed the connection]
aep has joined #ruby
Guest27694 has joined #ruby
Guest27694 is now known as parduse
thepumpkin has quit [Read error: Connection reset by peer]
parduse is now known as Guest24728
thepumpkin has joined #ruby
_Andres has quit [Read error: Connection reset by peer]
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
brennanMKE has joined #ruby
znode has quit [Quit: Computer has gone to sleep.]
thepumpkin has joined #ruby
znode has joined #ruby
starchild_ has joined #ruby
psyl0n has joined #ruby
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
hiyosi has joined #ruby
mikecmpbll has joined #ruby
shaunbaker has quit [Ping timeout: 272 seconds]
Guest24728 has quit [Read error: Connection reset by peer]
brennanMKE has quit [Ping timeout: 245 seconds]
leonidlm has joined #ruby
thepumpkin has quit [Ping timeout: 272 seconds]
thepumpkin has joined #ruby
znode has quit [Ping timeout: 272 seconds]
hiyosi has quit [Ping timeout: 264 seconds]
thepumpkin has quit [Read error: No route to host]
workmad3 has joined #ruby
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
TigerWolf has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
thepumpkin has joined #ruby
nanothief_ has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
agent_white has quit [Ping timeout: 264 seconds]
nanothief has quit [Read error: Connection reset by peer]
Elhu has quit [Quit: Computer has gone to sleep.]
rodan- has joined #ruby
bio has quit [Ping timeout: 264 seconds]
Elhu has joined #ruby
bio has joined #ruby
einarj has joined #ruby
simoz has joined #ruby
xk_id has quit [Quit:
rodan- has quit [Ping timeout: 264 seconds]
khushildep has joined #ruby
lkba has quit [Ping timeout: 272 seconds]
phansch has quit [Ping timeout: 240 seconds]
reset has joined #ruby
srji has joined #ruby
pardusf has joined #ruby
pardusf has quit [Changing host]
pardusf has joined #ruby
pardusf is now known as Guest56903
nilcolor has quit [Remote host closed the connection]
khushildep has quit [Ping timeout: 245 seconds]
reset has quit [Ping timeout: 240 seconds]
relix has joined #ruby
timonv has joined #ruby
khushildep has joined #ruby
Guest56903 has quit [Remote host closed the connection]
<Mon_Ouie> Hm? What's that $… bit at the end?
hogeo has quit [Remote host closed the connection]
heftig has quit [Quit: Quitting]
Lewix has quit [Remote host closed the connection]
mihirrege has joined #ruby
tekacs has quit [Quit: Disappearing... *poof*]
<apeiros> redirect
vlad_starkov has joined #ruby
<apeiros> also helps me remember why he was banned - and thus less work to lift the ban (no checking back)
yacks has joined #ruby
<Mon_Ouie> Aha. I've used memos to tell them why they were banned in this case.
mrsolo has quit [Quit: This computer has gone to sleep]
tekacs has joined #ruby
<apeiros> problem is - the memo should be somehow shared across ops
<apeiros> that's also why I'd like to finally set up a bot to do the banning
<apeiros> could implement ban duration and it could automatically record the last N messages from/to the user
<apeiros> and could annotate the ban
<apeiros> which could also be used for the kick in the kickban part :)
<apeiros> sad thing is - I had that, as a plugin for xchat (ok, not shared across ops, but at least for myself)
sayan has quit [Ping timeout: 272 seconds]
err_ok has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
coder_neo has quit [Ping timeout: 272 seconds]
aag1091 has joined #ruby
pranny has quit [Quit: Leaving.]
sergicles has quit [Quit: sergicles]
tvw has joined #ruby
<Hanmac> "Ruby: In one line, you tell your foot to be shot and it is."
<apeiros> correct.
<apeiros> and that's *good*.
tvw has quit [Client Quit]
<workmad3> Foot.shoot; Foot.is_shot? => true
<apeiros> naaaa
<apeiros> Foot.shoot!
<apeiros> since you should be careful :)
obs has joined #ruby
<workmad3> what's the non-bang version do?
<workmad3> no bang without a non-bang!
<Hanmac> Ruby on Rails: You start to think about shooting yourself in the foot only to discover that someone has already shot your foot for you.
<apeiros> I have bang-only in various places
obs has quit [Client Quit]
obs has joined #ruby
leonidlm has quit [Read error: Operation timed out]
mihirrege has quit [Remote host closed the connection]
Guedes0 has joined #ruby
Guedes0 has quit [Client Quit]
barratt has joined #ruby
sayan has joined #ruby
weszlem has quit []
Guedes has joined #ruby
aagdbl0 has joined #ruby
thepumpk_ has joined #ruby
aagdbl has quit [Ping timeout: 248 seconds]
vlad_starkov has quit [Remote host closed the connection]
thepumpk_ has quit [Read error: Connection reset by peer]
timonv has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
Mars__ has joined #ruby
srji has quit [Remote host closed the connection]
timonv has joined #ruby
ua has joined #ruby
tvw has joined #ruby
adambeynon has joined #ruby
spider-mario has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
nomenkun has joined #ruby
vlad_starkov has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 272 seconds]
timonv has joined #ruby
anderse has joined #ruby
YaNakilon has joined #ruby
nomenkun has quit [Ping timeout: 272 seconds]
ephemerian has joined #ruby
Mars__ has quit [Remote host closed the connection]
pranny has joined #ruby
Mars__ has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
brennanMKE has joined #ruby
mhaivieru has joined #ruby
mhaivieru has left #ruby [#ruby]
khushildep has quit [Quit: khushildep]
leonidlm has joined #ruby
hiyosi has joined #ruby
khushildep has joined #ruby
Mars__ has quit [Ping timeout: 240 seconds]
tvw has quit []
brennanMKE has quit [Ping timeout: 272 seconds]
hiyosi has quit [Ping timeout: 245 seconds]
jbpros has joined #ruby
rickruby has joined #ruby
sepp2k has joined #ruby
solars has joined #ruby
<solars> does anyone have vim settings that fix the ruby vim hilighting? on my i7 with ondemand governor it's so terribly slow that I can't work
lyanchih has quit [Ping timeout: 245 seconds]
Guest2149 has joined #ruby
shaunbaker has joined #ruby
blackmesa has joined #ruby
<Hanmac> apeiros: someone asked to add a λ method to the ruby parser, but matz says no ;P
jbpros has quit [Client Quit]
YaNakilon has left #ruby [#ruby]
<Mon_Ouie> >> alias λ lambda; λ { |x| x * 2 }.call 3
<eval-in_> Mon_Ouie => 6 (https://eval.in/65792)
khushildep has quit [Quit: getting the flock() outta here]
zoee has quit [Quit: This computer has gone to sleep]
rodan- has joined #ruby
weszlem has joined #ruby
graydot has joined #ruby
krnflake has quit [Ping timeout: 252 seconds]
pranny has quit [Quit: Leaving.]
F1skr has joined #ruby
lxsameer has joined #ruby
<lxsameer> hi how can i access the parent class in nested class ?
rodan- has quit [Ping timeout: 265 seconds]
weszlem has quit []
olivier_bK has joined #ruby
nomenkun has joined #ruby
tzzzzzz has joined #ruby
funburn has quit [Quit: funburn]
weszlem has joined #ruby
simoz has quit [Ping timeout: 272 seconds]
h_kon has quit [Remote host closed the connection]
<Hanmac> tobiasvl: like you live in a street, can you access other houses inside the street?
h_kon has joined #ruby
<shay-> how can I run two processes in parallel with popen3?
h_kon has quit [Read error: Connection reset by peer]
reset has joined #ruby
h_kon has joined #ruby
ldnunes has joined #ruby
lkba has joined #ruby
reset has quit [Ping timeout: 264 seconds]
Advocation has joined #ruby
jrhorn424 is now known as zz_jrhorn424
F1skr has quit [Ping timeout: 252 seconds]
Advocation has quit [Client Quit]
BizarreCake has joined #ruby
drumusician has quit [Ping timeout: 272 seconds]
zoee has joined #ruby
leonidlm has quit [Ping timeout: 272 seconds]
jokke has quit [Quit: WeeChat 0.4.2]
n4dir has joined #ruby
<mrfoto> im having a bit of a mental block
<mrfoto> how would you wrap a variable in html tags
<mrfoto> the tag can be dynamic (p, div, b,...)
jokke has joined #ruby
<banisterfiend> mrfoto wrap_with_tag("div", a_variable)
<workmad3> mrfoto: rails question?
<mrfoto> yes
eka has joined #ruby
<Hanmac> mrfoto: #rubyonrails
<mrfoto> can i do wrap_with_tag in model?
Kricir has joined #ruby
<mrfoto> oh, sorry
<workmad3> mrfoto: a) #rubyonrails, b) content_tag(:whatever_tag, string)
simoz has joined #ruby
kirun has joined #ruby
simoz2 has joined #ruby
Kricir has quit [Ping timeout: 245 seconds]
allanm has quit [Read error: Connection reset by peer]
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
starchild_ has quit [Ping timeout: 244 seconds]
simoz has quit [Ping timeout: 244 seconds]
solars has quit [Read error: Operation timed out]
netman_ has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 272 seconds]
kaspergrubbe has joined #ruby
netman_ has left #ruby [#ruby]
bluenemo has joined #ruby
lawnchair has joined #ruby
hiall has joined #ruby
leonidlm has joined #ruby
<lawnchair> can someone suggest a good online ruby class (pay is fine)
<Hanmac> Array is a good ruby class ;D
<Hanmac> but Hash is good too
timonv_ has joined #ruby
<lawnchair> grrr :)
<banisterfiend> lawnchair codeschool
<lawnchair> banisterfiend, thank you
ij has joined #ruby
simoz2 has quit [Ping timeout: 245 seconds]
rb2k has joined #ruby
xk_id has joined #ruby
<rb2k> Within a library: Having a base class with all the requires or putting the requires in the classes that need them. Your opinions? :)
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
<ij> Can I make enumerable methods outside of enumerator module?
F1skr has joined #ruby
RaCx has joined #ruby
<Hanmac> ij you mean the Enumerable module, and i dont think so, i mean the methods need to be defined in Enumerable to be Enumerable methods? oO
aagdbl0 has quit [Quit: Leaving]
nfk has joined #ruby
<ij> :[
aagdbl has joined #ruby
Astral_ has joined #ruby
<Hanmac> or how can they be Enumerable methods when you do not define them in Enumerable?
solars has joined #ruby
Astralum has joined #ruby
<ij> Well, arrays and hashes are enumerable.
<Hanmac> they include the Enumerable module
h_kon has quit [Remote host closed the connection]
shredding has joined #ruby
Astral__ has quit [Ping timeout: 272 seconds]
<apeiros> rb2k: everything should require what it needs. that doesn't prohibit having a convenience file which contains all you need with a single require.
<rb2k> apeiros: doesn't that violate DRY a bit
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<apeiros> rb2k: no
allanm has joined #ruby
Astral_ has quit [Ping timeout: 272 seconds]
mikecmpbll has joined #ruby
brennanMKE has joined #ruby
hiyosi has joined #ruby
falood has quit [Remote host closed the connection]
<ij> hanmac: What I wanted to find is: Kernel#to_enum
drumusician has joined #ruby
falood has joined #ruby
hello_world has joined #ruby
<tobiasvl> ITYM Object#to_enum ?
<tobiasvl> anyway, ij, what exactly is it you want to do?
<ij> I wanted to make an iterator.
<tobiasvl> what's an "enumerable method"?
finnomenon has joined #ruby
<tobiasvl> make what an iterator?
coderhs has quit [Ping timeout: 244 seconds]
<ij> My object.
<finnomenon> I grab mails with net/pop is there a good way of parsing them?
tharindu_ has joined #ruby
fluffheadsr has joined #ruby
rickruby has quit []
<tobiasvl> ij: okay. then you include Enumerable.
<ij> Anyway, I did exactly what I wanted. I made an each method, then called to_enum on it, and then I'm able to do all the enumerable shenanigans with it.
fluffheadsr is now known as Guest1542
<ij> No, I do not need to includ it.
<tobiasvl> yes, you should include Enumerable
<ij> And yes — you're right, Object#to_enum.
<tobiasvl> in order to make your object enumerable
<tobiasvl> making an each method and then calling to_enum on that is pretty hacky
brennanMKE has quit [Ping timeout: 272 seconds]
<ij> It works.
<ij> Why is it hacky?
hiyosi has quit [Ping timeout: 244 seconds]
Advocation has joined #ruby
tharindu has quit [Ping timeout: 244 seconds]
falood has quit [Ping timeout: 240 seconds]
amritanshu_RnD has quit [Quit: Leaving]
<tobiasvl> because now your object is not an enumerator.
Hanmac has quit [Quit: Leaving.]
amritanshu_RnD has joined #ruby
drumusician has quit [Ping timeout: 245 seconds]
<ij> Does it need to be?
<tobiasvl> i don't know. maybe not? you said that was what you wanted, though.
<ij> I actually think it is.
Astral__ has joined #ruby
shvelo has joined #ruby
Mars__ has joined #ruby
<ij> It's an enumerator with the reference to my obj stored.
<tobiasvl> what is?
<DouweM> finnomenon: the mail gem should help you with that
marr has quit [Ping timeout: 245 seconds]
<tobiasvl> well, it's not an enumerator. it doesn't implement any enumerator methods, except each and to_a.
falood has joined #ruby
Astralum has quit [Ping timeout: 264 seconds]
<tobiasvl> had you included Enumerable on that class, you would've gotten all other enumerator methods for free
hello_world has quit [Ping timeout: 250 seconds]
<tobiasvl> so i don't really understand why you're arguing against it
<ij> I'm not sure I understand how one would go about archieving the same functionality as in my paste your way. Could you show, please?
falood has quit [Remote host closed the connection]
<finnomenon> DouweM: thanks
rodan- has joined #ruby
falood has joined #ruby
Mars__ has quit [Ping timeout: 240 seconds]
F1skr has quit [Quit: WeeChat 0.4.2]
petey has joined #ruby
aagdbl has quit [Quit: Leaving.]
zoee has quit [Quit: This computer has gone to sleep]
falood has quit [Ping timeout: 240 seconds]
rodan- has quit [Ping timeout: 240 seconds]
popl has quit [Ping timeout: 272 seconds]
<tobiasvl> well, the exact same functionality? a static class that always contains three 3's?
zoee has joined #ruby
aagdbl has joined #ruby
<tobiasvl> in that case, who cares really
<ij> Make me an object, that I can call #to_a upon, which gets data iteratively from the object, and responds to enumerable methods.
RaCx has quit [Ping timeout: 240 seconds]
<tobiasvl> okay. your object doesn't do that.
RaCx has joined #ruby
platypine has joined #ruby
platypine has joined #ruby
platypine has quit [Changing host]
<tobiasvl> >> class X; include Enumerable; @members = []; def initialize(members); @members = members; end; def each; @members.each(&block); end; end
<eval-in_> tobiasvl => nil (https://eval.in/65842)
sergicles has joined #ruby
kaspergr_ has joined #ruby
reset has joined #ruby
raphaelivan has joined #ruby
leonidlm has quit [Ping timeout: 244 seconds]
tharindu_ has quit [Quit: Leaving...]
krnflake has joined #ruby
Hanmac has joined #ruby
kaspergrubbe has quit [Ping timeout: 264 seconds]
mixel has joined #ruby
samfisher has joined #ruby
samfisher has quit [Changing host]
samfisher has joined #ruby
platypine has quit [Ping timeout: 244 seconds]
psyl0n has quit [Ping timeout: 265 seconds]
parduse has joined #ruby
<tobiasvl> with a block argument to each, of course …
soba has quit [Ping timeout: 245 seconds]
Elhu has joined #ruby
reset has quit [Ping timeout: 272 seconds]
canoon has quit [Quit: Leaving]
RaCx has quit [Quit: Computer has gone to sleep.]
foolurker has joined #ruby
ragle has joined #ruby
ragle is now known as Guest4439
Banistergalaxy has joined #ruby
Guest4439 has quit [Client Quit]
RaCx has joined #ruby
parduse has quit [Remote host closed the connection]
krnflake has quit [Ping timeout: 264 seconds]
khushildep has joined #ruby
dkamioka has joined #ruby
samfisher has quit [Quit: Lost terminal]
aagdbl has quit [Quit: Leaving.]
parduse has joined #ruby
petey has quit [Remote host closed the connection]
Desert_eagle has joined #ruby
mlpinit has joined #ruby
petey has joined #ruby
Kricir has joined #ruby
blueOxigen has joined #ruby
parduse has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 240 seconds]
parduse has joined #ruby
derebos has joined #ruby
petey has quit [Ping timeout: 248 seconds]
leonidlm has joined #ruby
Kricir has quit [Ping timeout: 245 seconds]
bluOxigen has quit [Ping timeout: 272 seconds]
rickruby has joined #ruby
aag1091 has quit [Quit: Leaving]
banisterfiend has quit [Quit: Computer has gone to sleep.]
ragle_ has joined #ruby
parduse has quit [Remote host closed the connection]
parduse has joined #ruby
ragle_ has quit [Client Quit]
ragle_ has joined #ruby
obs has quit [Ping timeout: 244 seconds]
hside has joined #ruby
psyl0n has joined #ruby
jamblack has joined #ruby
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
parduse has quit [Remote host closed the connection]
parduse has joined #ruby
shaunbaker has quit [Remote host closed the connection]
shaunbaker has joined #ruby
dabos has joined #ruby
rb2k has quit [Ping timeout: 272 seconds]
<shredding> I have a question about elegance.
<shredding> This rake task has a lot of overhead, e.g. i have to type "bank_code" four times.
carif has joined #ruby
<shredding> Is there a way to express it a bit more elegant? It does not feel ruby to a ruby newbie like me :)
rb2k has joined #ruby
parduse has quit [Remote host closed the connection]
<Hanmac> shredding: you can use an Hash directly
<shredding> What do mean by that?
<Hanmac> like data = {}; data[:bank_code] = ask 'Bank Code: ', Integer … and then client = Client.create!(data)
shaunbaker has quit [Read error: Operation timed out]
ragle_ has quit [Quit: leaving]
foolurker has quit [Quit: Page closed]
Ox6abe has quit [Remote host closed the connection]
<shredding> hanmac:Yeah!
sbos99 has quit [Ping timeout: 272 seconds]
lyanchih has joined #ruby
<Hanmac> or client = Client.create!( :bank_code => ask('Bank Code: ', Integer) ) would work too (without need of extra variables)
maycon has joined #ruby
maycon has quit [Changing host]
maycon has joined #ruby
guns has joined #ruby
<shredding> hanmac: Ive tried that, but it did not work.
Ox6abe_ has joined #ruby
<shredding> I try again.
err_ok has joined #ruby
timonv_ has quit [Remote host closed the connection]
<shredding> hanmac: Ah, i have to add the (), of course
n4dir has left #ruby [#ruby]
rodan- has joined #ruby
v-nodes has joined #ruby
pardusf has joined #ruby
pardusf is now known as parduse
larissa has joined #ruby
v-nodes has left #ruby ["Leaving"]
obs has joined #ruby
tvw has joined #ruby
rodan- has quit [Remote host closed the connection]
rodan- has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
atno has quit [Ping timeout: 248 seconds]
parduse has quit [Remote host closed the connection]
<shredding> hanmac: works like a charm, thanks
parduse has joined #ruby
banisterfiend has joined #ruby
Elhu has joined #ruby
graydot has quit [Quit: graydot]
tzzzzzz has quit [Quit: tzzzzzz]
afzal_ has joined #ruby
<afzal_> hi ruby guys
brennanMKE has joined #ruby
jonathanwallace has quit [Read error: Operation timed out]
rodan- has quit [Ping timeout: 248 seconds]
hiyosi has joined #ruby
hside has quit []
parduse has quit [Remote host closed the connection]
atno has joined #ruby
petey has joined #ruby
parduse has joined #ruby
parduse has joined #ruby
parduse has quit [Changing host]
amrit_ has joined #ruby
heftig has joined #ruby
brennanMKE has quit [Ping timeout: 244 seconds]
decoponio has joined #ruby
carif has quit [Quit: Ex-Chat]
Elhu has quit [Quit: Computer has gone to sleep.]
parduse has quit [Remote host closed the connection]
danshultz has joined #ruby
ExCa|iBuR has joined #ruby
parduse has joined #ruby
phansch has joined #ruby
hiyosi has quit [Ping timeout: 245 seconds]
rickruby has quit [Remote host closed the connection]
carif has joined #ruby
dkamioka has quit [Remote host closed the connection]
dkamioka has joined #ruby
dkamioka has quit [Read error: Connection reset by peer]
Advocation has quit [Ping timeout: 272 seconds]
h_kon has joined #ruby
Astral__ has quit [Read error: Connection reset by peer]
dkamioka has joined #ruby
Astral__ has joined #ruby
Soda has quit [Remote host closed the connection]
Advocation has joined #ruby
aapzak has quit [Ping timeout: 244 seconds]
hiyosi has joined #ruby
aapzak has joined #ruby
jamblack has quit [Quit: jamblack]
petey has quit [Remote host closed the connection]
phansch has quit [Remote host closed the connection]
coderhs has joined #ruby
petey has joined #ruby
parduse has quit [Remote host closed the connection]
ragle_ has joined #ruby
ragle_ has quit [Client Quit]
leonidlm has quit [Ping timeout: 240 seconds]
ragle has joined #ruby
parduse has joined #ruby
tkuchiki has quit [Remote host closed the connection]
ragle is now known as Guest47977
petey has quit [Ping timeout: 272 seconds]
parduse is now known as Guest58197
tkuchiki has joined #ruby
shredding has quit [Quit: shredding]
jamblack has joined #ruby
Guest47977 has quit [Client Quit]
Ox6abe_ has quit [Remote host closed the connection]
Ox6abe has joined #ruby
reset has joined #ruby
lawnchair has left #ruby [#ruby]
carif has quit [Quit: Ex-Chat]
nbrosnahan has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dhruvasagar has quit [Ping timeout: 272 seconds]
bootcoder has quit [Quit: Konversation terminated!]
psyl0n has quit [Quit: psyl0n]
bootcoder has joined #ruby
tkuchiki has quit [Ping timeout: 272 seconds]
<roflmaus> I'm using Haml to create an element `.foo{id: id}`. What is the short and elegant way to make this work when `id` is not set?
Ox6abe has quit [Ping timeout: 272 seconds]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
derebos_ has joined #ruby
Guest58197 has quit [Read error: Operation timed out]
reset has quit [Ping timeout: 244 seconds]
jb41 has joined #ruby
noop has quit [Ping timeout: 265 seconds]
derebos has quit [Ping timeout: 248 seconds]
parduse has joined #ruby
sergicles has quit [Quit: sergicles]
sergicles has joined #ruby
ValicekB has quit [Remote host closed the connection]
psyl0n has joined #ruby
Rudde has joined #ruby
justsee has quit [Ping timeout: 272 seconds]
araujo has quit [Read error: Connection reset by peer]
araujo has joined #ruby
araujo has joined #ruby
araujo has quit [Changing host]
parduse has quit [Remote host closed the connection]
derebos_ has quit [Ping timeout: 264 seconds]
parduse has joined #ruby
leonidlm has joined #ruby
Kricir has joined #ruby
RaCx_ has joined #ruby
LarsSmit has joined #ruby
RaCx has quit [Ping timeout: 265 seconds]
RaCx_ is now known as RaCx
ragle_ has joined #ruby
aagdbl has joined #ruby
shaunbaker has joined #ruby
ragle_ has quit [Client Quit]
ValicekB has joined #ruby
Kricir has quit [Ping timeout: 240 seconds]
parduse has quit [Remote host closed the connection]
ragle_ has joined #ruby
parduse has joined #ruby
parduse has joined #ruby
parduse has quit [Changing host]
aagdbl has quit [Client Quit]
jkamenik has joined #ruby
sputnik13 has joined #ruby
timonv has joined #ruby
nomenkun has quit [Remote host closed the connection]
<ij> tobiasvl: Did you try to actually use it, not just define, too?
nomenkun has joined #ruby
rickmasta has quit [Quit: Leaving...]
mark_locklear has joined #ruby
<tobiasvl> yes, as i said, i was missing an argument
<tobiasvl> but that's beside the point
<tobiasvl> did you try to actually learn what Enumerable is, not just hack it into a specific use-case, too?
derebos_ has joined #ruby
<ij> Well, enlighten me — what have I missed?
<tobiasvl> ij: what exactly do you need? a class that can output an array that always should be [3,3,3]?
<tobiasvl> or an enumerator?
wallerdev has joined #ruby
<tobiasvl> if you can't see the difference between my suggestion and your suggestion, then... well
Guedes has left #ruby ["Saindo"]
<ij> A class that returns an Emuerator, from the data it is generating.
gasbakid has joined #ruby
<tobiasvl> your class generates the same data every time. it is not dynamic. it does return an enumerator – an array – but it is not an enumerator itself.
<tobiasvl> if that's what you want, then that's nice
DouweM has quit [Ping timeout: 260 seconds]
drumusician has joined #ruby
<ij> That's because this is a usecase.
geekbri has joined #ruby
<ij> The data comes from a file in the other case.
<tobiasvl> <ij> I wanted to make an iterator.
<tobiasvl> did you want that, or not?
<ij> Why can't a file reader be an iterator?
<tobiasvl> a file reader?
<tobiasvl> sure it can
<tobiasvl> anything can be an iterator if it includes Enumerable
<Hanmac> File.foreach
yalue has joined #ruby
<Hanmac> String for sample has iterator, but does not include Enumerable (because of the ambigous)
blueOxigen has quit [Ping timeout: 272 seconds]
parduse has quit [Remote host closed the connection]
parduse has joined #ruby
parduse has joined #ruby
parduse has quit [Changing host]
vpretzel has joined #ruby
<ij> tobiasvl: Oh, well I found a way to do the samething without to_enum, but why in the earth couldn't you just show me how to do that instead of arguing?
<tobiasvl> it's *not* the same thing. and i'm not arguing, i was trying to teach you what you originally asked. if that's not what you need, and your actual problem is in some file parsing code you haven't showed us, then okay.
ananthakumaran1 has quit [Quit: Leaving.]
psyl0n has quit [Quit: psyl0n]
drumusician has quit [Ping timeout: 240 seconds]
polaco_zZz is now known as polaco
<tobiasvl> because please forgive me if i thought you didn't understand what you wanted or what iterating/enumerating is based on the code you pasted: http://sprunge.us/IRVZ
<ij> It's alright. Thank you for caring.
jetblack has quit [Quit: leaving]
ragle_ is now known as ragle
tkuchiki has joined #ruby
bruno- has quit [Quit: leaving]
ragle has quit [Quit: leaving]
bruno- has joined #ruby
teoric has joined #ruby
ragle has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
shredding has joined #ruby
mikecmpbll has joined #ruby
brennanMKE has joined #ruby
allaire has joined #ruby
ij has quit [Quit: WeeChat 0.4.1]
ffranz has joined #ruby
gstamp has quit [Read error: Connection reset by peer]
parduse has quit [Remote host closed the connection]
kaldrenon has joined #ruby
shaunbaker has quit [Remote host closed the connection]
parduse has joined #ruby
parduse has quit [Changing host]
parduse has joined #ruby
shaunbaker has joined #ruby
gstamp has joined #ruby
Clooth has joined #ruby
brennanMKE has quit [Ping timeout: 272 seconds]
rodan- has joined #ruby
ce_afk is now known as cescalante
shaunbaker has quit [Ping timeout: 272 seconds]
parduse has quit [Remote host closed the connection]
casheew_ has quit [Read error: Connection reset by peer]
fedalto has joined #ruby
casheew has joined #ruby
parduse has joined #ruby
nbrosnahan has joined #ruby
rodan- has quit [Ping timeout: 252 seconds]
DouweM has joined #ruby
Advocation_ has joined #ruby
leonidlm has quit [Ping timeout: 272 seconds]
jlast has joined #ruby
parduse has quit [Remote host closed the connection]
Advocation has quit [Ping timeout: 272 seconds]
Advocation_ is now known as Advocation
zoee has quit [Quit: This computer has gone to sleep]
includex has joined #ruby
dkamioka has quit [Remote host closed the connection]
breakingthings has joined #ruby
dkamioka has joined #ruby
kaspergr_ has quit [Remote host closed the connection]
icecandy has joined #ruby
cody-- has joined #ruby
mrfoto has quit []
mrfoto has joined #ruby
kaspergrubbe has joined #ruby
DouweM has quit [Read error: Connection reset by peer]
bean has joined #ruby
jlast has quit [Ping timeout: 272 seconds]
pumper has quit [Remote host closed the connection]
dkamioka has quit [Ping timeout: 264 seconds]
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
jrhe has joined #ruby
codenapper has quit [Read error: Connection reset by peer]
codenapper has joined #ruby
reset has joined #ruby
parduse has joined #ruby
parduse is now known as Guest99409
timonv has quit [Remote host closed the connection]
failshell has joined #ruby
willob1 has joined #ruby
rudisimo has joined #ruby
hogeo has joined #ruby
gonska has quit [Remote host closed the connection]
blaxter has quit [Ping timeout: 244 seconds]
Guest99409 has quit [Remote host closed the connection]
reset has quit [Ping timeout: 272 seconds]
icecandy has quit [Quit: Going offline, see ya! (www.adiirc.com)]
Guest72702 has joined #ruby
Guest72702 is now known as parduse
parduse is now known as Guest21794
leonidlm has joined #ruby
jonathanwallace has joined #ruby
jerius has joined #ruby
tziOm has quit [Ping timeout: 244 seconds]
Guest21794 has quit [Remote host closed the connection]
jamesaanderson has joined #ruby
tziOm has joined #ruby
raphaelivan has quit [Quit: Leaving.]
BigBlueBacon has joined #ruby
blaxter_ has joined #ruby
zoee has joined #ruby
ayaz has joined #ruby
jonathanwallace1 has joined #ruby
jrhe has quit [Quit: jrhe]
ffranz has quit [Ping timeout: 272 seconds]
jonathanwallace has quit [Ping timeout: 241 seconds]
Kricir has joined #ruby
timonv has joined #ruby
jrhe has joined #ruby
ffranz has joined #ruby
fmcgeough has joined #ruby
bline79_ has quit [Quit: bline79_]
Clooth has quit [Quit: Leaving...]
blackmesa has joined #ruby
maverick9 has joined #ruby
phantasm66 has joined #ruby
drag00n has joined #ruby
shvelo has quit [Ping timeout: 272 seconds]
Xeago_ has joined #ruby
h_kon has quit [Remote host closed the connection]
weszlem has quit []
devoldmx has joined #ruby
iamjarvo has joined #ruby
rickmasta has joined #ruby
sailias has joined #ruby
Xeago__ has joined #ruby
aryaching has joined #ruby
tomzx_mac has joined #ruby
thelorax123 has joined #ruby
weszlem has joined #ruby
Xeago___ has joined #ruby
Xeago has quit [Ping timeout: 245 seconds]
devdazed has joined #ruby
Czupa has joined #ruby
danguita has quit [Ping timeout: 248 seconds]
devoldmx3 has quit [Ping timeout: 272 seconds]
cescalante is now known as ce_afk
sambao21 has joined #ruby
jonathanwallace1 has quit [Ping timeout: 248 seconds]
phantummm has joined #ruby
weszlem has quit [Client Quit]
ce_afk is now known as cescalante
shredding has quit [Quit: shredding]
znode has joined #ruby
heftig has quit [Ping timeout: 245 seconds]
Xeago_ has quit [Ping timeout: 244 seconds]
phansch has joined #ruby
burlyscudd has joined #ruby
byprdct has joined #ruby
Xeago__ has quit [Read error: Connection reset by peer]
dkamioka has joined #ruby
kofno has joined #ruby
Xeago has joined #ruby
graydot has joined #ruby
iamjarvo has quit [Remote host closed the connection]
lukec has joined #ruby
starchild_ has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iamjarvo has joined #ruby
Xeago_ has joined #ruby
ragle has quit [Quit: leaving]
ragle has joined #ruby
coderhs has quit [Ping timeout: 264 seconds]
jamesaanderson has joined #ruby
Xeago___ has quit [Ping timeout: 245 seconds]
jrhe has quit [Quit: jrhe]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
Xeago has quit [Ping timeout: 248 seconds]
sayan has quit [Ping timeout: 240 seconds]
<zipper> I got this error when trying to install on ruby-rack arch
<zipper> on arch
<zipper> warning: directory permissions differ on /home/urbanslug/
<zipper> filesystem: 700 package: 755
jrhe has joined #ruby
maverick9 has quit [Remote host closed the connection]
graydot has quit [Ping timeout: 265 seconds]
TheShaun is now known as TheShaun|AFK
<zipper> do you suggest I chmod 755 /home/urbanslug
danman has joined #ruby
graydot has joined #ruby
IceDragon has joined #ruby
<DanBoy> 777 ;p
tharindu has joined #ruby
<IceDragon> morning!
<DanBoy> hellooo
jamblack has quit [Quit: jamblack]
pu22l3r has joined #ruby
awkwords has joined #ruby
<IceDragon> whats the latest?
awkwords has quit [Read error: Connection reset by peer]
awkwords has joined #ruby
mary5030 has joined #ruby
duggiefresh has joined #ruby
heftig has joined #ruby
tharindu has quit [Ping timeout: 264 seconds]
<Hanmac> IceDragon depends, are you a "trunk"en user? ;P
Soda has joined #ruby
brennanMKE has joined #ruby
flops has joined #ruby
<IceDragon> only for rubinius, sinec Arch has an official ruby package
<IceDragon> :( I'm missing out on all the neat features aren't I?
srji has joined #ruby
kiri has quit [Ping timeout: 272 seconds]
<Hanmac> hm yes and now, there are some features in 2.1 but i dont think you will miss them
<IceDragon> def returning a Symbol
<IceDragon> I'm missing it
petey has joined #ruby
<IceDragon> Like really hard
<IceDragon> ;-;
<IceDragon> I WANNA ABUSE IT
<IceDragon> public module_function def my_awesome_func
leonidlm has quit [Ping timeout: 244 seconds]
devoldmx has quit [Ping timeout: 240 seconds]
<Hanmac> hm there might be some more changes before 2.1 is finish
<Hanmac> (hm i try to contact charlie so that he can enable the "str"b flag)
<IceDragon> b ?
<IceDragon> binary?
brennanMKE has quit [Ping timeout: 264 seconds]
afzal_ has quit [Quit: Leaving]
<IceDragon> or bytes
freezey has joined #ruby
<Hanmac> yeah there is a string suffix for binary strings … it is inside the ruby parser code, but currently disabled per Flag
<IceDragon> by the way, are you experienced with embedding ruby into a C++ application?
Kricir has quit [Ping timeout: 264 seconds]
<IceDragon> I have it all working, but I can't halt the interpreter..
<IceDragon> :( I need to stop it from executing once the window is closed
burlyscudd has quit [Quit: Leaving.]
<Hanmac> IceDragon: do you mean running the ruby interpreter inside an C++ app or using C++ libs inside ruby interpreter?
<IceDragon> Ruby inside C++
fella5s has quit [Quit: Leaving]
snuffeluffegus has joined #ruby
graydot has quit [Quit: graydot]
<Hanmac> hm no not so much exterience … :/
hogeo has quit [Remote host closed the connection]
<Hanmac> hm isnt that a nice job for mRuby? ;D
danguita has joined #ruby
burlyscudd has joined #ruby
^Chris^ has joined #ruby
hogeo has joined #ruby
<IceDragon> ;D I know
<IceDragon> But I require MRI Ruby
allsystemsarego has joined #ruby
coderhs has joined #ruby
phantummm has quit [Quit: phantummm]
end_guy has joined #ruby
Xeago_ has quit [Ping timeout: 252 seconds]
<DanBoy> hey IceDragon
<DanBoy> you use arch linux?
<IceDragon> Yup :)
<IceDragon> About 2 years now
<IceDragon> It my first Linux too
<DanBoy> its supposed to be with the idea of minimalistic
phansch has quit [Ping timeout: 252 seconds]
<DanBoy> right
amritanshu_RnD has quit [Quit: Leaving]
amrit_ has quit [Quit: Leaving]
<DanBoy> god i've been through them all by now
snuffeluffegus has quit [Remote host closed the connection]
Xeago has joined #ruby
<DanBoy> so i guess you like it?
ragle has quit [Quit: leaving]
ragle has joined #ruby
bio is now known as Biohazard
danshultz has quit [Remote host closed the connection]
<IceDragon> Yup, its plenty fun
hogeo has quit [Ping timeout: 264 seconds]
danshultz has joined #ruby
<IceDragon> I can rip apart my system and put it back together again with completely different packages
Advocation has quit [Ping timeout: 252 seconds]
<DanBoy> what window manger do you use?
kiri has joined #ruby
<DanBoy> i still use debian, right now, i can't stand any redhat based distros
<IceDragon> I use a minimalistic KDE (ripped out all the useless extras)
hogeo has joined #ruby
<DanBoy> i got fluxbox going
jkamenik has quit [Quit: Leaving.]
<IceDragon> Any cool stuff in fluxbox?
<DanBoy> but i was thinking arch linux + awesome wm might be cool for deving
znode has quit [Quit: Computer has gone to sleep.]
Xeago_ has joined #ruby
<DanBoy> i dunno when i was 15 it was awesome
xk_id has quit [Quit:
<DanBoy> probably better off just using a terminal now
danshult_ has joined #ruby
<IceDragon> :O I don't use Awesome due to my small screen size
<DanBoy> you tired it though?
<DanBoy> tried
<DanBoy> i haven't found the time
danshultz has quit [Read error: Connection reset by peer]
<DanBoy> i spent 14 years with linux, i got a mac now thats what i dev on but it seems apple is going crazy so sooner or later i might be going back to linux
Muz has joined #ruby
theRoUS has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
<DanBoy> im on my linux box now though for irc
fella5s has joined #ruby
cescalante is now known as ce_afk
Xeago has quit [Ping timeout: 245 seconds]
camilasan has quit [Remote host closed the connection]
<IceDragon> :)
<IceDragon> I used Windows for most of my life, though I never felt comfortable, too many limitations and fine print
phantummm has joined #ruby
camilasan has joined #ruby
awkwords has quit [Quit: Leaving.]
allaire has quit []
<DanBoy> well i got redhat installed when i was 14
iamjarvo_ has joined #ruby
<DanBoy> i almost gave up
gianlucadv has joined #ruby
<DanBoy> until i got my 56k modem working
<IceDragon> xD
reset has joined #ruby
leonidlm has joined #ruby
<DanBoy> then i just used windows for games
heftig has quit [Read error: Operation timed out]
thisirs has joined #ruby
<IceDragon> Well thats all Windows is good for
<IceDragon> >_> Games.
<DanBoy> ya if you can them to work lol
<DanBoy> right now i just use an xbox 360 when i do get a chance to play a game
<IceDragon> Well we can always play console games anyway
<DanBoy> or old ps1 rpgs
* IceDragon points at le 3DS and XBox-es
jlast has joined #ruby
ragle has quit [Quit: leaving]
awkwords has joined #ruby
ragle has joined #ruby
iamjarvo has quit [Ping timeout: 252 seconds]
freezey_ has joined #ruby
<IceDragon> Anyway, I moved to Linux, learned how to use the command line and the gnu toolbelt, and lived happily ever after
jlast has quit [Remote host closed the connection]
jlast has joined #ruby
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
ragle has quit [Client Quit]
ragle has joined #ruby
reset has quit [Ping timeout: 248 seconds]
danguita has quit [Ping timeout: 244 seconds]
kobain has joined #ruby
freezey has quit [Ping timeout: 264 seconds]
freezey_ has quit [Read error: Connection reset by peer]
freezey has joined #ruby
ce_afk is now known as cescalante
jlast_ has joined #ruby
dabos has quit [Quit: Leaving]
danguita has joined #ruby
shvelo has joined #ruby
znode has joined #ruby
jlast has quit [Ping timeout: 264 seconds]
christopherdupon has joined #ruby
ragle has quit [Client Quit]
znode has quit [Client Quit]
err_ok has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lukec has quit [Quit: lukec]
coder_neo has joined #ruby
coder_neo has quit [Client Quit]
Davey has joined #ruby
Kricir has joined #ruby
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
^Chris^ has quit [Ping timeout: 260 seconds]
Guest2164 has joined #ruby
Guest2164 is now known as parduse
parduse is now known as Guest18410
AlSquire has joined #ruby
christopherdupon has quit [Ping timeout: 252 seconds]
mrsolo has joined #ruby
Guest18410 has quit [Remote host closed the connection]
obs has quit [Remote host closed the connection]
endash has joined #ruby
Kricir has quit [Ping timeout: 272 seconds]
johnnyfuchs has joined #ruby
heftig has joined #ruby
drumsrgr8forn8 has joined #ruby
freezey has quit [Remote host closed the connection]
iamjarvo has joined #ruby
iamjarvo_ has quit [Ping timeout: 240 seconds]
ananthakumaran has joined #ruby
freezey has joined #ruby
vlad_starkov has joined #ruby
dkamioka has quit [Read error: Connection reset by peer]
dkamioka has joined #ruby
tagrudev has quit [Remote host closed the connection]
bigkevmcd has quit [Read error: No route to host]
dkamioka has quit [Read error: Connection reset by peer]
tomzx_mac has quit [Ping timeout: 272 seconds]
freezey has quit [Read error: No route to host]
Kamuela has joined #ruby
bigkevmcd has joined #ruby
dkamioka has joined #ruby
nateberkopec has joined #ruby
<Kamuela> Is shoe still a good GUI library?
freezey has joined #ruby
shaunbaker has joined #ruby
hogeo has quit [Remote host closed the connection]
IcyDragon has joined #ruby
IceDragon has quit [Ping timeout: 244 seconds]
<Hanmac> does a tree fall in the wood? maybe not ,P
hogeo has joined #ruby
mrfoto has quit []
<Kamuela> What would be a better one? I looked at shoe and was like "holy crap, I've never seen GUI so easy"
rippa has joined #ruby
_maes_ has joined #ruby
rickruby has joined #ruby
pskosinski has joined #ruby
pskosinski has quit [Changing host]
pskosinski has joined #ruby
pskosinski has quit [Client Quit]
coderhs has quit [Quit: Leaving]
iamjarvo has quit []
Clooth has joined #ruby
<shevy> Kamuela first you need to accept that the GUI world in ruby is very limited
<shevy> Kamuela as for what GUI library to use, ruby-gnome is the answer
<shevy> shoe was _why's project, I dunno what the folks are doing with it... they kinda split it up into different coloured shoes
* Hanmac used its own wxWidgets gem but its still not finish yet
tharindu has joined #ruby
<shevy> will you add documentation hanmac
<shevy> *shoes
<Kamuela> the fact that hanmac just said "its" to refer to "itself" made me laugh out loud...
hogeo has quit [Ping timeout: 264 seconds]
speakingcode-wor has joined #ruby
<shevy> he thinks in german when he writes in english ;-)
<Kamuela> oh ok, but aren't people masculine or feminine in german? or when you refer to yourself it's neuter?
obs has joined #ruby
Tomasso_ has joined #ruby
<Hanmac> and in reverse it happens too that i think english when i write german
cody-- has quit [Quit: derp]
baordog has joined #ruby
<shevy> Kamuela ah, sure but I think that's just hanmac style really
cescalante is now known as ce_afk
<Kamuela> :)
leonidlm has quit [Ping timeout: 244 seconds]
<shevy> hanmac's style
<shevy> I can't get the shoes examples to work :(
<shevy> rb simple-video.rb
<shevy> simple-video.rb:1:in `<main>': uninitialized constant Shoes (NameError)
<Kamuela> shevy, alright, so i'll take a look at ruby-gnome. that'll mean gtk gets roped along into projects ya?
ananthakumaran1 has joined #ruby
<shevy> adding require 'shoes' also does not fix that problem
IceDragon_ has joined #ruby
rickmasta has quit [Quit: Leaving...]
<shevy> so as far as I am concerned, shoes is dead. they aren't even able to give me working examples in what they distribute...
<Kamuela> shevy, i'm mostly just playing around anyway, so it's not bothersome for the moment
<mary5030> i have a question this may be simple for some of you but i have a hard time figuring it out, I am planning on exporting a csv report but I have to format my data and turn them into an array of hashes before
<mary5030> when i print my data this is what i get
ananthakumaran has quit [Ping timeout: 272 seconds]
<shevy> Kamuela yeah, it's not small for sure... there are bindings to atk pango cairo gtk2 gtk3 gdk_pixbux gio vte ...
<shevy> but!
drumsrgr8forn8 has quit [Remote host closed the connection]
<mary5030> i am hoping to turn this data into array of hashes
<shevy> the examples work for me
<shevy> Kamuela I think ruby-qt would have been the best but it's like a one-man project that is not going anywhere much at all really
<mary5030> with three title autonomous_system_name, cider, percentage
IceDragon_ is now known as IceDragon
nbrosnahan has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
IcyDragon has quit [Ping timeout: 244 seconds]
<mary5030> if anyone has time to look at my link i will really appreciate
tkuchiki has quit [Remote host closed the connection]
<shevy> mary5030 can't you not give minimal example: (1) input -> (2) desired output
mikesplain has joined #ruby
<Kamuela> shevy, is Ruby generally a smaller language than others, like python for example?
tkuchiki has joined #ruby
<mary5030> thanks will do that in my paste bin
<shevy> Kamuela nah, ruby and python are quite similar... similar niches, syntax is not too hugely different
nbrosnahan has joined #ruby
<IceDragon> shevy: You will be shot for saying that
<Kamuela> shevy, I mean in terms of use, libraries, applications
thesheff17 has joined #ruby
zipper has quit [Quit: leaving]
<shevy> mary5030 the reason I suggest this is because, if you give a snippet like input->desired output, folks like hanmac will quickly find the solution!
<Kamuela> shevy, like the number of people using ruby, the number of people actively developing gems, etc
spider-mario has quit [Read error: Connection reset by peer]
<mary5030> sweet thanks
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
allaire has joined #ruby
danguita has quit [Quit: WeeChat 0.4.2]
nbrosnah_ has joined #ruby
<shevy> IceDragon well but it's kinda true... django/rails ... both can act as replacement for shell scripts... both function in large parts as glue between faster languages ...
<shevy> Kamuela python has more folks
mrsolo has quit [Quit: This computer has gone to sleep]
<shevy> Kamuela also one reason why they have more bindings :(
<IceDragon> :(
<shevy> though perhaps ruby is more complex than python when one wants to write bindings?
<IceDragon> but Python is bad...
allaire has quit [Client Quit]
<shevy> so is PHP and TIOBE says it is better than python and ruby!
<IceDragon> :x no...
<Kamuela> shevy, I started with python, but I really prefer rails to django after trying django out for a week. funny story is i did finish a django project but have yet to finish a rails project lol
<IceDragon> I had a side by side comparison of Language bindings
<shevy> when android and other smartphones came up, the GUI binding projects in ruby almost died
<shevy> FXRuby was discontinued
<shevy> rdale no longer on #qtruby
<shevy> wxruby pffft and so on and so forth
<shevy> IceDragon hmm
jamblack has joined #ruby
<Hanmac> shevy i am like a blackbox-test, i only care about the input and the output ;P
<shevy> IceDragon see the gnome project thinks ruby stinks :( http://www.gtk.org/language-bindings.php
shaunbaker has quit [Remote host closed the connection]
<IceDragon> :(
<shevy> the table is wrong btw
<shevy> ruby-gnome has gtk3 bindings. not sure how complete... but still
tkuchiki has quit [Ping timeout: 244 seconds]
<mary5030> this is my link with input and desired out put
<shevy> but look at the little foot icon
serp` has joined #ruby
<IceDragon> :(
<shevy> it kinda says "worthy language for which we gtk-folks will write and maintain bindings"
shaunbaker has joined #ruby
<IceDragon> C#
<IceDragon> OF ALL THINGS
<IceDragon> C#!!!
<shevy> and perl!
<mary5030> i am hoping to create a csv report from my input
<IceDragon> ;-; why doesn't ruby have an official build huh!?
<IceDragon> ;_;
<mary5030> would really apprecaite whoever than can help
DouweM has joined #ruby
noname001 has quit [Read error: Connection reset by peer]
nbrosnahan has quit [Ping timeout: 265 seconds]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
DouweM has quit [Client Quit]
<hoelzro> IceDragon: I would like to see that side-by-side comparison
<IceDragon> mary5030, a little string formatting?
Hanmac has quit [Quit: Leaving.]
<IceDragon> I'd like to find it back >:
<IceDragon> But I was only looking for "how to embed ruby in C++"
Hanmac has joined #ruby
mikecmpbll has joined #ruby
<IceDragon> AHA
<IceDragon> :)
<hoelzro> nice
<IceDragon> not side by side, but close enough
ananthakumaran1 has quit [Ping timeout: 272 seconds]
RORgasm has joined #ruby
<shevy> mary5030 yeah so far that seems simple
ananthakumaran has joined #ruby
nouitfvf_ has joined #ruby
noname001__ has joined #ruby
solars has quit [Ping timeout: 272 seconds]
brennanMKE has joined #ruby
shaunbaker has quit [Ping timeout: 252 seconds]
<shevy> btw
freerobby has joined #ruby
<shevy> mary5030, in your desired output you have one time 100 and the next line 100.0
nouitfvf has quit [Ping timeout: 252 seconds]
rickmasta has joined #ruby
<IceDragon> mary5030: here you go: http://pastebin.com/AXYUgLba
nbrosnah_ has quit [Quit: Textual IRC Client: www.textualapp.com]
nbrosnahan has joined #ruby
<IceDragon> adding to tabs instead of 1 to the values might be better though..
jprovazn has quit [Quit: Leaving]
ahawkins has quit [Quit: leaving]
brennanMKE has quit [Ping timeout: 272 seconds]
xcess_denied has joined #ruby
<IceDragon> :O
<mary5030> thanks a bunch
err_ok has joined #ruby
fella5s has quit [Quit: Leaving]
leonidlm has joined #ruby
fedalto has quit [Read error: Operation timed out]
<mary5030> !!you guys are awesome
xcess_denied has quit [Remote host closed the connection]
xcess_denied has joined #ruby
colonolGron has joined #ruby
d45h has quit []
<Hanmac> mary5030 there is a to csv method:: CSV.open("path/to/file.csv", "wb") do |csv| @all_stats.flat_map {|stat| stat.percentages_grouped_by_block.map {|key,value| [stat.autonomous_system.name,key,value] } }.each {|row| csv << row }
aapzak has quit [Read error: Connection reset by peer]
lmickh has joined #ruby
<mary5030> thanks
<mary5030> i will consider it
<IceDragon> hanmac strikes again!
burlyscudd has quit [Quit: Leaving.]
yfeldblum has joined #ruby
<IceDragon> When I grow up, I wanna just like him!
<shevy> what
araujo has quit [Read error: Connection reset by peer]
<shevy> by dropping the english grammar?
<shevy> O_o
baroquebobcat has quit [Quit: baroquebobcat]
<Hanmac> shevy 's nightmare becomes true ;P
<shevy> well it comes at a price
araujo has joined #ruby
<shevy> hanmac has perfect ruby skills but not perfect english skills
<IceDragon> eh!?
<Hanmac> shevy: like "equivalent exchange" ? ;P
<IceDragon> correction then:
<IceDragon> <IceDragon> When I grow up, I wanna just like him (ruby skills wise)!
<IceDragon> alchemy is a rough thing
<IceDragon> :( You can't have it all can ya?
drumsrgr8forn8 has joined #ruby
<shevy> well you already started IceDragon
<Hanmac> yeah someone got the reference :D
ce_afk is now known as cescalante
elux has joined #ruby
<shevy> I would have thought you dropped a "be" in your sentence IceDragon but it seems necessary to lose these skills when you want to reach hanmac-style perfection
<shevy> gangnam style!
<IceDragon> Dx
* IceDragon fails an english
<shevy> IceDragon did hanmac show you those awful cartoon videos?
zoee has quit [Quit: This computer has gone to sleep]
<IceDragon> hanmac: where can I sign up to become your apprentice?
Advocation has joined #ruby
<IceDragon> *at
<IceDragon> ;-;
<IceDragon> no shevy?
<shevy> you just have to visit the links he shares every now and then
solars has joined #ruby
<shevy> but I warn you
aapzak has joined #ruby
<shevy> there will be colour explosion on the screen
<IceDragon> *twitches*
aagdbl has joined #ruby
<shevy> hanmac can you give an example?
<mary5030> I was hoping to do a client side download of this csv i may have left that part our of my bin
danshult_ has quit [Read error: Connection reset by peer]
<shevy> mary5030 well just structure the tasks, one after the other. the above should work for the parsing of given input yes? ok, if it works, we can proceed on the download-part ... not sure how you can obtain or get the information, is the URL available for us to use in a ruby script? if so, we can download it, even in pure ruby, with open() or open-uri functionality
<IceDragon> Pokemon!
<IceDragon> :O thats not so bad
mikepack has joined #ruby
danshultz has joined #ruby
mikepack has quit [Remote host closed the connection]
geggam_ has joined #ruby
mikepack has joined #ruby
awkwords has quit [Quit: Leaving.]
<IceDragon> wait what is this...
geggam_ has quit [Remote host closed the connection]
rickmasta has quit [Ping timeout: 272 seconds]
banisterfiend has quit [Quit: Computer has gone to sleep.]
<Hanmac> a nice movie i recoment you to watch ,P
<Hanmac> shevy https://i.chzbgr.com/maxW500/7885481984/h0EE4C171/ << tourists take everything they got
awarner has joined #ruby
_maes_ has quit [Ping timeout: 245 seconds]
dmyers has quit [Ping timeout: 245 seconds]
<mary5030> thanks i am putting this in a controller and using rails link to for downloading
yfeldblum has quit [Remote host closed the connection]
<IceDragon> hanmac: haha I like it
<IceDragon> O: now to find the full movie
burlyscudd has joined #ruby
<mary5030> i wasnt sure how to fit this in send_data method
yfeldblum has joined #ruby
<mary5030> which downloads in rails
<shevy> well just use a class :D
geggam_ has joined #ruby
awkwords has joined #ruby
<Hanmac> IceDragon: was in the movies last month, i think its still running
<shevy> def send_data(i); HappyCSV.new(i)
<shevy> or whatever name you give to the class there
<shevy> or whatever the API is
* IceDragon finds some peanuts, and makes a few sticks of dynamite
<shevy> :P
<IceDragon> want some shevy?
<shevy> no
<shevy> I hate peanuts
<IceDragon> but its dynamite!
<IceDragon> :O
<IceDragon> module Dynasaur ; include DL ; end
gasbakid_ has joined #ruby
derebos_ has quit [Ping timeout: 264 seconds]
Clooth has quit [Quit: Leaving...]
reset has joined #ruby
shaunbak_ has joined #ruby
shay- has left #ruby [#ruby]
yfeldblum has quit [Ping timeout: 240 seconds]
<rhys> mosen's sphere 37283##26
krnflake has joined #ruby
<rhys> opps, wrong window.
gasbakid has quit [Ping timeout: 272 seconds]
<IceDragon> ?
<shevy> hmm
<shevy> rhys scares me
<shevy> total world control at 36216#November
<shevy> ack, wrong window!
<rhys> nvm that. didn't realize where I was typing.
rickmasta has joined #ruby
<shevy> hehe
<shevy> more secrets!
maxiaojun has joined #ruby
psyl0n has joined #ruby
<rhys> :)
awkwords has quit [Quit: Leaving.]
reset has quit [Ping timeout: 245 seconds]
rafi_ has joined #ruby
d45h has joined #ruby
knigitz has quit [Remote host closed the connection]
knigitz has joined #ruby
<maxiaojun> what is exactly "no implicit conversion of Symbol into Integer"?
<apeiros> >> [1,2,3][:foo]
<eval-in_> apeiros => no implicit conversion of Symbol into Integer (TypeError) ... (https://eval.in/66023)
<rafi_> anyone knows if sass+compass run on ruby 1.8.7?
shaunbak_ has quit [Remote host closed the connection]
<apeiros> you try to access an array index with a Symbol -> makes no sense
<apeiros> (a Symbol is technically just a number - hence it has a bit a special message)
shaunbaker has joined #ruby
cody-- has joined #ruby
<apeiros> rafi_: I know this doesn't answer your question, but 1.8.7 is dead. EOL. move away from it.
lyanchih has quit [Ping timeout: 272 seconds]
Clooth has joined #ruby
heidar has quit [Quit: Connection closed for inactivity]
<maxiaojun> puts param
<maxiaojun> puts param[:result]
larissa has quit [Ping timeout: 272 seconds]
m8 has joined #ruby
<maxiaojun> I have the following:
digital-ghost has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
<maxiaojun> {:result=>false, :result_text=>"The image file you tried to attach is invalid."}
<maxiaojun> no implicit conversion of Symbol into Integer
<rafi_> apeiros: I'm deploying an app with both gems, and centos6 repos only have 1.8.7. I don't want to install rvm and stuff like that, just need sass & compass. :)
<apeiros> maxiaojun: yes, that's not the line where your exception happens.
<apeiros> param[:result] maybe - and that'd be what I told you above.
<Hanmac> rafi_ if centos dont want to update its not our fault ;P
<maxiaojun> why param[:result] can be invalid?
<rafi_> yeah, not pointing fingers.. just trying to find the most light-weight installation path for those 2 gems
<maxiaojun> isn't param a hash?
platzhirsch has joined #ruby
<IceDragon> maxiaojun: check it using #class
<IceDragon> puts param.class
<apeiros> maxiaojun: rails? there'd be params, not param
<apeiros> no idea what param is, that'd be from you.
<maxiaojun> not rails
<apeiros> then *how on earth* could I know what *your* variable is?
<IceDragon> maxiaojun: it might be an Array of Hashes
<IceDragon> :O
<maxiaojun> ok, that makes sense!
<platzhirsch> When modules get included their methods can access instance variables, too. It seem, however, to be a bad practice doing that. Wouldn't it be better to move the required variables to the method's parameters?
<apeiros> seriously… sometimes I'm baffled at how high people estimate my mental capabilities…
acrussell has joined #ruby
taion809 is now known as zzz_taion809
Kricir has joined #ruby
burlyscudd has quit [Quit: Leaving.]
shaunbaker has quit [Ping timeout: 272 seconds]
<IceDragon> platzhirsch, depends, what if its an mixin say like: Movable, it would access your @x, @y, @z variables to emulate motion in an Object
<platzhirsch> IceDragon: something like that, yes
<maxiaojun> i guess PP.pp is a better inspector...
<IceDragon> lots of p(s)
ShellFu has joined #ruby
<shevy> pp is awesome
<IceDragon> PP.pp
<IceDragon> :O POWER POINTS!
<shevy> require 'pp'; pp %w( abc def ghi jgoejogejogejoge ggrjhgherg )
<platzhirsch> IceDragon: so you think it's not uncommon at all?
<shevy> using the leading PP is awful
<Hanmac> or that the movable require a move(x,y,z) method, like Enumerable requires an each method
<Banistergalaxy> It's better if they access methods
<IceDragon> platzhirsch: well in my code yeah, but elsewhere, they use the accessor methods instead
<Banistergalaxy> Accessing ivars creates strong coupling
<IceDragon> Banistergalaxy: Have you become a guru!?
<IceDragon> D:
nomenkun has quit [Remote host closed the connection]
<Banistergalaxy> Yeah
<platzhirsch> oh right, I have ignored that, too
<rafi_> any pros and cons installing ruby with rvm vs. compiling?
nomenkun has joined #ruby
<Banistergalaxy> I'm the best ;)
TMM has quit [Quit: Ex-Chat]
<IceDragon> :O
* IceDragon hi5s Banistergalaxy
Davey has joined #ruby
<Hanmac> Banister gots enlighted and now his ego fills an entire galaxy ;D
<IceDragon> ;D
<vpretzel> rafi_: rvm will save you a lot of headaches when you have clients that all use different versions of ruby and gems as well.
<apeiros> rvm saves you a lot of headaches, period :)
<vpretzel> Meh, it also gives you headaches
shaunbak_ has joined #ruby
<apeiros> of course even more so if you have to support multiple versions
<vpretzel> But it's about which ones you wish to have.
<rafi_> I might have read somewhere that it also can create a big mess
<IceDragon> ;-; people still use 1.8!
ExCa|iBuR has quit [Ping timeout: 245 seconds]
<apeiros> that - sadly - too. though I haven't experienced them personally.
<IceDragon> of all things
<IceDragon> 1.8!!!
<vpretzel> rafi_: what machine are you running?
hiroyuki has joined #ruby
<rafi_> vpretzel: centos6
<vpretzel> Gotcha
<vpretzel> Mac OSX comes with ruby pre-installed
<Hanmac> IceDragon: it could be worse, last month i saw someone how uses 1.8.6 or lower ;P
<vpretzel> THat's why i asked
<vpretzel> hanmac: IP address plz.
<vpretzel> lol
<IceDragon> hanmac: I've seen worse, I say 1.6.8
<Hanmac> hm i dont know if i have this person still in history
<IceDragon> *saw
<vpretzel> I was being sarcastic
<rafi_> vpretzel: my macbook is collecting dust up in my room. i run arch on my workstation
<IceDragon> rafi_: can I haz it?
jamblack has quit [Quit: jamblack]
leonidlm has quit [Ping timeout: 264 seconds]
<Hanmac> if you saw 1.6.8 then you can see the ring video without regrets ,P
aparticka has joined #ruby
<IceDragon> at first I was: "1.6.8... I wonder if its 1.9.x because the text fonts are too small *zooms in* shiiiiiiit"
yfeldblum has joined #ruby
awkwords has joined #ruby
baroquebobcat has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
colonolGron has quit [Ping timeout: 252 seconds]
vpretzel has quit [Remote host closed the connection]
vpretzel has joined #ruby
<rafi_> IceDragon: if I won't be able to nuke osx and install arch, its yours ;p
Kamuela has quit [Quit: Leaving]
<vpretzel> lol
<IceDragon> :D
<vpretzel> the love for arch over the last 6 months has been insane
<vpretzel> I may need to check it out myself
kaspergrubbe has quit [Read error: Operation timed out]
pskosinski has joined #ruby
xcess_denied has quit [Read error: Connection reset by peer]
xcess_de_ has joined #ruby
burlyscudd has joined #ruby
<hoelzro> it's pretty nice.
<rafi_> i'm pretty new to linux. spent 1 year on ubuntu. switched to arch 2 months ago. amazing. best distro in the world
<hoelzro> it's caused me my share of annoyances over the years, but nothing I haven't been able to handle
CaptainJet has joined #ruby
<hoelzro> I like the cutting-edge aspect of it, along with the package managment system
gr33n7007h has joined #ruby
<rafi_> I like how it comes minimal, slim, and light-weight. you build your desktop. heck, i installed none. just a window manager, i3
lxsameer has quit [Quit: Leaving]
<hoelzro> I think that i3 happens to be the #1 choice of Arch devs
<hoelzro> or the other way around...
hiroyuki has quit [Ping timeout: 245 seconds]
<hoelzro> I keep meaning to try i3.
iamjarvo has joined #ruby
theoretick has joined #ruby
Mon_Ouie has quit [Ping timeout: 265 seconds]
<rafi_> i3 is divine
bigkevmcd has quit [Ping timeout: 244 seconds]
<rafi_> and my 3-monitor setup :D
obs has quit [Remote host closed the connection]
MarcWeber has joined #ruby
jamblack has joined #ruby
Es0teric has joined #ruby
cba is now known as canderson
brennanMKE has joined #ruby
krz has quit [Quit: krz]
obs has joined #ruby
<hoelzro> looks like a tmux config to me ;)
Es0teric has quit [Max SendQ exceeded]
varfoo has quit [Quit: WeeChat 0.4.0]
[0x1a]_ has quit [Quit: Connection closed for inactivity]
leonidlm has joined #ruby
ssvo has joined #ruby
Ox6abe has joined #ruby
theoretick has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xcfox has joined #ruby
bluenemo has quit [Quit: Verlassend]
bigkevmcd has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Elhu has joined #ruby
ffranz has quit [Quit: Leaving]
mlpinit has quit [Remote host closed the connection]
thesheff17 has quit [Ping timeout: 272 seconds]
phantummm has quit [Quit: phantummm]
phansch has joined #ruby
srji has quit [Ping timeout: 264 seconds]
cescalante is now known as ce_afk
freezey has quit [Remote host closed the connection]
LarsSmit has quit [Quit: Leaving.]
Trudko_ has joined #ruby
<Trudko_> hi if i wanto use , as decimal places separator(so instead of 2.53 I would have 2,53) should I use number_with_precision(2.53 :separator => ',', :precision => 2) ?
noname001__ has quit [Ping timeout: 265 seconds]
ephemerian has quit [Quit: Leaving.]
<IceDragon> Trudko_: you could do: 2.53.to_s.gsub(".", ",")
mikesplain1 has joined #ruby
phantummm has joined #ruby
Kricir has quit [Ping timeout: 245 seconds]
<IceDragon> if you need precision you could do something like so: ("%0.2f" % 2.53).gsub(".", ",")
<CaptainJet> not 0.2f
<CaptainJet> just %.2f
mikesplain has quit [Ping timeout: 248 seconds]
<IceDragon> >.> I prefer to have my 0s
mrsolo has joined #ruby
dllama has joined #ruby
nobitanobi has joined #ruby
rodan- has joined #ruby
<CaptainJet> >> sprintf("%.2f", 2.53)
<eval-in_> CaptainJet => "2.53" (https://eval.in/66029)
<CaptainJet> >> sprintf("%0.2f", 2.53)
<eval-in_> CaptainJet => "2.53" (https://eval.in/66030)
polaco is now known as polaco_zZz
<CaptainJet> But still
<IceDragon> >> sprintf("%0.2f", 2.537462)
<eval-in_> IceDragon => "2.54" (https://eval.in/66031)
polaco_zZz is now known as polaco
<nobitanobi> morning guys
pothibo has joined #ruby
rodan- has quit [Remote host closed the connection]
<IceDragon> morning
<IceDragon> give us presents!
weeems has quit [Read error: Connection reset by peer]
* IceDragon holds up claws
freezey has joined #ruby
rodan- has joined #ruby
lukec has joined #ruby
solars has quit [Ping timeout: 264 seconds]
kke_ has quit [Quit: Reconnecting]
burlyscudd has quit [Quit: Leaving.]
kke has joined #ruby
adambeynon has joined #ruby
maxiaojun has quit [Quit: maxiaojun]
zz_scottstamp is now known as scottstamp
jamesaanderson has joined #ruby
theoretick has joined #ruby
gasbakid_ has quit [Ping timeout: 264 seconds]
weems has joined #ruby
rodan- has quit [Ping timeout: 244 seconds]
banghouse2 has joined #ruby
deception has joined #ruby
drumsrgr8forn8 has quit [Remote host closed the connection]
xcess_de_ has quit [Ping timeout: 244 seconds]
* shevy gives IceDragon a kitty
teoric has quit [Quit: WeeChat 0.4.1]
* IceDragon huggles the kitty
aley has joined #ruby
<Advocation> is there something I need to do to get this to work? Or will it fundamentally not work - %w(1..7 other)
ghr has quit [Quit: Computer has gone to sleep.]
camilasan has quit [Remote host closed the connection]
theoretick has quit [Read error: Connection reset by peer]
dkamioka has quit [Remote host closed the connection]
camilasan has joined #ruby
dkamioka has joined #ruby
<IceDragon> Advocation, just use a normall range?
krz has joined #ruby
<IceDragon> (1..7).map(&:to_s)
aagdbl has quit [Quit: Leaving.]
drumsrgr_ has joined #ruby
d45h has quit []
theoretick has joined #ruby
thesheff17 has joined #ruby
closures999 has joined #ruby
Soda has quit [Remote host closed the connection]
<Advocation> IceDragon: I'm trying to pass it as an options array into rails select form helper
<shevy> wait
<shevy> what is your intent
whunt_ has joined #ruby
whunt_ is now known as whunt
<IceDragon> o.e
xibalba has left #ruby ["Leaving"]
Targen has joined #ruby
<IceDragon> wait a minute: "1".."7" would work too! :x
<shevy> >> (1..7).to_a.map(&:to_s)
<eval-in_> shevy => ["1", "2", "3", "4", "5", "6", "7"] (https://eval.in/66037)
<IceDragon> >> "1".."7"
<eval-in_> IceDragon => "1".."7" (https://eval.in/66038)
<IceDragon> >> ("1".."7").to_a
<eval-in_> IceDragon => ["1", "2", "3", "4", "5", "6", "7"] (https://eval.in/66039)
<IceDragon> I win!
<Advocation> hah
camilasan has quit [Ping timeout: 272 seconds]
dkamioka has quit [Ping timeout: 264 seconds]
<IceDragon> >> (1..7).map(&:to_s)
<eval-in_> IceDragon => ["1", "2", "3", "4", "5", "6", "7"] (https://eval.in/66040)
robbyoconnor has joined #ruby
<IceDragon> so many ways to skin a Range
timonv has quit [Remote host closed the connection]
<Advocation> yeah, perfect
iamjarvo has quit [Remote host closed the connection]
reset has joined #ruby
<workmad3> >> ("1".."aa").to_a
<eval-in_> workmad3 => ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", ... (https://eval.in/66041)
<Advocation> so I've used ("1".."7").to_a.push("other")
dagobah has quit [Remote host closed the connection]
DanKnox_away is now known as DanKnox
<CaptainJet> >> ("1".."7").to_a.push("other")
<eval-in_> CaptainJet => ["1", "2", "3", "4", "5", "6", "7", "other"] (https://eval.in/66042)
<CaptainJet> Just checking if .push returns the item added or the array
leonidlm has quit [Read error: Operation timed out]
<IceDragon> workmad3: that is neat!
zigomir has quit [Quit: zigomir]
nomenkun has quit [Ping timeout: 272 seconds]
<workmad3> >> ("a".."aa").to_a
<eval-in_> workmad3 => ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "aa"] (https://eval.in/66043)
<workmad3> >> ("b".."aa").to_a
<eval-in_> workmad3 => [] (https://eval.in/66044)
<workmad3> IceDragon: ^^ explain ;)
<IceDragon> "char"
<IceDragon> :) that explains everything
<workmad3> IceDragon: :P
jeffdb has joined #ruby
<IceDragon> >> "a".chr
<eval-in_> IceDragon => "a" (https://eval.in/66045)
<workmad3> >> "a".succ
<eval-in_> workmad3 => "b" (https://eval.in/66046)
<IceDragon> :)
<workmad3> >> "a" < "aa"
<eval-in_> workmad3 => true (https://eval.in/66047)
<workmad3> >> "b" < "aa"
<eval-in_> workmad3 => false (https://eval.in/66048)
<IceDragon> >> "IceDragon".succ
<eval-in_> IceDragon => "IceDragoo" (https://eval.in/66049)
thesheff17 has quit [Remote host closed the connection]
<IceDragon> heh
closures999 has quit [Remote host closed the connection]
Czupa has quit [Remote host closed the connection]
ffranz has joined #ruby
<workmad3> IceDragon: "1.1.1".succ is nice ;)
pskosinski has quit [Quit: Til rivido Idisti!]
<IceDragon> O:
<IceDragon> >> "1.1.1".succ
<eval-in_> IceDragon => "1.1.2" (https://eval.in/66050)
<shevy> ack
<IceDragon> lol
<shevy> you guys make spam attack here
<IceDragon> ;x sowwy
<CaptainJet> I tried to stop them
<Hanmac> >> :abc.succ #symbols does succ too ;P
<eval-in_> Hanmac => :abd (https://eval.in/66051)
<CaptainJet> But they don't listen to the military I guess
<shevy> CaptainJet you are a good man
dkamioka has joined #ruby
<shevy> you need some more holy hand grenades
<IceDragon> No one listens to the Jet!
* IceDragon fires several flaks
reset has quit [Ping timeout: 252 seconds]
gasbakid has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
srji has joined #ruby
drumsrgr_ has quit [Remote host closed the connection]
* CaptainJet explodes into millions of bits
mrsolo has quit [Quit: This computer has gone to sleep]
<IceDragon> excellent
arietis has joined #ruby
Voodoofish4301 has joined #ruby
andikr has quit [Remote host closed the connection]
Ox6abe has quit [Remote host closed the connection]
Czupa has joined #ruby
motto has joined #ruby
<Hanmac> IceDragon: you need to be careful when you working with Symbols, some methods defined in the Symbol class create new symbols
mlpinit has joined #ruby
obs has quit [Remote host closed the connection]
<IceDragon> and Symbols aren't garbage collected
<IceDragon> :x so its gonna keep upping your memory usage
Kricir has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<Hanmac> >> :abc.upcase
<eval-in_> Hanmac => :ABC (https://eval.in/66052)
m8 has quit [Ping timeout: 264 seconds]
<Hanmac> >> :aBC.downcase
<eval-in_> Hanmac => :abc (https://eval.in/66053)
closures999 has joined #ruby
zz_tsykoduk is now known as tsykoduk
aganov has quit [Remote host closed the connection]
Soda has joined #ruby
DonRichie has joined #ruby
Xeago_ has quit [Remote host closed the connection]
sepp2k has quit [Quit: Konversation terminated!]
pel_daniel has joined #ruby
jamblack has quit [Quit: jamblack]
<shevy> what?
obs has joined #ruby
<shevy> years ago I was told to use symbols all the time for extra speed
<shevy> now you tell me that symbols spawn other zombie symbols
<shevy> :(
serp` has quit [Quit: serp`]
* Hanmac lets raise all zombie symbols ;P
Trudko_ is now known as Trudko
sayan has joined #ruby
<IceDragon> shevy: "With great power, comes great responsibility, young coder"
<Hanmac> XDDD
Kricir has quit [Ping timeout: 252 seconds]
drumsrgr8forn8 has joined #ruby
<shevy> hey
<shevy> I dont use C
srji has quit [Ping timeout: 260 seconds]
<shevy> I use beautiful ruby
<shevy> with C you can shoot yourself in the foot and it hurts
<shevy> with C++ you can shoot yourself in the foot and the whole leg is gone
mixel has quit [Quit: mixel]
<shevy> with Ruby you create a NEW foot!
includex has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> now that is power
<IceDragon> after you've shot it off with C/C++
<shevy> people who use C++ can't be helped anyway
<shevy> right hanmac?
<IceDragon> C++ can give you a new Foot(); too
<Hanmac> shevy with ruby you can give someone else the foot and he shots for you
<IceDragon> :P
mmcdaris has joined #ruby
olivier_bK has quit [Ping timeout: 252 seconds]
<IceDragon> shevy.instance_exec(&:shoot_in_foot)
<Hanmac> "Ruby on Rails: You start to think about shooting yourself in the foot only to discover that someone has already shot your foot for you."
<IceDragon> bang bang!
burlyscudd has joined #ruby
closures999 is now known as linhmtran
<IceDragon> "3rd Party Foot Shooting", now available in on rubygems.org
<Hanmac> "JAVA After importing java.awt.right.foot.* and java.awt.gun.right.hand.*, and writing the classes and methods of those classes needed, you’ve forgotten what the hell you’re doing."
<IceDragon> *on
<tobiasvl> looool
<IceDragon> keep em coming hanmac!
<Hanmac> "Perl You shoot yourself in the foot, but nobody can understand how you did it. Six months later, neither can you."
phansch has quit [Remote host closed the connection]
serp` has joined #ruby
d45h has joined #ruby
zeade has joined #ruby
leonidlm has joined #ruby
rafi_ has left #ruby ["wee 0.4.2"]
einarj has quit [Remote host closed the connection]
lacko has joined #ruby
nbrosnahan has quit [Ping timeout: 264 seconds]
<lacko> do you guys know a good ruby library for creating graphs?
<IceDragon> hanmac: where are you finding all this?
<shevy> instance_exec() scares me as well
<Hanmac> "Python You try to shoot yourself in the foot but you just keep hitting the whitespace between your toes." << XD
<IceDragon> lacko: Um!
linhmtran has quit []
<IceDragon> graphviz!
<IceDragon> :D
gasbakid_ has joined #ruby
<IceDragon> or something like that
<IceDragon> thanks hanmac
zpinter has quit [Quit: Connection closed for inactivity]
<shevy> lacko dunno. not many. there is http://nubyonrails.com/pages/gruff
iamjarvo has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
aspires has joined #ruby
burlyscudd has quit [Ping timeout: 272 seconds]
nbrosnahan has joined #ruby
gasbakid has quit [Ping timeout: 272 seconds]
hackeron has quit [Ping timeout: 272 seconds]
sayan has quit [Read error: Connection reset by peer]
timonv has joined #ruby
binw_ has quit [Ping timeout: 268 seconds]
<lacko> thx that looks awesome
closures999 has joined #ruby
<IceDragon> FORTH
<IceDragon> Foot in yourself shoot.
<IceDragon> :x
<IceDragon> in FORTH, you don't shoot your foot, your foot shoots you!
rickruby has quit [Ping timeout: 264 seconds]
thelorax123 has quit [Remote host closed the connection]
lethjakm1 has joined #ruby
closures999 has quit [Remote host closed the connection]
banjara has joined #ruby
<lacko> rvm
lacko has quit [Quit: Lost terminal]
<nobitanobi> Anybody has used Minimagick here? I am unable to figure out how to create an image from scratch. Simple image with black background color.
thelorax123 has joined #ruby
pskosinski has joined #ruby
robbyoconnor has quit [Ping timeout: 272 seconds]
<ShellFu> magic hmmm. black backgrounds... swamps. Alright ill play a game. Shall we sign into steam?
stonecol1devin is now known as stonecolddevin
<IceDragon> nobitanobi: link to the gem?
rb2k has quit [Quit: rb2k]
jonathanwallace has joined #ruby
lfox has joined #ruby
<nobitanobi> IceDragon, here you go: https://github.com/minimagick/minimagick
fedalto has joined #ruby
blackmesa has quit [Remote host closed the connection]
zipper has joined #ruby
banjara has quit [Client Quit]
banisterfiend has joined #ruby
<nobitanobi> IceDragon, I am able to open images, transform them and so. But I can't figure out how to create an image from scratch
<IceDragon> Hmm
dhruvasagar has joined #ruby
sepp2k has joined #ruby
<IceDragon> chunky_png
saarinen has joined #ruby
<IceDragon> how about using another image lib to create it
<IceDragon> and then wrap it in minimagick?
burlyscudd has joined #ruby
leonidlm has quit [Ping timeout: 264 seconds]
<nobitanobi> IceDragon, that's what I am doing :P
luckyruby has quit [Remote host closed the connection]
<IceDragon> :P
luckyruby has joined #ruby
dllama has left #ruby [#ruby]
<nobitanobi> but, I mean...It doesn't make much sense to me to be doing this
DouweM has joined #ruby
<IceDragon> I don't know how ImageMagick works :(
Aloysius1 has joined #ruby
<nobitanobi> yeah, it's a wrapper from a command line tool
alup has quit [Quit: Leaving]
<nobitanobi> but god dang it, I can't figure it out
echevemaster has joined #ruby
tharindu has quit [Ping timeout: 245 seconds]
jhulten has joined #ruby
<err_ok> It's a wrapper around mogrify... Can you use mogrify to create images? Shouldn't use convert instead....
Kricir has joined #ruby
havenwood has joined #ruby
<IceDragon> all would be nice if we had 1 simple graphics lib
<IceDragon> :(
<nobitanobi> it's a wrapper around imagemagick..?
<IceDragon> Image.new(width, height); Image.load(filename)
<IceDragon> ;_;
<nobitanobi> ~_~
xk_id has joined #ruby
drumsrgr8forn8 has quit [Read error: Connection reset by peer]
drumsrgr8forn8 has joined #ruby
drumsrgr8forn8 has quit [Remote host closed the connection]
<IceDragon> yup
<IceDragon> its at the bottom of the page :x
<IceDragon> You must have ImageMagick or GraphicsMagick installed.
serp` has quit [Quit: serp`]
closures999 has joined #ruby
<Aloysius1> Howdy--looking for an "include?" that returns the item being sought after if it's there or nil/false otherwise.
<IceDragon> find
RaCx has quit [Quit: Computer has gone to sleep.]
<IceDragon> Aloysius1: Array#find(obj) or Array#find { block_for_condition }
willob1 has quit [Read error: Operation timed out]
sayan has joined #ruby
jlebrech has joined #ruby
Kricir has quit [Remote host closed the connection]
gasbakid_ has quit [Ping timeout: 245 seconds]
Astral__ has quit [Read error: Connection reset by peer]
aspiers has quit [Read error: Operation timed out]
banjara has joined #ruby
atno has quit [Read error: No route to host]
jamblack has joined #ruby
thesheff17 has joined #ruby
jibi has joined #ruby
iliketurtles has joined #ruby
gasbakid_ has joined #ruby
niftylettuce has quit [Quit: Connection closed for inactivity]
saarinen has quit [Read error: Connection reset by peer]
luke_ has joined #ruby
luke_ has quit [Client Quit]
ShellFu has quit [Remote host closed the connection]
saarinen has joined #ruby
atno has joined #ruby
Speed has joined #ruby
deception has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 272 seconds]
mudmaster has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
ShellFu has joined #ruby
mudmaster has quit [Read error: Connection reset by peer]
shaunbak_ has quit [Remote host closed the connection]
camilasan has joined #ruby
mudmaster has joined #ruby
shaunbaker has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
ExCa|iBuR has joined #ruby
barratt has quit [Ping timeout: 272 seconds]
RaCx has joined #ruby
<havenwood> Aloysius1: Another alternative to Enumberable#find is Array#select!: http://ruby-doc.org/core-2.0.0/Array.html#method-i-select-21
gasbakid__ has joined #ruby
<havenwood> Enumerable*
io_syl has joined #ruby
shaunbaker has quit [Ping timeout: 246 seconds]
scottstamp is now known as zz_scottstamp
<IceDragon> I keep forgetting find is apart of Enumerable
<IceDragon> :x
gasbakid_ has quit [Ping timeout: 248 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
<havenwood> Aloysius1: Since you want to return all the matches, and nil with none, i think #select! is a good way to go :)
dkamioka has quit [Read error: Connection reset by peer]
timonv has quit [Read error: Connection reset by peer]
<cout> IceDragon: apart and "a part" are sort of opposites :)
dkamioka has joined #ruby
<IceDragon> :(
banjara has quit [Quit: Leaving.]
<IceDragon> my english is bad
<IceDragon> I know
* IceDragon is ashamed to be a native english speaker...
drumsrgr8forn8 has joined #ruby
Ox6abe has joined #ruby
banjara has joined #ruby
willob has joined #ruby
timonv has joined #ruby
jamblack has quit [Quit: jamblack]
zeade has quit [Quit: Leaving.]
danshultz has quit [Remote host closed the connection]
Kricir has joined #ruby
hiall has quit [Ping timeout: 272 seconds]
danshultz has joined #ruby
vince_prignano has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
olivier_bK has joined #ruby
reset has joined #ruby
danshultz has joined #ruby
timonv has quit [Remote host closed the connection]
zipper has quit [Ping timeout: 272 seconds]
jamblack has joined #ruby
<Aloysius1> Hmmm. Lessee...
<Aloysius1> I'm dealing with strings...so I could parse the string into an array...
c0rn has joined #ruby
<IceDragon> are you selecting characters?
zeade has joined #ruby
ravster has joined #ruby
hiyosi has quit [Ping timeout: 245 seconds]
strandberg has quit [Quit: leaving]
<Aloysius1> No, it's a pipe delimited string.
<Aloysius1> "cat|dog|bear"
saarinen has quit [Read error: Connection reset by peer]
nwertman has quit [Remote host closed the connection]
<Aloysius1> I want to find "cat" if it's there and nil/false if I look for "fish".
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
<IceDragon> string.split("|").include?("cat")
saarinen has joined #ruby
<havenwood> Aloysius1: String#[], use regex: http://rubular.com/
<IceDragon> string.split("|").find("cat")
<Aloysius1> I'm replacing:
willob has quit [Ping timeout: 252 seconds]
relix has joined #ruby
<Aloysius1> aString.include?("a substring")
shaileshg__ has quit [Quit: Connection closed for inactivity]
<Aloysius1> (I guess that's...obvious.)
willob has joined #ruby
<Aloysius1> I tried string.scan("dog") but that returns an empty array.
<Aloysius1> string.find returns an enumerator
reset has quit [Ping timeout: 268 seconds]
jaimef has quit [Excess Flood]
<Aloysius1> The whole statement is three parts:
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<Aloysius1> cond1 && cond2 && string.include?("cat")
<havenwood> >> 'cat|dog'[/bat/]
<eval-in_> havenwood => nil (https://eval.in/66068)
tjad has quit [Ping timeout: 272 seconds]
deception has joined #ruby
<Aloysius1> which works great, but I want "cat" back if it's there.
dhruvasagar has joined #ruby
zeade has quit [Ping timeout: 240 seconds]
<havenwood> >> 'cat|dog'[/cat/]
<eval-in_> havenwood => "cat" (https://eval.in/66072)
<Aloysius1> havenwood: That works!
djd has quit [Quit: Connection closed for inactivity]
jaimef has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dangerousdave has joined #ruby
MrZYX|off is now known as MrZYX
cody-- has quit [Quit: derp]
elcontrastador has joined #ruby
kaspergrubbe has joined #ruby
jhaals has joined #ruby
Tuxist has joined #ruby
srji has joined #ruby
Guest2149 has quit [Ping timeout: 252 seconds]
TaxmanBD has joined #ruby
Clooth has quit [Quit: Leaving...]
TaxmanBD has left #ruby [#ruby]
tkuchiki has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
gasbakid_ has joined #ruby
weszlem has joined #ruby
<Aloysius1> Exceeeeept. :) Heh. I can work around it but it'll except if I search for a nil. I'll just set it to an empty string.
gasbakid__ has quit [Ping timeout: 260 seconds]
xcfox has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
<Hanmac> >> "thiscatfish"[Regexp.union("cat","dog")]
<eval-in_> Hanmac => "cat" (https://eval.in/66089)
platzhirsch1 has joined #ruby
nbrosnahan has quit [Ping timeout: 244 seconds]
closures999 has quit []
zeade has joined #ruby
zigomir has joined #ruby
srji has quit [Ping timeout: 260 seconds]
platzhirsch has quit [Ping timeout: 265 seconds]
<shevy> >> "dead fish is dead"
<eval-in_> shevy => "dead fish is dead" (https://eval.in/66091)
Kricir has quit [Remote host closed the connection]
mlpinit has quit [Remote host closed the connection]
sayan has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
Zesty has joined #ruby
randym_ has quit [Quit: Connection closed for inactivity]
Kricir has joined #ruby
jonathanwallace has quit [Ping timeout: 272 seconds]
banisterfiend has joined #ruby
Hanmac has quit [Quit: Leaving.]
rickmasta has quit [Quit: Leaving...]
rb2k has joined #ruby
ner0x has joined #ruby
alvaro_o has joined #ruby
nwertman has joined #ruby
<shevy> >> "dead hanmac is fish"
<eval-in_> shevy => "dead hanmac is fish" (https://eval.in/66101)
nbrosnahan has joined #ruby
dllama has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
<sam113101> >> sleep 10; 'test'
<eval-in_> sam113101 => (https://eval.in/66102)
Clooth has joined #ruby
akhkharu has quit [Quit: Connection closed for inactivity]
dkamioka has quit [Remote host closed the connection]
zipper has joined #ruby
<sam113101> ( .____.)
hiyosi has joined #ruby
<gr33n7007h> eval-in_, insomnia ;)
einarj has joined #ruby
<IceDragon> ( .____.) # <<I like
carraroj has joined #ruby
krz has quit [Quit: krz]
colonolGron has joined #ruby
ner0x has quit [Ping timeout: 244 seconds]
tkuchiki has quit [Ping timeout: 260 seconds]
burlyscudd has quit [Quit: Leaving.]
sayan has joined #ruby
ffranz has quit [Quit: Leaving]
Ox6abe has quit [Remote host closed the connection]
staafl has quit [Read error: Connection reset by peer]
burlyscudd has joined #ruby
hiyosi has quit [Ping timeout: 252 seconds]
obs has quit [Read error: Operation timed out]
ShellFu has quit [Quit: Leaving]
deception has quit [Ping timeout: 252 seconds]
nonamehero has quit [Ping timeout: 240 seconds]
einarj has quit [Ping timeout: 260 seconds]
<zipper> So uh for someone new to rails I got a ExecJS error. Question is: Do I go with gem therubyracer or node.js from package manager?
carraroj has quit [Ping timeout: 252 seconds]
Tearan has joined #ruby
vlad_starkov has joined #ruby
<gr33n7007h> >> 1.upto(30) { |i| puts i if (i == 4)..(i == 17) }
<eval-in_> gr33n7007h => 4 ... (https://eval.in/66105)
shadoi has quit [Ping timeout: 245 seconds]
rb2k has quit [Quit: rb2k]
camilasan has quit [Remote host closed the connection]
geggam has quit [Disconnected by services]
mlpinit has joined #ruby
<apeiros> gr33n7007h: learned about the flip-flop?
c0rn has quit [Remote host closed the connection]
camilasan has joined #ruby
geggam has joined #ruby
pipopopo has joined #ruby
geggam has quit [Disconnected by services]
geggam_ is now known as geggam
<gr33n7007h> apeiros, a little bit
camilasan has quit [Read error: Connection reset by peer]
geggam_ has joined #ruby
<apeiros> it probably earns the title of the least known syntactical functionality in ruby :)
camilasan has joined #ruby
sayan has quit [Read error: Connection reset by peer]
<CaptainJet> why use that when you have between?
tvw has quit []
<apeiros> works differently
<CaptainJet> Howso?
c0rn has joined #ruby
<apeiros> above it may work like a between check, but that's now how flip-flops work
tjad has joined #ruby
AleksEst has joined #ruby
<gr33n7007h> It becomes true when i == 4 and become false when i != 4 and i== 17
lukec has quit [Quit: lukec]
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nism-pi has quit [Ping timeout: 272 seconds]
balM has joined #ruby
<CaptainJet> Right I got that
<CaptainJet> But looking at it more, it seems like in most cases it's equivalent to a && condition
Soda has quit [Read error: Connection reset by peer]
Eiam has joined #ruby
awkwords has quit [Quit: Leaving.]
<CaptainJet> just, you'd have to write the && differently
<gr33n7007h> not quite
Mars___ has joined #ruby
psyl0n has quit [Ping timeout: 240 seconds]
<apeiros> >> "code\n=begin\ncomment\ncomment\ncomment\n=end\ncode\ncode".each_line { |line| puts line if (line =~ /=begin/)..(line =~ /=end/) }
<eval-in_> apeiros => =begin ... (https://eval.in/66107)
sepp2k has quit [Read error: Operation timed out]
<apeiros> can't do that with .between?
rb2k has joined #ruby
<apeiros> (you have to click the link)
cody-- has joined #ruby
robbyoconnor has joined #ruby
dkamioka has joined #ruby
Kricir has quit [Remote host closed the connection]
psyl0n has joined #ruby
<gr33n7007h> Similar to flip-flops in electronic circuitry
Mars___ has quit [Remote host closed the connection]
banisterfiend has quit [Quit: Computer has gone to sleep.]
<gr33n7007h> apeiros, perfect example
Mars___ has joined #ruby
<CaptainJet> Ah I see
<CaptainJet> That is actually very neat isn't it
rezzack has joined #ruby
<CaptainJet> I'm going to have to note this, thank you
jlast has joined #ruby
jlast has quit [Remote host closed the connection]
dnyy has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
jlast has joined #ruby
Ox6abe has joined #ruby
awkwords has joined #ruby
elshaka has joined #ruby
banisterfiend has joined #ruby
<elshaka> have anyone here used the ruby gem for gnuplot?
camilasan has quit [Remote host closed the connection]
VictorSK has joined #ruby
zz_jrhorn424 is now known as jrhorn424
camilasan has joined #ruby
deception has joined #ruby
gstamp has quit [Ping timeout: 256 seconds]
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
bruticus has joined #ruby
jlast__ has joined #ruby
<elshaka> i can run gunplot from the terminal and it works as it should generating a simple image file but the ruby doesn't seem to call gnuplot at all, all the provided examples do nothing
gstamp has joined #ruby
jlast has quit [Read error: Connection reset by peer]
timonv has joined #ruby
weszlem has quit []
jlast_ has quit [Ping timeout: 264 seconds]
Mars___ has quit [Ping timeout: 268 seconds]
<AleksEst> can someone recommend cms written in ruby?
virtual|home has quit []
Mars___ has joined #ruby
Kricir has joined #ruby
khushildep has quit [Quit: khushildep]
weszlem has joined #ruby
elcontrastador has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<gr33n7007h> >> $" << "RuBy"
<eval-in_> gr33n7007h => ["enumerator.so", "/execpad/interpreters/ruby-2.0.0-p0/lib/ruby/2.0.0/i686-linux/enc/encdb.so", "/execpad/interpreters/ruby-2.0.0-p0/lib/ruby/2.0.0/i686-linux/enc/trans/transdb.so", "/execpad/interpret ... (https://eval.in/66109)
vlad_starkov has quit [Remote host closed the connection]
arietis has joined #ruby
khushildep has joined #ruby
vlad_starkov has joined #ruby
phantummm has quit [Quit: phantummm]
aspiers has joined #ruby
camilasan has quit [Ping timeout: 268 seconds]
freezey has quit [Remote host closed the connection]
Bane has joined #ruby
<Bane> Hello
<sn0wb1rd> Hello
<AleksEst> tobiasvl, elshaka thanks
VictorSK has quit []
dkamioka has quit [Remote host closed the connection]
<Bane> Do you guys deal with just Ruby or Ruby on rails too?
<Eiam> #rubyonrails
sayan has joined #ruby
<Bane> Tried it, no one is there.
mlpinit has quit [Remote host closed the connection]
mikesplain1 has quit [Ping timeout: 264 seconds]
phantummm has joined #ruby
dkamioka has joined #ruby
phantummm has quit [Client Quit]
<Eiam> Bane: there are 442 users there
coldmethod has joined #ruby
<elshaka> Bane: there's a lot of people there
<Bane> @Eiam allow me to re-attempt, thank you.
<sn0wb1rd> I see lot of ppl there
<Bane> Woops, how do you @ someone again?
<tobiasvl> just type their name
<Bane> thanks.
<tobiasvl> Bane
<havenwood> and hit tab
<elshaka> tab to autocomplete
awkwords has quit [Quit: Leaving.]
mikesplain1 has joined #ruby
pskosinski has quit [Quit: Til rivido Idisti!]
Bane has left #ruby [#ruby]
nonamehero has joined #ruby
GrantKH has joined #ruby
GrantKH has left #ruby [#ruby]
weszlem has quit [Ping timeout: 260 seconds]
seynb has quit [Remote host closed the connection]
bruticus has quit [Quit: bruticus]
saarinen has quit [Read error: Connection reset by peer]
<shevy> autocomplete for hitting
jeffdb has quit [Quit: jeffdb]
kaspergrubbe has quit [Remote host closed the connection]
lukec has joined #ruby
kaspergrubbe has joined #ruby
LarsSmit has joined #ruby
sepp2k has joined #ruby
colonolGron has quit [Quit: leaving]
BigBlueBacon has quit [Ping timeout: 245 seconds]
colonolGron has joined #ruby
sayan has quit [Ping timeout: 272 seconds]
willob1 has joined #ruby
iamjarvo has quit [Remote host closed the connection]
willob has quit [Ping timeout: 252 seconds]
robbyoconnor has quit [Ping timeout: 240 seconds]
iamjarvo has joined #ruby
robbyoconnor has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
Dave has joined #ruby
Dave is now known as Guest81422
kaspergrubbe has quit [Ping timeout: 252 seconds]
leesharma has joined #ruby
err_ok has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
burlyscudd has quit [Quit: Leaving.]
ValicekB has left #ruby [#ruby]
leesharma has left #ruby [#ruby]
Mars___ has quit [Remote host closed the connection]
Mars___ has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
typicalbender has joined #ruby
samfisher has joined #ruby
<samfisher> any idea what this error is? usr/lib/ruby/1.9.1/rubygems/specification.rb:1637:in `raise_if_conflicts': Unable to activate activemodel-4.0.0, because activesupport-4.0.1 conflicts with activesupport (= 4.0.0) (Gem::LoadError)
eldariof has joined #ruby
<samfisher> i already installed activesupport-4.0.1
dangerousdave has joined #ruby
Guest81422 has quit [Read error: Connection reset by peer]
dllama has left #ruby [#ruby]
Astralum has joined #ruby
timonv has quit [Remote host closed the connection]
maletor has joined #ruby
heftig has quit [Quit: Quitting]
timonv has joined #ruby
LarsSmit has quit [Quit: Leaving.]
aspiers has quit [Ping timeout: 244 seconds]
<waxjar> i think one of your dependencies has active support 4.0.0 as a dependency
Xeago has joined #ruby
Mars___ has quit [Ping timeout: 268 seconds]
stkowski has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
jbpros has joined #ruby
mlpinit has joined #ruby
rickmasta has joined #ruby
jbpros has quit [Client Quit]
<shevy> samfisher in the .gemspec file there is probably a specific version wanted
<samfisher> shevy: so how do I approach this? do i correct the .gemspec?
timonv has quit [Ping timeout: 240 seconds]
<shevy> hmm
vlad_sta_ has joined #ruby
<shevy> you could try and see if that works
bronson_ has joined #ruby
<shevy> try to find .add_dependency 'activesupport' ... or 'activemodel' in it
iliketurtles has joined #ruby
Kricir has quit [Remote host closed the connection]
<shevy> perhaps it can work if you change it to >=
<shevy> on the other hand, perhaps the author was absolutely sure that it won't work :\
Advocation has quit [Quit: Advocation]
<shevy> what does gem list --local say?
Kricir has joined #ruby
robbyoconnor has quit [Ping timeout: 246 seconds]
ehaliewicz has joined #ruby
<MrZYX> samfisher: I'd say use bundler
SHyx0rmZ has joined #ruby
dkamioka has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 268 seconds]
jlast__ has quit [Remote host closed the connection]
jlast has joined #ruby
khushildep has quit [Ping timeout: 260 seconds]
mikesplain1 has quit [Quit: WeeChat 0.4.2]
mikesplain has joined #ruby
CreativeEmbassy has joined #ruby
rurban has joined #ruby
phansch has joined #ruby
duggiefresh has quit [Remote host closed the connection]
jbpros has joined #ruby
jlast has quit [Read error: Connection reset by peer]
duggiefresh has joined #ruby
gasbakid__ has joined #ruby
gasbakid_ has quit [Ping timeout: 268 seconds]
jlast has joined #ruby
camilasan has joined #ruby
havenwood has quit [Remote host closed the connection]
drumusician has joined #ruby
johnnyfuchs has quit [Quit: Leaving.]
duggiefr_ has joined #ruby
nfk has quit [Quit: yawn]
duggiefresh has quit [Remote host closed the connection]
rb2k has quit [Quit: rb2k]
duggiefr_ has quit [Client Quit]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
zeropx has quit [Ping timeout: 248 seconds]
duggiefresh has joined #ruby
jlebrech has quit [Quit: Konversation terminated!]
ValicekB has joined #ruby
Mars___ has joined #ruby
hiyosi has joined #ruby
lkba has quit [Ping timeout: 272 seconds]
lfox has quit [Ping timeout: 272 seconds]
nfk has joined #ruby
jkamenik has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
virtual|home has joined #ruby
zeropx has joined #ruby
Mars___ has quit [Ping timeout: 240 seconds]
rb2k has joined #ruby
tannerburson has joined #ruby
petey has quit [Remote host closed the connection]
hiyosi has quit [Ping timeout: 272 seconds]
petey has joined #ruby
typicalbender has quit [Quit: Leaving.]
timonv has joined #ruby
weszlem has joined #ruby
eldariof has quit [Ping timeout: 260 seconds]
burlyscudd has joined #ruby
jeffdb has joined #ruby
c0rn has quit [Ping timeout: 272 seconds]
mixel has joined #ruby
bronson_ is now known as bronson
denysonique has quit [Quit: Connection closed for inactivity]
havenwood has joined #ruby
kevinykchan has joined #ruby
fntzr has quit [Ping timeout: 264 seconds]
decoponio has quit [Quit: Leaving...]
ExCa|iBuR has quit [Quit: wakka wakka]
fntzr has joined #ruby
<platzhirsch1> describe "#analyzer" for a instance method in Ruby, which prefix would you use for a class method? :: ?
balM has quit [Quit: balM]
petey has quit [Ping timeout: 260 seconds]
jalcine has quit [Excess Flood]
hiroyuki has joined #ruby
coca_rails has joined #ruby
icecandy has joined #ruby
axl_ has joined #ruby
sambao21 has joined #ruby
dkamioka has joined #ruby
icecandy has quit [Client Quit]
burlyscudd has quit [Ping timeout: 272 seconds]
scarolan has joined #ruby
leonidlm has joined #ruby
ShellFu has joined #ruby
Zesty has quit [Quit: Linkinus - http://linkinus.com]
fntzr has quit [Client Quit]
kevinykchan has quit [Ping timeout: 268 seconds]
zz_scottstamp is now known as scottstamp
_Andres has joined #ruby
BizarreCake has quit [Quit: Leaving]
iliketurtles has quit [Quit: zzzzz…..]
phinfonet has joined #ruby
<MrZYX> platzhirsch1: yes
platzhirsch1 is now known as platzhirsch
RaCx has joined #ruby
* platzhirsch roars.
freezey has joined #ruby
timonv has quit [Remote host closed the connection]
<platzhirsch> well, I guess a stag rather bells
timonv has joined #ruby
jhulten has quit [Remote host closed the connection]
theoretick has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jhulten has joined #ruby
Ox6abe has quit [Remote host closed the connection]
timonv_ has joined #ruby
timonv has quit [Read error: Connection reset by peer]
leonidlm has quit [Ping timeout: 244 seconds]
_Andres has quit [Read error: Connection reset by peer]
jhulten_ has joined #ruby
tkuchiki has joined #ruby
willob has joined #ruby
jhulten has quit [Read error: Connection reset by peer]
rrichardsr3 has joined #ruby
scarolan has quit [Ping timeout: 260 seconds]
dkamioka has quit [Remote host closed the connection]
c0rn has joined #ruby
willob1 has quit [Ping timeout: 268 seconds]
jb41 has quit [Ping timeout: 260 seconds]
ner0x has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
typicalbender has joined #ruby
nouitfvf_ has quit []
aspires has quit [Quit: sudo making a sandwich]
jbpros has quit [Quit: jbpros]
Ox6abe has joined #ruby
err_ok has joined #ruby
err_ok has quit [Max SendQ exceeded]
_Andres has joined #ruby
lethjakm1 has quit [Remote host closed the connection]
Czupa has quit [Remote host closed the connection]
pushpak has joined #ruby
neonlex has joined #ruby
neonlex has quit [Client Quit]
ldnunes has quit [Quit: Leaving]
burlyscudd has joined #ruby
zoee has joined #ruby
bronson has quit [Quit: bronson]
jalcine has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
banjara has quit [Quit: Leaving.]
Guest1542 is now known as bassclef
banjara has joined #ruby
Mars___ has joined #ruby
petey has joined #ruby
Mars___ has quit [Read error: Connection reset by peer]
Mars___ has joined #ruby
simoz has joined #ruby
heftig has joined #ruby
Mars___ has quit [Remote host closed the connection]
Mars___ has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
jetblack has joined #ruby
vlad_starkov has joined #ruby
aspires has joined #ruby
simoz has quit [Ping timeout: 260 seconds]
wildroman has joined #ruby
scottstamp is now known as zz_scottstamp
Mars____ has joined #ruby
dkamioka has joined #ruby
aspires has quit [Client Quit]
Mars___ has quit [Read error: Connection reset by peer]
zigomir has quit [Quit: zigomir]
johnnyfuchs has joined #ruby
tkuchiki has quit [Ping timeout: 268 seconds]
dhruvasagar has quit [Ping timeout: 240 seconds]
mark_locklear has quit [Read error: Operation timed out]
Elhu has joined #ruby
robbyoconnor has joined #ruby
aspires has joined #ruby
scarolan has joined #ruby
zz_scottstamp is now known as scottstamp
banjara has quit [Quit: Leaving.]
mark_locklear has joined #ruby
banjara has joined #ruby
scottstamp is now known as zz_scottstamp
artm has quit [Ping timeout: 245 seconds]
banjara has quit [Client Quit]
freezey has quit [Remote host closed the connection]
banjara has joined #ruby
vlad_sta_ has joined #ruby
kindjal has joined #ruby
scarolan has quit [Ping timeout: 268 seconds]
funburn has joined #ruby
ExCa|iBuR has joined #ruby
allsystemsarego has quit [Quit: Leaving]
Jetchisel has joined #ruby
AndChat| has joined #ruby
rb2k has quit [Quit: rb2k]
vlad_starkov has quit [Ping timeout: 260 seconds]
nobitanobi has quit [Ping timeout: 252 seconds]
ffranz has joined #ruby
Banistergalaxy has quit [Ping timeout: 248 seconds]
hiyosi has joined #ruby
robbyoconnor has quit [Max SendQ exceeded]
tsykoduk is now known as zz_tsykoduk
robbyoconnor has joined #ruby
aarkerio has joined #ruby
banjara has quit [Quit: Leaving.]
lfox has joined #ruby
lfox has quit [Client Quit]
lfox has joined #ruby
banjara has joined #ruby
artm has joined #ruby
h0rrorvacui has joined #ruby
ValicekB has left #ruby [#ruby]
RaCx has joined #ruby
hiyosi has quit [Ping timeout: 240 seconds]
theoretick has joined #ruby
robbyoconnor has quit [Remote host closed the connection]
michael_mbp is now known as zz_michael_mbp
robbyoconnor has joined #ruby
gr33n7007h has quit [Remote host closed the connection]
platzhirsch has left #ruby [#ruby]
coderhs has joined #ruby
atrocitas has joined #ruby
MetaCosm has quit [Max SendQ exceeded]
theoretick is now known as theoretick_
MetaCosm has joined #ruby
nisstyre has joined #ruby
lkba has joined #ruby
Mars____ has quit [Remote host closed the connection]
theoretick_ has quit [Client Quit]
Mars__ has joined #ruby
coca_rails has quit [Remote host closed the connection]
coca_rails has joined #ruby
<mary5030> have been working on generating a csv report and allowing user to donwload it from the ui, I get error from the ui no such route exist, if anyone has a chance to take a look at my code I have put the sameple input data from my model and my controller methods in this link
<mary5030> i would appreciate a review
<mary5030> not sure where i have gone wrong
barratt has joined #ruby
iliketurtles has joined #ruby
heidi has quit [Quit: Leaving.]
coderhs has quit [Ping timeout: 252 seconds]
jamblack has quit [Quit: jamblack]
Mars__ has quit [Ping timeout: 246 seconds]
aspiers has joined #ruby
ValicekB has joined #ruby
stringoO has joined #ruby
stringoO has quit [Client Quit]
banjara has quit [Quit: Leaving.]
coca_rails has quit [Ping timeout: 245 seconds]
stringoO has joined #ruby
banjara has joined #ruby
freezey has joined #ruby
aley has quit [Quit: aley]
iamjarvo has quit [Remote host closed the connection]
randomnick_ has joined #ruby
theoretick has joined #ruby
r0bby_ has joined #ruby
jbpros has joined #ruby
heidi has joined #ruby
tomasso has joined #ruby
nomenkun has joined #ruby
forced_request has joined #ruby
Tomasso_ has quit [Quit: Page closed]
banisterfiend has quit [Quit: Computer has gone to sleep.]
Elhu has quit [Quit: Computer has gone to sleep.]
banjara has quit [Client Quit]
scarolan has joined #ruby
rb2k has joined #ruby
c0rn has joined #ruby
banjara has joined #ruby
burlyscudd has quit [Quit: Leaving.]
banjara has quit [Changing host]
banjara has joined #ruby
zipper has quit [Quit: leaving]
bluehavana has quit [Quit: Connection closed for inactivity]
Elhu has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
r0bby_ has quit [Remote host closed the connection]
lucyw has joined #ruby
mark_locklear has quit [Ping timeout: 252 seconds]
robbyoconnor has quit [Ping timeout: 268 seconds]
Mars__ has joined #ruby
r0bby_ has joined #ruby
theoretick is now known as theoretick_
<lucyw> hey, how do I run ruby on debian? I know it's already installed, but just typing "ruby" or "ruby 1.9.2" into the command line freezes it up.
<Jamo> lucyw: how about "ruby -v"
banjara has quit [Client Quit]
<DanBoy> which ruby
theoretick_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thesheff17 has quit [Ping timeout: 244 seconds]
<DanBoy> im on debian now
CaptainJet has quit [Ping timeout: 264 seconds]
<DanBoy> it didn't come with it
banjara has joined #ruby
<Jamo> afaik when you run just ruby -command it reads stdin, and when receiving EOF (ctrl-D) it will evaluate code written in stdin
scarolan has quit [Ping timeout: 246 seconds]
banjara has quit [Client Quit]
jamesaanderson has joined #ruby
banjara has joined #ruby
capicue has joined #ruby
willob1 has joined #ruby
<lucyw> DanBoy: Ruby 1.9.2, and I already have it installed
willob has quit [Ping timeout: 246 seconds]
<DanBoy> you apt-get it?
camilasan has quit [Remote host closed the connection]
<h0rrorvacui> lucyw: type irb
<h0rrorvacui> I thinke you want the repl
<h0rrorvacui> tink*
<h0rrorvacui> think*
Kricir has quit [Remote host closed the connection]
camilasan has joined #ruby
<lucyw> yes, and apparently already had it from a previous user
scarolan has joined #ruby
r0bby_ has quit [Remote host closed the connection]
aley has joined #ruby
robbyoconnor has joined #ruby
<DanBoy> ya then it didn't come with it
GrantKH has joined #ruby
blackmesa has joined #ruby
<DanBoy> you got it yourself
<DanBoy> add a shebang line to the file you want to run
<DanBoy> and chmod +x file.rb
rb2k has left #ruby [#ruby]
<DanBoy> then you can just ./file.rb
<h0rrorvacui> or issue ruby filename.rb :P
geekbri has quit []
zz_scottstamp is now known as scottstamp
<DanBoy> shebang line is cooler :P
<h0rrorvacui> Yeah
<lucyw> h0rrorvacui: is that a ruby environment that opens, though? My endgame here is opening a program called "compass" which is installed using Ruby
<DanBoy> pffffttt
<h0rrorvacui> ohh no
Lewix has joined #ruby
<Xeago> lucyw: the compass gem installs a binary, compass
<h0rrorvacui> You need to install it
aarkerio has quit [Quit: Verlassend]
<Xeago> so just have the shebang line #!/usr/bin/env compass
carraroj has joined #ruby
camilasan has quit [Ping timeout: 240 seconds]
<h0rrorvacui> gem update --system; gem install compass;
<h0rrorvacui> compass create project_name
Lewix has quit [Remote host closed the connection]
hackeron has joined #ruby
<DanBoy> should try and use rvm dude
<Xeago> the error message you get if compass is not installed is entirely sane
<Xeago> DanBoy: no?
<lucyw> ERROR: gem update --system is disabled on Debian, because it will overwrite the content of the rubygems Debian package, and might break your Debian system in subtle ways. The Debian-supported way to update rubygems is through apt-get, using Debian official repositories.
phansch has quit [Remote host closed the connection]
timonv_ has quit [Remote host closed the connection]
<Xeago> what is wrong with env: foobar: No such file or directory?
<h0rrorvacui> yeah ...
kindjal has quit [Quit: Computer has gone to sleep.]
<h0rrorvacui> You should get rvm or rbenv
GrantKH has quit [Ping timeout: 272 seconds]
<havenwood> chruby
<h0rrorvacui> or chruby
vlad_sta_ has quit [Remote host closed the connection]
timonv has joined #ruby
<havenwood> :P
<DanBoy> well it keeps things neat
<DanBoy> instead of messing with the entire system
<Xeago> I install ruby with ruby-install, and then set up the paths properly in my environment
<Xeago> no need for a ruby version manager >.<
theoretick has joined #ruby
theoretick is now known as theoretick_
<h0rrorvacui> Well I like rvm for its gemsets
<jrhorn424> I'm having trouble opening pry from a Rake task http://pastebin.com/pmmucZyZ
<Xeago> tho, take chruby if you take one :)
<Xeago> h0rrorvacui: gemsets are a broken concept imo
<DanBoy> well if you got 3 different rubies 1.8, 1.9 ,2.0 all with their own gemsets
<DanBoy> rvm is great
<h0rrorvacui> Xeago: How so? I'm open to change :P
<Xeago> bundler
funburn has quit [Quit: funburn]
uxp is now known as uxp_
<h0rrorvacui> Yeah but bundler is app specific
theoretick_ has quit [Client Quit]
<DanBoy> rails apps normally
yalue has quit [Quit: Leaving]
<DanBoy> whatever it depends on your needs, i just like rvm its convenient
GrantKH has joined #ruby
<h0rrorvacui> You still have to worry about gem conflicts. Bundler is just gem dependencies management not environment management really.
<h0rrorvacui> But as apps move to bundler that lessens
banisterfiend has joined #ruby
Monie has joined #ruby
theoretick has joined #ruby
timonv has quit [Ping timeout: 260 seconds]
<Xeago> h0rrorvacui: when would I need to wrorry about gem conflicts?
joost_like_toast has joined #ruby
<DanBoy> multiple projects on the same machine
Guest2496 has joined #ruby
<h0rrorvacui> Xeago: You may not. I do with a lot of projects on my dev machine.
<havenwood> h0rrorvacui: an alternative to rvm is to install Rubies with ruby-install, switch Rubies with chruby and switch gems with chgems.
Elhu has quit [Quit: Computer has gone to sleep.]
<havenwood> i use ruby-install and chruby but not chgems
Elhu has joined #ruby
<h0rrorvacui> havenwood: I have to run each app in its version simultaneously, I don't know how to do that as easily with chruby and chgems
wedgeV has joined #ruby
eoinkelly has joined #ruby
<h0rrorvacui> I'll look into it though, I hate the hackish ways rvm and rbenv do it
eoinkelly has left #ruby [#ruby]
tannerburson has quit [Quit: tannerburson]
<DanBoy> well on my mac i don't want to mess with the OS the way it came from the factory, so rvm + macports is what i use
ehaliewicz has quit [Remote host closed the connection]
<DanBoy> linux can be a different story
<DanBoy> but i still use rvm on it
rrichardsr3 has quit [Quit: -- I'm out --]
<jrhorn424> n/m forgot to add pry to gemfile
ce_afk is now known as cescalante
<mary5030> would someone please look at my paste and see where I am going wrong I have posted my input and desired out put and my controller code, i am hoping to generate a csv report, i am getting an error 0 argument for 1 around csv_data =
JZTech101 has joined #ruby
<mary5030> i would really appreciate anyone taking a look at this
<mary5030> thanks
uxp_ is now known as uxp
CaptainJet has joined #ruby
apeiros has quit [Remote host closed the connection]
nwertman has quit [Remote host closed the connection]
mengu has joined #ruby
scottstamp is now known as zz_scottstamp
apeiros has joined #ruby
nbrosnahan has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> mary5030: why `stats.send(:calculate)` instead of `stats.calculate`?
<mary5030> it is a private method
<havenwood> ah
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xk_id has quit [Quit:
<mary5030> but that is not giving me trouble for the time being
err_ok has joined #ruby
err_ok has quit [Max SendQ exceeded]
JZTech101 has quit [Quit: Now What?]
sec_ has quit [Quit: Connection closed for inactivity]
lucyw has left #ruby [#ruby]
mikesplain has quit [Quit: WeeChat 0.4.2]
lfox has quit [Quit: ZZZzzz…]
err_ok has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
joost_like_toast has quit [Quit: Computer has gone to sleep.]
gasbakid__ has quit [Read error: Connection reset by peer]
apeiros has quit [Ping timeout: 246 seconds]
DanKnox is now known as DanKnox_away
colonolGron has quit [Ping timeout: 240 seconds]
Monie has joined #ruby
jhulten_ has quit [Remote host closed the connection]
jhulten has joined #ruby
GrantKH has quit [Remote host closed the connection]
thesheff17 has joined #ruby
kindjal has joined #ruby
broadcast has joined #ruby
GrantKH has joined #ruby
yfeldblum has quit [Remote host closed the connection]
ehc has joined #ruby
fedalto has quit [Quit: Leaving]
jhulten_ has joined #ruby
robbyoconnor has quit [Ping timeout: 246 seconds]
jhulten has quit [Read error: Connection reset by peer]
fmcgeough has quit [Quit: fmcgeough]
elshaka has quit [Quit: Page closed]
Advocation has joined #ruby
xk_id has joined #ruby
GrantKH_ has joined #ruby
mengu has quit [Quit: Leaving]
mengu has joined #ruby
zxq9 has joined #ruby
GrantKH has quit [Ping timeout: 260 seconds]
<havenwood> mary5030: You're just looking to do the tabbed table like your desired output?
drag00n has quit [Ping timeout: 240 seconds]
<mary5030> yes
nobitanobi has joined #ruby
<havenwood> mary5030: puts "autonomous_system_name\tcider\tpercentage"; puts @all_stats.percentages_grouped_by_block.map { |k, v| "#{@all_stats.name}\t\t\t#{k}\t#{v}" }
<nobitanobi> What am I doing wrong here? JSON.parse("É".to_json) --> JSON::ParserError: 757: unexpected token at '"\u00e9"'
<mary5030> i am exporting to csv for client to download
<mary5030> so not sure how to make this into csv
bret has quit [Ping timeout: 272 seconds]
<h0rrorvacui> mary5030: are you not passing a string into CSV.generate ?
hiyosi has joined #ruby
louism2wash has joined #ruby
<h0rrorvacui> let me look at CSV to be sure but I think you are just passing a block
camilasan has joined #ruby
cody-- has quit [Quit: derp]
<h0rrorvacui> and it needs a string to use the block on
ExCa|iBuR is now known as ExCa|iBuR-sto
<h0rrorvacui> nm
<h0rrorvacui> disregard that
<mary5030> okay i wasn't sure, that is the part i strugle on how to pass the above blocks
<mary5030> to csv generate
vlad_starkov has joined #ruby
Soda has joined #ruby
nwertman has joined #ruby
dgarstang3 has joined #ruby
<dgarstang3> Is .... rubygems down? http://pastebin.com/2XM88Psx
Ox6abe has quit [Ping timeout: 260 seconds]
<louism2wash> Hey guys, quick question regarding threads in MRI. Just trying to understand if this is an accurate statement: "a machine running a single ruby process will execute concurrent requests to the application by splitting each request into it's own thread and the interpreter will then switch between threads until execution is complete."
hiyosi has quit [Ping timeout: 246 seconds]
pu22l3r_ has joined #ruby
keen__ has quit [Read error: Connection reset by peer]
keen_ has joined #ruby
nobitanobi has quit [Ping timeout: 252 seconds]
<MrZYX> louism2wash: in case you use a application server like puma
wildroman has quit [Remote host closed the connection]
<MrZYX> this isn't inherently build into ruby or rack/cgi/fcgi
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
mmcdaris_ has joined #ruby
thelorax123 has quit [Remote host closed the connection]
Ox6abe has joined #ruby
pu22l3r has quit [Ping timeout: 268 seconds]
<louism2wash> MrZYX: I am using rack and passenger which, to the best of my knowledge, use this implementation.
typicalbender has quit [Quit: Leaving.]
atmosx has quit [Quit: leaving]
<MrZYX> I'm actually not sure if passenger uses a thread or a process pool
<MrZYX> I kinda thought it was a process pool
michagogo|cloud has joined #ruby
<louism2wash> MrZYX: I think it is a process pool
<michagogo|cloud> Anyone have any ideas how I'd run a 3-billion line ruby script?
<MrZYX> also pretty sure it's a pool, so it doesn't spawn a new one for each request
<DouweM> michagogo|cloud: :|
<louism2wash> MrZYX: I guess I'm trying to understand what the difference is
thelorax123 has joined #ruby
pu22l3r_ has quit [Ping timeout: 268 seconds]
DanKnox_away is now known as DanKnox
<MrZYX> you have more than one process floating around which takes the request via some IPC means, processes it and serves the reply
TheMoonMaster has quit [Excess Flood]
Tamal has joined #ruby
pu22l3r has joined #ruby
<MrZYX> usually you fork them of a main process
phantasm66 has quit [Quit: *sleeeep….]
<MrZYX> so maybe research process forking, that might make it clear for you
rodan- has joined #ruby
mmcdaris has quit [Ping timeout: 245 seconds]
mmcdaris_ is now known as mmcdaris
samfisher has quit [Quit: exit error code 434]
<michagogo|cloud> The compressed version of the script is available at https://mega.co.nz/#!agZwlboC!Msopwh8b9dxMWx5S08G1pi9TbfQFVRSNNlbVN-Gnveg
TheMoonMaster has joined #ruby
vince_prignano has quit []
<louism2wash> MrZYX: cool, thanks for the help
Kricir has joined #ruby
bret has joined #ruby
typicalbender has joined #ruby
<michagogo|cloud> Anyone?
Deele has quit [Ping timeout: 260 seconds]
pu22l3r_ has joined #ruby
pu22l3r_ has quit [Read error: Connection reset by peer]
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
dtrott has joined #ruby
mlpinit has quit [Remote host closed the connection]
<MrZYX> michagogo|cloud: why the hell would you want to do something like that?
pdimitrov has quit [Ping timeout: 264 seconds]
apeiros has joined #ruby
pr0ggie has quit [Ping timeout: 264 seconds]
carraroj has quit [Quit: Konversation terminated!]
jkamenik has quit [Quit: Leaving.]
<michagogo|cloud> So I can say I've implemented a hello world in 3 gigalines?
* michagogo|cloud shrugs
Diranged has joined #ruby
freezey has quit [Remote host closed the connection]
Lewix has joined #ruby
pu22l3r has quit [Ping timeout: 268 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
<MrZYX> you know this doesn't seem smart to anyone remotely knowing programming?
<michagogo|cloud> IIRC I generated that a while ago as a dare
willob1 has quit [Quit: Leaving.]
Elhu has joined #ruby
burlyscudd has joined #ruby
<michagogo|cloud> I found it, and was wondering if it'd actually run
diegoviola has joined #ruby
<michagogo|cloud> But I get an error, something about a failure to allocate memory
<DouweM> I doubt you have enough memory to load that file into memory
<DouweM> yeah no shit
<michagogo|cloud> :-P
platypine has joined #ruby
freezey has joined #ruby
broadcast has quit [Quit: Linkinus - http://linkinus.com]
<MrZYX> head yourfile | ruby
<diegoviola> i'm really tired of the client i'm working with, he's very pushy and desperate, i'm not sure why but i get the feeling that he expects me to work on weekends and stuff, asking me if a feature is already complete in monday
<diegoviola> how do you folks deal with crap like this
RaCx has quit [Quit: Computer has gone to sleep.]
cescalante is now known as ce_afk
m_3 has quit [Read error: Operation timed out]
<Diranged> hey, i need a quick method for turning a hash into a flat array of key=value pairs..
<dtrott> A bit of a weird one; any idea why two Mac laptops (pretty clean Mavericks install) roughly equal spec, on the same wifi doing (gem install berkshelf) after the gem is already installed, one takes ~12 seconds the other 5 minutes ?
<MrZYX> Diranged: Hash#to_a
Xeago has quit [Remote host closed the connection]
<MrZYX> .flatten(1)
yfeldblum has joined #ruby
casheew has quit [Read error: Connection reset by peer]
Kricir has quit [Remote host closed the connection]
jrhe has quit [Quit: jrhe]
burlyscudd has quit [Ping timeout: 252 seconds]
jwest has quit [Quit: WeeChat 0.4.1]
jalcine has quit [Excess Flood]
<Diranged> hmm ok thats close.. but if my hash has embedded hashes inside of it, they don't seem to convert the same way.. hrmm. but this should get me there
<Diranged> thanks
iliketurtles has quit [Quit: zzzzz…..]
kaldrenon has quit [Remote host closed the connection]
jalcine has joined #ruby
_HolyCow has joined #ruby
m_3 has joined #ruby
srji has joined #ruby
kaldrenon has joined #ruby
Jeticus has joined #ruby
ner0x has quit [Quit: Leaving]
<TTilus> diegoviola: i just ignore the crap and try to focus on the next most important thing (to customer)
Jeticus has quit [Read error: No route to host]
<diegoviola> TTilus: but what you do when the customer is being too pushy?
gianlucadv has quit [Ping timeout: 260 seconds]
capicue has quit [Quit: Leaving...]
<diegoviola> i have a feeling i'll get fired soon, not sure if i should just walk away or wait to get fired
thisirs has quit [Read error: Connection reset by peer]
zoldar_ is now known as zoldar
<TTilus> diegoviola: it is good to be explicit on the way you work
Jeticus has joined #ruby
casheew has joined #ruby
_HolyCow1 has quit [Ping timeout: 264 seconds]
Astralum has quit [Ping timeout: 268 seconds]
pr0ggie has joined #ruby
pdimitrov has joined #ruby
<TTilus> diegoviola: have you asked feelings wrt deliverables and methods?
jonathanwallace has joined #ruby
<dtrott> diegoviola: Do you think you will get paid for the work you have done ?
yfeldblu_ has joined #ruby
<diegoviola> if by explicit you mean "it'll be done when it's done" or "asking me every day doesn't make it happen any faster" then yeah, i haven't really tell the client that yet
yfeldblum has quit [Read error: Connection reset by peer]
CaptainJet has quit [Ping timeout: 260 seconds]
<diegoviola> but i'm sick of his daily questions: "how's it going?" and the other 20 questions that i get daily
kaldrenon has quit [Ping timeout: 244 seconds]
<TTilus> diegoviola: that and "i workx roughly X hours a week and not on weekends"
<dtrott> diegoviola: The trick there is to get in front of the question send an email each morning with the status and the answer to the 20 questions.
tvw has joined #ruby
<diegoviola> TTilus: i already got paid this month
<TTilus> diegoviola: and "garden doesnt grow any faster with more gardeners or tighter schedules"
<diegoviola> TTilus: i've only been 1 month with his project
<dtrott> When someone asks you just open the email and read it to them ...
<TTilus> dtrott: it sounds a bit unhealthy if you need to do that :) (but sometimes you will)
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
<diegoviola> i've only worked with him for 1 month, and he already put me to work in 2 projects, one is a rails 4 app, and the other one is a rails 3.2.x app, i still don't know his code enough because it's only one month since we are working together
<diegoviola> but i'm already kind of familiar with his projects
jrhe has joined #ruby
<diegoviola> i delivered some features in that timeframe
<diegoviola> but i get a feeling i'm being exploited
<diegoviola> he's too pushy, ffs
jwest has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
Jeticus has quit [Read error: Connection reset by peer]
<h0rrorvacui> diegoviola: I think the customer might be worried you are not making progress so just make an effort to give the customer status updates.
<diegoviola> i can't take a project and be productive the same day, f*ck that
<TTilus> diegoviola: does the pushing get under your skin or can you keep prof attitude
dangerousdave has quit [Quit: Leaving...]
<dtrott> Exploited just comes down to hourly rate (salary / hours worked per week).
Kabaka has quit [Ping timeout: 240 seconds]
<diegoviola> h0rrorvacui: yes i think he might be worried about that also
<diegoviola> TTilus: it gets under my skin but i try to be as polite as possible
<TTilus> diegoviola: would you feel bad to ask?
<diegoviola> TTilus: feel bad to ask about what?
MrZYX is now known as MrZYX|off
vlad_sta_ has joined #ruby
<TTilus> diegoviola: about the worries
michagogo|cloud has left #ruby [#ruby]
vlad_sta_ has quit [Remote host closed the connection]
<diegoviola> TTilus: i know he is worried about my performance, and i'm not saying i've been the most performant developer on the team
zzz_taion809 is now known as taion809
_HolyCow1 has joined #ruby
<diegoviola> he probably wants me to deliver a lot more in a month, but i'm only starting
<diegoviola> i could ask sure
<diegoviola> wouldn't feel bad at all
<TTilus> diegoviola: then go ask
<diegoviola> ok
<diegoviola> ty
<h0rrorvacui> diegoviola: is this your first job?
<diegoviola> h0rrorvacui: not at all
dangerousdave has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<h0rrorvacui> okay I thought perhaps he was making an attempt to mentor
<diegoviola> h0rrorvacui: before this job i was also working on a rails app and that experience has been great
justsee has joined #ruby
<TTilus> diegoviola: being sincere and showing that you are aware of things around you shows real professionality
mmcdaris has quit [Quit: mmcdaris]
danshultz has quit [Remote host closed the connection]
justsee has quit [Changing host]
justsee has joined #ruby
<diegoviola> TTilus: ok
<diegoviola> thanks for the advice guys :)
<TTilus> np
danshultz has joined #ruby
_HolyCow has quit [Ping timeout: 246 seconds]
<louism2wash> MrZYX: So a process is just an execution context that is handled by the interpreter… so if you have multiple processes and a single Ruby instance (which I believe is the only option with MRI), the vm will execute those processes via some form of context switching? Each process taking turns working with the interpreter until their is a blocking operation of the process completes?
vlad_starkov has quit [Ping timeout: 260 seconds]
<louism2wash> *or the process is complete?
mmcdaris has joined #ruby
<diegoviola> before this job i was working also on a few rails applications with another programmer, but that programmer understood that things could take some time, we were working together on features, nobody put any stress on each other and i felt i could be much more productive that way
<diegoviola> it was fun, i really enjoying working on that project
<diegoviola> enjoyed*
Tearan has quit [Quit: Sleepy Badger....]
<h0rrorvacui> diegoviola: why do you feel you are less productive this time around?
wojtek_ATARI130X has joined #ruby
<diegoviola> h0rrorvacui: i don't know, i'm not blaming my employer, but i also have to learn a few things and i made that clear to him, that sometimes i need time to figure things on my own and learn as i go
olivier_bK has quit [Ping timeout: 245 seconds]
mathrick has joined #ruby
theoretick has quit [Ping timeout: 252 seconds]
<TTilus> louism2wash: ruby process is OS process
<diegoviola> h0rrorvacui: he seemed fine by that but then after 1-2 days he will send me an email atelling me "how's going?" or some angry questions like "what i'm paying you is what i pay to my other developers", etc
danshultz has quit [Ping timeout: 252 seconds]
<TTilus> louism2wash: one ruby vm = one process
hiall has joined #ruby
jonathanwallace has quit [Ping timeout: 244 seconds]
Tuxist has quit [Remote host closed the connection]
<louism2wash> TTilus: sorry, butchering the terminology :)
drumusician has quit [Ping timeout: 246 seconds]
<diegoviola> h0rrorvacui: so the hostile environment perhaps causes some of that stress on me, or i don't know
<TTilus> diegoviola: how often do you communicate about your status?
<h0rrorvacui> diegoviola: okay then try to focus on low hanging fruit in the mean time. Then use the rest of the time getting up to speed quickly.
<diegoviola> TTilus: as soon as i push something to gh i send him an email
<diegoviola> h0rrorvacui: 2-3 times a week, if not more
<diegoviola> err
<diegoviola> that was for TTilus
<TTilus> diegoviola: i personally try not to skip any day without communicating
TigerWolf has joined #ruby
<louism2wash> TTilus: But does it sound like I am on the right track? The vm, which is run by the Ruby OS process, takes turns executing the processes I have created in my code via context-switching?
Kricir has joined #ruby
<TTilus> per commit would be too much as i commit pretty ofen
scarolan has quit [Ping timeout: 272 seconds]
claymore has quit [Quit: Leaving]
hiall has quit [Client Quit]
<h0rrorvacui> diegoviola: also how is git work flow vs the other developers?
d45h has quit []
AlSquire has quit [Quit: This computer has gone to sleep]
allanm has quit [Read error: Connection reset by peer]
<TTilus> louism2wash: OS (Windows, OSX, whatnot) handles switching bw processes
<h0rrorvacui> Are you pushing as much as them? He maybe using that as an indicator of your work.
<TTilus> louism2wash: otherwise roughly correct
<louism2wash> TTilus: thanks for the clarification
<TTilus> louism2wash: it that your home assignment or something?
sambao21 has joined #ruby
<louism2wash> TTilus: no, just trying to better understand exactly what is happening at a lower level
<diegoviola> h0rrorvacui: i haven't worked that closely with the other devs yet, but i've been creating separate branches for the individual tasks i've been working with, then merging them into master
<TTilus> louism2wash: cant comment on you being on right track because i dont know what you are doing
<TTilus> louism2wash: and im too lazy to skim log
apeiros has quit [Remote host closed the connection]
wojtek_ATARI130X has quit [Quit: Wychodzi]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
apeiros has joined #ruby
SHyx0rmZ has quit [Ping timeout: 240 seconds]
<louism2wash> TTilus: I was just trying to understand the concept of Ruby not being multi-threaded but then reading blogs saying the Ruby is "sort-of" multi-threaded because of processes
<TTilus> louism2wash: forget about processes
robbyoconnor has joined #ruby
acrussell has quit [Quit: Leaving.]
duggiefresh has quit [Remote host closed the connection]
<h0rrorvacui> TTilus: why do that?
<louism2wash> TTilus: yeah, why?
duggiefresh has joined #ruby
<louism2wash> now I want to pull my hair out
<TTilus> louism2wash: ruby has threads, MRI threads dont run concurrently, but e.g. jruby threads do
jerius has quit [Ping timeout: 272 seconds]
iliketurtles has joined #ruby
zoee has quit [Quit: This computer has gone to sleep]
johnnyfuchs has quit [Quit: Leaving.]
iliketurtles has quit [Client Quit]
<h0rrorvacui> there is nothing wrong with using processes; forking is powerful and works great now that CoW friendly child processes exist.
boboc has joined #ruby
<TTilus> louism2wash: if you want to understand why they say ruby is only sort of multithreaded, then talking about proceses is only gonna mix you up
theRoUS has quit [Read error: Operation timed out]
zz_tsykoduk is now known as tsykoduk
<TTilus> h0rrorvacui: im not arguing against that
<TTilus> h0rrorvacui: louism2wash told "I was just trying to understand the concept of Ruby not being multi-threaded" and im trying to help
luckyruby has quit [Remote host closed the connection]
srji has quit [Quit: leaving]
agent_white has joined #ruby
deception has quit [Quit: Goodbye]
<h0rrorvacui> I see I thought you were saying to forget about using them.
luckyruby has joined #ruby
<h0rrorvacui> I see now that you were only trying to clarify
Monie has joined #ruby
aryaching has quit [Ping timeout: 245 seconds]
hiyosi has joined #ruby
capicue has joined #ruby
stringoO has quit [Quit: stringoO]
duggiefresh has quit [Ping timeout: 272 seconds]
<TTilus> louism2wash: google for "concurrency is not parallellism"
jmimi1 has joined #ruby
mikepack_ has joined #ruby
<TTilus> louism2wash: then you have the tools to understand whats going on inside mri vs. jruby
danshultz has joined #ruby
havenwood has quit [Remote host closed the connection]
jmimi has quit [Killed (barjavel.freenode.net (Nickname regained by services))]
jmimi1 is now known as jmimi
tvw has quit []
luckyruby has quit [Remote host closed the connection]
dkamioka has quit [Remote host closed the connection]
luckyruby has joined #ruby
<TTilus> louism2wash: both have threads, mri vm runs just one at a time and jruby vm (potentially) runs several (utilizing more than one cpu core)
<h0rrorvacui> Has a lot of information on concurrency
mikepack has quit [Ping timeout: 272 seconds]
<h0rrorvacui> look up articles explaining the GIL and you may find more answers too
<h0rrorvacui> Just remember things have changed a lot over the span of 1.8 - 2.0 when reading those articles
hiyosi has quit [Ping timeout: 252 seconds]
wildroman2 has joined #ruby
kirun has quit [Quit: Client exiting]
<mathrick> hi, how should I structure my code to have a Config class with default settings that is then overriden by a user-supplied config.rb? I tried this, but I get errors which I don't quite get: https://gist.github.com/mathrick/7421944
Lewix has quit [Remote host closed the connection]
drumsrgr8forn8 has quit [Remote host closed the connection]
<mathrick> the extend self is an idiom I've seen used elsewhere, but clearly I didn't get it completely
failshell has quit [Remote host closed the connection]
marr has joined #ruby
c0rn has quit [Ping timeout: 260 seconds]
johnnyfuchs has joined #ruby
motto has quit [Quit: Sto andando via]
<h0rrorvacui> louism2wash: also check out http://www.rubini.us for a neat Ruby implementation.
rudisimo has quit [Quit: Leaving.]
vlad_starkov has joined #ruby
jrhe has quit [Quit: jrhe]
<louism2wash> Thanks everyone for the help
kenneth has joined #ruby
amacgregor__ is now known as amacgregor
c0rn has joined #ruby
havenwood has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
elux has quit [Quit: Leaving...]
nisstyre has quit [Quit: Leaving]
kofno has quit [Ping timeout: 248 seconds]
jonathanwallace has joined #ruby
thelorax123 has quit [Remote host closed the connection]
shadoi has joined #ruby
thelorax123 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
hiroyuki_ has joined #ruby
jbpros has quit [Quit: jbpros]
sailias has quit [Quit: Leaving.]
tvw has joined #ruby
wildroman2 has joined #ruby
<mathrick> any comments regarding my code?
luckyruby has quit [Remote host closed the connection]
mixel has quit [Ping timeout: 240 seconds]
funburn has joined #ruby
hiroyuki has quit [Ping timeout: 244 seconds]
luckyruby has joined #ruby
mixel has joined #ruby
scarolan has joined #ruby
timonv has joined #ruby
MarcWeber has quit [Quit: leaving]
GrantKH_ has quit [Remote host closed the connection]
AleksEst_ has joined #ruby
burlyscudd has joined #ruby
Ox6abe has quit []
thesheff17 has quit [Ping timeout: 252 seconds]
AleksEst has quit [Ping timeout: 264 seconds]
Advocation has quit [Quit: Advocation]
tvw has quit [Remote host closed the connection]
nomenkun has quit [Remote host closed the connection]
johnnyfuchs has quit [Quit: Leaving.]
nomenkun has joined #ruby
jaimef has quit [Ping timeout: 260 seconds]
iliketurtles has joined #ruby
Tamal is now known as Tamal_Away
cub1c__ has quit [Ping timeout: 260 seconds]
timonv has quit [Ping timeout: 260 seconds]
burlyscudd has quit [Ping timeout: 252 seconds]
jrhe has joined #ruby
nomenkun has quit [Ping timeout: 260 seconds]
tvw has joined #ruby
elcontrastador has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
baordog has quit [Remote host closed the connection]
boboc has quit []
jrhe has quit [Client Quit]
scarolan has quit [Ping timeout: 246 seconds]
TheShaun|AFK is now known as TheShaun
freezey has quit [Remote host closed the connection]
breakingthings has quit []
freezey has joined #ruby
carif has joined #ruby
mmcdaris has quit [Ping timeout: 240 seconds]
scarolan has joined #ruby
aspires has quit [Quit: sudo making a sandwich]
SHyx0rmZ has joined #ruby
aspires has joined #ruby
hiyosi has joined #ruby
carif has quit [Remote host closed the connection]
virtual|home has quit []
axl_ has quit [Quit: axl_]
weszlem has quit []
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cub1c has joined #ruby
drag00n has joined #ruby
carif has joined #ruby
freezey has quit [Ping timeout: 240 seconds]
flops has quit [Remote host closed the connection]
Lewix has joined #ruby
virtualize has quit []
jaimef has joined #ruby
Lewix has quit [Remote host closed the connection]
jeffdb has quit [Quit: jeffdb]
drag00n has quit [Read error: Connection timed out]
vlad_starkov has joined #ruby
Trudko has quit [Remote host closed the connection]
jeffdb has joined #ruby
aspires has quit [Quit: sudo making a sandwich]
jibi has quit [Quit: .]
danman has quit [Quit: danman]
nateberkopec has quit [Quit: Leaving...]
Ivo has quit [Read error: Connection reset by peer]
dangerousdave has quit [Quit: Leaving...]
vlad_starkov has quit [Read error: Connection reset by peer]
capicue has quit [Quit: Leaving...]
<h0rrorvacui> mathrick: you are extending a class
<mathrick> h0rrorvacui: isn't that what extend is for?
<mathrick> that's what I've seen it used for
hiroyuki_ has quit [Remote host closed the connection]
<h0rrorvacui> extend module
hiroyuki has joined #ruby
<mathrick> oh right, I missed this: http://ozmm.org/posts/singin_singletons.html
<mathrick> it changes to Module
<h0rrorvacui> yeah, you idea was right just not executed right :P
<mathrick> h0rrorvacui: that helped, thanks
freezey has joined #ruby
dtrott has quit [Quit: dtrott]
DonRichie has quit [Quit: Verlassend]
asteros has joined #ruby
mmcdaris has joined #ruby
elux has joined #ruby
noname001__ has joined #ruby
typicalbender has quit [Quit: Leaving.]
smlgs has joined #ruby
aspires has joined #ruby
JoeTheGuest has quit [Quit: Connection closed for inactivity]
kindjal has quit [Ping timeout: 260 seconds]
tvw has quit []
freerobby has quit [Quit: Leaving.]
luckyruby has quit [Read error: Connection reset by peer]
aspires has quit [Client Quit]
tvw has joined #ruby
tvw has quit [Client Quit]
banjara has quit [Quit: Leaving.]
luckyruby has joined #ruby
banjara has joined #ruby
tvw has joined #ruby
tvw has quit [Remote host closed the connection]
jhulten has joined #ruby
artm has quit [Ping timeout: 252 seconds]
tvw has joined #ruby
jrhorn424 is now known as zz_jrhorn424
jhulten_ has quit [Read error: Connection reset by peer]
barratt has quit [Quit: Leaving...]
Ivo has joined #ruby
mary5030 has quit [Ping timeout: 272 seconds]
banjara has quit [Quit: Leaving.]
camilasan has quit [Remote host closed the connection]
banjara has joined #ruby
dagnachew has joined #ruby
danshultz has quit [Remote host closed the connection]
camilasan has joined #ruby
danshultz has joined #ruby
basmoura has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
barratt has joined #ruby
larissa has joined #ruby
robbyoconnor has quit [Quit: Konversation terminated!]
dagnachew has quit [Client Quit]
ua has quit [Quit: Leaving]
camilasan has quit [Ping timeout: 240 seconds]
xk_id has quit [Quit:
danshultz has quit [Ping timeout: 268 seconds]
lukec has quit [Quit: lukec]
Diranged has quit [Quit: Leaving.]
xk_id has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
dagnachew has joined #ruby
thelorax123 has quit [Remote host closed the connection]
pushpak has quit [Quit: Linkinus - http://linkinus.com]
banjara has quit [Quit: Leaving.]
burlyscudd has joined #ruby
thelorax123 has joined #ruby
banjara has joined #ruby
workmad3 has quit [Read error: Operation timed out]
huttan has quit [Ping timeout: 272 seconds]
scarolan has quit [Ping timeout: 268 seconds]
shvelo has quit [Ping timeout: 272 seconds]
danman has joined #ruby
Shidash has joined #ruby
danman has quit [Client Quit]
danshultz has joined #ruby
Mars__ has quit [Remote host closed the connection]
capicue has joined #ruby
Mars__ has joined #ruby
drumsrgr8forn8 has joined #ruby
bugsinlights has joined #ruby
aspires has joined #ruby
iliketurtles has joined #ruby