apeiros_ changed the topic of #ruby to: Ruby 1.9.3-p327: http://ruby-lang.org (ruby-2.0.0-preview2) || Paste >3 lines of text on http://gist.github.com
<stetho> havenn: No, I'm trying this in irb.
<havenn> stetho: Ahh, gotcha - was wondering if it was a bundler Gemfile issue.
<havenn> stetho: A good option: gem install pry
<havenn> stetho: Then use pry instead of irb. Pry has a command: gem-install mail
altious has joined #ruby
<havenn> stetho: Your problem is prolly related to apt-get install of Ruby weirdness with gems. I usually just use chruby and ruby-build or rvm to install Ruby on Ubuntu just to avoid that.
<stetho> havenn: OK, serious question. Do I want to install pry as a beginner? Is it going to make my life easier or just confuse me?
<havenn> stetho: Yeah, totally install it as a beginner. Pretend it is irb.
statarb3 has quit [Quit: Leaving]
<havenn> stetho: It doesn't add any difficulty that I can think of. If you want to use a Pry command just type 'help' from within Pry to see the Pry commands.
<havenn> stetho: A lot of folks: alias irb="pry"
ToTo has quit [Ping timeout: 245 seconds]
<stetho> OK, I'm sold. Installing pry...
dougireton has joined #ruby
<havenn> stetho: But yeah, one of those commands is 'gem-install' which installs the gem using the current Ruby and then reloads so it is immediately available in your REPL session.
<swarley> I tried pry once and now trying to use irb is like beating myself in the head with a hammer
<stetho> OK. I'm confused now. I installed pry and - without doing anything else:
<stetho> [1] pry(main)> require 'mail'
<stetho> => true
<swarley> so?
eka has quit [Remote host closed the connection]
<havenn> stetho: It worked. :)
<stetho> That implies that pry can see 'mail' but irb can't?
manizzle has quit [Ping timeout: 264 seconds]
<havenn> stetho: #require returns 'true' if successful, 'false' if already has been loaded, or an error.
cpruitt has quit [Quit: cpruitt]
invisime has quit [Quit: Leaving.]
<swarley> As havenn said, require returns a value if everything is alright, but it raises a LoadError if the file you're looking for can't be found
<havenn> stetho: I think it is just that your IRB is somehow borked. Lots of weirdness with the Ubuntu apt-get installed Ruby.
<stetho> havenn: I understand that.
<stetho> $ irb
<stetho> irb(main):001:0> require 'mail'
<stetho> LoadError: cannot load such file -- mail
<swarley> stetho; what ruby version
<swarley> It's probably a require "rubygems" issue
<havenn> stetho: IRB is looking for the gem somewhere other than where your gems are installed.
<havenn> stetho: gem -v
Jasko has quit [Read error: Connection reset by peer]
<havenn> stetho: To update RubyGems: gem update --system
<swarley> the better test would be if he tells us the ruby version
<havenn> swarley: Good point.
nomenkun has quit [Remote host closed the connection]
<swarley> 1.8 makes you require rubygems
<stetho> havenn: That is what I was expecting. Interestingly I can't gem install xxxx I hav to sudo gem install xxxx
<stetho> Is that relevant?
<swarley> 1.9 does by default
Jasko has joined #ruby
<swarley> pry requires rubygems by default
<swarley> So pry would work regardless
<stetho> $ gem -v
<stetho> 1.8.15
<swarley> stetho; try irb -rubygems
<havenn> stetho: gem update --system OR gem install rubygems-update
<swarley> and then run your require "mail"
<havenn> swarley: I always forget about the 'require "rubygems"' thing in 1.8. ALWAYS.
<swarley> I hate that you have to
<swarley> I understand why you wouldn't, but really it shouldn't matter if you're just requiring standard library files anyway
tps_ has joined #ruby
<swarley> since the gem paths are pushed instead of unshifted (i believe)
banisterfiend has joined #ruby
thufir_ has quit [Remote host closed the connection]
<stetho> $ gem update --system
<stetho> ERROR: gem update --system is disabled on Debian
<stetho> And also
<stetho> $ irb -rubygems
<stetho> irb(main):001:0> require 'mail'
<stetho> still fails
onibox has joined #ruby
<havenn> stetho: I'd really recommend switching to your own build of Ruby ASAP. Install chruby, build ruby-1.9.3, done.
nomenkun has joined #ruby
<havenn> stetho: Couple lines to paste to install chruby: https://github.com/postmodern/chruby
<havenn> stetho: Then a few apt-get build packages you'll need for building gems anyways and Ruby build: https://github.com/postmodern/chruby/wiki/MRI
<havenn> stetho: Or if you want it to all magically happen for you, build and all: https://rvm.io/
wargasm has left #ruby [#ruby]
huoxito has joined #ruby
<iosctr> definitely maintain your ruby/gems using ruby specific tools (rvm, rbenv, chruby). yum, apt, etc... will never be as current.
nkts has joined #ruby
apeiros_ has joined #ruby
<havenn> iosctr: Yeah, only distro I can think of that does timely p### releases is ArchLinux.
<stetho> It would appear from a quick google following the things you've been saying that ruby from packages on ubuntu is a bit (lot?) broken.
<havenn> stetho: Very broken!
<iosctr> I've run Fedora for years, and they only recently moved from 1.8 to 1.9.3. My systems don't even have a "system" ruby installed :)
<stetho> I was trying to avoid the rvm/rbenv/chruby route because of my newbieness
<havenn> If you want something to handle ALL THE THINGS, RVM. If you want to simply install Ruby in a dir and point at it, chruby.
Marco has quit [Ping timeout: 245 seconds]
<havenn> rbenv is between the two in complexity
<havenn> stetho: I think you'll find that chruby, rbenv or rvm save you a lot more time than they cost.
<iosctr> stetho: don't :) without them will be more trouble.
Averna has joined #ruby
<havenn> iosctr: yum is as bad as apt-get, indeed
<havenn> iosctr: brew is kinda reasonable
statarb3 has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
<swarley> never
<swarley> EVER
<swarley> install ruby from your package manager
chord has quit [Quit: Page closed]
<havenn> brew is on ruby-1.9.3-p327
banisterfiend has quit [Ping timeout: 246 seconds]
<swarley> It's just tons of headaches to come
<iosctr> even with good rpm/etc maintainers, they still have to fight against the distro's release schedule/rules/eco-system etc... will simply never measure up.
<swarley> Also, using irb feels dirty.
<havenn> stetho: #rvm and #chruby or their websites are very responsive and helpful.
<swarley> I just switched to chruby/ruby-build today
emergion has joined #ruby
<havenn> #rbenv #rbfu #ry all empty :P
<swarley> havenn; shame on you for recommending rvm
<havenn> swarley: I'm just trying to be impartial. I <3 chruby!!!!
<swarley> xD rvm is all sorts of.. ew
<yfeldblum> swarley, y is that
<iosctr> I have 2 machines - primary on rvm, other on rbenv. Haven't looked into changing either for some time.
<havenn> chruby is 70 or 80 lines of code, and elegant - even supports fuzzy matching
<swarley> It's tons of work to make rvm work. I don't like the idea of having to modify main system configurations to make rvm work
<iosctr> I will say that rbenv provides noticeably quicker script startup.
<swarley> I had to edit /etc/passwd to make rvm use work
banisterfiend has joined #ruby
<swarley> And that was a headache in itself
<iosctr> At some point, I'll probably setup both systems with rbenv - but, I haven't even looked at chruby yet :)
<swarley> It's just magnitudes simpler to use chruby
<swarley> iosctr; i considered rbenv, but someone told me to jut go for chruby instead
<swarley> So far i enjoy it. It's rather simple
<iosctr> Good news. I'll have to give a look soon.
<iosctr> Having been using ruby since before such tools existed, I tend to just be happy that everything just works. lol
<stetho> I honestly expected there to be problems with package installed ruby because, as with everything else, it will be xxx versions behind and have xxx missing. But I didn't expect it to be within the first 48 hours :-(
nomenkun has quit [Remote host closed the connection]
<swarley> If you just build the packages yourself, it's generally faster and more reliable
miskander has joined #ruby
<swarley> And most books now a days recommend the use of a ruby version manager due to notorious issues with problems installing with package managers
miskander has left #ruby [#ruby]
miskander has joined #ruby
<yfeldblum> swarley, u talking about system install or user install?
DatumDrop has joined #ruby
apeiros_ has quit [Remote host closed the connection]
<swarley> I'm not sure what you're asking
<iosctr> And generally, everything you do will be running under a specific user anyway. So, setting up ruby for a user account should be fine. Very seldom would you ever need a "system" ruby.
<yfeldblum> swarley, not sure why you would have to modify /etc/passwd to use rvm
<swarley> because of the need to have your shell start with --login
<swarley> I thought it seemed just ridiculous to have to start a new shell every time i wanted to use rvm
<swarley> i needed to change my default shell to have the --login flag
joeycarmello has quit [Remote host closed the connection]
<swarley> I've never considered the necessity for a system ruby. But even still, with chruby it installs to /opt/rubies
chord has joined #ruby
<swarley> So it can be system wide
<yfeldblum> swarley, why not just source it?
<swarley> What do you mean
<chord> Do you guys like exceptions or think they don't add substantial value
DatumDrop has quit [Ping timeout: 255 seconds]
<postmodern> swarley, -l --login is necessary for loading any /etc/profile.d/ or ~/.bash_profile / ~/.zprofile scripts
<yfeldblum> swarley, . ~/.rvm/scripts/rvm
<swarley> chord; that's a broad question. They have their places, mainly.. to show that an error has occured in your code and the program shouldn't continue
<swarley> Ah. I really just didn't like rvm anyway
emergion has quit [Quit: Computer has gone to sleep.]
<swarley> That wasn't my only grievance
<swarley> It doesn't matter anymore anyway. I'm happy with chruby
<postmodern> swarley, :)
<swarley> postmodern; good job by the way
charliesome has joined #ruby
<postmodern> swarley, ty, a lot of research and pondering went into it
<swarley> Well i think it was well worth it. I find it very useful and not as much work to get the job done
<yfeldblum> chord, if your program runs into an error and goes on anyway without even bothering to notice, what do you think is likely to happen?
<swarley> I applaud your choice in keeping the rubies in /opt. Not everyone remember it exists, but it's very useful for keeping programs together that you've installed yourself
<swarley> remembers*
<chord> yfeldblum: so how bad is return value errors vs exceptions
<swarley> It's generally better practice to use Exceptions
<swarley> But it really depends on the severity of the exception
<yfeldblum> chord, do you plan on checking for every single possible return value (there could easily be dozens or hundreds) every time you call a function?
<postmodern> swarley, friends finally convinced me to stop abusing /usr/local, /opt/rubies seemed reasonable, so we could easily glob
<yfeldblum> chord, do you think that every single check that you right will actually be done correctly?
<swarley> The main value that denotes an error on return is false or nil
<postmodern> swarley, still on the fence about ~/.rubies/
hashpuppy has joined #ruby
<swarley> As far as I can see the only advantage to ~/.rubies would be that it allows you to be sure you never have to use sudo (unless you have a weird setup)
<hashpuppy> let's say I'm defining a module Util::Math. inside Util::Math I have a function calling Math.sqrt. But it's looking for Util::Math.sqrt
<hashpuppy> do I just prefix with ::
<swarley> I think installation to /opt by default would be good, with the option to make it user only with ~/.rubies
hsbt is now known as hsbt_away
<swarley> hashpuppy; yes
<hashpuppy> swarley: thanks
Jasko has quit [Read error: Connection reset by peer]
joeycarmello has joined #ruby
io_syl has quit [Quit: Computer has gone to sleep.]
<swarley> But the way you have it set up is very nice. Using the glob in the rc file
Jasko has joined #ruby
<swarley> Because then the user can have their own installations if they like somewhere else
dougireton has quit [Quit: Leaving.]
thams has joined #ruby
<swarley> The only thing that I'm struggling with is that when i install a new ruby version it doesnt show up in the list from `chruby` until I've reloaded the ~/.`$SHELL`rc file
<swarley> But maybe there is something I missed as far as that goes. And it's not even a big deal
Kuifje has quit [Ping timeout: 252 seconds]
SCommette has quit [Quit: SCommette]
mneorr has joined #ruby
miskander has quit [Quit: miskander]
<postmodern> swarley, set RUBIES=(/opt/rubies/*)
<postmodern> swarley, er yeah, you would need to re-load
<swarley> the only way i can see around that was if there was a function for setting RUBIES instead of a static setting
<postmodern> swarley, i guess it would be a perf hit if we re-evaled a dir glob after every command
<swarley> Yeah. It's just something to consider. There are drawbacks no matter what you choose. But in the end its all up to you
cj3kim has quit [Quit: This computer has gone to sleep]
<havenn> hrm, guess you could opt into the perf hit: alias chruby="export RUBIES=(/opt/rubies/*) chruby"
<havenn> I think i'd rather source ~/.rc
<postmodern> havenn, i had issues with exporting Arrays in zsh, but I'm no zsh export :/
<swarley> yeah, like i said its not a big deal
cascalheira has joined #ruby
<postmodern> something to think about
dougireton has joined #ruby
<swarley> well, you can make zsh act like sh
<swarley> It's all on how you invoke it (I think)
<havenn> postmodern: unfortunately I'm no zsh expert either! i need to study up.
cascalheira has quit [Client Quit]
<swarley> I know almost nothing about zsh scripting
<swarley> Even though i use zsh lol
<havenn> swarley: ditto
<postmodern> to the O'Reilly store!
<swarley> do do doooo!
<swarley> I know there is a zsh from bash book
<stetho> I went the rvm route and "require 'mail'" now works. Thank you all for your help. Back to Hello World... for me
<swarley> or from bash to zsh
<iosctr> the installers for many programs you may download and install/try-out will typically use /usr/local - so I too tend to use /opt for things I install manually, to keep them separate.
<swarley> yeah, that's what's recommended
<swarley> But a lot of people forget that good old /opt is there
<swarley> I forgot that i installed rubinius there
nanothief has joined #ruby
<iosctr> Some will use ~/.local/, but I've always used /opt. Whatever's in there, I know I did it :D
<swarley> yeah... ~/.local always seems scary to me
dmiller has joined #ruby
<swarley> I have no idea what you would do in windows though
<swarley> lol
<swarley> I guess just cry and wait for your linux VM to start up
onibox_ has joined #ruby
onibox_ has quit [Client Quit]
moshee has quit [Remote host closed the connection]
banisterfiend has quit [Remote host closed the connection]
sepp2k1 has quit [Remote host closed the connection]
onibox has quit [Ping timeout: 264 seconds]
SCommette has joined #ruby
<iosctr> windows? yeah.... run gparted from a livecd, wipe all partitions and start over with linux :) HA!
<swarley> xD
<swarley> I've run into the tricky situation of giving my linux partition only 60gb
<swarley> I meant to give it 100gb
phipes has joined #ruby
<swarley> I just wanted enough room on my windows partition so that i could have room for games
guns has quit [Ping timeout: 250 seconds]
<swarley> While I love linux, until Valve puts enough work into steam for linux i can't switch entirely
<iosctr> I ran dual-boot for many years (Vista/Linux), but booted into windows so seldomly I finally scraped it.
SCommette has quit [Client Quit]
<swarley> Yeah... I only keep 7 for games occasionally
<postmodern> ha, im running the Steam beta
<swarley> I can't get mine to ever load :/
<stetho> I haven't used a Windows machine since 2009.
<postmodern> it tries to call gksudo to install Steam updates into /usr/local/
<swarley> haha
<postmodern> someone is going to have to talk to them about package management
<iosctr> I gave up gaming... but yeah, there are still some things... I'd be more tempted to setup a Windows VM to run under Linux if need be.
iamjarvo has joined #ruby
dougireton has quit [Quit: Leaving.]
apok has quit [Quit: apok]
<iosctr> I ran a windows-based editor under Wine for years, until I finally made the move to VIM - glad I did :)
* swarley installs steam.deb as we speak
dougireton has joined #ruby
<postmodern> steam steam://open/games
<swarley> mmm I love vim
<postmodern> i think the open beta starts next week
<swarley> :ooo
gordon1775 has joined #ruby
<swarley> I really want to try l4d for linux
lolcathost has joined #ruby
Goles has quit [Ping timeout: 265 seconds]
banisterfiend has joined #ruby
samphippen has joined #ruby
Goles has joined #ruby
stetho has quit [Remote host closed the connection]
marr has quit [Ping timeout: 265 seconds]
perun_ has quit [Ping timeout: 264 seconds]
_cheney has quit [Ping timeout: 260 seconds]
ltsstar has quit [Quit: ltsstar]
bwlang has joined #ruby
<iosctr> I eventually found gaming to be much like watching TV - I start feeling like I'm just wasting time away. When I feel like I need to relax/escape, I've found listening to music more enjoyable.
dmiller has quit [Remote host closed the connection]
<swarley> I have different moods. Sometimes i really want to play Terraria, or Amnesia. Other times i want to listen to music or watch a movie
seanstickle has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
<iosctr> I don't feel like my mind is nearly as "engaged", so it can wander - giving my subconscious more opportunity to work on problems... at least, that's the theory :)
bigmac has quit [Ping timeout: 264 seconds]
guns has joined #ruby
joeycarmello has quit [Remote host closed the connection]
bwlang has left #ruby [#ruby]
digifiv5e has quit [Excess Flood]
digifiv5e has joined #ruby
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby
gordon1775 has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
<seanstickle> Weird idea, that there is a non-conscious mind
<iosctr> :)
perun_ has joined #ruby
<iosctr> I tend to think of the conscious mind as the foreground process, with the subconscious being multiple background processes :)
<seanstickle> Cute metaphor.
<seanstickle> Though deeply inaccurate.
postmodern has quit [Quit: Leaving]
Munto has quit [Read error: Connection reset by peer]
c0rn has joined #ruby
rondale_sc has quit [Quit: rondale_sc]
Jasko has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
bigmac has joined #ruby
<iosctr> Yes, I'm curious. But, of course, this is not the place for such a discussion :) If you care to shoot me some links though, I do enjoy research into this subject :)
<seanstickle> It's all about Freud, man.
<seanstickle> He's got books and books on the subject.
_cheney has joined #ruby
monkegjinni has joined #ruby
hashpuppy has quit [Quit: hashpuppy]
c0rn has quit []
miskander has joined #ruby
nomenkun has joined #ruby
havenn has quit [Remote host closed the connection]
havenn has joined #ruby
banisterfiend has quit [Ping timeout: 246 seconds]
apeiros_ has joined #ruby
Bosox20051 has joined #ruby
hashpuppy has joined #ruby
hashpuppy has quit [Client Quit]
ikaros has quit [Quit: Ex-Chat]
nomenkun has quit [Ping timeout: 264 seconds]
_cheney has quit [Read error: Connection reset by peer]
havenn has quit [Ping timeout: 264 seconds]
joeycarmello has joined #ruby
banisterfiend has joined #ruby
apeiros_ has quit [Ping timeout: 260 seconds]
_cheney has joined #ruby
jjbohn has joined #ruby
SCommette has joined #ruby
slainer68 has joined #ruby
<yfeldblum> books on a subject =/= knowledge on a subject
<swarley> Freud has some weird ideas..
SCommette has quit [Client Quit]
<yfeldblum> persuasive writing =/= correct reasoning
d2dchat has joined #ruby
<seanstickle> Freud's ideas are certainly quite radical and weird, I'll agree.
<swarley> Fish sexuality for example
<seanstickle> Quite a good classicist.
<yfeldblum> radical =/= evidenced
<seanstickle> yfeldblum: dog =/= tree
<seanstickle> I think we can all agree you can make interesting inequalities.
<seanstickle> Joy.
BigO_ has joined #ruby
cableray has joined #ruby
<yfeldblum> seanstickle, i'm suggesting that Freud's writing is prolific, persuasive, and radical, but not knowledged, reasoned, or evidenced
<seanstickle> yfeldblum: no, you're mostly being a twat.
<seanstickle> yfeldblum: but good for you for writing a whole sentence.
mneorr has quit [Remote host closed the connection]
<ruzu> so anyways i heard ruby 2.0 was coming out soon
mneorr has joined #ruby
banisterfiend has quit [Ping timeout: 244 seconds]
cableray has quit [Client Quit]
<seanstickle> ruzu: Exciting, right?
BigO_ has quit [Remote host closed the connection]
<seanstickle> ruzu: named parameters, finally
SCommette has joined #ruby
jsilver has joined #ruby
_cheney2 has joined #ruby
jjbohn has quit [Quit: Leaving...]
jenrzzz has quit [Ping timeout: 244 seconds]
_cheney has quit [Ping timeout: 245 seconds]
aaronmacy has quit [Quit: Leaving.]
banisterfiend has joined #ruby
johnmilton has quit [Quit: Leaving]
tjbiddle_ has joined #ruby
tjbiddle has quit [Ping timeout: 245 seconds]
tjbiddle_ is now known as tjbiddle
eka has joined #ruby
hsbt_away is now known as hsbt
dougireton has quit [Quit: Leaving.]
cantonic has joined #ruby
eka has quit [Ping timeout: 256 seconds]
dmiller has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
fbernier has quit [Quit: ZNC - http://znc.in]
otters has quit [Ping timeout: 265 seconds]
fbernier has joined #ruby
dcope is now known as DCOPE
DCOPE is now known as dcope
robotmay has quit [Ping timeout: 245 seconds]
cj3kim has joined #ruby
andrewhl has quit [Remote host closed the connection]
jbermudes_ has joined #ruby
jbermudes_ has quit [Changing host]
jbermudes_ has joined #ruby
assas has joined #ruby
elaptics is now known as elaptics`away
jbermudes has quit [Ping timeout: 250 seconds]
assas has left #ruby [#ruby]
_cheney2 has quit [Quit: Nettalk6 - www.ntalk.de]
eka has joined #ruby
eka has quit [Remote host closed the connection]
crackfu has joined #ruby
miskander has quit [Quit: miskander]
miskander has joined #ruby
iosctr has quit [Quit: Konversation terminated!]
altious has quit [Ping timeout: 250 seconds]
araujo has quit [Quit: Leaving]
Hanmac1 has joined #ruby
gbchaosmaster has quit [Quit: leaving]
Hanmac has quit [Ping timeout: 248 seconds]
io_syl has joined #ruby
dougireton has joined #ruby
jimeh has quit [Quit: Computer has gone to sleep.]
DatumDrop has joined #ruby
dmiller has quit [Remote host closed the connection]
synaesthetik has joined #ruby
alexspeller has quit [Remote host closed the connection]
Squarepy has joined #ruby
Squarepy has quit [Changing host]
Squarepy has joined #ruby
havenn has joined #ruby
dougireton has quit [Ping timeout: 265 seconds]
mneorr has quit [Remote host closed the connection]
Virunga has quit [Remote host closed the connection]
havenn has quit [Ping timeout: 255 seconds]
DatumDrop has quit [Remote host closed the connection]
zodiak has quit [Ping timeout: 240 seconds]
zodiak has joined #ruby
mercwithamouth has joined #ruby
synaesthetik has quit [Quit: synaesthetik]
freeayu has joined #ruby
fir_ed has joined #ruby
guns has quit [Quit: guns]
Edward_ has joined #ruby
fir_ed has quit [Ping timeout: 245 seconds]
tommyvyo_ has joined #ruby
waxjar has quit [Ping timeout: 246 seconds]
miskander has quit [Quit: miskander]
waxjar has joined #ruby
adeponte has joined #ruby
Loaft has joined #ruby
brianpWins has quit [Quit: brianpWins]
miskander has joined #ruby
alexspeller has joined #ruby
monkegjinni has quit [Remote host closed the connection]
miskander has quit [Client Quit]
dougireton has joined #ruby
dmiller has joined #ruby
newbie|2 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
nari has joined #ruby
dmiller has quit [Ping timeout: 264 seconds]
slainer68 has quit [Remote host closed the connection]
alexspeller has quit [Ping timeout: 252 seconds]
tommyvyo_ has quit [Quit: Computer has gone to sleep.]
rondale_sc has joined #ruby
Edward__ has joined #ruby
havenn has joined #ruby
yshh has joined #ruby
havenn has quit [Read error: Connection reset by peer]
havenn has joined #ruby
_cheney has joined #ruby
Edward_ has quit [Ping timeout: 244 seconds]
ismaelabreu has joined #ruby
dougireton has quit [Ping timeout: 265 seconds]
tommyvyo_ has joined #ruby
guns has joined #ruby
mneorr has joined #ruby
lolcathost has quit [Quit: lag]
otters has joined #ruby
butblack has joined #ruby
jbermudes_ is now known as jbermudes
kennyvb has quit [Ping timeout: 255 seconds]
cj3kim has quit [Ping timeout: 276 seconds]
ismaelabreu has quit [Remote host closed the connection]
cj3kim has joined #ruby
codygman has joined #ruby
io_syl has quit [Quit: Computer has gone to sleep.]
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
manizzle has joined #ruby
mtfk has joined #ruby
kennyvb has joined #ruby
reppard has joined #ruby
_nitti has joined #ruby
chord has quit [Quit: Page closed]
<mtfk> hi, I try to reload class for each my test by using load method from kernel, but as I can see it is run only at first time
_nitti has quit [Remote host closed the connection]
<mtfk> how to force reload it each time?
seanstickle has quit [Quit: seanstickle]
arkiver has joined #ruby
<mtfk> how to remove it from active ok, nevermind it was overritten by load from ActiveSupport
<mtfk> kernel.load do the job
codygman has quit [Quit: leaving]
jekotia has quit [Quit: ChatZilla 0.9.89-rdmsoft [XULRunner 1.9.0.17/2009122204]]
dougireton has joined #ruby
g_bleezy has joined #ruby
chriskk has joined #ruby
ner0x has quit [Quit: Leaving]
<shevy2> wtf
shevy2 is now known as shevy
<shevy> best programming language PYTHON
<shevy> ruby far far away WHAT IS WRONG WITH THIS PICTURE
emergion has joined #ruby
g_bleezy has quit [Ping timeout: 264 seconds]
tommyvyo_ has quit [Quit: Computer has gone to sleep.]
<kirotan> shevy
<kirotan> that is normal
<kirotan> we call it 'bias'
<shevy> :(
mneorr has quit [Remote host closed the connection]
<shevy> but it's so much higher than ruby, even perl is rated higher
<shevy> I am gonna fight the perl guys
mneorr has joined #ruby
<kirotan> that tells you it is bias
havenn has quit [Read error: No route to host]
IceDragon has quit [Quit: Space~~~]
havenn has joined #ruby
dmiller has joined #ruby
aapzak has quit [Ping timeout: 246 seconds]
<reppard> shevy: python sucks
dmiller has quit [Remote host closed the connection]
<reppard> python in a nutshell: let's see how many times we can call self
prettymuchbryce has joined #ruby
dmiller has joined #ruby
Targen has quit [Remote host closed the connection]
<shevy> hehe
Targen has joined #ruby
S1kx has quit [Ping timeout: 248 seconds]
aapzak has joined #ruby
guns has quit [Ping timeout: 265 seconds]
<reppard> the only good thing about python is that if it didnt exist, we probably wouldn't have ruby =)
dougireton has quit [Ping timeout: 248 seconds]
nari has quit [Ping timeout: 245 seconds]
d2dchat has quit [Remote host closed the connection]
tpe11etier_ has joined #ruby
io_syl has joined #ruby
nipa_r has joined #ruby
<yfeldblum> big parts of the linux OS's are written in python and perl?
radic has quit [Disconnected by services]
radic_ has joined #ruby
nipa_r has quit [Client Quit]
chriskk has quit [Quit: chriskk]
tpe11etier_ has quit [Client Quit]
statarb3 has quit [Ping timeout: 245 seconds]
tyfighter has joined #ruby
nipar has joined #ruby
alexspeller has joined #ruby
BoomCow has joined #ruby
banisterfiend has quit [Ping timeout: 264 seconds]
bwlang has joined #ruby
rondale_sc has quit [Quit: rondale_sc]
ewag has quit [Ping timeout: 245 seconds]
otters has quit [Quit: WeeChat 0.3.9.2]
banisterfiend has joined #ruby
dxiao has joined #ruby
alexspeller has quit [Ping timeout: 252 seconds]
eka has joined #ruby
dougireton has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
eka has quit [Ping timeout: 264 seconds]
rondale_sc has joined #ruby
guns has joined #ruby
otters has joined #ruby
huoxito has quit [Quit: Leaving]
gbchaosmaster has joined #ruby
jenrzzz has joined #ruby
Squarepy has quit [Quit: Leaving]
emergion has quit [Quit: Computer has gone to sleep.]
swaits has joined #ruby
hsbt is now known as hsbt_away
bwlang has left #ruby [#ruby]
butblack has quit [Quit: butblack]
Mon_Ouie has joined #ruby
banisterfiend has quit [Ping timeout: 250 seconds]
<prettymuchbryce> I have a question for a ruby expert in here. I have this box on ec2 that I'm trying to run a socket server off of. Is there a good way to make it run even after I close my ssh connection ?
dxiao has quit [Quit: leaving]
<prettymuchbryce> I'm just using sudo ruby server.rb
<swaits> you need to run the process in the background
<swaits> ./server.sh &
<swaits> the ampersand (&) tells the shell to start the job in the background. then it should keep running when you end your interactive terminal.
<swaits> note, this is not a permanent way to launch the server process. for that you'll want to add it to the rc system (or whatever similar on your OS) and probably use something like daemontools to ensure it stays running.
<prettymuchbryce> It's ubuntu
<swaits> personally I like the second answer. it's clean and simple.
<swaits> or just throw a startup script in /etc/init
<prettymuchbryce> Well crontab is only for shell scripts. So I write a shell script that runs the ruby application I guess ?
phipes has quit [Read error: Connection reset by peer]
aaronmacy has joined #ruby
<swaits> cron can run anything..
<swaits> so your cron job could be "/path/to/ruby /path/to/my/script.rb"
codygman_ has joined #ruby
<codygman_> I'm getting this error on the ruby gem tmuxinator: bad pattern: $:.unshift(File.dirname(__FILE__) + /../lib)
<swaits> or, if you make your script executable ("chmod +x script.rb"), and make sure the first line of the script is correct (something like "#!/usr/bin/env ruby"), your cron job could just be "/path/to/my/script.rb"
<prettymuchbryce> You know your stuff swaits
BoomCow has quit [Quit: This computer has gone to sleep]
_alejandro has joined #ruby
<prettymuchbryce> Okay I'm giving crontab a try. I have @reboot sudo ruby /home/ubuntu/websocketserver/server.rb &
<prettymuchbryce> moment of truth
<prettymuchbryce> sudo reboot
jeffreybaird has joined #ruby
<swaits> oh
<swaits> did you edit root's cron?
<swaits> sudo crontab -u root -e
<prettymuchbryce> Yes
<swaits> put it in there.. or whatever other privileged user
andrewhl has joined #ruby
BoomCow has joined #ruby
<prettymuchbryce> oh I just did sudo crontab -e
<swaits> ok then you won't need the "sudo" in that job.. b/c it'll already be running as a su
<swaits> were you logged in as root at the time?
emmanuelux has quit [Remote host closed the connection]
<prettymuchbryce> nope I was logged in as "ubuntu"
dmiller has quit [Ping timeout: 264 seconds]
tyfighter has quit [Quit: tyfighter]
thams has quit [Read error: Connection reset by peer]
<swaits> well.. that's probably fine. you shouldn't run the server process as root anyway. I'd edit out the "sudo" part.
thams has joined #ruby
<swaits> also, from cron, you don't need the '&' because all the jobs are launched in the background from there automatically. that said, it should still work with it.
jxriddle has quit [Quit: jxriddle]
otters has quit [Ping timeout: 264 seconds]
otters has joined #ruby
io_syl has quit [Quit: Computer has gone to sleep.]
<iamjarvo> hi all i am looking for a code review. i was doing ruby kick start session2 challenge 11 and i think i found a bug. it was printing one bottle of beer on the wall twice. here is the pastie http://pastie.org/private/8sedheyishynposbmdlnpa i tried to keep it as close as possible to what was covered in the lesson thank you
dmiller has joined #ruby
alta has quit [Quit: ZNC - http://znc.in]
jeffreybaird has quit [Quit: jeffreybaird]
cableray has joined #ruby
tk___ has joined #ruby
aaronmacy has quit [Quit: Leaving.]
postmodern has joined #ruby
aef has quit [Remote host closed the connection]
aef has joined #ruby
rondale_sc has quit [Quit: rondale_sc]
<prettymuchbryce> imjarvo It seems to work for me
rramsden has quit [Quit: Changing server]
phelps has quit [Ping timeout: 264 seconds]
<prettymuchbryce> Actually it's getting the song wrong
<prettymuchbryce> After you take one down and pass it around you need to declare "Two bottles of beer on the wall" and then start the song again by saying "Two bottles of beer on the wall "
dougireton has quit [Quit: Leaving.]
tyfighter has joined #ruby
dougireton has joined #ruby
<iamjarvo> prettymuchbryce: i might be caught up in it and missing what you are saying. when i run it with 5 this is what i get http://pastie.org/5537723
Jasko has quit [Read error: Connection reset by peer]
phelps has joined #ruby
jankly has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
nipar has quit []
<prettymuchbryce> iamjarvo I thought the song went like this: http://pastie.org/5537730
medik has quit [Quit: medik has no reason]
mercwithamouth has quit [Ping timeout: 265 seconds]
<iamjarvo> prettymuchbryce: hrm i think you are right! i googled again.
cableray has quit [Quit: cableray]
<iamjarvo> totally missed that part of the song
<reppard> good night all
reppard has quit [Quit: leaving]
<prettymuchbryce> It shouldn't be too difficult to fix. Perhaps you just need to refactor a little bit.
<prettymuchbryce> Add a new puts line in print_stanza
<prettymuchbryce> and change around your index conditionals within the method
<prettymuchbryce> Just run print_stanza i on all rather than having separate cases for 1 and 0
havenn has quit [Remote host closed the connection]
<iamjarvo> prettymuchbryce: thanks
banisterfiend has joined #ruby
<jsilver> hi
<jsilver> is there any librarys for Ruby Video chat?
<jsilver> similar to SPEEX stuff that Skype uses?
<jsilver> or whatever
guns has quit [Quit: guns]
jxriddle has joined #ruby
banisterfiend has quit [Ping timeout: 256 seconds]
cableray has joined #ruby
centipedefarmer has joined #ruby
io_syl has joined #ruby
mpereira has quit [Ping timeout: 260 seconds]
<prettymuchbryce> silver what do you mean Ruby Video Chat ?
io_syl has quit [Client Quit]
<swarley> ^
swex has joined #ruby
io_syl has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
cableray has quit [Quit: cableray]
swex_ has quit [Ping timeout: 245 seconds]
mneorr has quit [Remote host closed the connection]
eldariof has joined #ruby
cableray has joined #ruby
mneorr has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
dougireton has quit [Quit: Leaving.]
joeycarmello has quit [Remote host closed the connection]
haxrbyte has joined #ruby
ismaelabreu has joined #ruby
ismaelabreu has quit [Remote host closed the connection]
PetePorty has joined #ruby
PetePorty has quit [Changing host]
PetePorty has joined #ruby
browndawg has joined #ruby
browndawg has left #ruby [#ruby]
mercwithamouth has joined #ruby
mneorr has quit [Ping timeout: 264 seconds]
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby
haxrbyte has quit [Remote host closed the connection]
Nisstyre has joined #ruby
browndawg has joined #ruby
haxrbyte has joined #ruby
jaygen_ has quit [Read error: Connection reset by peer]
jaygen has joined #ruby
Godd2 has quit [Ping timeout: 245 seconds]
haxrbyte has quit [Remote host closed the connection]
mneorr has joined #ruby
codezombie has joined #ruby
BoomCow has quit [Quit: This computer has gone to sleep]
Jasko has quit [Read error: Connection reset by peer]
kil0byte has joined #ruby
Jasko has joined #ruby
jonahR has joined #ruby
mike-- has joined #ruby
m3pow has quit [Remote host closed the connection]
thams has quit [Read error: Connection reset by peer]
thams has joined #ruby
dmiller has quit [Remote host closed the connection]
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
SCommette has quit [Quit: SCommette]
Hanmac1 is now known as Hanmac
sullenel has joined #ruby
joeycarmello has joined #ruby
joeycarmello has quit [Ping timeout: 246 seconds]
<codezombie> question, when running this regex in 1.9.2, I get "undefined group option"
<codezombie> ^([^aeiou]*)a(?1)e(?1)i(?1)o(?1)u(?1)$
<codezombie> what is the proper way in ruby to reference the 1st group?
<swaits> it's those question marks
<swaits> what are you trying to do?
<codezombie> I would like the reference the first group ([^aeiou]) numerous times without repeating it
<codezombie> explicitly
claudijd has joined #ruby
<swaits> can you give an example text and what you want the matches to be?
<codezombie> the original regex is: ^[^aeiou]*a[^aeiou]*e[^aeiou]*i[^aeiou]*o[^aeiou]*u[^aeiou]*$
claudijd has left #ruby [#ruby]
<codezombie> basically, it matches all words in a dictionary that have no more than 5 vowels, in a set order.
<codezombie> each vowel once
<codezombie> s/basically, //
<swaits> do you have some example words?
<codezombie> all words in the dictionary
<codezombie> sec
<codezombie> these are the words it returns https://gist.github.com/8ae870cade449e9094c4
<codezombie> the original regex words
<codezombie> works*
cableray has quit [Quit: cableray]
<codezombie> the issue is that with pcre regex, I should be able to create a capture group, and reference it numerous times to dry up the regex.
<codezombie> from my understanding ruby used pcre
<swaits> well.. maybe experiment with it here http://rubular.com/r/sbo0tMR35Q
<codezombie> I have been
Vert has quit [Remote host closed the connection]
<jsilver> prettymuchbryce: ruby video chat... like webrtc but no plugin and no webpage
<codezombie> I just can't seem to figure out why it won't work in ruby, but works in php/perl
<swaits> that permalink has your original RE (which seems to work fine) and some test cases
<prettymuchbryce> Sorry jsilver I'm not familiar with webrtc.
<codezombie> swaits: right, the original works fine. The issue is with the DRY example. It's supposed to return the same.
<jsilver> well, it's Google Chrome Team's attempt to make Skype inside a webpage and it seems a lot of browsers are supporting.. but not sure if Cocoa Nativ Webkit Will Support it
<codezombie> swaits: try it with this: ^([^aeiou]*)a(?1)e(?1)i(?1)o(?1)u(?1)$
<jsilver> but I wann allow this functionality in my app.. Maybe i should use WebRTC and a pplugin or something or jsut tried it
emergion has joined #ruby
<swaits> i did. same error. take the question marks out and error goes away. but of course the RE is wrong at that point
<swaits> i'm working on it now tho
kiyoura has quit [Quit: Leaving]
<codezombie> swaits: this is just an excersize for me to brush up on my regex, I just thought it odd that it didn't work in ruby. Figured I'd ask here.
codygman_ has quit [Quit: leaving]
<Hanmac> backreference does not work like that
<codezombie> Hanmac: I tried \, instead of the ?, that didn't seem to work either.
adeponte has quit [Remote host closed the connection]
<codezombie> aha, thanks so much sir.
<codezombie> No idea why I didn't hit up the docs.
* codezombie is shamed.
<aces1up> can you get a thread deadlock on ruby Queue class if you have multiple threads trying to pop off jobs from the queue via queue.pop
<Hanmac> codezombie ... some of the regexskills may not work with ruby 1.9.2 ... you should update
<codezombie> trying on 1.9.3p327 now
tomsthumb has joined #ruby
m3pow has joined #ruby
elkclone has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
Goles has quit [Ping timeout: 250 seconds]
joeycarmello has joined #ruby
Goles has joined #ruby
mahmoudimus has joined #ruby
<swaits> yah..
g_bleezy has joined #ruby
kil0byte has quit [Remote host closed the connection]
<swaits> what you're really trying to do is create a named character class
<swaits> but, it looks like you're using back references to attempt that, which of course won't work, because the back reference just looks for whatever was ACTUALLY captured.
Averna has quit [Ping timeout: 264 seconds]
joeycarmello has quit [Ping timeout: 250 seconds]
robustus has quit [Ping timeout: 244 seconds]
rippa has joined #ruby
mneorr has quit [Remote host closed the connection]
<swaits> and so out of curiosity I ran it through Regexp::Optimizer (perl) and it made no improvements to /^[^aeiou]*a[^aeiou]*e[^aeiou]*i[^aeiou]*o[^aeiou]*u[^aeiou]*$/
robustus has joined #ruby
<codezombie> that makes sense, since the back-reference doesn't get modified
<codezombie> blah
<codezombie> thanks swaits
<swaits> well, it's that the back ref is matching what actually got matched in the first one..
<swaits> so if the word were zzzaeiou, the back ref for that first group is now "zzz"
<swaits> so now you could only match something like zzzazzzezzzizzzozzzuzzz
aces1up has quit []
hsbt_away is now known as hsbt
prettymuchbryce has quit [Remote host closed the connection]
swerter has joined #ruby
jsilver has quit [Ping timeout: 264 seconds]
Averna has joined #ruby
arietis has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
mneorr has joined #ruby
<codezombie> hmm, this must be ruby specific.
<codezombie> since this definitely works in perl.
browndawg has quit [Ping timeout: 245 seconds]
swaits has quit [Quit: swaits]
gbchaos has joined #ruby
adeponte has joined #ruby
<codezombie> yep, this works perfectly in perl: https://gist.github.com/e12619dd03144743427d
gbchaosmaster has quit [Disconnected by services]
<codezombie> would that be a bug, or intended behavior in ruby?
gbchaos is now known as gbchaosmaster
<Hanmac> codezombie i think its a feature in ruby and perl does it wrong ...
christinap has joined #ruby
browndawg1 has joined #ruby
gordon1775 has joined #ruby
tvw has joined #ruby
PetePorty has quit [Remote host closed the connection]
christinap has quit [Quit: christinap]
gordon1775 has quit [Ping timeout: 246 seconds]
aaronmacy has joined #ruby
robotmay has joined #ruby
jgrevich has quit [Remote host closed the connection]
gordon1775 has joined #ruby
rajesh has joined #ruby
rajesh is now known as Guest87770
<Guest87770> Finally I am connected to mysql :-)
<Guest87770> sudo apt-get install libmysqlclient15-dev
<Guest87770> this was the trick before going for gem install myql2
Guest87770 has quit [Client Quit]
rajesh_ has joined #ruby
<rajesh_> Thanks for your support
dmiller has joined #ruby
jenrzzz_ has joined #ruby
d34th4ck3r has joined #ruby
lazyguru has joined #ruby
<codezombie> well, that was a fun evening of ruby/regex experimentation. Thanks again swait, and Hanmac.
joeycarmello has joined #ruby
dmiller has quit [Ping timeout: 245 seconds]
Jasko has quit [Read error: Connection reset by peer]
cj3kim has quit [Quit: This computer has gone to sleep]
Jasko has joined #ruby
arkiver has quit [Ping timeout: 248 seconds]
aaronmacy has quit [Quit: Leaving.]
joeycarmello has quit [Ping timeout: 246 seconds]
chendo_ has joined #ruby
mercwithamouth has quit [Ping timeout: 248 seconds]
moshee has quit [Ping timeout: 246 seconds]
Elfix_113 has quit [Ping timeout: 260 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
codezombie has quit [Quit: Linkinus - http://linkinus.com]
Elfix has joined #ruby
d34th4ck3r has quit [Ping timeout: 265 seconds]
tyfighter has quit [Quit: tyfighter]
bluOxigen has joined #ruby
gbchaosmaster has quit [Quit: Good night, sweet prince.]
tPl0ch has joined #ruby
imami|afk is now known as banseljaj
adeponte has quit [Remote host closed the connection]
cantonic has left #ruby [#ruby]
pmros has joined #ruby
<pmros> hi!
DaZ has quit [Ping timeout: 264 seconds]
arkiver has joined #ruby
lolcathost has joined #ruby
browndawg1 has quit [Read error: Connection reset by peer]
arkiver has quit [Quit: Leaving]
dmiller has joined #ruby
arkiver has joined #ruby
blueoxigen has joined #ruby
kanzeon_mobile has joined #ruby
jenrzzz_ has quit [Ping timeout: 264 seconds]
Bosox20051 has quit [Ping timeout: 264 seconds]
bluOxigen has quit [Ping timeout: 248 seconds]
lolcathost has quit [Quit: test]
x82_nicole has joined #ruby
dmiller has quit [Ping timeout: 245 seconds]
blueoxigen has quit [Ping timeout: 246 seconds]
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
joeycarmello has joined #ruby
bluOxigen has joined #ruby
hsbt is now known as hsbt_away
tvsutton has quit [Ping timeout: 252 seconds]
hsbt_away is now known as hsbt
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
pmros has quit [Quit: Konversation terminated!]
hsbt is now known as hsbt_away
chussenot has joined #ruby
hsbt_away is now known as hsbt
deadalus has quit [Ping timeout: 245 seconds]
DaZ_ has joined #ruby
joeycarmello has quit [Ping timeout: 265 seconds]
jxriddle has quit [Ping timeout: 245 seconds]
Pyro111 has joined #ruby
deadalus has joined #ruby
robotmay has quit [Remote host closed the connection]
lolcathost has joined #ruby
marr has joined #ruby
lolmaus has joined #ruby
Nisstyre has quit [Read error: Connection reset by peer]
jonahR has quit [Quit: jonahR]
Slivka has joined #ruby
Jackneill has joined #ruby
nemesit has joined #ruby
Jackneill is now known as Guest63506
ephemerian has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
lolcathost has quit [Quit: Lost terminal]
kil0byte has joined #ruby
hotovson_ has joined #ruby
rakunHo has joined #ruby
MrSamuel has joined #ruby
lolcathost has joined #ruby
nari has joined #ruby
gordon1775 has quit [Ping timeout: 255 seconds]
seich has quit [Ping timeout: 246 seconds]
browndawg has joined #ruby
cbosh has quit [Ping timeout: 260 seconds]
seich- has joined #ruby
segv- has joined #ruby
mneorr has quit [Remote host closed the connection]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
browndawg has quit [Client Quit]
woolite64 has joined #ruby
banseljaj is now known as imami|afk
sepp2k has joined #ruby
d34th4ck3r has joined #ruby
Pyro111 has quit [Quit: Leaving]
darthdeus has joined #ruby
tvsutton has joined #ruby
bluOxigen has quit [Ping timeout: 265 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
cbosh has joined #ruby
iamjarvo has quit [Quit: Leaving.]
DaZ_ is now known as DaZ
kanzeon_mobile has quit [Quit: Bye]
mengu has joined #ruby
vlad_starkov has joined #ruby
himsin has joined #ruby
codecaster has joined #ruby
codecaster has quit [Client Quit]
billy_ran_away has quit [Ping timeout: 245 seconds]
browndawg has joined #ruby
S1kx has joined #ruby
S1kx has quit [Changing host]
S1kx has joined #ruby
nari has quit [Ping timeout: 245 seconds]
billy_ran_away has joined #ruby
answer_42 has joined #ruby
qwerxy has joined #ruby
ebouchut has joined #ruby
dmiller has joined #ruby
Takehiro has joined #ruby
tommyvyo_ has joined #ruby
dmiller has quit [Ping timeout: 244 seconds]
ebouchut has quit [Quit: This computer has gone to sleep]
altious has joined #ruby
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
Xeago has joined #ruby
joeycarmello has joined #ruby
adambeynon has joined #ruby
hsbt is now known as hsbt_away
Jasko has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
hsbt_away is now known as hsbt
GeekOnCoffee_ has quit [Ping timeout: 244 seconds]
Solnse has joined #ruby
browndawg has left #ruby [#ruby]
joeycarmello has quit [Ping timeout: 255 seconds]
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
Averna has quit [Quit: Leaving.]
altious has quit [Ping timeout: 256 seconds]
thone has joined #ruby
fyolnish has joined #ruby
thone_ has quit [Ping timeout: 245 seconds]
jkl1337 has joined #ruby
arkiver has quit [Quit: Leaving]
Slivka has quit [Read error: Connection reset by peer]
Slivka has joined #ruby
robottinosino has joined #ruby
wallerdev has quit [Quit: wallerdev]
hsbt has quit [Ping timeout: 276 seconds]
tps_ has quit [Quit: tps_]
bairui has quit [Read error: Connection reset by peer]
bairui_ has joined #ruby
bairui_ is now known as bairui
MrSamuel has quit [Quit: MrSamuel]
darthdeus has quit [Quit: Leaving...]
tommyvyo_ has quit [Quit: Computer has gone to sleep.]
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
hsbt is now known as hsbt_away
robottinosino has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
hsbt_away is now known as hsbt
Boohbah has quit [Ping timeout: 246 seconds]
apeiros_ has joined #ruby
Virunga has joined #ruby
lkba has quit [Ping timeout: 264 seconds]
tPl0ch has quit [Quit: Verlassend]
tvw has quit [Ping timeout: 264 seconds]
kil0byte_ has joined #ruby
kil0byte has quit [Read error: Connection reset by peer]
warchicken has joined #ruby
<warchicken> Good morning
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
<warchicken> I'm motivated to learn programming from scratch and I decided to start with ruby
<warchicken> Is there anyone who can point me in the right direction?
hsbt is now known as hsbt_away
cousine has joined #ruby
hsbt_away is now known as hsbt
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
andreime has joined #ruby
hsbt is now known as hsbt_away
elkclone has quit [Ping timeout: 245 seconds]
hsbt_away is now known as hsbt
kil0byte_ has quit [Remote host closed the connection]
Neomex has joined #ruby
Neomex has quit [Client Quit]
kil0byte has joined #ruby
hsbt has quit [Ping timeout: 256 seconds]
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
lolcathost has quit [Quit: brb]
lolcathost has joined #ruby
browndawg has joined #ruby
<warchicken> Hanmac, yeah I'm reading that, got a few questions though
<warchicken> hmn, i'll read first, thanks
<Hanmac> then i excange the questions with answers :P
<warchicken> well, this all works through a prompt window
hsbt is now known as hsbt_away
<warchicken> when does one write something in say, notepad++ to program the language?
<warchicken> *in the language
Solnse has quit [Ping timeout: 265 seconds]
<warchicken> I don't really see it :(
dmiller has joined #ruby
<warchicken> the prompt window is confusing, I thought people coded ruby in text
hsbt_away is now known as hsbt
<Hanmac> every edior is fine ... syntaxhighlighting only for you, but the normal notepad works too
Takehiro has quit [Read error: Connection reset by peer]
<Hanmac> warchicken the prompt is used with irb with is an interactive ruby interpreter ... you chould look at it or pry the later twinbrothr :P
<warchicken> allright
<warchicken> how do people go from text to a program?
cousine has quit [Remote host closed the connection]
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
spike|spiegel has joined #ruby
<warchicken> I'm just trying to represent all this
statarb3 has quit [Read error: Connection reset by peer]
dmiller has quit [Ping timeout: 255 seconds]
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
<Hanmac> warchicken, you could first play with irb ... the text itself is the programm ruby is interpreted so you dont need to compile it
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
<warchicken> allright, see you again in a few days :p
qwerxy has quit [Quit: offski]
k610 has joined #ruby
joeycarmello has joined #ruby
Slivka has quit [Ping timeout: 248 seconds]
emergion has joined #ruby
hsbt is now known as hsbt_away
Jasko has quit [Read error: Connection reset by peer]
statarb3 has quit [Ping timeout: 252 seconds]
Loaft has quit []
Jasko has joined #ruby
hsbt_away is now known as hsbt
Slivka has joined #ruby
joeycarmello has quit [Ping timeout: 256 seconds]
statarb3 has joined #ruby
rodasc has quit [Ping timeout: 276 seconds]
kesor has joined #ruby
tps_ has joined #ruby
Guest67996 has quit [Read error: Connection timed out]
hsbt has quit [Ping timeout: 246 seconds]
Guest67996 has joined #ruby
hotovson_ has quit [Remote host closed the connection]
io_syl has quit [Quit: Computer has gone to sleep.]
Slivka has quit [Read error: Connection reset by peer]
hotovson has joined #ruby
hsbt has joined #ruby
DaZ has quit [Ping timeout: 245 seconds]
banisterfiend has joined #ruby
hsbt is now known as hsbt_away
timonv has joined #ruby
hsbt_away is now known as hsbt
lolmaus has quit []
Virunga has quit [Remote host closed the connection]
Iszak has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby
hotovson has quit [Ping timeout: 255 seconds]
cousine has joined #ruby
DaZ has joined #ruby
aapzak has quit [Ping timeout: 248 seconds]
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
deepeederd has joined #ruby
aapzak has joined #ruby
ltsstar has joined #ruby
banisterfiend has quit [Ping timeout: 260 seconds]
lkba has joined #ruby
crodas has joined #ruby
Iszak has quit []
andreime has quit [Quit: Konversation terminated!]
Averna has joined #ruby
hsbt is now known as hsbt_away
timonv has quit [Remote host closed the connection]
hsbt_away is now known as hsbt
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
jkl1337 has quit [Ping timeout: 264 seconds]
drfreeze has quit [Ping timeout: 252 seconds]
hsbt is now known as hsbt_away
drfreeze has joined #ruby
hsbt_away is now known as hsbt
hsbt is now known as hsbt_away
statarb3 has quit [Quit: Leaving]
hsbt_away is now known as hsbt
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
dmiller has joined #ruby
beiter has joined #ruby
hsbt is now known as hsbt_away
nari has joined #ruby
hsbt_away was kicked from #ruby by apeiros_ [stop that]
hsbt has joined #ruby
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
hsbt was kicked from #ruby by apeiros_ [hsbt]
Proshot has joined #ruby
dmiller has quit [Ping timeout: 245 seconds]
explody has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
Proshot is now known as statarb3
statarb3 has quit [Changing host]
statarb3 has joined #ruby
Villadelfia_ has quit [Ping timeout: 250 seconds]
Iszak has joined #ruby
Villadelfia has joined #ruby
rakunHo_ has joined #ruby
Jasko has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
Jasko has joined #ruby
rakunHo has quit [Ping timeout: 245 seconds]
nomenkun has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
Villadelfia has quit [Ping timeout: 265 seconds]
Diger_s has quit [Read error: Connection reset by peer]
kn330 has joined #ruby
warchicken has quit [Read error: Connection reset by peer]
warchicken has joined #ruby
Villadelfia has joined #ruby
<kn330> from recommendations import critics # Here recommendations.py is a file and critics is a variable (Dictionary/Hash) declared inside it. How do I achieve something similar in Ruby?
Diger_s has joined #ruby
<nanothief> You can't, pythons import system is more powerful than ruby's. The best you can do is separate the functions/classes into multiple modules, and use something like import 'recommendations'; include Recommendations::Critics
<kn330> say recommendations.rb has a hash (critics={{},{}} ); I tried 'require "./recommendations.rb" ' which return "true" but the variable 'critics' isn't available :|
<nanothief> oh nevermind then, didn't realize what you were asking
qwerxy has joined #ruby
qwerxy has quit [Client Quit]
nari has quit [Ping timeout: 245 seconds]
<nanothief> You could simply put the variable into a method, eg def critics; {{},{}}; end, however, it will be reevaluated every time it is called (may be a problem if the variable is huge)
warchicken has quit [Read error: Connection reset by peer]
warchicken has joined #ruby
gregorg_taf has joined #ruby
Russell^^ has joined #ruby
<apeiros_> kn330: local variables are local
<apeiros_> hence the name
<apeiros_> use a constant if you want it available in another file
JarJar has joined #ruby
gregorg has quit [Read error: Connection reset by peer]
emmanuelux has joined #ruby
darthdeus has joined #ruby
deepeederd has quit [Ping timeout: 255 seconds]
darthdeus has quit [Read error: Connection reset by peer]
darthdeus has joined #ruby
Takehiro has joined #ruby
nari has joined #ruby
nkts has quit []
<kn330> apeiros_: its like a variable to that file but should be treated as a constant when used by other files. So yes, I've initialised the variable 'critics' with predefined values and plan to use it in other files.
<apeiros_> kn330: as said, critics is a local variable
<apeiros_> and local variables are called local because they are, you know, local
yewton has quit [Excess Flood]
<kn330> Would using a 'module' here be reasonable?
<apeiros_> kn330: what stops you from just making it a constant?
yewton has joined #ruby
staafl has joined #ruby
tvsutton has quit [Ping timeout: 250 seconds]
<kn330> apeiros_: what exactly do you mean by 'make it a constant' ? All I want is to keep critics in a separate file and use (read ) it whenever required.
<apeiros_> kn330: sounds to me like you should get a book and learn ruby basics
<apeiros_> a constant in ruby is a variable which starts with an uppercase letter
Elhu has joined #ruby
<apeiros_> Constant, $global, @@class_var, @instance_var, local
Elhu has quit [Client Quit]
tvsutton has joined #ruby
<kn330> oh! thanks
cousine_ has joined #ruby
<kn330> I really need to learn a bit more of ruby syntax :|
<kn330> and btw making it a constant works :D | apeiros_
cousine has quit [Ping timeout: 245 seconds]
Bosma has quit [Ping timeout: 264 seconds]
Guest63506 has quit [Quit: Guest63506]
Bosma has joined #ruby
chussenot has quit [Quit: chussenot]
eka has joined #ruby
chussenot has joined #ruby
ikaros has joined #ruby
braoru has joined #ruby
qwerxy has joined #ruby
qwerxy has quit [Client Quit]
Takehiro has quit [Remote host closed the connection]
k610 has quit [Quit: Leaving]
Goles has quit [Ping timeout: 255 seconds]
dmiller has joined #ruby
Goles has joined #ruby
yewton has quit [Excess Flood]
dmiller has quit [Ping timeout: 252 seconds]
timonv has joined #ruby
yewton has joined #ruby
rakunHo_ has quit [Remote host closed the connection]
alexspeller has joined #ruby
ebouchut has joined #ruby
beiter has quit [Quit: beiter]
bwlang has joined #ruby
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
andreime has joined #ruby
Nisstyre-laptop has quit [Ping timeout: 250 seconds]
darthdeus has quit [Quit: Linkinus - http://linkinus.com]
emergion has quit [Quit: Computer has gone to sleep.]
eka has quit [Remote host closed the connection]
joeycarmello has joined #ruby
eka has joined #ruby
eka has quit [Remote host closed the connection]
alexspeller has quit [Remote host closed the connection]
Averna has quit [Quit: Leaving.]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
jenrzzz_ has joined #ruby
joeycarmello has quit [Ping timeout: 246 seconds]
timonv has quit [Remote host closed the connection]
nomenkun has quit [Remote host closed the connection]
Takehiro has joined #ruby
Takehiro has quit [Remote host closed the connection]
emergion has joined #ruby
arquebus has joined #ruby
AndChat| has quit [Ping timeout: 245 seconds]
ebouchut has quit [Quit: This computer has gone to sleep]
Banistergalaxy has joined #ruby
arquebus has quit [Remote host closed the connection]
nomenkun has joined #ruby
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
ebouchut has joined #ruby
acrocity has quit [Read error: Connection reset by peer]
acrocity has joined #ruby
akemrir has joined #ruby
entrenador has joined #ruby
atno has quit [Read error: Operation timed out]
Virunga has joined #ruby
nilg has joined #ruby
agarie has quit [Remote host closed the connection]
atno has joined #ruby
nanothief has quit [Ping timeout: 264 seconds]
Guest63506 has joined #ruby
tenmilestereo has joined #ruby
tenmilestereo has quit [Max SendQ exceeded]
tenmilestereo has joined #ruby
Kuifje has joined #ruby
Kuifje has quit [Changing host]
Kuifje has joined #ruby
ebouchut has quit [Quit: This computer has gone to sleep]
nomenkun has quit [Remote host closed the connection]
tvw has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
Elhu has joined #ruby
pavilionXP__ has joined #ruby
pavilionXP has quit [Ping timeout: 245 seconds]
Takehiro has joined #ruby
alexspeller has joined #ruby
lkba has quit [Ping timeout: 264 seconds]
akemrir has quit [Quit: WeeChat 0.3.9.2]
piotr_ has joined #ruby
chussenot has quit [Quit: chussenot]
Sou|cutter has quit [Quit: WeeChat 0.3.7]
dmiller has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
chussenot has joined #ruby
alexspeller has quit [Remote host closed the connection]
entrenador has quit [Quit: leaving]
bjensen has joined #ruby
<bjensen> "2012-07-30".to_date >> 4 # => Fri, 30 Nov 2012 ; "2012-07-31".to_date >> 4 # => Fri, 30 Nov 2012. Is this a bug?
dmiller has quit [Ping timeout: 260 seconds]
<canton7> looks like a rails / activesupport question?
Astral has joined #ruby
Astral is now known as Guest79413
nari has quit [Ping timeout: 245 seconds]
JarJar has left #ruby ["Leaving"]
<canton7> ah no, the #>> is part of stdlib's Date
Guest79413 is now known as Astral_
<shevy> cool
<shevy> didnt see that one before
<canton7> and as november only has 30 days, looks like a design decision
<shevy> hmmm
<shevy> isn't the 7. month not november?
d34th4ck3r has quit [Read error: Operation timed out]
hsbt_away has joined #ruby
shikamaru has quit [Ping timeout: 264 seconds]
hsbt_away is now known as hsbt
pmros has joined #ruby
<canton7> It starts with the 31st July, adds 4 months (making it the 31st November, which is invalid), and starts taking off days until the date becomes valid
<canton7> at least, that's what it looks like the source does
<canton7> and it make sense
<shevy> ah, ok
Jasko has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
joeycarmello has joined #ruby
shikamaru has joined #ruby
hoelzro|away is now known as hoelzro
<bjensen> you guys think this makes sense?
<bjensen> Two different dates should not have the same result when using >> IMO
<Banistergalaxy> Hello again, the only one taking pics i think. I have a few questions to ask. I bought my ticket. Any suggestions on how to do with the same time........ :) I am a beautiful person who is a good idea to have a guy who is a good day at work!
<canton7> bjeanes, what would you do?
joeycarmello has quit [Ping timeout: 246 seconds]
<shevy> bjensen but what does >> mean in this context?
<canton7> "a month" is not particularly well defined
<bjensen> Trrue
bwlang has left #ruby [#ruby]
<shevy> "Returns a date object pointing n months after self. The n should be a numeric value"
<canton7> You can either roll back a day, or roll forwards a day (which has the same problem and is slightly more confusing imo), or throw an exception, which would just be irritating and would require everying using #>> to check for the exception and manually do something. They'd probably manually do the current behaviour
nomenkun has joined #ruby
bwlang has joined #ruby
<canton7> If you'd rather add 4*31 days, just use #+
<Banistergalaxy> Canton a month is a good day at work! I love it when you multiply 4 by 31 to get the most important thing in the morning. It is a little bit of a sudden, but it would take a few days.
nari has joined #ruby
JohnBat26 has joined #ruby
Takehiro has quit [Remote host closed the connection]
qwerxy has joined #ruby
hsbt has quit [Ping timeout: 244 seconds]
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
nari has quit [Ping timeout: 245 seconds]
Xeago has quit [Remote host closed the connection]
malkomalko has joined #ruby
metaproged has joined #ruby
metaproged has left #ruby [#ruby]
banisterfiend has joined #ruby
nomenkun has quit [Remote host closed the connection]
miphe_ has joined #ruby
* apeiros_ still curious for what result bjensen expected…
<banisterfiend> :<
<apeiros_> why the sadface, banisterfiend?
<banisterfiend> apeiros_: trying to figure out what the :v emoticon is
qwerxy has quit [Quit: offski]
Iszak has quit []
jgrevich has joined #ruby
qwerxy has joined #ruby
ToTo has joined #ruby
qwerxy has quit [Client Quit]
wf2f has quit [Ping timeout: 246 seconds]
malkomalko has quit [Read error: Connection reset by peer]
<banisterfiend> ToTo: watch out ToTo, watch out MaRy, that's not a coconut tree that's the enormous crocodile and he wants to eat you all up!
skcin7 has joined #ruby
malkomalko has joined #ruby
elico has joined #ruby
cousine_ has quit [Remote host closed the connection]
samphippen has joined #ruby
xbayrockx has joined #ruby
xbayrockx is now known as wf2f
gordon1775 has joined #ruby
jxriddle has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
cousine has joined #ruby
Takehiro has joined #ruby
hsbt has quit [Ping timeout: 255 seconds]
banisterfiend has quit [Remote host closed the connection]
cousine has quit [Remote host closed the connection]
dmiller has joined #ruby
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
alexspeller has joined #ruby
dmiller has quit [Ping timeout: 264 seconds]
alexspeller has quit [Ping timeout: 252 seconds]
lolcathost has quit [Ping timeout: 255 seconds]
nomenkun has joined #ruby
nemesit|osx has joined #ruby
pmros has quit [Quit: Konversation terminated!]
Elhu has joined #ruby
bwlang has left #ruby [#ruby]
nemesit has quit [Ping timeout: 246 seconds]
eka has joined #ruby
chaosis has joined #ruby
joeycarmello has joined #ruby
lkba has joined #ruby
vlad_starkov has joined #ruby
Elhu has quit [Client Quit]
Eplemosen has joined #ruby
nick_h has quit [Ping timeout: 256 seconds]
vlad_sta_ has joined #ruby
eka has quit [Ping timeout: 245 seconds]
joeycarmello has quit [Ping timeout: 248 seconds]
freeayu has quit [Remote host closed the connection]
rondale_sc has joined #ruby
vlad_starkov has quit [Ping timeout: 260 seconds]
hsbt has quit [Ping timeout: 248 seconds]
bwlang has joined #ruby
nick_h has joined #ruby
altious has joined #ruby
bwlang has left #ruby [#ruby]
akemrir has joined #ruby
Astral_ has quit [Quit: Leaving]
AlSquirikou is now known as AlSquire
Xeago has joined #ruby
tk___ has quit [Quit: ばいばい]
miskander has joined #ruby
Banistergalaxy has quit [Ping timeout: 245 seconds]
jenrzzz_ has quit [Ping timeout: 255 seconds]
nanothief has joined #ruby
brendan` has quit [Ping timeout: 252 seconds]
jjbohn has joined #ruby
nanothief has quit [Ping timeout: 244 seconds]
Godd2 has joined #ruby
lolcathost has joined #ruby
Eplemosen has quit [Quit: Hexchat FTW! http://www.hexchat.org/]
miskander has quit [Quit: miskander]
jjbohn has quit [Quit: Leaving...]
daniel_- has joined #ruby
deadalus has quit [Changing host]
deadalus has joined #ruby
iamjarvo has joined #ruby
Xeago has quit [Remote host closed the connection]
jjbohn has joined #ruby
Banistergalaxy has joined #ruby
dougireton has joined #ruby
dougireton has quit [Client Quit]
crackfu has quit [Remote host closed the connection]
elaptics`away is now known as elaptics
rondale_sc has quit [Quit: rondale_sc]
Guest63506 is now known as Jackneill
Jackneill has quit [Changing host]
Jackneill has joined #ruby
nemesit|osx has quit [Quit: Linkinus - http://linkinus.com]
nemesit has joined #ruby
timonv has joined #ruby
tjbiddle has joined #ruby
kesor has left #ruby [#ruby]
chussenot has quit [Quit: chussenot]
jeffreybaird has joined #ruby
Jackneill has quit [Quit: Jackneill]
eph3meral has joined #ruby
centipedefarmer has joined #ruby
rondale_sc has joined #ruby
havenn has joined #ruby
malte_ has quit [Ping timeout: 244 seconds]
braoru has quit [Ping timeout: 246 seconds]
dmiller has joined #ruby
mitc0185 has joined #ruby
<mitc0185> I'm trying to install the fcgi gem, but it conks when it can't find fcgiapp.h on the build. I've compiled fastcgi to my home directory -- how do I tell gem to look there for this header?
aetcore has joined #ruby
audy has left #ruby ["["Textual IRC Client: www.textualapp.com"]"]
bradyl0ve has joined #ruby
jjbohn has quit [Quit: Leaving...]
kn330 has quit [Ping timeout: 248 seconds]
dmiller has quit [Ping timeout: 255 seconds]
kn330 has joined #ruby
brendan` has joined #ruby
banisterfiend has joined #ruby
mitc0185 has quit [Ping timeout: 252 seconds]
freakazoid0223 has joined #ruby
timonv has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
Jasko has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
joeycarmello has joined #ruby
gordon1775 has quit [Ping timeout: 245 seconds]
dmiller has joined #ruby
naquad has quit [Ping timeout: 252 seconds]
jeffreybaird has quit [Quit: jeffreybaird]
joeycarmello has quit [Ping timeout: 246 seconds]
jgrevich_ has joined #ruby
jgrevich has quit [Ping timeout: 246 seconds]
jgrevich_ is now known as jgrevich
Guest67996 has quit [Ping timeout: 245 seconds]
daniel_- has quit [Ping timeout: 245 seconds]
naquad has joined #ruby
slainer68 has joined #ruby
dmiller has quit [Remote host closed the connection]
kn330 has quit [Ping timeout: 265 seconds]
kn330 has joined #ruby
ebouchut has joined #ruby
nomenkun has quit [Remote host closed the connection]
qwerxy has joined #ruby
ddd has joined #ruby
swerter has quit [Ping timeout: 248 seconds]
Guest67996 has joined #ruby
postmodern has quit [Quit: Leaving]
graeme has joined #ruby
NobbZ|ZZzz is now known as NobbZ
daniel_- has joined #ruby
swerter has joined #ruby
alexspeller has joined #ruby
Guest67996 has quit [Ping timeout: 276 seconds]
Elhu has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
simmel has joined #ruby
<simmel> Benchmark.measure supports using a label, how can I print that label?
<simmel> Aah, it returns an Benchmark::Tms object... Should have read the rdoc page more carefully
<simmel> Thanks for being a teddybear!
simmel has left #ruby [#ruby]
daniel_-_ has joined #ruby
Mon_Ouie has quit [Ping timeout: 264 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
nmeum has joined #ruby
mitc0185 has joined #ruby
<shevy> [ do { 1 if 0 }, do { 1 if '' }]
<shevy> would you guys believe that this is valid perl?
Neomex has joined #ruby
daniel_- has quit [Ping timeout: 265 seconds]
Neomex has quit [Client Quit]
graeme has quit [Quit: graeme]
<shevy> hmm perlbot is cool... we could need a rubybot here too
<Hanmac> we had but then we broke it :D
lushious has joined #ruby
<shevy> :\
<shevy> :/
CaptainJet has joined #ruby
andreime has quit [Ping timeout: 255 seconds]
banisterfiend has quit [Remote host closed the connection]
rondale_sc has quit [Quit: rondale_sc]
Takehiro has quit [Remote host closed the connection]
Guest67996 has joined #ruby
slainer68 has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
rajesh_ has quit [Remote host closed the connection]
mitc0185 has quit [Ping timeout: 264 seconds]
statarb3 has quit [Ping timeout: 265 seconds]
bradyl0ve has quit [Quit: Leaving...]
uris has quit [Quit: Leaving]
qwerxy has quit [Quit: offski]
Solnse has joined #ruby
sepp2k has quit [Ping timeout: 245 seconds]
Squarepy has joined #ruby
Squarepy has quit [Changing host]
Squarepy has joined #ruby
miskander has joined #ruby
Sou|cutter has joined #ruby
p2w has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
graeme has joined #ruby
joeycarmello has joined #ruby
tjbiddle has joined #ruby
sepp2k has joined #ruby
mpereira has joined #ruby
joeycarmello has quit [Ping timeout: 246 seconds]
workmad3 has joined #ruby
mpereira has quit [Ping timeout: 255 seconds]
tjbiddle has quit [Quit: tjbiddle]
mpereira has joined #ruby
phelps has quit [Quit: Textual IRC Client: www.textualapp.com]
rondale_sc has joined #ruby
robotmay has joined #ruby
nomenkun has joined #ruby
timonv has joined #ruby
hmans has joined #ruby
Bosma has quit [Read error: Connection reset by peer]
Takehiro has joined #ruby
timonv_ has joined #ruby
eka has joined #ruby
rondale_sc has quit [Client Quit]
perun_ has quit [Ping timeout: 248 seconds]
rondale_sc has joined #ruby
eka has quit [Remote host closed the connection]
banisterfiend has joined #ruby
SCommette has joined #ruby
timonv has quit [Ping timeout: 256 seconds]
io_syl has joined #ruby
lolcathost has quit [Quit: brb]
freakazoid0223 has quit [Quit: Leaving]
nat2610 has quit [Quit: Leaving.]
cj3kim has joined #ruby
lolcathost has joined #ruby
nomenkun has quit [Ping timeout: 265 seconds]
kirun has joined #ruby
pmros has joined #ruby
Takehiro has quit [Ping timeout: 255 seconds]
rondale_sc has quit [Quit: rondale_sc]
SCommette has quit [Quit: SCommette]
nomenkun has joined #ruby
nomenkun has quit [Remote host closed the connection]
perun_ has joined #ruby
Jasko has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
_alejandro has quit [Remote host closed the connection]
hotovson_ has joined #ruby
akemrir has quit [Read error: Connection reset by peer]
alexspeller has quit [Quit: Leaving...]
jeffreybaird has joined #ruby
nipar has joined #ruby
<nipar> Anyone really good at explaining stuff to complete newbies?
d34th4ck3r has joined #ruby
<heftig> don't ask metaquestions :p
<nipar> I'm a complete newbie.
<nipar> j/k ofc you're right
<Beoran_> ask what you want to ask :)
<nipar> I'm trying to figure out lambdas/procs/blocks and it's not gonna be an easy conversation for whoever takes up this challenge
<nipar> I feel like i'd clutter this room up with my messy confused questions
<hoelzro> nipar: just ask =)
<nipar> The problem here is, I don't even really know what to ask
<nipar> I just don't understand them
<canton7> do you know what an anonymous function is?
<nipar> I'm trying to expand my brain a bit with Ruby, and i'm basically viewing my 6th video/book/source of learning on these lambdas/blocks and such
<nipar> I do understand how a block works
<waxjar> quick question: what are the things between the pipes (|these, things|) called in a block? just arguments or do they have a special name?
<heftig> waxjar: parameters
<waxjar> thanks
<heftig> or arguments
timonv_ has quit [Remote host closed the connection]
<nipar> Thank you iamjarvo, i'll read it
<nipar> So far, all these sources show first a yield method to call a block, then a lambda method
<nipar> and I just don't understand
<nipar> if yield works, why use a lambda
daniel_hinojosa has quit [Ping timeout: 260 seconds]
workmad3 has quit [Ping timeout: 255 seconds]
<nipar> They all speak of how much better things become with a lambda, how purple unicorns will swoon around my house and offer me coffee when I wake up, cus I used them, and I just don't see what the big deal is
<canton7> define "then a lambda method". blocks and lambdas follow subtly different rules
<nipar> Are the 5-lines-of-codes examples they're demonstrating too simple, for me to understand the real benefits of a lambda?
<nipar> or am I just not thinking in the right way at all
<canton7> are we talking lambda in the general sense, or a specific ruby lambda?
<nipar> Good question, now please answer it ;)
<heftig> nipar: with lambda, do you mean the &foo stuff?
<canton7> when you say 'lambda' it's hard to know what exactly you're referring to
lolcathost has quit [Quit: brb]
<nipar> I mean that [person(s) in tutorial(s)] are basically calling a block of code with a yield method
<heftig> as in, the examples were: def qux; yield; end and def qux(&foo); foo.call; end
<nipar> then make small changes to the codes, and explain "This is now a lambda! So much better!"
<nipar> and I don't see where anything got better
<heftig> nipar: please show me what code you mean
<canton7> yeah, it's very hard to imagine what you've been reading
<Hanmac> nipar i use something like this (see the & ) Dir["*"].map(&File.method(:size)).inject(0,:+)
<havenn> nipar: hi = ->(name){ "Hi #{name}." }; hi['nipar'] #=> "Hi nipar."
<havenn> I like the stabby lambda. :)
atno has quit [Ping timeout: 265 seconds]
jeffreybaird has quit [Quit: jeffreybaird]
<Hanmac> okay ... the "arrow" parameter , i dont like that
lolcathost has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<nipar> moment heftig, there's several beginnertutorials for this and they all just do the same, i'll find one
<havenn> Hanmac: Prefer proc or Proc.new?
darthdeus has joined #ruby
<canton7> doesn't `proc` behave different between ruby 1.8 and 1.9?
lolcathost has quit [Client Quit]
nomenkun has joined #ruby
banisterfiend has quit [Remote host closed the connection]
<nipar> actually the link from iamjarvo made more sense
<havenn> nipar: RubyTapas's last episode (036) is a really nice explanation. (But not one of the Free Monday episodes.)
cpruitt has joined #ruby
<havenn> canton7: I thought there was no 'proc' or '->' in 1.8, but dunno.
<Godd2> Don't let the title deceive you, it's actually not a very advanced reading, and will give you wonderful foundations in understanding Ruby
tomsthumb has quit [Quit: Leaving.]
<havenn> canton7: Okay, I'm wrong according to IRB. >.>
<canton7> havenn, apparently `proc` acts like `lambda` in 1.8, but `Proc.new` in 1.9
<nipar> thx, I keep feeling like I should somehow magically know programming methodology and terms before actually attempting any programming
<havenn> canton7: aye, confusing!
<nipar> Too many jump in to coding right away, and not having done much coding before, I keep getting stuck on things like this :>
SCommette has joined #ruby
<canton7> imo you should really be learning your first language from a good book
<canton7> there's far too much scope to skip important stuff without realising it otherwise
tommyvyo_ has joined #ruby
timonv has joined #ruby
ikaros has quit [Quit: Ex-Chat]
daniel_hinojosa has joined #ruby
miskander has quit [Quit: miskander]
joeycarmello has joined #ruby
cpruitt has quit [Quit: cpruitt]
Vert has joined #ruby
Elhu has joined #ruby
SCommette has quit [Quit: SCommette]
jenrzzz_ has joined #ruby
<nipar> I kind of jump between books and movies
<nipar> Books give a very thorough explanation indeed, but viewing a movie of the same section that im currently on in the book provides an additional means of visual learning, and a second explanation (point of view) of the current parts im learning
quest88 has quit [Quit: quest88]
ebouchut has quit [Quit: This computer has gone to sleep]
kalleth has quit [Remote host closed the connection]
kalleth has joined #ruby
havenn has quit [Remote host closed the connection]
miskander has joined #ruby
gbchaosmaster has joined #ruby
kalleth has quit [Remote host closed the connection]
kalleth has joined #ruby
browndawg has left #ruby [#ruby]
<shevy> book forces you to do more things on your own though
<shevy> I even wrote ruby programs on paper at one point
<shevy> at least conceptually
<burgestrand> syntax coloring becomes much more interesting that way
<davidcelis> syntax coloring is a crutch
<gbchaosmaster> A crutch, but so few reasons not to use it.
ikaros has joined #ruby
<waxjar> syntax colouring makes everything so much easier
tommyvyo_ has quit [Quit: Computer has gone to sleep.]
timonv has quit [Remote host closed the connection]
rakunHo has joined #ruby
p2w has quit [Ping timeout: 250 seconds]
browndawg has joined #ruby
lolcathost has joined #ruby
jenrzzz_ has quit [Quit: leaving]
<davidcelis> i never highlight my syntaxes
<davidcelis> i dont need that handicap shit
kirun has quit [Ping timeout: 250 seconds]
jenrzzz_ has joined #ruby
<Godd2> davidcelis: It's not a matter of necessity
<gbchaosmaster> Godd2: +1
<davidcelis> im not really being serious guys
<davidcelis> that would be like saying i dont cook my food
<canton7> this is why we have the sarcasm tag
crackfu has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
vlad_starkov has quit [Remote host closed the connection]
hmans has quit [Quit: Linkinus - http://linkinus.com]
<davidcelis> the wut
alexspeller has joined #ruby
<gbchaosmaster> Heh, I was about to say, you don't need an editor either. Relevant: http://xkcd.com/378/
Morkel has joined #ruby
hoelzro is now known as hoelzro|away
browndawg has left #ruby [#ruby]
BoomCow has joined #ruby
<davidcelis> of course you don' tneed an editor
<davidcelis> you need a writer
<davidcelis> nobody edits their code, you just write it, and it works
<oqa> you don't even need an editor, you can hire coders cheap from the east
<oqa> just say "I have an idea, I want to make the next facebook" and they'll implement it
<BoomCow> oqa, tell that to my buddy who had to fix up code from a team in india
nat2610 has joined #ruby
<BoomCow> I looked at it and had an instant headache
<oqa> BoomCow: I know, I was being sarcastic
<oqa> ;)
<erichmenge> davidcelis: Heh
<davidcelis> man
<davidcelis> y'all really need some lessons in sarcasm :(
alta has joined #ruby
<erichmenge> Dude that was totally lost on the interwebs.
<erichmenge> I thought you were serious too.
<BoomCow> :)
<BoomCow> so I'm writing matching algorithms to match fb places to places in my DB
<oqa> now I'm confusled
<BoomCow> is there a term for this type of work?
<davidcelis> BoomCow: algorithmic facebook place matching
tommyvyo_ has joined #ruby
<BoomCow> lol
<BoomCow> no buzzwords?!
<erichmenge> davidcelis: Now that was better.
<yfeldblum> i hook up wireshark and an espresso machine and i just type out the response packets really fast
<BoomCow> algorithmic big data matching
<yfeldblum> no software-writing needed
nat2610 has quit [Client Quit]
<oqa> best story about outsourcing I've heard was when a the indian team explained how they do unit testing
miskander has quit [Quit: miskander]
<oqa> the project's build looked like it didn't produce any test results
<oqa> when they were asked "do you do unit testing?" the answer was "yes, we unit test"
<oqa> "where are the reports?" -> "we generate them montly"
S1kx has quit [Read error: Connection reset by peer]
Nisstyre has joined #ruby
bradyl0ve has joined #ruby
<oqa> "can you explain the unit testing process"
S1kx has joined #ruby
S1kx has joined #ruby
<oqa> "well, a coder investigates the changes made by the other coder"
<oqa> "so a coder is a unit?"
<oqa> "yes"
graeme has quit [Quit: graeme]
<oqa> instant facepalm
<davidcelis> l o l
<oqa> I think the situation was fixed quite quickly afterwards
mneorr has joined #ruby
nat2610 has joined #ruby
adambeynon has joined #ruby
<oqa> anyways, I guess I'd rather be a resource then a unit
habstinat has quit [Ping timeout: 244 seconds]
<Godd2> Why would you need unit testing if you write your code perfectly to begin with? /s
<davidcelis> ^ example of something that should not have needed the /s
<davidcelis> but apparently y'all need that /shit
hackerdude has joined #ruby
miskander has joined #ruby
<Godd2> maybe we're just generally nicer people than you :(
jrajav has joined #ruby
<davidcelis> HEY MAN
<erichmenge> ^
<Godd2> :P
<davidcelis> just because i'm an asshole
<davidcelis> doesn't make me a mean person
headius has joined #ruby
Solnse has quit [Ping timeout: 255 seconds]
[Gingersnap] has quit [Ping timeout: 265 seconds]
<Godd2> Threshhold of sarcasm for which /s is needed for davidcelis: |------------|--| Threshohold for the rest of us: |-|-------------|
nat2610 has quit [Ping timeout: 250 seconds]
Solnse has joined #ruby
<davidcelis> lol'd
Goles has quit [Ping timeout: 246 seconds]
rondale_sc has joined #ruby
Goles has joined #ruby
schaerli has joined #ruby
statarb3 has joined #ruby
statarb3 has joined #ruby
cousine has joined #ruby
rakunHo is now known as rakuN
rondale_sc has quit [Client Quit]
manizzle has quit [Remote host closed the connection]
phelps has joined #ruby
kirun has joined #ruby
sn0wb1rd has quit [Quit: sn0wb1rd]
sn0wb1rd has joined #ruby
wmoxam has quit [Quit: leaving]
Mon_Ouie has joined #ruby
SCommette has joined #ruby
ngoula has joined #ruby
cousine has quit [Remote host closed the connection]
miskander has quit [Quit: miskander]
Iuz has joined #ruby
banisterfiend has joined #ruby
<banisterfiend> canton7: yeah it does
<banisterfiend> canton7: proc was alias for lambda in 1.8, which was just plain stupid
Squarepy has quit [Quit: Leaving]
tommyvyo_ has quit [Quit: Computer has gone to sleep.]
robotmay_ has joined #ruby
robotmay has quit [Read error: Connection reset by peer]
BoomCow has quit [Quit: This computer has gone to sleep]
jaygen has quit [Remote host closed the connection]
jenrzzz_ has quit [Ping timeout: 264 seconds]
robotmay_ has quit [Read error: Connection reset by peer]
robotmay has joined #ruby
mahmoudimus has joined #ruby
IceDragon has joined #ruby
Tarential has quit [Ping timeout: 265 seconds]
rippa has quit [Ping timeout: 248 seconds]
alexmin has joined #ruby
alexmin has left #ruby [#ruby]
pmros has quit [Quit: Konversation terminated!]
rippa has joined #ruby
Tarential has joined #ruby
deepeederd has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
rakunHo has joined #ruby
Dreamer3 has quit [Quit: Computer has gone to sleep.]
rakuN has quit [Ping timeout: 272 seconds]
Dreamer3 has joined #ruby
marr has quit [Ping timeout: 256 seconds]
ngoula has quit []
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
foohey has quit [Quit: /ɪts ˌnɒt ə ˈbʌg ɪts ə ˈfiː.tʃə/]
foohey has joined #ruby
eka has joined #ruby
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
elico has quit [Quit: elico]
rjmt___ has joined #ruby
Mon_Ouie has quit [Ping timeout: 272 seconds]
invisime has joined #ruby
Monie has quit [Read error: Connection reset by peer]
<apeiros_> ping banisterfiend - the multiline thing in pry is nice, but it not counting the line number correctly is bad for exceptions…
hotovson_ has quit [Remote host closed the connection]
<banisterfiend> apeiros_: can u gist?
schaerli has quit [Remote host closed the connection]
<apeiros_> line 33 reports (pry):18
<apeiros_> which is of course the first line 14 of pry
<apeiros_> and line 29 reports (pry):19, which is of course the second line of line 14 of pry
<banisterfiend> thx
mpereira has quit [Ping timeout: 244 seconds]
SCommette has quit [Quit: SCommette]
<banisterfiend> apeiros_: there is no real correlation between expression number (which is what pry shows in []) and line number, which pry doesn't show by default
<ryanf> apeiros_: the number in the prompt isn't actually a line number, it's an expression number
<ryanf> banisterfiend: hi
<banisterfiend> apeiros_: you can customise your prompt to show the actual line number though
<banisterfiend> ryanf: yo
<apeiros_> banisterfiend: will do that. I think expression number is a bad idea then. that will confuse people even more.
<banisterfiend> apeiros_: we stole that from python, which also shows expression number rather than line number
<banisterfiend> ipython*
chussenot has joined #ruby
<apeiros_> so they get useless backtraces too, lovely :-p
<ryanf> you can do stuff like edit -i 14 to open the whole expression in your editor
<ryanf> doing something like that by line would be pretty useless
<apeiros_> ryanf: not the point.
Slivka has joined #ruby
Slivka has quit [Read error: Connection reset by peer]
<apeiros_> ryanf: yes, but showing expression numbers makes backtraces useless.
rjmt___ has quit [Ping timeout: 264 seconds]
Slivka has joined #ruby
<ryanf> yes, although you can use cat --ex to see the context of any given backtrace line
<ryanf> including the (pry) ones
<ryanf> I agree that it isn't ideal, but I don't think showing all of the line numbers would be a better tradeoff
<banisterfiend> apeiros_: well i don't usually find backtraces that point to pry code that useful, as stuff defined inside pry (rather than in .rb field) is usually relatively trivial code and it's typically obvious what the cause of the error was
<ryanf> maybe exposing a way to see your recent pry history with the line numbers would be beneficial
cableray has joined #ruby
<banisterfiend> apeiros_: but if i really wanna know, i use cat --ex
<banisterfiend> i typically use cat --ex rather than wtf? in most case anyway
<banisterfiend> though sometimes i use wtf? first just to find which level of the backtrace i want to cat --ex on
SCommette has joined #ruby
<banisterfiend> apeiros_: personally, (since if use play -i, gist -i, edit -i a lot) i find expression numbers much more useful that line numbers, so if i had to choose one i'd choose expression numbers, but maybe we should make that clearer in documentation and explain how to change it back to line numbers for ppl who prefer that
<banisterfiend> since i*
<banisterfiend> apeiros_: let me show ou some uses of expression numbers brb
slainer68 has joined #ruby
Mon_Ouie has joined #ruby
mercwithamouth has quit [Ping timeout: 255 seconds]
nat2610 has joined #ruby
rellin has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
SCommette has quit [Client Quit]
SCommette has joined #ruby
AndChat| has joined #ruby
kirun has quit [Ping timeout: 246 seconds]
mercwithamouth has joined #ruby
havenn has joined #ruby
Banistergalaxy has quit [Ping timeout: 256 seconds]
DatumDrop has joined #ruby
cakehero has joined #ruby
tomsthumb has joined #ruby
darthdeus has quit [Quit: Leaving...]
syamajala has joined #ruby
mjolk has joined #ruby
kn330 has quit [Remote host closed the connection]
mjolk is now known as Guest96053
shevy has quit [Ping timeout: 264 seconds]
Guest96053 has quit [Client Quit]
nomenkun has quit [Remote host closed the connection]
bradyl0ve has quit [Quit: Leaving...]
habstinat has joined #ruby
Slivka has quit [Read error: Connection reset by peer]
nat2610 has quit [Quit: Leaving.]
DatumDrop has quit [Ping timeout: 256 seconds]
Slivka has joined #ruby
atno has joined #ruby
kirun has joined #ruby
banjara has quit [Quit: Leaving.]
anoob has joined #ruby
wallerdev has joined #ruby
nat2610 has joined #ruby
jfl0wers has quit [Quit: jfl0wers]
swerter has quit [Ping timeout: 255 seconds]
DaZ has quit [Ping timeout: 260 seconds]
segv- has quit [Quit: segv-]
xAndy is now known as xandy
tommyvyo has quit [Quit: http://thomasvendetta.com]
ToTo has quit [Ping timeout: 250 seconds]
shevy has joined #ruby
eldariof has quit []
raz has quit [Ping timeout: 265 seconds]
apok has joined #ruby
miskander has joined #ruby
freakazoid0223 has joined #ruby
marr has joined #ruby
DaZ has joined #ruby
anoob has left #ruby [#ruby]
tr4656 has quit [Read error: Operation timed out]
phelps has quit [Quit: Textual IRC Client: www.textualapp.com]
xandy is now known as xAndy
nat2610 has quit [Quit: Leaving.]
razibog has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
SCommette has quit [Quit: SCommette]
mitc0185 has joined #ruby
tommyvyo has joined #ruby
strtok_ is now known as strtok
raz has joined #ruby
tr4656 has joined #ruby
Slivka has quit [Read error: Connection reset by peer]
robinbowes has quit [Quit: Changing server]
Slivka has joined #ruby
joeycarmello has quit [Remote host closed the connection]
miskander has quit [Quit: miskander]
jxriddle has quit [Quit: jxriddle]
robinbowes has joined #ruby
DaZ has quit [Ping timeout: 272 seconds]
burgestrand1 has joined #ruby
[JellyBean] has joined #ruby
nomenkun has joined #ruby
<iamjarvo> when reading about a subject do you guys take notes? how do you go about trying to remember key points about the topic?
burgestrand has quit [Ping timeout: 265 seconds]
<waxjar> i like to use those bright markers
<iamjarvo> im basically looking for some workflows for how you guys learn
jenrzzz has quit [Quit: Lost terminal]
<RubyPanther> iamjarvo: I try to connect _concepts_ to things I am already familiar with, and where to look up facts and details. Then anything I've looked up more than once while working on a project, I write on a whiteboard.
mike-- has quit [Ping timeout: 265 seconds]
techhelp has joined #ruby
<RubyPanther> key points are worthless IMO unless they connect to your existing knowledge. For me it is a lot more effective to re-read about a related subject first, so it connects properly, than to take notes that I would have to remember to consult, and I would have to have memorized in order to know when to consult them
robinbowes has quit [Quit: Changing server]
DaZ has joined #ruby
[JellyBean] has quit [Excess Flood]
gordon1775 has joined #ruby
<iamjarvo> RubyPanther: that is true about notes
<yfeldblum> iamjarvo, RubyPanther, everyone learns differently
<waxjar> taking notes in full sentences forces you to properly understand things tho, i sometimes try to make concise summaries of the stuff I'm reviewing
<RubyPanther> Then again I also "studied" for exams in college by reading the chapter reviews on the bus to the test, so any academic could tell you I am an awful source for learning process information
mpereira has joined #ruby
ltsstar has quit [Quit: ltsstar]
thams has quit [Read error: Connection reset by peer]
thams has joined #ruby
nat2610 has joined #ruby
<iamjarvo> maybe notes should be looked at more as write it down to understand it but not as reference
nat2610 has quit [Client Quit]
deepeederd has quit [Ping timeout: 276 seconds]
main has joined #ruby
[JellyBean] has joined #ruby
[JellyBean] has quit [Excess Flood]
DaZ has quit [Ping timeout: 250 seconds]
nemesit has quit [Ping timeout: 244 seconds]
foohey has quit [Remote host closed the connection]
[JellyBean] has joined #ruby
foohey has joined #ruby
sepp2k1 has joined #ruby
ddd has quit [Quit: Leaving.]
sepp2k has quit [Ping timeout: 264 seconds]
gordon1775 has quit [Ping timeout: 265 seconds]
ddd has joined #ruby
DaZ has joined #ruby
apok has quit [Quit: apok]
generalissimo has joined #ruby
jimeh has joined #ruby
hackerdude has quit [Remote host closed the connection]
lolcathost has quit [Ping timeout: 246 seconds]
razibog has quit [Ping timeout: 272 seconds]
headius has quit [Quit: headius]
[Neurotic] has joined #ruby
[Cupcakes] has joined #ruby
robotmay has quit [Remote host closed the connection]
tyfighter has joined #ruby
aharris6 has joined #ruby
nat2610 has joined #ruby
DatumDrop has joined #ruby
headius has joined #ruby
DaZ has quit [Ping timeout: 255 seconds]
headius has quit [Client Quit]
bradyl0ve has joined #ruby
tomsthumb has quit [Read error: Connection reset by peer]
main has quit [Quit: Leaving]
tommyvyo_ has joined #ruby
main has joined #ruby
DaZ has joined #ruby
jkl1337 has joined #ruby
lurch_ has joined #ruby
tjbiddle has joined #ruby
atmosx has joined #ruby
nat2610 has quit [Quit: Leaving.]
banisterfiend has quit [Remote host closed the connection]
miskander has joined #ruby
banisterfiend has joined #ruby
nemesit has joined #ruby
<atmosx> Greetings
Nisstyre has quit [Quit: Leaving]
aetcore has quit [Remote host closed the connection]
danneu has joined #ruby
nfx has joined #ruby
deepeederd has joined #ruby
DatumDrop has quit [Ping timeout: 244 seconds]
cek has joined #ruby
<cek> hi. I want [1, [2,3]].each {|a,b,c| puts a,b,c }.
<cek> |a, *(b, c)| didn't work.
<banisterfiend> cek: #each doesn't work like that
mitc0185 has quit [Read error: Connection reset by peer]
mengu has quit [Quit: Konversation terminated!]
<banisterfiend> cek: ot
mitc0185 has joined #ruby
sjhuang has quit [Ping timeout: 252 seconds]
<banisterfiend> cek: looks like u just want to do this: a, (b, c) = [1, [2, 3]]
darthdeus has joined #ruby
<cek> i want to type less in args
<maetthew> Anyone here have experience with the steam-condenser gem? http://koraktor.de/steam-condenser/
<cek> |a, (b, c) = *| ? lol
statarb3 has quit [Quit: Leaving]
sjhuang has joined #ruby
<banisterfiend> cek: your question doesn't actually make sense
<cek> thanks
<banisterfiend> cek: and if you thought about it harder i think yo'd realise that too
tjbiddle has quit [Quit: tjbiddle]
DatumDrop has joined #ruby
miskander has quit [Quit: miskander]
thams has quit [Read error: Connection reset by peer]
miskander has joined #ruby
thams has joined #ruby
[Cupcakes] has quit [Read error: Connection reset by peer]
[Cupcakes] has joined #ruby
[Cupcakes] has quit [Max SendQ exceeded]
freeayu has joined #ruby
[Cupcakes] has joined #ruby
[Cupcakes] has quit [Max SendQ exceeded]
[Cupcakes] has joined #ruby
[Cupcakes] has quit [Max SendQ exceeded]
[Cupcakes] has joined #ruby
[Cupcakes] has quit [Max SendQ exceeded]
tommyvyo_ has quit [Quit: Computer has gone to sleep.]
rondale_sc has joined #ruby
banisterfiend has quit [Ping timeout: 272 seconds]
<maetthew> Anyone here have experience with the steam-condenser gem? http://koraktor.de/steam-condenser/
banisterfiend has joined #ruby
<cek> steam is for children
jxriddle has joined #ruby
miskander has quit [Quit: miskander]
rakunHo has quit [Read error: Connection reset by peer]
syamajala has quit [Remote host closed the connection]
<maetthew> well perhaps i am a child?
hoelzro|away is now known as hoelzro
Russell^^ has quit [Quit: Russell^^]
<atmosx> is this the gaming platform?
<maetthew> yes
joeycarmello has joined #ruby
<RubyPanther> Ruby helps programmers release their inner child
<maetthew> ^^
<RubyPanther> If you don't believe me, you probably haven't even made it through Dwemthy's Array yet.
<atmosx> is there any to put input using 'gets' on a rake task?
<atmosx> any *way*
jxriddle has quit [Ping timeout: 265 seconds]
<atmosx> I'm using octopress for blogging and I've configured it to open vim automatically at the proper line once the blog post (simple md file) is created. But I need to fill the tags/categories before, otherwise I have to do an up/down using vim which is annoying
<cek> how do you get first block return value that's not false or nil from enum list?
xAndy is now known as xandy
techhelp2 has joined #ruby
rondale_sc has quit [Quit: rondale_sc]
mitc0185 has quit [Quit: leaving]
techhelp has quit [Read error: Operation timed out]
lolcathost has joined #ruby
deepeederd has quit []
banisterfiend has quit [Remote host closed the connection]
jrajav has quit [Quit: I tend to be neutral about apples]
S1kx has quit [Remote host closed the connection]
S1kx has joined #ruby
banisterfiend has joined #ruby
maletor has joined #ruby
Monie has joined #ruby
nmabry has joined #ruby
nmabry has left #ruby [#ruby]
My_Hearing has joined #ruby
My_Hearing has joined #ruby
bjensen has quit [Quit: bjensen]
nmabry has joined #ruby
AndChat| has quit [Ping timeout: 272 seconds]
Mon_Ouie has quit [Ping timeout: 272 seconds]
banisterfiend has quit [Ping timeout: 255 seconds]
Jasko has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
tommyvyo has quit [Quit: http://thomasvendetta.com]
Iszak has joined #ruby
digifiv5e has quit [Changing host]
digifiv5e has joined #ruby
GeekOnCoffee_ has joined #ruby
emergion has joined #ruby
<havenn> cek: [nil, false, nil, 'Christmas', false].find { |n| n }
Xeago has joined #ruby
Morkel has quit [Quit: Morkel]
generalissimo has quit [Remote host closed the connection]
DatumDrop has quit [Remote host closed the connection]
emmanuelux has quit [Remote host closed the connection]
robotmay has joined #ruby
nomenkun has quit [Remote host closed the connection]
tenmilestereo has quit [Quit: Leaving]
seanstickle has joined #ruby
nemesit has quit [Quit: Leaving...]
tjbiddle has joined #ruby
miskander has joined #ruby
Banistergalaxy has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
himsin has quit [Ping timeout: 245 seconds]
miskander has quit [Client Quit]
<cek> havenn, nope, i want to have immeddiate return value. it's possible with so called lazy enum,map_detect
<cek> or with #find if you use local vars properly
Slivka has quit [Read error: Connection reset by peer]
Squarepy has joined #ruby
Squarepy has quit [Changing host]
Squarepy has joined #ruby
joofsh has joined #ruby
miskander has joined #ruby
miskander has quit [Client Quit]
danneu has quit [Ping timeout: 248 seconds]
_Mon_Ouie_ has joined #ruby
ikaros has quit [Quit: Ex-Chat]
miphe_ has quit [Quit: Leaving]
answer_42 has quit [Remote host closed the connection]
apok has joined #ruby
My_Hearing has quit [Ping timeout: 272 seconds]
tommyvyo has joined #ruby
Mon_Ouie has joined #ruby
kirun has quit [Quit: Client exiting]
_Mon_Ouie_ has quit [Ping timeout: 244 seconds]
emergion has joined #ruby
Zolrath has joined #ruby
wargasm has joined #ruby
aharris6 has quit [Remote host closed the connection]
ToTo has joined #ruby
cek has quit [Ping timeout: 276 seconds]
phelps has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
syamajala has joined #ruby
x82_nicole has joined #ruby
ikaros has joined #ruby
apok has quit [Quit: apok]
darthdeus has quit [Quit: Linkinus - http://linkinus.com]
emergion has quit [Ping timeout: 265 seconds]
havenn has quit [Remote host closed the connection]
havenn has joined #ruby
emmanuelux has joined #ruby
aharris6 has joined #ruby
havenn has quit [Read error: Connection reset by peer]
danneu has joined #ruby
Mon_Ouie has quit [Ping timeout: 272 seconds]
Nykolla has joined #ruby
Nykolla_ has quit [Ping timeout: 245 seconds]
alanp_ has joined #ruby
alanp_ has quit [Read error: Connection reset by peer]
Nykolla_ has joined #ruby
eka has quit [Remote host closed the connection]
alanp_ has joined #ruby
nari has joined #ruby
Xeago has quit [Remote host closed the connection]
Nykolla has quit [Ping timeout: 256 seconds]
alanp has quit [Ping timeout: 264 seconds]
<maetthew> Anyone have any idea when I get this error. "XML data could not be parsed". Trying to use the steam-condenser gem
<maetthew> line 1 and 5 i can retrieve their profiles
<maetthew> but on line 9
<maetthew> i cannot
<maetthew> for some reason i cannot fathom
<atmosx> maetthew: out of curiosity, what program are you writing for steam?
<maetthew> atmosx, well nothing atm. I intend to make an IRC bot related to gaming
hoelzro is now known as hoelzro|away
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<atmosx> I see
<maetthew> i just cannot for the world of me figure out why i can fetch some profiles and some i can't
mike-- has joined #ruby
<maetthew> i would ask in #steam-condenser but it's occupied by 3 people
heftig has quit [Quit: leaving]
<maetthew> with 3 weeks, 5 days, 14+h idle time respectively :)
joeycarmello has quit [Remote host closed the connection]
[eDu] has joined #ruby
Jasko has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
<atmosx> maetthew: try the ruby-users mailing list
<maetthew> atmosx, hmm yeah i'll do that
<maetthew> i'm out of ideas, and have no one else to ask
<maetthew> was about to try to find the email of the author of the gem
<atmosx> did you try steam forums?
<atmosx> or related community?
<maetthew> no i did not
Squarepy has quit [Remote host closed the connection]
<maetthew> atmosx, is this it?
<atmosx> yes
<maetthew> because there's only "Ruby-Talk", "Ruby-Core", "Ruby-Doc" and "Ruby-CVS"
<maetthew> should i use talk?
<atmosx> yes
adeponte has joined #ruby
<maetthew> thanks
<atmosx> np :-(
<atmosx> =) heh
<maetthew> :D
elaptics is now known as elaptics`away
mneorr has quit [Ping timeout: 252 seconds]
Kuifje has quit [Ping timeout: 248 seconds]
kiyoura has joined #ruby
nomenkun has joined #ruby
neurotech has joined #ruby
nfx has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
atmosx has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
nmabry has left #ruby [#ruby]
jjang has joined #ruby
<neurotech> What's the best way to work with APIs such as Giant Bomb's? (http://api.giantbomb.com/documentation/) The HTTParty gem?
mockra_ has quit [Remote host closed the connection]
CaptainJet has quit []
lurch_ has quit [Quit: lurch_]
nomenkun has quit [Ping timeout: 272 seconds]
apok has joined #ruby
jonahR has joined #ruby
bradyl0ve has quit [Quit: Leaving...]
dpk has left #ruby [#ruby]
jxriddle has joined #ruby
[eDu] has quit [Quit: [eDu]]
adeponte has quit [Remote host closed the connection]
mockra has joined #ruby
lolcathost has quit [Ping timeout: 252 seconds]
Virunga has quit [Remote host closed the connection]
nari has quit [Ping timeout: 264 seconds]
mike-- has quit [Ping timeout: 256 seconds]
apok has quit [Quit: apok]
freakazoid0223 has quit [Quit: Leaving]
lolcathost has joined #ruby
Solnse has quit [Ping timeout: 252 seconds]
jjang has quit [Remote host closed the connection]
reppard has joined #ruby
sn0wb1rd has quit [Quit: sn0wb1rd]
heftig has joined #ruby
tyfighter has quit [Ping timeout: 260 seconds]
gsj1 has joined #ruby
cantonic has joined #ruby
banister_ has joined #ruby
generalissimo has joined #ruby
xandy is now known as xAndy
centipedefarmer has joined #ruby
robotmay has quit [Remote host closed the connection]