apeiros changed the topic of #ruby to: Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
<|jemc|> it'd be nice if my source files weren't 60-80% comments
<|jemc|> although that's a bit of an exaggeration
sparq_ has quit [Quit: Leaving]
zarubin has quit [Ping timeout: 264 seconds]
kpshek has quit []
cody-- has joined #ruby
Lewix has joined #ruby
fixl has joined #ruby
vlad_starkov has joined #ruby
funburn has joined #ruby
Andrevan has joined #ruby
kilophoton has joined #ruby
TripleDES has joined #ruby
Cyrus has joined #ruby
NealJ has quit [Quit: :c]
zeromodulus has quit [Remote host closed the connection]
sarkis has quit [Ping timeout: 256 seconds]
VTLob has quit [Quit: VTLob]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
nickmn has joined #ruby
atmosx has quit [Quit: Lost in trance]
zets has joined #ruby
vlad_starkov has quit [Ping timeout: 264 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
tjad has quit [Ping timeout: 260 seconds]
mercwithamouth has quit [Ping timeout: 260 seconds]
devoldmx3 has joined #ruby
chairabanta has joined #ruby
DanKnox is now known as DanKnox_away
devoldmx has quit [Ping timeout: 240 seconds]
kpshek has joined #ruby
m8 has quit [Quit: Sto andando via]
suisha has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
TDJACR has quit [Quit: Quit]
vxxr has joined #ruby
TDJACR has joined #ruby
mrsolo has joined #ruby
colonolGron has quit [Quit: leaving]
funburn has quit [Quit: funburn]
zorg24 has quit [Ping timeout: 240 seconds]
vitoravelino has joined #ruby
vitoravelino has joined #ruby
vitoravelino has left #ruby [#ruby]
max_dev has quit [Quit: Leaving]
<volty> some of you expert in pry?
emergion has joined #ruby
<volty> require 'pry'; .... binding.pry -> pry session -> find-method 'shot-after' -. I get this: NameError: undefined method `blockSignals' for class `JobsWidget'; from /var/lib/gems/1.8/gems/pry-0.9.12.2/lib/pry/helpers/base_helpers.rb:23:in `instance_method'
yekta has joined #ruby
chairabanta has quit [Quit: Leaving...]
nickmn has quit [Quit: leaving]
<volty> the offending line in base_helpers.rb is def safe_send(obj, method, *args, &block); (Module === obj ? Module : Object).instance_method(method).bind(obj).call(*args, &block); end
<volty> any ideas, hints?
snovak has joined #ruby
DanielRb has quit [Quit: Quit]
<volty> (as for the rest it's wonderful, a qt application restarts with all its signals mechanisms ...)
DanielRb has joined #ruby
JesseH has joined #ruby
anderson has quit [Ping timeout: 240 seconds]
sambao21 has joined #ruby
zorg24 has joined #ruby
snovak has quit [Ping timeout: 264 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
gr33n7007h has quit [Remote host closed the connection]
jefflyne3 has joined #ruby
gimpygoo has quit [Ping timeout: 256 seconds]
cody-- has quit [Quit: derp]
sambao21 has quit [Ping timeout: 264 seconds]
mansi has joined #ruby
bricker`LA has quit [Read error: Operation timed out]
mengu has quit [Quit: This computer has gone to sleep]
kpshek has quit [Ping timeout: 264 seconds]
Davey has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
max_dev has joined #ruby
aaronmcadam has quit [Read error: Connection reset by peer]
aaronmcada has joined #ruby
Aryasam has joined #ruby
Quashie has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
TripleDES has quit [Read error: Connection reset by peer]
TripleDES has joined #ruby
TripleDES has quit [Read error: Connection reset by peer]
beilabs has joined #ruby
kilophoton has quit [Ping timeout: 252 seconds]
aaronmcada has quit [Ping timeout: 246 seconds]
Teddy2steper has joined #ruby
DanKnox_away is now known as DanKnox
TripleDES has joined #ruby
g0bl1n has joined #ruby
nfk has quit [Quit: yawn]
platzhirsch has left #ruby [#ruby]
nfk has joined #ruby
nfk has joined #ruby
mercwithamouth has joined #ruby
narcan has joined #ruby
yxhuvud has quit [Ping timeout: 264 seconds]
simoz has joined #ruby
nfk has quit [Client Quit]
emergion has joined #ruby
jamesaanderson has joined #ruby
max_dev has quit [Quit: Leaving]
sambao21 has joined #ruby
postmodern has joined #ruby
schaerli has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
suisha has left #ruby [#ruby]
sambao21 has quit [Ping timeout: 260 seconds]
GeissT has joined #ruby
<banisterfiend> volty i'm an expert in pry ;)
<banisterfiend> you'll have to reask your q though since i only saw it on my phone
blackmesa has quit [Ping timeout: 240 seconds]
azcodex has quit [Read error: Connection reset by peer]
<volty> require 'pry'; .... binding.pry -> pry session -> find-method 'shot-after' -. I get this: NameError: undefined method `blockSignals' for class `JobsWidget'; from /var/lib/gems/1.8/gems/pry-0.9.12.2/lib/pry/helpers/base_helpers.rb:23:in `instance_method'
<volty> the offending line in base_helpers.rb is def safe_send(obj, method, *args, &block); (Module === obj ? Module : Object).instance_method(method).bind(obj).call(*args, &block); end
starfox21 has joined #ruby
tclark has joined #ruby
<banisterfiend> volty shot-after is not a valid method name
<volty> i think i got it why but not how to fix it
<volty> shot_after - a typo
starfox21 has quit [Client Quit]
tclark has quit [Max SendQ exceeded]
<volty> it is a qt wrapper library, hides redefines methods, unlike with simple undef_methods etc etc etc
<banisterfiend> volty can you repro it so i can recreate it without requiring those libraries?
<volty> no way
<|jemc|> ha
mercwithamouth has quit [Ping timeout: 264 seconds]
<volty> if you tell me what pry does there i can look at qt wrapper and see if i can do something
heftig has quit [Ping timeout: 260 seconds]
<banisterfiend> volty why are you on ruby 1.8 ?
<volty> because of compatibility issues, no time to experiment now // right now i was about to install 1.9 in parallel
schaerli has quit [Ping timeout: 264 seconds]
<banisterfiend> volty cos part of the problem could be ruby 1.8
<banisterfiend> pry does its best to work in ruby 1.8 but we can't compromise everything
<banisterfiend> 1.8 is also officially dead, so from here on out we're probably going to care less and less about fixing things on 1.8
<volty> banisterfiend: i already saw that, cannot get ri to work from pry
<banisterfiend> sry
<banisterfiend> volty you don't need ri in pry :)
<banisterfiend> use show-doc
<banisterfiend> i specifically wrote show-doc as a replacement for 'ri', and it generally does the job in 90% of cases i think
<volty> what should i use installing 1.9 in parallel ?
<volty> for installing
Aryasam has quit [Quit: Bye]
<volty> rvm? or others ?
saskuach has joined #ruby
simoz has quit [Ping timeout: 260 seconds]
<banisterfiend> volty rvm/rbenv/chruby
pwh has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
kilophoton has joined #ruby
freerobby has quit [Quit: Leaving.]
ferdev has quit [Quit: ferdev]
emergion has joined #ruby
emergion has quit [Client Quit]
Hanmac1 has joined #ruby
eka has joined #ruby
suisha has joined #ruby
<|jemc|> I prefer rbenv
<|jemc|> I work on linux; I don't know what platform you're on
<volty> can't have both ? :)
mrsolo has joined #ruby
<volty> linux, kubuntu-12.04
hanmac has quit [Ping timeout: 264 seconds]
jonahR has joined #ruby
<|jemc|> yeah, rbenv is pretty easy to get set up on linux
Taranis has quit [Remote host closed the connection]
<|jemc|> and it lives in ~/.rbenv on a per-user basis
<|jemc|> which is better for my purposes; I don't know if it's better for yours
<volty> yes, now i have both of them installed (rvm and rbenv), and 2 ruby's 1.8.7 and 1.9.1
<volty> how can I tell rbenv to scan for available ruby versions ?
<|jemc|> versions available on your system or versions available to download?
<banisterfiend> volty so silly to install both
<banisterfiend> you're just confuse yourself
<banisterfiend> you'll*
<volty> banisterfiend: just wanted to give a look at rvm (tomorrow)
<|jemc|> `rbenv versions` gives versions on your system
<volty> rbenv versions doesn't output anything
<|jemc|> so, you have to install _through_ rbenv
<|jemc|> it doesn't detect other rubys on your system that were already there
<volty> |jemc|: i saw that i have to install, but I wonder what "install" means exactly
<|jemc|> the recommended way is to use https://github.com/sstephenson/ruby-build
<|jemc|> I don't know how to 'import' a ruby that is already built on your system
snovak has joined #ruby
<volty> same story with rvm ?
<|jemc|> ruby-build, when loaded into rbenv adds the command `rbenv install #{version}`
BraddPitt has quit [Ping timeout: 245 seconds]
<|jemc|> which will install, build, etc
<|jemc|> I'm not sure
<|jemc|> unless you're asking if rbenv uses ruby-build, because the answer to that is no
<|jemc|> s/rbenv/rvm
ravster has quit [Quit: Leaving.]
snovak has quit [Ping timeout: 240 seconds]
kaspergrubbe has quit [Remote host closed the connection]
mansi has joined #ruby
jefflyne3 has quit [Ping timeout: 264 seconds]
mansi has quit [Ping timeout: 256 seconds]
jonahR has quit [Quit: jonahR]
optimusprimem has quit [Ping timeout: 245 seconds]
JesseH has quit [Ping timeout: 264 seconds]
peregrine81 has joined #ruby
peregrine81 has quit [Client Quit]
ocnam has joined #ruby
freerobby has joined #ruby
maletor has joined #ruby
Davey has quit [Ping timeout: 260 seconds]
Teddy2steper has quit [Remote host closed the connection]
pwh has quit [Quit: pwh]
devoldmx has joined #ruby
baroquebobcat has joined #ruby
devoldmx3 has quit [Ping timeout: 260 seconds]
Davey has joined #ruby
devoldmx3 has joined #ruby
devoldmx27 has joined #ruby
devoldmx has quit [Ping timeout: 264 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
ehaliewicz has quit [Remote host closed the connection]
freerobby has quit [Ping timeout: 260 seconds]
devoldmx3 has quit [Ping timeout: 240 seconds]
Deele has quit [Ping timeout: 240 seconds]
optimusprimem has joined #ruby
Galgorth has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
volty has quit [Quit: Konversation terminated!]
robert_ has joined #ruby
robert_ has joined #ruby
ssvo has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
Mattx has joined #ruby
lfox has joined #ruby
cody-- has joined #ruby
fraktor has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
ssvo has quit [Ping timeout: 246 seconds]
fgo has joined #ruby
radic__ has joined #ruby
<Mattx> I was trying to install the gem feedzirra, which is at the top of the list in ruby-toolbox for reading feeds. this is the error I'm getting: http://apaste.info/swRq
<Mattx> any idea?
radic_ has quit [Ping timeout: 264 seconds]
saskuach has quit [Quit: saskuach]
<pontiki> i have no idea. i have it installed and working with ruby 2.0.0. it uses old versions of other things, though
pothibo has joined #ruby
<|jemc|> Mattx: I take it you can't `gem install curb` either?
<Mattx> I can install the last version of curb
<Mattx> but not the one feedzirra requires, 0.7.x
<Mattx> yeah, it has some old dependencies :|
dassouki has joined #ruby
<|jemc|> latest feedzirra from github looks like it requires '~> 0.8.1' => https://github.com/pauldix/feedzirra/blob/master/feedzirra.gemspec
<pontiki> there's been a bunch of traffic from the project
DonRichie has quit [Quit: Verlassend]
<Mattx> I guess this lastest version is not in gem's repository?
<|jemc|> so maybe try cloning that one down
devoldmx has joined #ruby
<Mattx> gem 'anjlab-bootstrap-rails', :github => 'anjlab/bootstrap-rails'
<Mattx> can't I do like this?
<Mattx> but with this gem?
<Mattx> (I'm talking about rails 3)
<pontiki> should work fine that way
suisha has left #ruby [#ruby]
<Mattx> ok, let's see
<Mattx> fetching..
<Mattx> Source does not contain any versions of 'feedzierra (>= 0) ruby'
<Mattx> -.-
pothibo has quit [Quit: pothibo]
<pontiki> is it spelled that way?
<|jemc|> nope
<Mattx> lool
<Mattx> never mind
emergion has joined #ruby
<Mattx> (typo)
<|jemc|> I couldn't tell if '-.-' was in indication of sheepishness at the misspelling
<pontiki> i was wondering where the typo was
dassouki has left #ruby [#ruby]
freerobby has joined #ruby
devoldmx27 has quit [Ping timeout: 264 seconds]
<Mattx> it's a weird name for a gem, I misspelled it, and no, "-.-" was like "whatever, I'm going to look for another gem" :P
fgo has quit [Remote host closed the connection]
<pontiki> it's quite a splendid gem for what it does
<Mattx> why?
<Mattx> I used to use feed_parser which has everything you -normally- need
<pontiki> simple, easy to set up
devoldmx3 has joined #ruby
linux_noob_666 has quit [Ping timeout: 264 seconds]
<Mattx> feed_parser is super easier
<Mattx> buttt.. now it installed correctly. using github: '...'
coderhs has quit [Ping timeout: 240 seconds]
freerobby has quit [Ping timeout: 256 seconds]
<pontiki> feedzirra is a feed manager
devoldmx has quit [Ping timeout: 246 seconds]
alexju has joined #ruby
<pontiki> feed_parser is a parser
<Mattx> well, yes.. but I was going to use feedzirra as a parser
<pontiki> feedzirra is also extensible
ehaliewicz has joined #ruby
vlad_starkov has joined #ruby
<pontiki> anyway
<pontiki> use what you like
jamesaanderson has joined #ruby
snovak has joined #ruby
jamesaanderson has quit [Client Quit]
lfox has quit [Quit: ZZZzzz…]
freerobby has joined #ruby
vlad_starkov has quit [Ping timeout: 260 seconds]
cha1tanya has joined #ruby
snovak has quit [Ping timeout: 256 seconds]
saskuach has joined #ruby
mansi has joined #ruby
linux_noob_666 has joined #ruby
alexju has quit [Remote host closed the connection]
alexju has joined #ruby
dankest has quit [Quit: dankest]
mansi has quit [Ping timeout: 259 seconds]
cody-- has quit [Quit: derp]
kaspergrubbe has joined #ruby
alexju has quit [Ping timeout: 264 seconds]
saarinen has joined #ruby
freerobby has quit [Quit: Leaving.]
thesheff17 has joined #ruby
kaspergrubbe has quit [Ping timeout: 256 seconds]
Ox6abe has joined #ruby
agent_white has quit [Quit: brb]
fraktor has quit [Quit: Leaving]
breadcrumb5 has joined #ruby
beilabs has quit [Ping timeout: 264 seconds]
Breadcrumbs has quit [Ping timeout: 264 seconds]
St_Marx has joined #ruby
breadcrumb5 has quit [Ping timeout: 260 seconds]
Ripp__ has joined #ruby
Bry8Star{T2 has quit [Remote host closed the connection]
dkamioka has joined #ruby
BillCriswell has quit [Remote host closed the connection]
Bry8Star{T2 has joined #ruby
heftig has joined #ruby
Splourian has joined #ruby
yekta has quit [Quit: yekta]
IceDragon has quit [Quit: Space~~~]
DanBoy has quit [Remote host closed the connection]
DanBoy has joined #ruby
seo has joined #ruby
seo has quit [Remote host closed the connection]
seo has joined #ruby
seo is now known as Guest70345
Guest70345 has quit [Remote host closed the connection]
okinomo has joined #ruby
beilabs has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
saarinen has quit [Quit: saarinen]
ehc has joined #ruby
volty has joined #ruby
freerobby has joined #ruby
emergion has joined #ruby
pwh has joined #ruby
<volty> hi, i installed rbenv, made 1.9.1 global // then sudo gem install qtbindings; the problem is that it installs them under /var/lib/gems/1.8
cfi30 has joined #ruby
pwh has quit [Client Quit]
<|jemc|> so, with rbenv you never need to use sudo, because all files are installed under your user directory
<|jemc|> what's the output of `which gem`?
<volty> ok
disgrntld has quit [Ping timeout: 260 seconds]
<|jemc|> (should be "~/.rbenv/shims/gem")
<volty> but i can't install without sudo
<volty> yes ok
emergion has quit [Client Quit]
quazimodo has quit [Ping timeout: 246 seconds]
<|jemc|> with rbenv, you _must_ install without sudo
<volty> gem install qtbindings // ERROR: While executing gem ... (Errno::EACCES) // Permission denied - /home/volty/.gem/specs
<|jemc|> what user are you currently?
<volty> normal, volty
<|jemc|> what are the permissions on the directory /home/volty/.gem/specs
<volty> the first prob. I note is rbenv doesn't create different ~/.gem directory for different ruby versions, am I wrong
<|jemc|> it doesn't use ~/.gem
<|jemc|> what is the output of `which gem`?
<volty> |jemc|: the permissions are wrong
<volty> -> /home/volty/.rbenv/shims/gem
jamesaanderson has joined #ruby
<|jemc|> so if you fix the permissions, does it work?
<volty> i'll try ...
freerobby has quit [Ping timeout: 256 seconds]
saskuach has quit [Quit: saskuach]
<|jemc|> also, from rbenv's README: "Compatibility note: rbenv is incompatible with RVM. Please make sure to fully uninstall RVM and remove any references to it from your shell initialization files before installing rbenv."
<volty> i remove rbenv
<volty> ops
jamesaanderson has quit [Client Quit]
<volty> i removed rvm, and rbenv, and then reinstalled rbenv
<|jemc|> ah, okay
badquanta has quit [Quit: Leaving]
badquanta has joined #ruby
okinomo has quit [Ping timeout: 264 seconds]
<volty> You don't have write permissions into the /var/lib/gems/1.9.1 directory.
<volty> it is a big mess
<|jemc|> how about `which ruby`?
<volty> -> shim's one
<|jemc|> rbenv doesn't touch anything outside of ~/.rbenv
<|jemc|> all of your ruby stuff is supposed to be in those subdirectories
macmartine has joined #ruby
<|jemc|> do you still have th ubuntu package for ruby installed?
snovak has joined #ruby
<volty> maybe i have to build it instead of using ubuntu provided one ruby
<volty> how do I install ruby-build ?
<|jemc|> it's near the top of the README at https://github.com/sstephenson/ruby-build
<volty> ok, for now i go with last resort -> sudo /home/volty/.rbenv/shims/gem install qtbindings
<volty> yes, building ...., let's hope
<|jemc|> yeah, sudo won't work with rbenv unless you installed rbenv as root
<|jemc|> building through rbenv install should get you back to working order
<volty> i installed rbenv from ubuntu repository
<|jemc|> oh, I didn't know it was there
<volty> almost everything's there
jefflyne3 has joined #ruby
<volty> let's hope, and many thanks for your help
<|jemc|> I'm on fedora and debian, and I just clone it from github
snovak has quit [Ping timeout: 264 seconds]
<|jemc|> no problem. hope this goes smoothly for you now
randomdrake has joined #ruby
<volty> i'm a bit behind in this (github etc etc)
end_guy has quit [Remote host closed the connection]
mikeric_ has joined #ruby
end_guy has joined #ruby
mansi has joined #ruby
<volty> so, under 1.9, no need for require 'rubygems' ?
vxxr has quit [Quit: leaving]
<|jemc|> I use 2.0.0, so I'm not sure
<volty> no need with 2.0
<volty> ?
saskuach has joined #ruby
staafl has quit [Ping timeout: 264 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
<|jemc|> yeah
<|jemc|> but yeah, I never want to see the day when I'm not a novice at _something_
mikeric_ has quit [Client Quit]
<|jemc|> always learning is the only way I stay fulfilled
mikeric has joined #ruby
machuga is now known as machuga|away
mansi has quit [Ping timeout: 260 seconds]
mikeric has quit [Client Quit]
jonathanwallace has quit [Ping timeout: 240 seconds]
mikeric has joined #ruby
hogeo has joined #ruby
cfi30 has quit [Quit: WeeChat 0.4.1]
<pontiki> |jemc| ++
<pontiki> you haven't needed to require 'rubygems' since 1.9-ish
<pontiki> it's for 1.8.x
kevind has joined #ruby
DanKnox is now known as DanKnox_away
DanielRb has quit [Quit: Quit]
optimusprimem has quit [Ping timeout: 245 seconds]
bobdobbs has joined #ruby
quazimodo has joined #ruby
chihhsin has joined #ruby
<volty> it works but they stripped out the qt's phonon backend
freerobby has joined #ruby
niklasb_ has joined #ruby
noop has joined #ruby
<volty> i'll see tomorrow if it's worth to search and compile from original sources // the guy(s) that package it in a gem decided to put into what to them seems enough
<bobdobbs> I'm having trouble using a gem. As root, I did 'gem install mechanize'. I then created a script that requires mechanize. When I run the script, I get this: http://hastebin.com/jonugadodu.vbs
polaco is now known as polaco_zZz
<pontiki> good grief
<pontiki> if you are using a local rbenv, why did you do a gem install as root?
DanKnox_away is now known as DanKnox
<pontiki> just do it from your user
<bobdobbs> ah, ok.
niklasb has quit [Ping timeout: 264 seconds]
simoz has joined #ruby
GeissT has quit [Ping timeout: 256 seconds]
DoritosMan has joined #ruby
<|jemc|> bobdobbs: rbenv holds everything it needs and all of your ruby installation within #{your_home_directory}/.rbenv
freerobby has quit [Ping timeout: 256 seconds]
<|jemc|> so if you run as root, it's working with a different ruby installation
saskuach has quit [Quit: saskuach]
<|jemc|> (namely, at /root/.rbenv)
dankest has joined #ruby
<bobdobbs> gah. If I do "gem install mechanize" as a normal user, I get a perms error
<bobdobbs> "you don't have write permission into the /var/lib/gems/1.9.1 directory."
Bosox20051 has joined #ruby
<|jemc|> because you've got a native ruby installation conflicting with your rbenv one
<bobdobbs> fk
emergion has joined #ruby
<bobdobbs> dammit, I thought I'd sorted out all the package conflict stuff.
<|jemc|> /var/lib/gems is where your distro's version of ruby puts gems
<volty> |jemc|: i don't believe it goes in /root/.rbenv - unless you sudo with -l
JesseH has joined #ruby
<volty> but i got it
<bobdobbs> ok. doing 'apt-get remove rubygems'. Lets see if that helps.
<volty> i do not need rbenv for my two default installations
<bobdobbs> dammit. Even with no system-wide ruby or rubygems, I still get the permissions error.
<|jemc|> bobdobbs: you should `apt-get remove ruby` if you want to be using rbenv
<pontiki> probably not
<bobdobbs> I tried that. Apparently I don't have ruby
<volty> bobdobbs: do as I did
<|jemc|> bobdobbs: what is the output of `which ruby`?
<bobdobbs> well, not system-wide, anyway
<pontiki> rbenv will work happily with both system and local rubies
<bobdobbs> oh damn. '/usr/bin/ruby'
<bobdobbs> fuuuuuuu
<volty> sudo /home/volty/.rbenv/shims/gem install .... (subst for volty)
<bobdobbs> maaaan, this happens every time I try to use ruby. So frustrating.
okinomo has joined #ruby
<|jemc|> pontiki: I've never configured rbenv to work with a system-wide install. Didn't know you could
Ox6abe has quit [Remote host closed the connection]
<volty> ppl, if I knew all this ... i would have opted for a bash switcher :)
simoz has quit [Ping timeout: 260 seconds]
<|jemc|> pontiki: oh, I see you can ruby-build with RBENV_ROOT set to something arbirtrary
<|jemc|> pontiki: but I'm interested to know if there is a way to configure it to be aware of and use an existing installation
chihhsin has quit [Quit: leaving]
<jrobeson> it works out of the box with a system wide ruby here
chihhsin has joined #ruby
<volty> |jemc|: rbenv rehash found my installations but .... failed on handling gems
dmiller has quit [Remote host closed the connection]
<jrobeson> my system ruby is 2.0.. and my ruby for octopress is 1.8.7.. so i'm sure it works properly
<pontiki> why are you running 1.8.7 for your OP?
dmiller has joined #ruby
<pontiki> i'm running 2.0.0
optimusprimem has joined #ruby
<jrobeson> pontiki, because it said so i think
jamesaanderson has joined #ruby
<|jemc|> jrobeson: out of which box? is it included with your distro's package manager or did you clone it down and follow the README?
baroquebobcat has joined #ruby
<jrobeson> is rbenv ?
<|jemc|> yes
<jrobeson> no.. i installed it as per the instructions
<jrobeson> ah .. no it's actually 1.9.3 pontiki .. it's been awhile.. is misremembered
<jrobeson> they said not to use 2.0 though
quazimodo has quit [Ping timeout: 260 seconds]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
cfi30 has joined #ruby
<pontiki> i haven't had a single issue...
<pontiki> where do they say that?
<|jemc|> volty: how is it failing now?
<volty> |jemc|: ? i do not have failing now // the only prob is that the qt gem packed for 1.9 misses something that the old pack (that wasn't a gem) had
<|jemc|> ah
<jrobeson> perhaps those instructions are old now
dmiller has quit [Ping timeout: 246 seconds]
<pontiki> jrobeson: where does that say do not use 2.0?
<jrobeson> it says make sure your version is 1.9.3.. twice :)
<pontiki> sure, because it doesn't work well with < 1.9.3
<pontiki> that doc is dated mid-20*11*
<jrobeson> well you know that kinda thing
<jrobeson> seems like there could have been easily having an issue with 2.0
<jrobeson> although not as bad as 1.8 -> 1.9
<jrobeson> there are still incompatibilites
dankest has quit [Quit: dankest]
<pontiki> and the first paragraph should be taken seriously
<pontiki> it's for hackers. so hack.
cfi30 has quit [Quit: WeeChat 0.4.1]
Ripp__ has quit []
<bobdobbs> Ok, I finally get rid of system-wide ruby.
<bobdobbs> \0/
<bobdobbs> I've got this script that I've curt ant paste from the mechanize docs:http://hastebin.com/wugecaqake.vhdl
okinomo has quit [Ping timeout: 246 seconds]
ssvo has joined #ruby
<bobdobbs> When I run it, I get this error output: http://hastebin.com/jujimoxito.vbs
<bobdobbs> How do I interpret this error?
dkamioka has quit [Remote host closed the connection]
<pontiki> "curt ant paste" -- is that some kind of ant repellent?
<macmartine> your search_result failed
<bobdobbs> pontiki: the best kind of ant repellent!
<bobdobbs> hmmm
<bobdobbs> well, at least I have no ants.
<macmartine> undefined method `q=' for nil:NilClass -- so search is nil
<bobdobbs> Ah, I see.
<bobdobbs> thanks
<pontiki> google changes their page structure a lot
<pontiki> so scrapers are very brittle
* bobdobbs shakes fist at google
saskuach has joined #ruby
<pontiki> hey, it's in their ToS that you're not supposed to do that
Splourian has quit [Quit: Leaving]
<pontiki> their business, their data sets
Ripp__ has joined #ruby
dhruvasagar has joined #ruby
<bobdobbs> indeed
okinomo has joined #ruby
Guest___ has joined #ruby
Guest___ has quit [Max SendQ exceeded]
end_guy has quit [Remote host closed the connection]
narcan has joined #ruby
|jemc| has quit [Read error: Operation timed out]
end_guy has joined #ruby
macmartine has quit [Quit: Computer has gone to sleep.]
stkowski has quit [Quit: stkowski]
yacks has quit [Ping timeout: 246 seconds]
Ripp__ has quit []
snovak has joined #ruby
macmartine has joined #ruby
Splourian has joined #ruby
Davedo has quit [Ping timeout: 249 seconds]
Splourian has quit [Client Quit]
emergion has quit [Quit: Computer has gone to sleep.]
okinomo has quit [Ping timeout: 264 seconds]
snovak has quit [Ping timeout: 264 seconds]
mansi has joined #ruby
<volty> where did gone the RiDriver from 1.8 ?
fredjean has quit [Ping timeout: 264 seconds]
mrsolo has joined #ruby
DanKnox is now known as DanKnox_away
jefflyne3 has quit [Ping timeout: 264 seconds]
dhruvasagar has quit [Ping timeout: 246 seconds]
yfeldblum has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
dankest has joined #ruby
saskuach has quit [Quit: saskuach]
ehc has quit [Quit: ehc]
Davedo has joined #ruby
mansi has quit [Ping timeout: 260 seconds]
bean has joined #ruby
volty has quit [Quit: Konversation terminated!]
DoritosMan has quit [Quit: Leaving….Left]
<pontiki> what?
fredjean has joined #ruby
saskuach has joined #ruby
Quashie has quit [Ping timeout: 264 seconds]
saskuach has left #ruby [#ruby]
dhruvasagar has joined #ruby
Apocalypse has quit [Ping timeout: 260 seconds]
Guest44995 has quit [Ping timeout: 260 seconds]
jimeh has quit [Ping timeout: 260 seconds]
jimeh has joined #ruby
Drakevr has quit [Ping timeout: 260 seconds]
ryanf has quit [Ping timeout: 260 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
freerobby has joined #ruby
bio has joined #ruby
sayan has joined #ruby
bio is now known as Guest57797
osvico has quit [Ping timeout: 260 seconds]
Apocalypse has joined #ruby
Drakevr has joined #ruby
Drakevr has quit [Changing host]
Drakevr has joined #ruby
ryanf has joined #ruby
DanKnox_away is now known as DanKnox
mrsolo has quit [Quit: This computer has gone to sleep]
freerobby has quit [Ping timeout: 256 seconds]
Suit_Of_Sables has quit [Quit: WeeChat 0.4.0]
Ox6abe has joined #ruby
malcolmva has quit [Quit: Leaving]
mikeric has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
beilabs has quit [Ping timeout: 240 seconds]
ssvo has quit [Ping timeout: 264 seconds]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dmiller has joined #ruby
EIAC has quit [Ping timeout: 246 seconds]
dkamioka has joined #ruby
Ox6abe has quit [Ping timeout: 264 seconds]
ssvo has joined #ruby
EIA has quit [Ping timeout: 250 seconds]
diegoviola has joined #ruby
coaster has quit [Ping timeout: 276 seconds]
sayan has quit [Ping timeout: 256 seconds]
Aryasam has joined #ruby
dmiller has quit [Ping timeout: 260 seconds]
yacks has joined #ruby
stkowski has joined #ruby
stkowski has quit [Client Quit]
browndawg has joined #ruby
JohnBat26 has joined #ruby
sayan has joined #ruby
tomzx_mac has quit [Ping timeout: 264 seconds]
beilabs has joined #ruby
randomdrake has quit [Quit: randomdrake]
coaster has joined #ruby
zenergi has joined #ruby
adeponte has quit [Remote host closed the connection]
zenergi has quit [Client Quit]
zenergi has joined #ruby
cha1tanya has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 240 seconds]
ocnam has quit [Quit: Quit: Textual IRC Client: http://www.textualapp.com/]
kevind has quit [Quit: kevind]
dankest has quit [Quit: Peace]
dhruvasagar has joined #ruby
snovak has joined #ruby
macmartine has quit [Quit: Computer has gone to sleep.]
mansi has joined #ruby
Aryasam has quit [Ping timeout: 260 seconds]
Breadcrumbs has joined #ruby
JohnBat26 has quit [Ping timeout: 260 seconds]
snovak has quit [Ping timeout: 256 seconds]
Aryasam has joined #ruby
Aryasam has quit [Client Quit]
crunch-choco has joined #ruby
Aryasam has joined #ruby
mansi has quit [Ping timeout: 256 seconds]
maletor has joined #ruby
okinomo has joined #ruby
badquanta has quit [Quit: Leaving]
goshakkk has joined #ruby
badquanta has joined #ruby
wallerdev has quit [Quit: wallerdev]
freerobby has joined #ruby
badquanta is now known as BadQuanta
goshakkk has quit [Client Quit]
Aryasam has quit [Ping timeout: 260 seconds]
DanKnox is now known as DanKnox_away
BraddPitt has joined #ruby
devoldmx has joined #ruby
freerobby has quit [Ping timeout: 264 seconds]
atno has joined #ruby
Cyrus has quit [Quit: Cyrus.sleep()]
yaymukund has joined #ruby
devoldmx3 has quit [Ping timeout: 256 seconds]
huoxito has quit [Quit: Leaving]
thesheff17 has quit [Ping timeout: 240 seconds]
DanKnox_away is now known as DanKnox
ananthakumaran has joined #ruby
ssvo has quit [Ping timeout: 264 seconds]
aryaching has joined #ruby
Splourian has joined #ruby
dmiller has joined #ruby
hanmac has joined #ruby
mikeric has joined #ruby
dash_ has joined #ruby
zenergi has quit [Quit: zenergi]
bean has quit [Quit: Computer has gone to sleep.]
Hanmac1 has quit [Ping timeout: 246 seconds]
mikeric has quit [Client Quit]
d45h has joined #ruby
schaerli has joined #ruby
coderhs has joined #ruby
intuxicated has joined #ruby
dmiller has quit [Ping timeout: 260 seconds]
dash_ has quit [Ping timeout: 264 seconds]
schaerli has quit [Ping timeout: 256 seconds]
endash has quit [Quit: endash]
rippa has joined #ruby
BadQuanta has quit [Ping timeout: 240 seconds]
zorg24 has quit [Ping timeout: 260 seconds]
zenergi has joined #ruby
zenergi has quit [Client Quit]
mrsolo has joined #ruby
chihhsin has quit [Quit: leaving]
adeponte has joined #ruby
agent_white has joined #ruby
agent_white has quit [Quit: leaving]
niklasb_ has quit [Ping timeout: 260 seconds]
agent_white has joined #ruby
taternuts has quit [Ping timeout: 264 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
chihhsin has joined #ruby
adeponte has quit [Ping timeout: 260 seconds]
funburn has joined #ruby
DanielRb has joined #ruby
EIAC has joined #ruby
haxrbyte has joined #ruby
kobain has quit []
zorg24 has joined #ruby
hogeo has quit [Read error: Connection reset by peer]
hogeo has joined #ruby
Macaveli has joined #ruby
kilophoton has quit [Ping timeout: 264 seconds]
KevinSjoberg has joined #ruby
Ox6abe has joined #ruby
bubbajones has quit [Ping timeout: 260 seconds]
snovak has joined #ruby
haxrbyte_ has joined #ruby
emergion has joined #ruby
mansi has joined #ruby
jefflyne3 has joined #ruby
haxrbyte has quit [Ping timeout: 256 seconds]
haxrbyte has joined #ruby
dkamioka has quit [Remote host closed the connection]
snovak has quit [Read error: Operation timed out]
devoldmx has quit [Ping timeout: 264 seconds]
devoldmx has joined #ruby
bubbajones has joined #ruby
mansi has quit [Ping timeout: 264 seconds]
okinomo has quit [Ping timeout: 260 seconds]
g0bl1n has quit [Read error: Operation timed out]
haxrbyte_ has quit [Ping timeout: 246 seconds]
JumpMast3r has quit [Quit: JumpMast3r]
decoponio has joined #ruby
JumpMast3r has joined #ruby
bubbajones has quit [Ping timeout: 256 seconds]
JumpMast3r has quit [Client Quit]
yaymukund has quit [Ping timeout: 264 seconds]
freerobby has joined #ruby
cha1tanya has joined #ruby
mikeric has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
mrsolo has joined #ruby
ferdev has joined #ruby
ferdev has quit [Client Quit]
okinomo has joined #ruby
DanKnox is now known as DanKnox_away
hakunin has quit [Remote host closed the connection]
bubbajones has joined #ruby
freerobby has quit [Ping timeout: 260 seconds]
zmike123 has joined #ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
zorg24 has quit [Ping timeout: 260 seconds]
DanKnox_away is now known as DanKnox
St_Marx has quit [Quit: Leaving]
dmiller has joined #ruby
zorg24 has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
JohnBat26 has joined #ruby
fgo has joined #ruby
okinomo has quit [Ping timeout: 240 seconds]
tjad has joined #ruby
devoldmx3 has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
Splourian has quit [Quit: Leaving]
wildroman has joined #ruby
Quashie has joined #ruby
dmiller has quit [Ping timeout: 260 seconds]
DanKnox is now known as DanKnox_away
ntus1017 has joined #ruby
chairabanta has joined #ruby
wchun has joined #ruby
RDash[AW] is now known as RDash
yxhuvud has joined #ruby
bricker`LA has joined #ruby
mansi has joined #ruby
relix has joined #ruby
ehaliewicz has quit [Ping timeout: 256 seconds]
dhruvasagar has joined #ruby
ferdev has joined #ruby
Ox6abe has quit [Ping timeout: 256 seconds]
ananthakumaran has quit [Quit: Leaving.]
kilophoton has joined #ruby
love_color_text has joined #ruby
anderson has joined #ruby
ferdev has quit [Read error: Connection reset by peer]
snovak has joined #ruby
funburn has quit [Quit: funburn]
rezzack has quit [Ping timeout: 256 seconds]
Guest63395 has quit [Ping timeout: 240 seconds]
tacos1de has quit [Ping timeout: 240 seconds]
kilophoton has quit [Ping timeout: 240 seconds]
jefflyne3 has quit [Ping timeout: 264 seconds]
jlebrech has joined #ruby
tacos1de has joined #ruby
snovak has quit [Ping timeout: 260 seconds]
FIQ has left #ruby [#ruby]
crunch-choco has quit [Quit: leaving]
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
Guest63395 has joined #ruby
diego has joined #ruby
diegoviola has quit [Ping timeout: 264 seconds]
dkamioka has joined #ruby
freerobby has joined #ruby
brianpWins has joined #ruby
ntus1017 has quit [Remote host closed the connection]
bricker`LA has quit [Ping timeout: 264 seconds]
quazimodo has joined #ruby
rdhdroid has quit [Ping timeout: 246 seconds]
freerobby has quit [Ping timeout: 260 seconds]
dkamioka has quit [Ping timeout: 256 seconds]
yaymukund has joined #ruby
m8 has joined #ruby
bricker`LA has joined #ruby
bricker`LA has quit [Client Quit]
quazimodo has quit [Ping timeout: 264 seconds]
mrsolo has quit [Quit: Leaving]
claymore has joined #ruby
yaymukund has quit [Ping timeout: 260 seconds]
Breadcrumbs has quit [Ping timeout: 246 seconds]
breadcrumb5 has joined #ruby
wchun has quit [Quit: Leaving]
Inoperable has quit [Ping timeout: 256 seconds]
tacos1de has quit [Ping timeout: 240 seconds]
funburn has joined #ruby
coderhs has quit [Quit: Leaving]
staafl has joined #ruby
Xeago has joined #ruby
tacos1de has joined #ruby
atmosx has joined #ruby
<atmosx> When I'm talking with women about the household, I wanna to shoot myself in the head.
blackmesa has joined #ruby
dmiller has joined #ruby
Inoperable has joined #ruby
zxq9 has joined #ruby
mansi has quit [Remote host closed the connection]
KevinSjoberg has joined #ruby
mansi has joined #ruby
dmiller has quit [Ping timeout: 256 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
znode has joined #ruby
diego is now known as diegoviola
mansi has quit [Ping timeout: 240 seconds]
aryaching has quit [Ping timeout: 264 seconds]
DrCode has quit [Remote host closed the connection]
kevinykchan has joined #ruby
optimusprimem has quit [Ping timeout: 245 seconds]
DrCode has joined #ruby
<r0bglees0n> atmosx: i wanna shoot myself in the head in general
<atmosx> r0bglees0n: for no reason ?
joesavage has joined #ruby
dodosan has quit [Remote host closed the connection]
<joesavage> I'm dealing with arrays of bytes via strings in Ruby (because everything I'm working with seems to support them that way and it's really convenient), however on adding a certain combination of bytes to a string (in this case just after adding the byte "\xC3"), Ruby gives me an Encoding::CompatibilityError: incompatible character encodings: ASCII-8BIT and UTF-8. Any advice?
Matip has joined #ruby
rrichardsr3 has quit [Quit: -- I'm out --]
Macaveli has quit [Quit: Computer has gone to sleep.]
Mattx has quit [Ping timeout: 264 seconds]
Ox6abe has joined #ruby
<joesavage> I'm not even totally sure what's causing it, which isn't helpful for troubleshooting
quazimodo has joined #ruby
optimusprimem has joined #ruby
ofeone has joined #ruby
quazimodo has quit [Ping timeout: 264 seconds]
snovak has joined #ruby
breadcrumb5 has quit [Read error: Operation timed out]
fgo has quit [Remote host closed the connection]
snovak has quit [Ping timeout: 260 seconds]
robbyoconnor has quit [Ping timeout: 246 seconds]
robbyoconnor has joined #ruby
dodosan has joined #ruby
EIAC has quit [Ping timeout: 260 seconds]
colonolGron has joined #ruby
blackmesa has joined #ruby
Emmanuel_Chanel has quit [Read error: Operation timed out]
timonv has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
mikeric has quit [Quit: Textual IRC Client: www.textualapp.com]
freerobby has joined #ruby
<apeiros> joesavage
<apeiros> >> "foo".b+"\xC3"
<eval-in> apeiros => incompatible character encodings: ASCII-8BIT and UTF-8 (Encoding::CompatibilityError) ... (https://eval.in/48601)
okinomo has joined #ruby
<apeiros> binary + invalid utf-8 => that exception
<apeiros> >> "foo".b+"\xC3".b
<eval-in> apeiros => "foo\xC3" (https://eval.in/48602)
spider-mario has joined #ruby
<joesavage> apeiros: Ooh, interesting, so what exactly is ".b" doing here?
<apeiros> .b is a shortcut for .force_encoding('binary')
quazimodo has joined #ruby
<joesavage> Ah I see, so during pretty much all string concatenation should I be adding ".b" to ensure it's all binary encoded?
ainame has quit [Ping timeout: 268 seconds]
ainame has joined #ruby
<apeiros> you should ensure that either all strings you concatenate have the same encoding, or that they can be re-encoded in the LHS string's encoding
jlebrech has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
freerobby has quit [Ping timeout: 240 seconds]
<apeiros> with `a+b`, where `a.encoding` is binary, and `b.encoding` is 'utf-8', ruby will first to b.encode('binary') so they're in the same encoding
<apeiros> but since "\xC3" is not valid utf-8, that is not possible and fails.
<apeiros> so maybe I should rephrase it: you first should ensure all strings have the correct encoding set.
<joesavage> Right, so why would "\xC3" be in UTF-8 encoding automatically?
<apeiros> because you either use ruby 2.0, where string literals default to utf-8
<apeiros> or because you explicitly set it via the encoding comment
<apeiros> or because you don't have that "\xC3" literally in your code, and then it'd be because you process your source as utf-8.
diegoviola has quit [Quit: WeeChat 0.4.1]
<joesavage> Oh. Well I'm dealing with a bunch of strings this way (and for some strange reason haven't stumbled upon this error in any other places that I'm doing this with strings, I guess it happened to all be valid utf-8 up to this point), so I guess I should be setting my document encoding to binary or just shoving ".b"s all over the place?
<apeiros> up to you
Emmanuel_Chanel has joined #ruby
blackmesa has quit [Remote host closed the connection]
love_color_text has quit [Remote host closed the connection]
haxrbyte has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
wereHamster has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
dmiller has joined #ruby
Nenor has joined #ruby
lkba has quit [Ping timeout: 260 seconds]
BadQuanta has joined #ruby
goshakkk has joined #ruby
ananthakumaran has joined #ruby
mansi has joined #ruby
<shevy> ahh wonderful encoding
dv__ is now known as dv_
dmiller has quit [Ping timeout: 264 seconds]
mansi has quit [Ping timeout: 260 seconds]
gg0_ has left #ruby [#ruby]
skaflem has joined #ruby
coderhs has joined #ruby
mansi has joined #ruby
EIAC has joined #ruby
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
aryaching has joined #ruby
adeponte has joined #ruby
love_color_text has joined #ruby
chairabanta has quit [Read error: Connection reset by peer]
chairabanta has joined #ruby
mansi has quit [Ping timeout: 246 seconds]
kaspergrubbe has quit [Remote host closed the connection]
claymore has quit [Ping timeout: 256 seconds]
guillaum has joined #ruby
guillaum has quit [Client Quit]
atmosx has quit [Quit: Lost in trance]
workmad3 has joined #ruby
love_color_text has quit [Remote host closed the connection]
pushpak has joined #ruby
Bry8Star{T2 has quit [Remote host closed the connection]
chairabanta has quit [Ping timeout: 256 seconds]
Fire-Dragon-DoL has joined #ruby
timonv has quit [Ping timeout: 256 seconds]
visof has joined #ruby
Bry8Star{T2 has joined #ruby
Fire-Dragon-DoL has quit [Client Quit]
Fire-Dragon-DoL has joined #ruby
adeponte has quit [Ping timeout: 260 seconds]
johchri has joined #ruby
Tuxist has joined #ruby
Macaveli has joined #ruby
jbpros has joined #ruby
okinomo has quit [Ping timeout: 264 seconds]
claymore has joined #ruby
Ox6abe has quit [Ping timeout: 260 seconds]
sayan has quit [Ping timeout: 260 seconds]
KevinSjo_ has joined #ruby
KevinSjoberg has quit [Ping timeout: 240 seconds]
jefflyne3 has joined #ruby
agent_white has quit [Quit: leaving]
snovak has joined #ruby
jbpros has quit [Quit: jbpros]
KevinSjo_ is now known as KevinSjoberg
azcodex has joined #ruby
jbpros has joined #ruby
jbpros has quit [Client Quit]
MrZYX|off is now known as MrZYX
visof has quit [Changing host]
visof has joined #ruby
snovak has quit [Ping timeout: 260 seconds]
ics has quit [Ping timeout: 256 seconds]
razi has joined #ruby
wildroman has quit [Remote host closed the connection]
schaerli has joined #ruby
vlad_starkov has joined #ruby
<shevy> dumdedum
freerobby has joined #ruby
jbpros has joined #ruby
ezotrank has joined #ruby
freerobby has quit [Ping timeout: 260 seconds]
wildroman has joined #ruby
hogeo has quit [Remote host closed the connection]
kreantos has joined #ruby
Mephisto4 has joined #ruby
VTLob has joined #ruby
jrobeson has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 264 seconds]
jbpros has quit [Quit: jbpros]
qohelet_ has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
okinomo has joined #ruby
Macaveli has quit [Read error: Connection reset by peer]
jbpros has joined #ruby
Macaveli has joined #ruby
KevinSjoberg has quit [Quit: Textual IRC Client: www.textualapp.com]
dmiller has joined #ruby
GeissT has joined #ruby
azziz has joined #ruby
<azziz> !list
azziz has left #ruby [#ruby]
tonni has joined #ruby
cha1tanya has quit [Ping timeout: 260 seconds]
dmiller has quit [Ping timeout: 260 seconds]
funburn has quit [Ping timeout: 264 seconds]
<shevy> !nuke
noop has quit [Read error: Operation timed out]
KevinSjoberg has joined #ruby
ezotrank has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nfk has joined #ruby
mansi has joined #ruby
johchri has quit [Quit: Textual IRC Client: www.textualapp.com]
tjad has quit [Ping timeout: 256 seconds]
<hanmac> apeiros: in newer ruby you can do "\xC3"b but its not finish yet (for some reason)
lkba has joined #ruby
<apeiros> Hanmac: so you mean "in newer ruby, you can't do" :-p
<apeiros> I'll communicate that when it's available in a released ruby
<hanmac> for some unknown reason the feature is there in ruby, but the parser doesnt support it yet :P
<apeiros> I think it's a good addition. same for ""f. Will help guys like headius a lot.
mansi has quit [Ping timeout: 256 seconds]
jrobeson has joined #ruby
AndChat| has joined #ruby
Banistergalaxy has quit [Ping timeout: 264 seconds]
spider-mario has joined #ruby
jbpros has quit [Quit: jbpros]
mercwithamouth has joined #ruby
qohelet_ has quit [Quit: qohelet_]
mansi has joined #ruby
<hanmac> apeiros: there are currently in discussion if []f and {}f should be made too ;D
goshakkk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tacos1de has quit [Ping timeout: 240 seconds]
Ox6abe has joined #ruby
goshakkk has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<apeiros> interesting
kaspergrubbe has joined #ruby
dodosan has quit [Remote host closed the connection]
<apeiros> I'd welcome %wb :)
<apeiros> and %wbf - then we have the weltraumbaufahrzeug in ruby :D
mansi has quit [Ping timeout: 264 seconds]
dodosan has joined #ruby
<MrZYX> not weltraumbahnhof? :P
tacos1de has joined #ruby
Fire-Dragon-DoL has left #ruby [#ruby]
azcodex has quit [Quit: azcodex]
azcodex has joined #ruby
colonolGron has quit [Ping timeout: 260 seconds]
kaspergrubbe has quit [Ping timeout: 260 seconds]
<apeiros> MrZYX: those don't exist in starcraft
<MrZYX> I don't exist in starcraft too
tacos1de has quit [Remote host closed the connection]
wildroman has quit [Remote host closed the connection]
tacos1de has joined #ruby
persand has joined #ruby
persand has quit [Client Quit]
yaymukund has joined #ruby
dangerousdave has joined #ruby
jefflyne3 has quit [Ping timeout: 264 seconds]
TheRealPygo is now known as pygospa
Quashie_ has joined #ruby
Gil has joined #ruby
timonv has joined #ruby
Gil is now known as Guest8691
Splourian has joined #ruby
aryaching_ has joined #ruby
aryaching has quit [Ping timeout: 260 seconds]
haxrbyte has joined #ruby
Quashie has quit [Ping timeout: 264 seconds]
spider-mario has quit [Remote host closed the connection]
kaldrenon has joined #ruby
browndawg1 has joined #ruby
haxrbyte has quit [Remote host closed the connection]
browndawg has quit [Ping timeout: 264 seconds]
haxrbyte has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
freerobby has joined #ruby
aryaching_ has quit [Ping timeout: 240 seconds]
kaldrenon has quit [Ping timeout: 240 seconds]
skaflem has quit [Quit: Leaving]
yaymukund has quit [Ping timeout: 240 seconds]
gr33n7007h has joined #ruby
freerobby has quit [Ping timeout: 240 seconds]
timonv has quit [Ping timeout: 264 seconds]
Splourian has quit [Quit: Leaving]
haxrbyte has quit [Remote host closed the connection]
haxrbyte_ has joined #ruby
NealJ has joined #ruby
kirun has joined #ruby
dv_ has quit [Ping timeout: 260 seconds]
dv_ has joined #ruby
cody-- has joined #ruby
skaflem has joined #ruby
wildroman has joined #ruby
Macaveli has quit [Quit: Computer has gone to sleep.]
dmiller has joined #ruby
colonolGron has joined #ruby
nowthatsamatt has quit [Quit: nowthatsamatt]
snovak has joined #ruby
Xeago has quit [Remote host closed the connection]
dmiller has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
schaerli has quit [Remote host closed the connection]
browndawg1 has quit [Quit: Leaving.]
nfk has quit [Quit: yawn]
snovak has quit [Ping timeout: 264 seconds]
cody-- has quit [Quit: derp]
Deele has joined #ruby
dodosan has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
dodosan has joined #ruby
dhruvasagar has joined #ruby
bluenemo has joined #ruby
blaxter_ has joined #ruby
optimusprimem has quit [Ping timeout: 245 seconds]
wildroman has quit [Remote host closed the connection]
dodosan has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
zmike123 has quit [Ping timeout: 264 seconds]
mityaz has joined #ruby
justforfun has joined #ruby
<shevy> your mom dont exist in starcraft
<justforfun> Hello Folks
ananthakumaran has quit [Quit: Leaving.]
<justforfun> Anybody here that can advice me abour Ruby jobs?
mansi has joined #ruby
amnay has joined #ruby
* justforfun can I talk to a buddy that can advice me about job hunting?
amnay is now known as Faris
wildroman has joined #ruby
dhruvasagar has quit [Read error: Operation timed out]
goshakkk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mansi has quit [Ping timeout: 260 seconds]
blackmesa has joined #ruby
Ox6abe has quit [Ping timeout: 246 seconds]
bluenemo has quit [Ping timeout: 260 seconds]
Liothen has quit [Quit: System of a down……]
zmike123 has joined #ruby
<justforfun> :/
Davedo has quit [Ping timeout: 264 seconds]
Kelet has quit [Read error: Connection reset by peer]
guest1231515 has joined #ruby
Senjai has quit [Ping timeout: 256 seconds]
guest1231515 has quit [Client Quit]
sayan has joined #ruby
goshakkk has joined #ruby
noop has joined #ruby
joesavage_ has joined #ruby
Faris has quit [Quit: Lost terminal]
joesavage has quit [Ping timeout: 264 seconds]
joesavage_ is now known as joesavage
multiHYP has joined #ruby
<multiHYP> hi
<multiHYP> how can I find out all the methods under rss items in ruby?
bluenemo has joined #ruby
schaerli has joined #ruby
<multiHYP> I am aware of the tab fill in irb but I seek something like a java docs. ruby docs hasn't provided me with that info.
lkba has quit [Ping timeout: 256 seconds]
freerobby has joined #ruby
yaymukund has joined #ruby
blaxter_ has quit [Quit: foo]
schaerli has quit [Ping timeout: 256 seconds]
Davedo has joined #ruby
freerobby has quit [Ping timeout: 256 seconds]
Lewix has quit [Remote host closed the connection]
optimusprimem has joined #ruby
optimusprimem has joined #ruby
multiHYP has left #ruby [#ruby]
nkts has joined #ruby
rcosta has joined #ruby
rcosta has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
rcosta has joined #ruby
Lewix has joined #ruby
hogeo has joined #ruby
Mon_Ouie has joined #ruby
dmiller has joined #ruby
Lewix has quit [Ping timeout: 260 seconds]
rcosta has quit [Remote host closed the connection]
jp- has quit [Quit: OK, I believe you… but my tommy gun don't]
Guest8691 has quit [Remote host closed the connection]
jbpros has joined #ruby
Nenor has quit [Quit: Nenor]
snovak has joined #ruby
Nenor has joined #ruby
xjiujiu has joined #ruby
dmiller has quit [Ping timeout: 246 seconds]
Xeago has joined #ruby
KevinSjoberg has quit [Quit: Textual IRC Client: www.textualapp.com]
schaerli has joined #ruby
zorg24 has quit [Ping timeout: 240 seconds]
<Xeago> justforfun: channel is a bit inactive currently, might as well just do it in the channel
snovak has quit [Read error: Operation timed out]
krz has joined #ruby
krz has quit [Changing host]
krz has joined #ruby
<justforfun> Xeago: I guess Ruby developer don't like it too
<Xeago> don't like what?
<Xeago> giving job hunting advice?
<justforfun> I sent some email to Ruby developer but not take any reply
<Xeago> I've had a lot of advice about that in this channel some months ago
shevy has quit [Read error: Operation timed out]
<Xeago> when I was looking for work
<justforfun> Can I send PM to you/
<Xeago> don't see a reason to keep it out of the channel
kreantos has quit [Remote host closed the connection]
Clooth has joined #ruby
<justforfun> Are you a Ruby developer?
<justforfun> Xeago: I sent an email to Matz but not take any reply
<apeiros> oh my
<apeiros> justforfun: try sending an email to obama and wonder why he doesn't reply…
<justforfun> I'm sure Obama will reply
kreantos has joined #ruby
<apeiros> sure. if YOU write him, he certainly will. Because you're very special.
oozeman has joined #ruby
oozeman has quit [Client Quit]
kreantos has quit [Remote host closed the connection]
wildroman has quit [Remote host closed the connection]
<justforfun> I don't like joking
<justforfun> I'm not special
<justforfun> Xeago: Do you know Matz?
<MrZYX> justforfun: what's your impression of how many people work on and with ruby?
<justforfun> I can't select a lng between Python and Ruby
<apeiros> then throw a coin
<r0bglees0n> guido might reply with a dutch waffle
<Xeago> justforfun: I don't know ruby
<Xeago> nor would I expect a reply from him
blackmesa has quit [Ping timeout: 240 seconds]
<justforfun> If you don't know Ruby why you are here?
<Xeago> Matz != ruby
<Xeago> nor would I expect a reply for you if you were to e-mail me here
cody-- has joined #ruby
<Xeago> I think you're expectations are off
<apeiros> Xeago: you accidentally wrote "I don't know ruby". I guess you meant "I don't know matz"
<justforfun> I can't understand
<apeiros> and seems justforfun is easily confused by that
<Xeago> apeiros: welp, I'd say both would be correct - I consider myself a newbie still :)
<apeiros> he might be a troll too.
<justforfun> I think they are not friendly
zorg24 has joined #ruby
dodosan has joined #ruby
<Xeago> apeiros: you use bash right?
<apeiros> Xeago: yes
mansi has joined #ruby
<Xeago> or whatever default shell comes around
<apeiros> mostly :)
<justforfun> Can I find Matz here?
<apeiros> justforfun: no
<Xeago> mostly? what edge cases do you have
<Xeago> justforfun: this is not the official ruby channel
<justforfun> what is the official channel?
<apeiros> mostly: I'd probably force a specific shell if the default shell changed to something I feel really uncomfortable with
<apeiros> I don't have a case yet where I change the shell from the default
<Xeago> what would you force it too?
<apeiros> probably bash. since that's the only shell I used for a longer time.
browndawg has joined #ruby
<Xeago> what does the shell do for you?
dhruvasagar has joined #ruby
<justforfun> :/
<apeiros> glue
shevy has joined #ruby
<apeiros> I do almost no shell-scripting
<Xeago> hook with rvm, show your root-thingy/privilege/remote stuff
<apeiros> justforfun: why do you think talking to matz was important for your case?
Ox6abe has joined #ruby
<justforfun> He can advice me and tell me trust
<Xeago> advice one what, and trust in what for which reasons?
<apeiros> justforfun: yeah, your expectations are *way* off.
<Xeago> how would you establish a secure communications channel with him
<apeiros> justforfun: what do you think would happen if every rubyist looking for a job asked matz first?
<justforfun> is ruby for good for security research or beginners
ukwiz has joined #ruby
<justforfun> no my mean is not jobs
<Xeago> depends what you want to do with it >.<
<Xeago> if you want to inject ruby into executables and look for exploits there, no
timonv has joined #ruby
chihhsin has quit [Quit: leaving]
dodosan has quit [Ping timeout: 260 seconds]
mansi has quit [Ping timeout: 256 seconds]
<justforfun> It is a little Funny
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
<Xeago> ruby is a general purpose language, as such it can be used for general purposes
osvico has joined #ruby
sambao21 has joined #ruby
xjiujiu has joined #ruby
goshakkk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<justforfun> I guess the best time for ask is monday
browndawg has quit [Client Quit]
banisterfiend has quit [Quit: Computer has gone to sleep.]
<Xeago> not sure what you base that on, apeiros is a very valued and active person here
<justforfun> He is joking
aryaching has joined #ruby
<Xeago> then I must be joking too, hint he is not joking
<justforfun> apeiros: Ping
<apeiros> …
<justforfun> Can you advice me about Ruby jobs?
rcosta has joined #ruby
Ox6abe has quit [Ping timeout: 256 seconds]
<apeiros> what advice do you need?
<justforfun> Ruby jobs is more or ROR
<Xeago> I think there tend to be more RoR jobs nowadays, but that is just because the web-stuff is more dominant, regardless of language
sambao21 has quit [Ping timeout: 246 seconds]
KevinSjoberg has joined #ruby
<canton7> my impression is that there are plenty of software houses who use ruby internally, e.g. for part of the build/test system. So knowing ruby is useful, but you won't get employed purely based on your ruby skills
<canton7> won't get employed *at those sort of companies* purely based...
<canton7> *sorts
<apeiros> justforfun: was that a question? yes, there are jobs for ruby without rails.
<justforfun> apeiros: Do you have any idea?
<Xeago> Revibe.fm
<Xeago> they need a backend ruby developer
<apeiros> justforfun: yes, use a job-board. use your local news papers. go to ruby user group meet-ups in your area.
ravster has joined #ruby
<justforfun> apeiros: What is your degree and job?
ofeone has quit [Remote host closed the connection]
<ukwiz> how can I escape a single quoted string in ruby - similar to python r'xxx' format
JStoker has quit [Ping timeout: 246 seconds]
<canton7> ukwiz, use something like %q{xxx} ?
kaspergrubbe has joined #ruby
jefflyne3 has joined #ruby
<apeiros> ukwiz: a single quoted string only escapes \ and '
jinie has quit [Ping timeout: 246 seconds]
<apeiros> or what are you looking for? (not familiar with python r'xxx' format)
<Xeago> r'xxx' is just raw input
<apeiros> ukwiz: if you want other escapes than \ and ', don't use single quotes.
<justforfun> apeiros: Whrn this room is active?
JStoker has joined #ruby
<Xeago> justforfun: pretty much 24/7
<apeiros> justforfun: it is active right now. if you think otherwise, define "active".
goshakkk has joined #ruby
athos-ribeiro has joined #ruby
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
Teddy2steper has joined #ruby
xjiujiu has joined #ruby
jinie has joined #ruby
<justforfun> I will back another time
timonv has quit [Ping timeout: 264 seconds]
<justforfun> Thank you for your advice
bobdobbs has quit [Ping timeout: 240 seconds]
<ukwiz> I am trying to create a hash as in http://pastebin.com/fSuQzF90
<canton7> looks fine to me... what's the problem?
<Xeago> bit odd that you mix symbols and string keys
<canton7> they're all string?
<canton7> sorry, *symbol
<Xeago> ah they are sorry >.<
<Xeago> it mixed the old with new style, sorry
<canton7> yeah, *that's* a little odd :P
xjiujiu_ has joined #ruby
<apeiros> Accept-Language: # <-- pretty sure that's invalid
kaspergrubbe has quit [Remote host closed the connection]
<apeiros> >> {Accept-Language: "foo"}
<eval-in> apeiros => /tmp/execpad-3422517acb1c/source-3422517acb1c:2: syntax error, unexpected tLABEL ... (https://eval.in/48606)
<canton7> aha, nice spot
<apeiros> ukwiz: also please don't use ad-ridden pastebin. there are better ad-free services like gist.github.com
colonolGron has quit [Ping timeout: 264 seconds]
quoin has quit [Remote host closed the connection]
sayan has quit [Read error: Connection reset by peer]
<canton7> >> {"Accept-Language": "foo"}
<eval-in> canton7 => /tmp/execpad-dc7d3669e2c8/source-dc7d3669e2c8:2: syntax error, unexpected ':', expecting => ... (https://eval.in/48607)
<canton7> >> {:"Accept-Language" => "foo"}
<eval-in> canton7 => {:"Accept-Language"=>"foo"} (https://eval.in/48608)
<canton7> anyway
quoin has joined #ruby
sayan has joined #ruby
shredding has joined #ruby
Ox6abe has joined #ruby
ewnd9 has joined #ruby
mengu has joined #ruby
freerobby has joined #ruby
xjiujiu has quit [Ping timeout: 264 seconds]
Notte has joined #ruby
mansi has joined #ruby
rcosta has quit [Remote host closed the connection]
chihhsin has joined #ruby
blackmesa has joined #ruby
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
quoin has quit [Ping timeout: 256 seconds]
freerobby has quit [Ping timeout: 264 seconds]
ananthakumaran has joined #ruby
justforfun has quit [Remote host closed the connection]
ewnd9 has quit [Remote host closed the connection]
Notte has quit [Remote host closed the connection]
Notte has joined #ruby
Notte has quit [Remote host closed the connection]
xjiujiu_ has quit [Quit: No Ping reply in 180 seconds.]
xjiujiu has joined #ruby
taternuts has joined #ruby
<ukwiz> my mistake to mix old and new styles. Sorry. Now trying all new
<MrZYX> you can mix old an new style, you can't have dashes in new style
threeturn has joined #ruby
<ukwiz> the new style seems much more cumbersome
banisterfiend has joined #ruby
ewnd9 has joined #ruby
Ox6abe has quit [Remote host closed the connection]
wildroman has joined #ruby
Xaitec has joined #ruby
<ukwiz> as pastebin seems to be frowned upon, do I need a logon to use gist?
<MrZYX> I guess for the editing capabilities you'd have to, but not for creating them
xcfox has joined #ruby
snovak has joined #ruby
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
Xaitec has quit [Remote host closed the connection]
<banisterfiend> ukwizyou should get a github account
<banisterfiend> ukwiz*
KobraKao has joined #ruby
Ox6abe has joined #ruby
ewnd9 has quit [Remote host closed the connection]
Cyrus has joined #ruby
Notte has joined #ruby
chihhsin has quit [Quit: leaving]
coderhs has quit [Ping timeout: 240 seconds]
chihhsin has joined #ruby
snovak has quit [Ping timeout: 240 seconds]
chihhsin has quit [Client Quit]
mansi has quit [Ping timeout: 260 seconds]
KobraKao has quit [Client Quit]
<ukwiz> I have a github account, but when I tried to create a paste without loging in, nothing happened
<Morrolan> Did you add text into the input field?
Splourian has joined #ruby
cody-- has quit [Quit: derp]
kuribas has joined #ruby
<kuribas> What's a good ruby on rails book for someone who knows ruby well?
chihhsin has joined #ruby
nfk has joined #ruby
Guest63395 has quit [Ping timeout: 240 seconds]
g0bl1n has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
wildroman has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
workmad3 has joined #ruby
jamesaanderson has joined #ruby
rcosta has joined #ruby
jamesaanderson has quit [Client Quit]
ananthakumaran1 has joined #ruby
ananthakumaran1 has quit [Max SendQ exceeded]
pothibo has joined #ruby
Davey has joined #ruby
ananthakumaran1 has joined #ruby
<Xeago> kuribas: the guides are really well written imo
chihhsin has quit [Quit: leaving]
bluenemo has quit [Ping timeout: 260 seconds]
<Xeago> might be a good thing to look at
chihhsin has joined #ruby
<kuribas> I see.
arietis has joined #ruby
jamesaanderson has joined #ruby
cody-- has joined #ruby
Squarepy has joined #ruby
ananthakumaran has quit [Ping timeout: 264 seconds]
chihhsin has quit [Client Quit]
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
chihhsin has joined #ruby
xjiujiu has joined #ruby
cody-- has quit [Client Quit]
cody-- has joined #ruby
tvw has joined #ruby
<ukwiz> Morrolan: Tried again, and it worked this time
chihhsin has quit [Client Quit]
chihhsin has joined #ruby
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
siavashserver has joined #ruby
arietis has joined #ruby
_maes_ has joined #ruby
banisterfiend has joined #ruby
threeturn has quit [Quit: threeturn]
coderhs has joined #ruby
Ox6abe has quit [Remote host closed the connection]
S27 has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
rcosta has quit [Remote host closed the connection]
rcosta has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
blackmesa has quit [Ping timeout: 240 seconds]
xjiujiu has joined #ruby
justforfun has joined #ruby
threeturn has joined #ruby
zarubin has joined #ruby
Teddy2steper has quit [Remote host closed the connection]
g0bl1n has quit [Ping timeout: 256 seconds]
Tuxist has quit [Ping timeout: 264 seconds]
chairabanta has joined #ruby
Notte has quit [Remote host closed the connection]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
optimusprimem has quit [Ping timeout: 245 seconds]
bluenemo has joined #ruby
g0bl1n has joined #ruby
xjiujiu has quit [Ping timeout: 264 seconds]
hogeo has quit [Remote host closed the connection]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
jefflyne3 has quit [Ping timeout: 264 seconds]
siavashserver has quit [Quit: Konversation terminated!]
jamesaanderson has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
g0bl1n has quit [Read error: Operation timed out]
mdst has joined #ruby
mdst has quit [Client Quit]
volty has joined #ruby
Soda has joined #ruby
rcosta has quit [Remote host closed the connection]
mdst has joined #ruby
Davey has joined #ruby
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
ryandeussing has quit [Ping timeout: 264 seconds]
freerobby has joined #ruby
KevinSjoberg has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Xeago_ has joined #ruby
bluenemo has quit [Quit: Verlassend]
banisterfiend has joined #ruby
freerobby has quit [Ping timeout: 246 seconds]
sepp2k has joined #ruby
aryaching has quit [Ping timeout: 260 seconds]
Xeago_ has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 260 seconds]
rcosta has joined #ruby
dkamioka has joined #ruby
optimusprimem has joined #ruby
Xeago_ has joined #ruby
blackmesa has joined #ruby
tkuchiki has joined #ruby
jamesaanderson has joined #ruby
atmosx has joined #ruby
intuxicated has quit [Ping timeout: 240 seconds]
Xeago has quit [Ping timeout: 264 seconds]
BadQuanta has quit [Ping timeout: 240 seconds]
framling has quit [Quit: Lost terminal]
blackmesa has quit [Ping timeout: 240 seconds]
framling has joined #ruby
jbpros has quit [Quit: jbpros]
BadQuanta has joined #ruby
d45h has quit [Ping timeout: 264 seconds]
malcolmva has joined #ruby
cody-- has quit [Quit: derp]
Andrevan has quit [Quit: WeeChat 0.4.2-rc1]
mansi has joined #ruby
sr78ger has joined #ruby
khushildep has joined #ruby
browndawg has joined #ruby
Clooth has quit [Quit: Leaving...]
Soda has quit [Remote host closed the connection]
snovak has joined #ruby
tkuchiki has quit [Ping timeout: 260 seconds]
platzhirsch1 has joined #ruby
nyuszika7h has joined #ruby
<nyuszika7h> hi, what would be the best way to implement a Caesar cipher? here is my current implementation: https://gist.github.com/anonymous/bcb72478021459fb768e
znode_ has joined #ruby
znode has quit [Ping timeout: 256 seconds]
ryandeussing has joined #ruby
shredding has quit [Quit: shredding]
snovak has quit [Ping timeout: 264 seconds]
spider-mario has joined #ruby
DrCode has quit [Ping timeout: 240 seconds]
suisha has joined #ruby
<MrZYX> you could extract the body of the if and elsif block into a common method with one parameter
shredding has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Ox6abe has joined #ruby
<MrZYX> Also there's String#chars
suisha has quit [Read error: Connection reset by peer]
<nyuszika7h> ah
jalcine has quit [Quit: Quit]
m_3 has joined #ruby
Xeago_ has left #ruby [#ruby]
Xeago_ has joined #ruby
dhruvasagar has joined #ruby
shredding has quit [Client Quit]
dhruvasagar has quit [Read error: Connection reset by peer]
ryandeus_ has joined #ruby
ryandeussing has quit [Ping timeout: 240 seconds]
shredding has joined #ruby
m_3 has quit [Client Quit]
m_3 has joined #ruby
awarner_ has quit [Remote host closed the connection]
suisha has joined #ruby
DrCode has joined #ruby
<hanmac> nyuszika7h: what about:
<hanmac> >> "abc".tr("a-z",[*"a".."z"].rotate(13).join)
<eval-in> hanmac => "nop" (https://eval.in/48613)
<nyuszika7h> that's awesome, thanks
disgrntld has joined #ruby
jalcine has joined #ruby
shredding has quit [Client Quit]
KobraKao has joined #ruby
jamesaanderson has joined #ruby
KobraKao has quit [Client Quit]
Splourian has quit [Quit: Leaving]
Davey has quit [Quit: Computer has gone to sleep.]
Teddy2steper has joined #ruby
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<hanmac> apeiros: what did you think about my line for the first idea?
<apeiros> what?
Nenor has quit [Quit: Nenor]
thesheff17 has joined #ruby
browndawg has quit [Quit: Leaving.]
<apeiros> caesar cipher? rot13?
<Xeago_> s
<apeiros> shortest is str.tr('a-z', 'n-za-m') or somesuch
<Xeago_> caesar cipher is an offset cipher
<apeiros> >> 'hello'.tr('a-z', 'n-za-m')
<eval-in> apeiros => "uryyb" (https://eval.in/48614)
browndawg has joined #ruby
<apeiros> Hanmac: for generic caesar cipher, I think your idea with Array#rotate + String#tr is very nice
Breadcrumbs has joined #ruby
* hanmac gains kudos ;D
randomautomator has joined #ruby
Trudko_ has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Trudko_> how to format float so it hides floating zeroes? -> 5/2 - 2.5 and 4/2 would be 2 not 2.0 ?
<shevy> but 4/2 is already 2
emergion has quit [Quit: Computer has gone to sleep.]
<MrZYX> 5/2 is also 2 ;P
<Trudko_> >> (4/2).to_f
<eval-in> Trudko_ => 2.0 (https://eval.in/48615)
wildroman has joined #ruby
<Trudko_> >> (5/2)
<eval-in> Trudko_ => 2 (https://eval.in/48616)
<shevy> >> 2.0.to_i
<eval-in> shevy => 2 (https://eval.in/48617)
wildroman has quit [Remote host closed the connection]
<Trudko_> shevy well problem is i have just some numbers so I use to_f so 5/2 is 2.5
<Trudko_> but when there is 2 it will return 2.0
<volty> the question is format
<hanmac> first you may need "mathn" if you want that 5/2 == 2.5
<volty> so
wildroman has joined #ruby
jibi has joined #ruby
<volty> "%.f" % 5/2.0
gyre007 has joined #ruby
<shevy> >> "%.f" % (5 / 2.0)
<eval-in> shevy => "2" (https://eval.in/48618)
azcodex has quit [Quit: azcodex]
yekta has joined #ruby
ivaturi has quit [Quit: Leaving]
GeissT has quit [Quit: MillBroChat AdIRC User]
<Trudko_> well this doesnt work for me
havenwood has joined #ruby
arietis has joined #ruby
rcosta has quit [Remote host closed the connection]
agjacome has joined #ruby
<volty> well, maybe something else doesn't work ... :)// tell us what you need - out of what
jbpros has joined #ruby
jbpros has quit [Client Quit]
rcosta has joined #ruby
Dave has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
Dave is now known as Guest89495
agjacome has quit [Client Quit]
quoin has joined #ruby
taternuts has quit []
leerily72 has joined #ruby
ofeone has joined #ruby
ofeone has quit [Remote host closed the connection]
tkuchiki has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
nyuszika7h has left #ruby ["WeeChat 0.4.2-rc1"]
quoin has quit [Ping timeout: 242 seconds]
tkuchiki_ has joined #ruby
khushildep has quit [Quit: khushildep]
havenwood has quit [Remote host closed the connection]
ofeone has joined #ruby
<apeiros> >> "%g %g %g" % [2, 2.5, 2.75]
<eval-in> apeiros => "2 2.5 2.75" (https://eval.in/48619)
<apeiros> @ Trudko_
tkuchiki has quit [Ping timeout: 240 seconds]
<apeiros> also "doesn't work for me" is a useless problem description.
JumpMast3r has joined #ruby
pwh has joined #ruby
kvirani has joined #ruby
tkuchiki_ has quit [Ping timeout: 264 seconds]
<Trudko_> apeiros read above
<apeiros> Trudko_: I did. provide proper problem description.
<Trudko_> ow to format float so it hides floating zeroes? -> 5/2 - 2.5 and 4/2 would be 2 not 2.0 ?
<apeiros> Trudko_: how about you read above?
<apeiros> >> "%g %g %g" % [2, 2.5, 2.75]
<eval-in> apeiros => "2 2.5 2.75" (https://eval.in/48620)
<volty> just zeroes ....
<volty> sorry, apeiros found it
g0bl1n has joined #ruby
ehc has joined #ruby
zephdev has joined #ruby
goshakkk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<volty> sorry ... you know ... people are sometimes tired and distracted ...
kobain has joined #ruby
<Trudko_> apeiros: ou didnt notice that ok that seems like it
S27 has quit [Quit: S27]
<Trudko_> thx
Xeago has joined #ruby
carraroj has joined #ruby
Rym has joined #ruby
sr78ger has quit [Quit: Textual IRC Client: www.textualapp.com]
tomzx_mac has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
nowthatsamatt has joined #ruby
<volty> btw, never mind but it is much easier (and exact) to state a problem as "2.5"-> "2.5" // "2.0" -> "2"
<volty> since "hiding floating zeroes" could mean "2.035" -> "2. 35"
dhruvasagar has joined #ruby
g0bl1n has quit [Ping timeout: 256 seconds]
Clooth has joined #ruby
<Morrolan> What, no.
Teddy2steper has quit [Remote host closed the connection]
<Morrolan> That would be "modifying the number" ;)
kuribas has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
<volty> the number is the same, it is about how it is showed (space in place of zero)
Xeago has quit [Ping timeout: 264 seconds]
Guest89495 has quit [Quit: Leaving...]
<Morrolan> Oh, there's a space in there. I have never seen that notation, though.
<Morrolan> Is that actually in use, or did you just make that up? :P
<volty> nice for a column, aligned, format :)
g0bl1n has joined #ruby
pwh has quit [Quit: pwh]
fenicks has joined #ruby
<volty> the right expression should be "trim/remove trailing zeroes"
ukwiz has left #ruby ["Leaving"]
DrCode has quit [Ping timeout: 240 seconds]
Stalkr^ has joined #ruby
adambeynon has joined #ruby
<Stalkr^> Hey all, I am trying to get into Ruby. Why can't I do 'height = 5 #new line# print height * height'?
<Zespre> chihhsin: hi
<Stalkr^> Oh, gets is a string, right? I need to get an int..
m_3 has quit [Remote host closed the connection]
<Mon_Ouie> You can convert strings to integer using to_i
<Mon_Ouie> >> "32".to_i
<eval-in> Mon_Ouie => 32 (https://eval.in/48625)
mansi has quit [Remote host closed the connection]
ryandeus_ has quit [Remote host closed the connection]
freerobby has joined #ruby
mansi has joined #ruby
<atmosx> >> "who".to_i
<eval-in> atmosx => 0 (https://eval.in/48626)
<atmosx> >> "who".to_f
<eval-in> atmosx => 0.0 (https://eval.in/48627)
<Stalkr^> Mon_Ouie: Is there something like height = gets.to_f (I need a float or double)
DrCode has joined #ruby
<Mon_Ouie> Yes, just as you wrote it
tkuchiki has joined #ruby
<Mon_Ouie> (And indeed, it doesn't complain in case of errors, it just stops there or gives you back zero)
<Mon_Ouie> >> "3.2 apples".to_f
<eval-in> Mon_Ouie => 3.2 (https://eval.in/48628)
<apeiros> it can raise
<apeiros> gets returns nil at end of input
<apeiros> oh
<apeiros> actually…
m_3 has joined #ruby
<apeiros> it wouldn't raise since nil.to_f exists. my bad :)
krz has quit [Quit: krz]
wallerdev has joined #ruby
kevind has joined #ruby
DonRichie has joined #ruby
mansi has quit [Ping timeout: 260 seconds]
freerobby has quit [Ping timeout: 260 seconds]
goshakkk has joined #ruby
Davey has joined #ruby
<Stalkr^> weight = gets.to_f
<Stalkr^> print "Your BMI is " + (weight / (height * height))
<Stalkr^> This doesn't run
swordsmanz is now known as denza
tkuchiki has quit [Ping timeout: 260 seconds]
<Stalkr^> `+': no implicit conversion of Float into String (TypeError)
<apeiros> because "foo" + 5.5 # does not work
denza is now known as swordsmanz
<Morrolan> Your calculation returns a float, String#+ does not accept a float.
<Morrolan> The cleanest way to do this is probably string interpolation. E.g. "Your BMI is #{ weight / (height ** 2) }"
jibi has quit [Ping timeout: 256 seconds]
<volty> maybe he needs a secretary for that ... to work :)
bigoldrock has joined #ruby
<Stalkr^> I thought gets.to_f made sure it's a float?
<workmad3> Stalkr^: yes, that ensures *weight* is a float
<Morrolan> (Alternatively, call .to_s on the result of your calculation, and then you can use + to concatenate strings.
<workmad3> Stalkr^: but "Your BMI is " <-- that's a string
<workmad3> Stalkr^: and you can't do string + float...
<Stalkr^> Oh, I thought that was possible. Hmm
<Morrolan> What would you expect Ruby to do? Convert the float to a string and concatenate the two strings, or convert the string to a float, and perform addition? :)
<Morrolan> As you see, there'd be ambiguity.
timonv has joined #ruby
okinomo has quit [Ping timeout: 256 seconds]
<Stalkr^> Ruby should be able to mindread me
leerily72 has quit [Quit: leerily72]
<Morrolan> If you develop a language which does that, you'll probably be quite successful. :D
<volty> a smart secretary is much sexier than ruby - can interpret, this and much else, at your wills and wishes
<Morrolan> Tend to leads to PR disaster, though.
blackmesa has joined #ruby
scotticism57 has joined #ruby
<Stalkr^> Morrolan: brb working on it
<Morrolan> Be sure to highlight me when you're done. :)
jp- has joined #ruby
<Morrolan> Though.... not sure if I'd want to run the code which it created after having read my mind. D:
<Stalkr^> Also, does Ruby only care about . as a decimal? Coming from Java, I need to use ,
<volty> "0".to_f gives you float a well
<Morrolan> Stalkr^: When parsing a string as a float, you mean?
<volty> as well
<Stalkr^> I entered "1,84" and it returned 1
<Stalkr^> "1.84" gives me 1.84 tho
<Morrolan> >> "1,84".to_f
<eval-in> Morrolan => 1.0 (https://eval.in/48634)
<volty> decimal separator should be dependent on your system
<volty> right ?
<Morrolan> It works on my system, so it probably respects the locale's setting, yea.
<Stalkr^> On Java I have to use , On Ruby though, I need to use .
<volty> ruby is respecting the underlying system's separator ?
browndawg has quit [Ping timeout: 264 seconds]
<Stalkr^> We use , in my country, so that's odd
tjj is now known as tjj__
<Morrolan> >> Float("1,84")
<eval-in> Morrolan => invalid value for Float(): "1,84" (ArgumentError) ... (https://eval.in/48636)
<Morrolan> >> Float("1.84")
<eval-in> Morrolan => 1.84 (https://eval.in/48637)
dmiller has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
<volty> so he'd better use Float - for the sake of catching input mistakes (and do not forget to tell the filler the current decimal separator)
<apeiros> Stalkr^: tr(',', '.')
tkuchiki has joined #ruby
<apeiros> unless your locale uses '.' as thousands separator
<apeiros> in that case, tr(',.', '.')
<Stalkr^> ;__;
<apeiros> >> "1.234.567,89".tr(',.', '.')
<eval-in> apeiros => "1.234.567.89" (https://eval.in/48638)
wallerdev has quit [Quit: wallerdev]
<apeiros> huh?
<apeiros> oh…, misremembered tr's behavior
<apeiros> >> "1.234.567,89".delete('.').tr(',', '.')
<eval-in> apeiros => "1234567.89" (https://eval.in/48639)
<volty> apeiros: a ruby global that returns the current decimal separator ?
<apeiros> volty: none. you can check the LC_* env variables
<Mon_Ouie> But to_f (etc.) will always use "." anyway
<apeiros> I think osx doesn't even export those, though
rins has joined #ruby
Trynemjoel has joined #ruby
scotticism57 has quit [Quit: scotticism57]
<volty> so, a nice idea could be to write a method that determines the decimal separator
<banisterfiend> Mon_Ouie are the irish friendly?
dmiller has quit [Ping timeout: 240 seconds]
eka has joined #ruby
<volty> $dec_sep = ("2.35" .to_f = 2.35 ? '.' : ',')
tjj__ has quit [Quit: Ex-Chat]
corpuscle has joined #ruby
<Mon_Ouie> banisterfiend: Sure. People also tend to talk to strangers on the bus, etc. — which is something I'd never seen here.
dignitas71 has joined #ruby
<banisterfiend> Mon_Ouie ah, friendlier than the french/french-belgians then? :)
<joesavage> In Ruby, how can I most easily treat some data as another type of data? In this case, I'm looking to treat the data for an integer like a double (trying to replicate C#'s Int64BitsToDouble, which does *((double*)&value) to achieve this goal in a C-style way)
jefflyne3 has joined #ruby
<Mon_Ouie> volty: No, "2.35" == 2.35 is always true
<apeiros> volty: wouldn't work since ruby doesn't care what your env is
nyuszika7h has joined #ruby
<banisterfiend> >> "2.35" == 2.35
<eval-in> banisterfiend => false (https://eval.in/48640)
tkuchiki_ has joined #ruby
<Mon_Ouie> Ah, bad example then :p
tkuchiki has quit [Ping timeout: 240 seconds]
<nyuszika7h> why are some methods such as Array#clear, Array#keep_if, Array#delete_if missing the trailing '!'?
<Mon_Ouie> >> 0.5 == "0.5"
<eval-in> Mon_Ouie => false (https://eval.in/48641)
<Mon_Ouie> Oh, of course, I missed the to_f*
<volty> apeiros: thanks - that was what i was asking before
browndawg has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
<banisterfiend> Mon_Ouie you've lost your brilliance since your trip to ireland! too many potatoes!
workmad3 has quit [Ping timeout: 264 seconds]
Guest63395 has joined #ruby
<apeiros> joesavage: that's not how ruby works
<zets> joesavage: what do you need to do that for?
<Morrolan> nyuszika7h: The stdlib only uses bang methods when there's a non-bang method available.
<apeiros> joesavage: you could emulate it, via pack/unpack. but you can't randomly reinterpret an object as another.
rippa has joined #ruby
<Morrolan> nyuszika7h: In contrast with some third party libraries which use an exclamation mark to indicate dangerous / destructive methods.
<nyuszika7h> ah
<Stalkr^> Do you guys recommend learning Ruby inside out prior to Rails?
<zets> ruby is all about duck typing - the object class shouldn't really matter
<joesavage> apeiros: Yeah, I figured it wasn't a very Ruby-esque thing. Pack/unpack might be able to do what I'm looking for actually, for some reason I didn't even think of them.
rins has quit [Ping timeout: 264 seconds]
<Morrolan> Stalkr^: No, but everything more than basic Ruby knowledge will make your life easier, and your Rails code more elegant.
<joesavage> zets: Replicating some C# network code
<volty> Stalkr^: it's like learning (to speak) a spoken language without learning to sound with your tong
love_color_text has joined #ruby
<Stalkr^> So it's like learning to read, but no idea how to pronounce the words?
keyvan has joined #ruby
platzhirsch1 has left #ruby [#ruby]
<volty> it's like learning to read without knowing the meaning of the words
tkuchiki_ has quit [Ping timeout: 264 seconds]
<Stalkr^> lol
<volty> and constructions
<volty> the semantics
DanBoy has quit [Remote host closed the connection]
<nyuszika7h> is there a way to convert a string to hex characters in the stdlib?
<joesavage> apeiros: pack("q").unpack("D") works great -- thanks!
<Stalkr^> Sounds like learning Ruby first is worth it
DanBoy has joined #ruby
<nyuszika7h> >> hex = []; 'hello world'.each_byte { |b| hex << b.to_s(16) }; puts hex.join
<eval-in> nyuszika7h => 68656c6c6f20776f726c64 ... (https://eval.in/48642)
<nyuszika7h> yeah, that works
<nyuszika7h> wondering if there's another way in the stdlib or a better way to do it
<nyuszika7h> anyway, afk-ish now
wereHamster has joined #ruby
quoin has joined #ruby
freerobby has joined #ruby
love_color_text has quit [Ping timeout: 264 seconds]
<volty> >> str.bytes.map { |b| b.to_s 16 }.join
<eval-in> volty => undefined local variable or method `str' for main:Object (NameError) ... (https://eval.in/48643)
kreantos has joined #ruby
<volty> nm
<apeiros> >> 'hello world'.unpack("H*").first
<eval-in> apeiros => "68656c6c6f20776f726c64" (https://eval.in/48644)
<nyuszika7h> nice
carraroj has quit [Read error: Operation timed out]
Mon_Ouie has quit [Quit: WeeChat 0.4.1]
quoin has quit [Ping timeout: 264 seconds]
freerobby has quit [Ping timeout: 264 seconds]
dmiller_ has joined #ruby
jbpros has joined #ruby
maletor has joined #ruby
DoritosMan has joined #ruby
mansi has joined #ruby
dangerousdave has joined #ruby
DoritosMan has left #ruby [#ruby]
mansi has quit [Remote host closed the connection]
peregrine81 has joined #ruby
mansi has joined #ruby
jbpros has quit [Client Quit]
disgrntld has quit [Ping timeout: 246 seconds]
allaire has joined #ruby
wildroman has quit [Remote host closed the connection]
digitalcake1 has joined #ruby
timonv has quit [Ping timeout: 256 seconds]
<digitalcake1> I have an array of string that have white space inside them that I need to parse into URI friendly strings %20 what method am I looking for?
mansi has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
hogeo has joined #ruby
mansi has joined #ruby
timonv has joined #ruby
bricker`LA has joined #ruby
threeturn has quit [Quit: threeturn]
<volty> URI::escape encode ?
hogeo has quit [Remote host closed the connection]
mrsolo has joined #ruby
dangerousdave has quit [Read error: Operation timed out]
havenwood has joined #ruby
<digitalcake1> thanks
tkuchiki has quit [Ping timeout: 256 seconds]
kreantos has quit [Remote host closed the connection]
nx000bsd has quit []
zmike123 has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby
tkuchiki has joined #ruby
pwh has joined #ruby
snovak has joined #ruby
m_3 has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
IceDragon has joined #ruby
dangerousdave has joined #ruby
yekta has quit [Quit: yekta]
tkuchiki has quit [Ping timeout: 260 seconds]
tester15 has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
snovak has quit [Ping timeout: 240 seconds]
<apeiros> volty: use __send__
<volty> any ideas how to refine it
<volty> behind __send__ (thx)
anderson is now known as Anderson
echevemaster has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
dankest has joined #ruby
Nenor has joined #ruby
acidulous has joined #ruby
Ripp__ has joined #ruby
freerobby has quit [Ping timeout: 260 seconds]
fenicks has quit [Remote host closed the connection]
kreantos has joined #ruby
<IceDragon> volty: why not use #each_with_object and then #map ?
<IceDragon> (1...10).each_with_object(2).map(&:+)
kil0byte has joined #ruby
<banisterfiend> IceDragon clever
<banisterfiend> i've never seen that pattern before but it's cool
<IceDragon> ruby's Enumerable can be used and abused
<volty> IceDragon: that's nice, but I wanted something more immediate, direct
<banisterfiend> not as cool as haskell's map (+2) [1..10]
<banisterfiend> but still pretty cool :)
abstractj has quit [Ping timeout: 260 seconds]
<IceDragon> volty: then you could just wrap it up in a method
ehc has quit [Quit: ehc]
<IceDragon> ;-; I'm yet to try Haskell... just can't think of any logical use for it yet..
<banisterfiend> volty (1..10).map { |v| v + 2 }
<volty> IceDragon: what about more values?
<banisterfiend> that's actually shorter, too
RDash is now known as RDash[AW]
optimusprimem has quit [Ping timeout: 245 seconds]
Mnemon has quit [Quit: No Ping reply in 180 seconds.]
<IceDragon> ;_; each_with_object only takes 1 argument..
<volty> eh!
Mnemon has joined #ruby
|jemc| has joined #ruby
<volty> if i want to deal with more arguments I would have to chain
abstractj has joined #ruby
<IceDragon> that or just write a new each_with_objects method
<volty> i like the mine because it is similar to map(&:method
sambao21 has joined #ruby
RDash[AW] is now known as RDash
<IceDragon> hmm
<IceDragon> I think I did this before..
<IceDragon> But the method was misplaced somewhere..
<volty> it's true that enumerators are amazing - but also true that you risk to get lost :)
ananthakumaran1 has quit [Quit: Leaving.]
<IceDragon> yup
<IceDragon> can't find it, I'll just rewrite it then
rcosta_ has joined #ruby
<volty> each_with_object is a ruby or hard implementation ?
<IceDragon> kinda strange that my Enumerable extension just goes poof
Taranis has joined #ruby
kayloos has joined #ruby
ggordan has joined #ruby
nkts has quit [Ping timeout: 256 seconds]
<IceDragon> ruby Enumerable
rcosta has quit [Ping timeout: 264 seconds]
sambao21 has quit [Ping timeout: 264 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
jibi has joined #ruby
mrsolo has joined #ruby
sarkis has joined #ruby
carraroj has joined #ruby
Xaitec has joined #ruby
<banisterfiend> IceDragon what are you looking for?
<volty> banisterfiend: his lost extension
<IceDragon> an old function I made so ages ago, it does exactly what volty wanted..
<banisterfiend> oh ok
<IceDragon> ;_; but you know, having hundreds of thousands of lines of code, you easily lose stuff..
<banisterfiend> IceDragon if you organise it badly ;)
<volty> they could have write each_with_objects (s!!!)!
<volty> wrote
<IceDragon> >: I learnt my lesson
love_color_text has joined #ruby
keyvan has quit [Read error: No route to host]
<volty> it depends on how much one writes & experiments -> time for organizing vs time for experimenting
<IceDragon> and time for actual usage...
chairabanta has quit [Quit: Leaving...]
jonathanwallace has joined #ruby
marius has joined #ruby
<volty> sorry if it seems a pedantry but I don't like the name each_with_object, I would have preferred enum_with_object
<IceDragon> its a naming convention
<IceDragon> each is the base method for all Enumerable functions
<IceDragon> so everything else is just a variation of each*
<IceDragon> okay so I have each_with_objects and map_with_objects...
<IceDragon> >,>
corpuscle has quit [Quit: WeeChat 0.4.1]
jefflyne3 has quit [Ping timeout: 240 seconds]
nanoxd has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
dodosan has joined #ruby
carraroj has quit [Remote host closed the connection]
carraroj has joined #ruby
<banisterfiend> IceDragon wow u're from jamaica?
Senjai has joined #ruby
marius has quit [Ping timeout: 264 seconds]
m_3 has joined #ruby
quoin has joined #ruby
<IceDragon> hai
<IceDragon> :O Is it that magical?
marius has joined #ruby
<volty> IceDragon: nice, elegant, code
<IceDragon> =w= ahhh shucks..
<banisterfiend> IceDragon just my idea of jamaican (reggae and marijuana and jerk chicken) makes it hard to imagine them programming ruby ;)
kevinykchan has quit [Quit: Computer has gone to sleep.]
<IceDragon> well yeah, they teach mostly C++ and Java here
<banisterfiend> IceDragon that's just a silly stereotype of course :)
<volty> i'll put them all in my e_enum.rb and try all the versions (coding ... on the way)
<IceDragon> good luck volty! may the code be with you!
RDash is now known as RDash[AW]
zlo_ has joined #ruby
dodosan has quit [Ping timeout: 264 seconds]
<zlo_> سمَـَّوُوُحخ ̷̴̐خ ̷̴̐خ ̷̴̐خ امارتيخ ̷̴̐خ
gyre007 has quit [Remote host closed the connection]
banisterfiend has quit [Remote host closed the connection]
hamakn has quit [Remote host closed the connection]
marcgg has quit [Remote host closed the connection]
bronson_ has quit [Remote host closed the connection]
kreantos has quit [Remote host closed the connection]
jrhe has quit [Remote host closed the connection]
banisterfiend has joined #ruby
zlo_ has left #ruby [#ruby]
quoin has quit [Ping timeout: 256 seconds]
hamakn has joined #ruby
joesavage_ has joined #ruby
polaco_zZz is now known as polaco
marius has quit [Ping timeout: 264 seconds]
joesavage has quit [Ping timeout: 260 seconds]
joesavage_ is now known as joesavage
xcfox has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
_adeponte has joined #ruby
marius has joined #ruby
dkamioka has quit [Remote host closed the connection]
acidulous has quit [Quit: Leaving]
matchaw_ has joined #ruby
cfi30 has joined #ruby
pskosinski has joined #ruby
matchaw has quit [Ping timeout: 264 seconds]
_adeponte has quit [Ping timeout: 240 seconds]
<volty> can eval.in be invoked (with '>>') with new lines inside?
Ox6abe has quit [Remote host closed the connection]
jonahR has joined #ruby
<MrZYX> just use ;
<pontiki> thanks apeiros
<apeiros> hm?
<pontiki> banning zlo
<volty> MrZYX: i meant for longer code
<apeiros> ah
<volty> without going to paste
<volty> something like
<apeiros> doubt he'll have the same IP the next time, though
<pontiki> volty: you can go to eval.in directly and play with code
<pontiki> sort of an online irb
tester15 has quit [Ping timeout: 250 seconds]
<pontiki> but calling it in irc is rather limited
<pontiki> one line only
<volty> pontiki: i know that; i was wondering if I can send something like s = 'ruby' \n puts s
<apeiros> volty: as MrZYX already said: use ;
Davey has joined #ruby
<pontiki> >> s='ruby';puts s
<eval-in> pontiki => ruby ... (https://eval.in/48651)
keyvan has joined #ruby
keyvan has joined #ruby
keyvan has quit [Changing host]
<pontiki> comme ça
<apeiros> sacre bleu!
<volty> a pitty
dkamioka has joined #ruby
pskosinski has quit [Quit: Til rivido Idisti!]
TripleDES has quit [Ping timeout: 256 seconds]
Ripp__ has quit []
Ox6abe has joined #ruby
khushildep has joined #ruby
love_color_text has quit [Ping timeout: 260 seconds]
<volty> can I have the code for sending to eval.in ?
<pontiki> what?
ReinH has joined #ruby
blackmesa has quit [Remote host closed the connection]
blackmesa has joined #ruby
<volty> ruby code for sending content to eval.in; let's say I want to publish a string (.e.g. "class Mine\n\t def .... ")
tclark has joined #ruby
RDash[AW] is now known as RDash
coderhs has quit [Ping timeout: 256 seconds]
snovak has joined #ruby
marius has quit [Ping timeout: 246 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
coderhs has joined #ruby
EIAC has quit [Remote host closed the connection]
pinage404 has quit [Excess Flood]
snovak has quit [Ping timeout: 240 seconds]
rightisleft has joined #ruby
AndChat| has quit [Ping timeout: 256 seconds]
marius has joined #ruby
<rightisleft> I'm a programmer coming from an ActionScript3 / Java background - i'm looking for a book to learn ruby THEN rails - any recomendations?
Banistergalaxy has joined #ruby
<IceDragon> Um... (I think there was one by why)
keyvan has quit [Remote host closed the connection]
<lupine> the poignant guide is not amazing for actually learning ruby
<lupine> well, it got me a job
<lupine> but still
<suisha> its fun though
pinage404 has joined #ruby
<suisha> I don't think you need a book to learn ruby to be honest...
freerobby has joined #ruby
chairabanta has joined #ruby
ggordan has quit [Read error: Connection reset by peer]
<lupine> go for the ruby 'pickaxe', and also got eloquent ruby and principles of object oriented design in ruby
<lupine> (POO DR)
<IceDragon> ruby is just one of those languages which is better experimented with than "learnt"
<lupine> get*
<lupine> also the ruby pocket reference
<lupine> IceDragon, there are exceptions, especially coming from a java background
<IceDragon> :O The most you need for ruby, is the irb, and the docs on hand, and let a rip
shredding has joined #ruby
<lupine> I have seen what you end up with when you give a java programmer those tools and leave them to it
<lupine> you end up with java, written in ruby
marius has quit [Ping timeout: 260 seconds]
sarkis has quit [Ping timeout: 257 seconds]
<lupine> POODR will be a massive help to any experienced java programmer, once they've got hold of the syntax
haxrbyte_ has quit [Read error: Connection reset by peer]
<lupine> there's also "design patterns in ruby"
<lupine> I'm a little ambivalent about that one, but it's probably worth reading, if not accepting in ful
vlad_starkov has quit [Remote host closed the connection]
rightisleft has quit [Quit: Linkinus - http://linkinus.com]
freerobby has quit [Ping timeout: 264 seconds]
<ReinH> I wouldn't recommend the poignant guide today. We have better resources.
|jemc| has quit [Quit: WeeChat 0.4.1]
<banisterfiend> poignant guide isn't really for learning ruby
<banisterfiend> IMO
<ReinH> I learned Ruby from it back in the day and then had to unlearn some bad habits it taught me
<banisterfiend> it's more for getting you excited about ruby, then you go off and find another book to read once you're all excited :)
peregrine81 has quit []
<Morrolan> It's a horrible mess, the blabbering of a madman. :P
havenwood has quit [Remote host closed the connection]
<ReinH> well also that
marius has joined #ruby
IceDragon has quit [Ping timeout: 260 seconds]
<Morrolan> I didn't even find it amusing. :/
<ReinH> Morrolan: YMMV, for sure
<banisterfiend> Morrolan but you're one of those humourless germanic peoples
<banisterfiend> :P jk
<ReinH> the books lupine recommended are great
<Morrolan> Hah. :P
<banisterfiend> ReinH you still seriously into haskell or has that cooled ?
yfeldblum has joined #ruby
volty has quit [Ping timeout: 250 seconds]
rezzack has joined #ruby
theRoUS has quit [Ping timeout: 260 seconds]
Stalkr_ has joined #ruby
randomdrake has joined #ruby
znode_ has quit [Remote host closed the connection]
rcosta_ has quit [Ping timeout: 264 seconds]
randomdrake has quit [Client Quit]
havenwood has joined #ruby
goshakkk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
peregrine81 has joined #ruby
Ox6abe has quit [Remote host closed the connection]
Kelet has joined #ruby
sepp2k has joined #ruby
Rym_ has joined #ruby
Rym has quit [Ping timeout: 256 seconds]
Rym_ is now known as Rym
ggordan has joined #ruby
jamesaanderson has joined #ruby
Ripp__ has joined #ruby
codecop has joined #ruby
jamesaanderson has quit [Client Quit]
IceDragon has joined #ruby
<IceDragon> o-o
jonathanwallace has quit [Ping timeout: 256 seconds]
jamesaanderson has joined #ruby
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
<ReinH> banisterfiend: still seriously into Haskell
netQT_ has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
Ripp__ has quit [Ping timeout: 246 seconds]
netQT_ has quit [Read error: Connection reset by peer]
sloucher has joined #ruby
g0bl1n has quit [Read error: Operation timed out]
jamesaanderson has quit [Client Quit]
visof has quit [Remote host closed the connection]
peregrine81 has quit []
<banisterfiend> ReinH working on any interesting projects with it?
Stygia has joined #ruby
<banisterfiend> ReinH or still wading through all the theory ? :)
<banisterfiend> (which is very cool)
Cyrus has quit [Quit: Cyrus.close()]
<ReinH> banisterfiend: yes and yes
<banisterfiend> ReinH link to your project?
dangerousdave has quit [Read error: Connection reset by peer]
gr33n7007h has quit [Ping timeout: 260 seconds]
dangerousdave has joined #ruby
alekst has joined #ruby
goshakkk has joined #ruby
saarinen has joined #ruby
cina has joined #ruby
tvw has quit []
freerobby has joined #ruby
R3dy has joined #ruby
klip has joined #ruby
<R3dy> Is there away without string formating to display 1.5 as 1.50?
<shevy> ReinH what habits did you forget?
<shevy> R3dy a million ways. append '0' to your string :P or write an output method that checks the size, then adds '0' to the display if it is below a threshold
<R3dy> shevy: so its up to my own inginutiy
<R3dy> nothing in ruby?
<shevy> you wrote without formatting
<shevy> I am unsure what you expect
<R3dy> shevy: yeah I know was hoping there might be some integer operator
<R3dy> like num.round(2).show_zeror
<R3dy> lol or something
<apeiros> R3dy: that makes no sense
<R3dy> forgive me if my terminology is incorrect
<apeiros> "showing zeros" is a presentation issue. number classes are about the value.
<shevy> 1.round(2) #=> 1.0
love_color_text has joined #ruby
<apeiros> string is about presentation.
<IceDragon> R3dy: "%0.2f" % 1.5
<R3dy> forget about the no formating then
freerobby has quit [Ping timeout: 246 seconds]
<IceDragon> >> "%0.2f" % 1.5
<eval-in> IceDragon => "1.50" (https://eval.in/48659)
<shevy> IceDragon but he clearly wrote without string formatting :P
<IceDragon> :)
<IceDragon> ...
<IceDragon> your screwed then
<apeiros> shevy: he also clearly made no sense :)
<shevy> hehehe
<IceDragon> you're
<R3dy> how would you best make sure that a value always is displayed as two digets, a decimal and 2 digits
<R3dy> so 24.50
<R3dy> 01.60
digitalcake1 has quit [Quit: Leaving.]
<shevy> R3dy I would simply write a method that does that for me
<R3dy> and you have to use sprintf for that correct?
<apeiros> R3dy: IceDragonanswered that
<apeiros> spacefail:(
<shevy> R3dy that is one way, modifying your string was another one, using a method to display is yet another one, I am sure there are more ways
<R3dy> shevy: yeah I think I might have to
<R3dy> alright thanks everyone
carraroj has quit [Read error: Operation timed out]
cina has quit [Quit: Reconnecting]
cina has joined #ruby
alexju has joined #ruby
dignitas71 has quit [Ping timeout: 264 seconds]
sloucher has quit [Quit: sloucher]
gr33n7007h has joined #ruby
bigoldrock has quit [Ping timeout: 240 seconds]
quarks has joined #ruby
g0bl1n has joined #ruby
duggiefresh has joined #ruby
dignitas71 has joined #ruby
sloucher has joined #ruby
freerobby has joined #ruby
ntus1017 has joined #ruby
baroquebobcat has joined #ruby
jibi has quit [Ping timeout: 264 seconds]
Advocation has joined #ruby
Croms has joined #ruby
cfi30 has quit [Quit: WeeChat 0.4.1]
duggiefresh has quit [Remote host closed the connection]
browndawg has left #ruby [#ruby]
Banistergalaxy has quit [Ping timeout: 246 seconds]
mikepack has joined #ruby
zorg24 has quit [Ping timeout: 264 seconds]
peregrine81 has joined #ruby
cina has quit [Remote host closed the connection]
cina has joined #ruby
sloucher has quit [Quit: sloucher]
noop has quit [Remote host closed the connection]
sloucher has joined #ruby
snovak has joined #ruby
dkamioka has quit [Remote host closed the connection]
alexju has quit [Remote host closed the connection]
swordsmanz has quit [Read error: Connection reset by peer]
alexju has joined #ruby
swordsmanz has joined #ruby
siwica has joined #ruby
snovak has quit [Ping timeout: 256 seconds]
keyvan has joined #ruby
keyvan has joined #ruby
dkamioka has joined #ruby
alexju has quit [Ping timeout: 264 seconds]
love_color_text has quit [Ping timeout: 240 seconds]
schaerli has quit [Remote host closed the connection]
Davey has quit [Quit: Computer has gone to sleep.]
dkamioka has quit [Remote host closed the connection]
|jemc| has joined #ruby
zorg24 has joined #ruby
cpruitt_ has joined #ruby
freerobby has quit [Quit: Leaving.]
digitalcake has joined #ruby
cpruitt has quit [Read error: Operation timed out]
cpruitt_ is now known as cpruitt
SHyx0rmZ has joined #ruby
sayan has quit [Ping timeout: 260 seconds]
jonahR has quit [Quit: jonahR]
Ox6abe has joined #ruby
jbpros has joined #ruby
gr33n7007h has quit [Read error: Connection reset by peer]
jonahR has joined #ruby
sloucher has quit [Quit: sloucher]
siwica1 has joined #ruby
sloucher has joined #ruby
sambao21 has joined #ruby
Teddy2steper has joined #ruby
Bosox20051 has quit [Remote host closed the connection]
siwica has quit [Ping timeout: 264 seconds]
swordsmanz has quit [Read error: Connection reset by peer]
mikepack has quit [Remote host closed the connection]
swordsmanz has joined #ruby
saarinen has quit [Quit: saarinen]
mikepack has joined #ruby
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
sambao21 has quit [Ping timeout: 264 seconds]
Teddy2steper has quit [Remote host closed the connection]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
love_color_text has joined #ruby
dhruvasagar has quit [Read error: Operation timed out]
saarinen has joined #ruby
JoeHazzers has joined #ruby
rickmasta has quit [Quit: Leaving...]
siwica1 has quit [Read error: Connection reset by peer]
<JoeHazzers> is it possible for a proc to modify the local variables in the scope in which it is called?
iliketurtles has joined #ruby
rcosta has joined #ruby
siwica has joined #ruby
<waxjar> Bindings is what you're looking for I think
mikepack has quit [Ping timeout: 261 seconds]
iliketurtles has quit [Max SendQ exceeded]
iliketurtles has joined #ruby
kilophoton has joined #ruby
keyvan has quit [Ping timeout: 264 seconds]
Mokosha has joined #ruby
yaymukund has quit [Read error: Connection reset by peer]
pwh has quit [Quit: pwh]
jefflyne3 has joined #ruby
love_color_text has quit [Remote host closed the connection]
tjad has joined #ruby
Xaitec has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
siwica has quit [Read error: Connection reset by peer]
jetblack has joined #ruby
pwh has joined #ruby
yaymukund has joined #ruby
<R3dy> exit
<R3dy> lol
R3dy has quit [Quit: leaving]
ianclarksmith has joined #ruby
Ox6abe has quit [Remote host closed the connection]
jds_ has joined #ruby
iliketurtles has quit [Ping timeout: 256 seconds]
oliver__ has joined #ruby
decoponio has quit [Quit: Leaving...]
siwica has joined #ruby
love_color_text has joined #ruby
jamesaanderson has joined #ruby
Matip has quit [Quit: Leaving]
quoin has joined #ruby
schaerli has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
siwica has quit [Client Quit]
banisterfiend has quit [Ping timeout: 264 seconds]
mityaz has quit [Quit: See ya!]
echevemaster has joined #ruby
echevemaster has quit [Changing host]
echevemaster has joined #ruby
zephdev has quit [Remote host closed the connection]
quoin has quit [Ping timeout: 246 seconds]
iliketurtles has joined #ruby
sinkensabe has joined #ruby
banisterfiend has joined #ruby
siwica has joined #ruby
Squarepy has quit [Remote host closed the connection]
siwica has quit [Client Quit]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
kobain_ has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
schaerli has quit [Remote host closed the connection]
sinkensabe has quit [Quit: Lost terminal]
elaptics`away is now known as elaptics
love_color_text has quit [Remote host closed the connection]
jds_ has quit [Remote host closed the connection]
uri781 has joined #ruby
Stygia has quit [Ping timeout: 240 seconds]
ravster has quit [Quit: Leaving.]
kobain has quit [Read error: Operation timed out]
Beoran has joined #ruby
dhruvasagar has quit [Remote host closed the connection]
[eDu] has joined #ruby
[eDu] has left #ruby [#ruby]
alexju has joined #ruby
colonolGron has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 240 seconds]
snovak has joined #ruby
Rym has quit [Ping timeout: 260 seconds]
mikeric has joined #ruby
DanKnox_away is now known as DanKnox
Rym has joined #ruby
uri781 has left #ruby [#ruby]
robustus has quit [Ping timeout: 264 seconds]
snovak has quit [Ping timeout: 265 seconds]
rickmasta has joined #ruby
DanKnox is now known as DanKnox_away
dangerousdave has quit [Read error: Connection reset by peer]
Dave has joined #ruby
alexju has quit [Remote host closed the connection]
Dave is now known as Guest89950
alexju has joined #ruby
axsuul has joined #ruby
colonolGron has quit [Ping timeout: 264 seconds]
robustus has joined #ruby
ntus1017 has quit [Remote host closed the connection]
g0bl1n has quit [Quit: Ex-Chat]
DanKnox_away is now known as DanKnox
suisha has quit [Ping timeout: 260 seconds]
suisha has joined #ruby
cody-- has joined #ruby
zacts has quit [Ping timeout: 264 seconds]
<brisbin> >> a = 1; Proc.new { a = 2 }.call; a
<eval-in> brisbin => 2 (https://eval.in/48662)
<brisbin> JoeHazzers: like that ^
duggiefresh has joined #ruby
vlad_starkov has joined #ruby
jaffery has joined #ruby
saarinen has quit [Quit: saarinen]
<brisbin> >> p = Proc.new { a = 2 }; a = 1; p.call; a
<eval-in> brisbin => 1 (https://eval.in/48663)
<brisbin> order matters
alexju has quit [Ping timeout: 260 seconds]
<apeiros> >> a = 1; Proc.new { |;a| a = 2 }.call; a
<eval-in> apeiros => 1 (https://eval.in/48664)
<apeiros> and you can shield it if you want
peregrine81 has quit []
<brisbin> neat
BillCriswell has joined #ruby
MrZYX is now known as MrZYX|off
<JoeHazzers> brisbin: ty
mikeric has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jaffery has left #ruby [#ruby]
vlad_starkov has quit [Ping timeout: 264 seconds]
BadQuanta has quit [Ping timeout: 240 seconds]
kaspergrubbe has quit [Remote host closed the connection]
KevinSjoberg has quit [Quit: Textual IRC Client: www.textualapp.com]
MrZYX|off is now known as MrZYX
<quarks> hello. I've been following a tutorial on ruby and I had tried to use "retry" in a loop but I can't seem to get it to work and I get "invalid retry" and was wondering what its syntax is on v1.9.3p392
jds_ has joined #ruby
<quarks> I wasn't able to find anything using google and ri retry
mikeric has joined #ruby
<canton7> quarks, 'retry' works with begin/rescue blocks
<canton7> ooh, although iterators as well, apparently
Rym has quit [Ping timeout: 256 seconds]
cody-- has quit [Quit: derp]
suisha1 has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<MrZYX> hmm, wasn't that redo or something?
<canton7> yeah, I thought redo was the loopy one
colonolGron has joined #ruby
Banistergalaxy has joined #ruby
peregrine81 has joined #ruby
<banisterfiend> redo is k00
<canton7> but www.tutorialspoint.com/ruby/ruby_loops.htm as retry in a for loop
<waxjar> quarks: why don't you gist some code :)
<banisterfiend> waxjar hey there leiden-head
<waxjar> hey banisterfiend
<banisterfiend> waxjar what was going on in leiden today
<waxjar> rain and wind, mostly :p
<banisterfiend> i mean with a ll the duchies walking around
<banisterfiend> and live bands
<quarks> redo, according to this tutorial, redoes the condition if used with an if statement for example, whereas retry repeats the entire loop once the condition is satisfied
<waxjar> oh, i have no clue tbh. i don't live in the city centre
suisha has quit [Ping timeout: 264 seconds]
<quarks> it's in a lesson that covers both redo and retry. Redo works though
<canton7> quarks, link to the tut?
<banisterfiend> waxjar how far out of centre do u live
<waxjar> about 15 mins by bike
alexju has joined #ruby
<banisterfiend> waxjar wow, how come u live out there
skaflem has quit [Quit: Leaving]
athos-ribeiro has quit [Ping timeout: 264 seconds]
<waxjar> oh wait, i vaguely remember something about monuments day, might have been this week end
kaspergrubbe has joined #ruby
<waxjar> i grew up here banisterfiend
<quarks> canton7> here's the code in the tutorial. unfortunately, it's a paid tutorial that I can't link to directly
<banisterfiend> waxjar studying here?
<waxjar> not anymore, i quit this year. it wasn't going to well :/
<waxjar> do you?
Emmanuel_Chanel has joined #ruby
athos-ribeiro has joined #ruby
<canton7> maybe it was 1.8... not 1.9
<canton7> not 2.0 either
freerobby has joined #ruby
<waxjar> according to retry is only allowed in a rescue block as of 1.9: https://www.ruby-forum.com/topic/184694#807122
<waxjar> *to this post
<banisterfiend> waxjar in 1.8 retry was awesome
<banisterfiend> it could rerun the method
<r0bglees0n> are you trying to re-run an iteration? you might try fork&exec.
<waxjar> haha, that sounds crazy
<waxjar> def x; retry; end and watch the world burn! >:)
alexju has quit [Remote host closed the connection]
<quarks> canton7> is there a site that documents which statements(?) are retired in ruby?
<r0bglees0n> banisterfiend: from any context?
athos-ribeiro has quit [Ping timeout: 264 seconds]
alexju has joined #ruby
rins has joined #ruby
<quarks> I guess I'm trying to see if there's a resource for more general purposes when I stumble upon other siutations like this
adeponte has joined #ruby
<quarks> ah ok. I see the markmail link in your link waxjar
<banisterfiend> r0bglees0n i think so
blackratdog has quit [Ping timeout: 246 seconds]
quoin has joined #ruby
jbpros has quit [Quit: jbpros]
jonathanwallace has joined #ruby
<quarks> thank you
shaunbaker has joined #ruby
colonolGron has quit [Ping timeout: 258 seconds]
Guest89950 has quit [Quit: Leaving...]
khushildep has quit [Quit: khushildep]
<quarks> I have another question: I had tried to load the website here: https://github.com/ribbitfix/elc_sbtb even upon trying to run bundle install but I continue to get errors when trying to run "middleman server" and was wondering how I can get around this issue.
alexju has quit [Ping timeout: 260 seconds]
Al has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
duggiefresh has quit [Remote host closed the connection]
chairabanta has quit [Quit: Leaving...]
shredding has quit [Quit: shredding]
saarinen has joined #ruby
<quarks> like when I enter middleman init, I get this message https://gist.github.com/zebralight/6574053
gchaturvedi has joined #ruby
linux_noob_666 has quit [Remote host closed the connection]
optimusprimem has joined #ruby
optimusprimem has joined #ruby
mansi has quit [Ping timeout: 260 seconds]
quoin has quit [Ping timeout: 260 seconds]
<quarks> I had tried running bundle exec as advised and googled the message to no avail
clocKwize has joined #ruby
clocKwize has quit [Client Quit]
duggiefresh has joined #ruby
pwh has quit [Quit: pwh]
pwh has joined #ruby
<Stalkr_> Hey, what resources do you recommend for learning Ruby?
DanKnox is now known as DanKnox_away
<atmosx> Stalkr_: Beginning ruby by Cooper on Amazon
<shevy> Stalkr_ pickaxe and the online tutorial "learn to program by chris pine"
<atmosx> the pickAxe after that and then depends on what you're up to
machuga|away is now known as machuga
<atmosx> shevy: that's very basic staff
<shevy> I wouldn't assume a veteran to ask Stalkr_'s question :-)
duggiefresh has quit [Remote host closed the connection]
<atmosx> okay
<Stalkr_> Anything more interactive than books? I tend to loose focus quickly by reading
<Stalkr_> Unless books beats anything else
jbpros has joined #ruby
<atmosx> Stalkr_: codeacademy.com
Maokomioko has joined #ruby
dangerousdave has joined #ruby
<atmosx> well books beat anything else to tell you the truth...
<atmosx> but you can try
Maokomioko is now known as Maoko
<Stalkr_> So Beginning Ruby/Pickaxe from Pragmatic Shelf?
colonolGron has joined #ruby
RDash is now known as RDash[AW]
freerobby has quit [Read error: Connection reset by peer]
blackratdog has joined #ruby
<shevy> odd
<shevy> I always favour books, I hate electronic formats
codecop has quit [Remote host closed the connection]
marius has quit [Ping timeout: 264 seconds]
jbpros has quit [Ping timeout: 240 seconds]
nkts has joined #ruby
iliketurtles has joined #ruby
Brando753 has quit [Ping timeout: 264 seconds]
blackratdog1 has joined #ruby
snovak has joined #ruby
blackratdog has quit [Ping timeout: 264 seconds]
dangerousdave has quit [Quit: Leaving...]
dangerousdave has joined #ruby
goshakkk has quit [Quit: Textual IRC Client: www.textualapp.com]
snovak has quit [Ping timeout: 256 seconds]
nisstyre has quit [Quit: Leaving]
yaymukund has quit [Ping timeout: 264 seconds]
rins has quit [Ping timeout: 260 seconds]
peregrine81 has quit []
yaymukund has joined #ruby
volty has joined #ruby
nkts has quit [Ping timeout: 256 seconds]
Teddy2steper has joined #ruby
vlad_starkov has joined #ruby
nkts has joined #ruby
Croms has quit [Quit: Croms]
Al has quit [Read error: Connection reset by peer]
machuga is now known as machuga|away
Al has joined #ruby
rcosta has quit [Remote host closed the connection]
cody-- has joined #ruby
haxrbyte has joined #ruby
vlad_starkov has quit [Ping timeout: 260 seconds]
zets has quit [Ping timeout: 264 seconds]
funburn has joined #ruby
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
Brando753 has joined #ruby
iliketurtles has quit [Quit: Textual IRC Client: www.textualapp.com]
peregrine81 has joined #ruby
Xeago has joined #ruby
banghouse2 has quit [Remote host closed the connection]
sambao21 has joined #ruby
Xiti` has joined #ruby
dash_ has joined #ruby
Xeago__ has joined #ruby
rcosta has joined #ruby
coaster has quit [Ping timeout: 276 seconds]
Xiti has quit [Ping timeout: 256 seconds]
blackmesa has joined #ruby
saarinen has quit [Quit: saarinen]
sepp2k1 has joined #ruby
sepp2k has quit [Ping timeout: 246 seconds]
BillCriswell has quit [Remote host closed the connection]
dash_ has quit [Ping timeout: 240 seconds]
sambao21 has quit [Ping timeout: 260 seconds]
nkts has quit [Ping timeout: 246 seconds]
saarinen has joined #ruby
marius has joined #ruby
staafl has quit [Ping timeout: 246 seconds]
marius has quit [Client Quit]
BillCriswell has joined #ruby
joesavage has quit [Quit: joesavage]
Advocation has quit [Quit: Advocation]
gchaturvedi has quit [Quit: gchaturvedi]
vikhyat has joined #ruby
gyre007 has joined #ruby
quoin has joined #ruby
jrp has joined #ruby
<jrp> Hi, I have a weird question im not sure how to google. If i want to do interger arithmatic that modeld c's (as in, intergers overflow and loop around), is there a way to do this in ruby?
<bnagy> you could look at FFI
rezzack has quit [Quit: Leaving.]
ofeone has quit [Remote host closed the connection]
<digitalcake> So I'm looking for some work and I thought of an idea and made a small app this weekend. First I started with a list of the top 100 cities. then I got a lat/long with google geocode for each. Then using google places I got a list of 20 companies from each city where matching the term "Web Development", after using google places again to get a website for each I then used "pismo" to compile a list of keywords fond on each webpage.
<digitalcake> I need a new hobby
Al has quit [Quit: Al]
funburn has quit [Quit: funburn]
quoin has quit [Ping timeout: 240 seconds]
Xeago__ has quit [Remote host closed the connection]
<digitalcake> s/fond/found
Lewix has joined #ruby
cody-- has quit [Quit: derp]
JohnBat26 has quit [Ping timeout: 260 seconds]
<jrp> bnagy: ffi looks cool, thanks
peregrine81 has quit []
roryhughes has joined #ruby
jrp has left #ruby [#ruby]
rickmasta has quit [Quit: Leaving...]
shaunbaker has quit [Remote host closed the connection]
<roryhughes> Hey does anyone know how to convert a hash to json without making the keys into strings
<ryanf> the keys are going to be strings no matter what
<ryanf> json doesn't have symbols
<ryanf> they can be strings with colons at the beginning, but they still won't round-trip back to symbols if you parse the json again
<bnagy> dang he left
<bnagy> ffi won't work, it seems :/
Xeago_ has joined #ruby
rickmasta has joined #ruby
<roryhughes> I know how to use symbolise names to get back symbols from string json keys
<roryhughes> But non-string json keys are allowed
<ryanf> that is not true
<ryanf> and even if it were, javascript doesn't have symbols either
<ryanf> symbolizing the hash is the best you're going to do
jds_ has quit [Remote host closed the connection]
jds_ has joined #ruby
<digitalcake> if you need to turn a string into a symbol use to_sym on a string
<roryhughes> Can you explain this then (just did it in chrome) http://d.pr/i/bN8O
dangerousdave has quit [Quit: Leaving...]
<ryanf> json and javascript are not the same thing
<ryanf> json is a subset
<ryanf> read the spec on json.org, it's short and informative
<digitalcake> a is an object
<digitalcake> not a symbol
<ryanf> actually a is a string in that example
<Stalkr_> Why is it so difficult to find something in the doc?
jarin has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
atmosx has quit [Quit: Lost in trance]
yaymukund has quit [Ping timeout: 256 seconds]
dignitas71 has quit [Ping timeout: 260 seconds]
workmad3 has joined #ruby
dignitas71 has joined #ruby
<roryhughes> Ok, you are right thanks
<roryhughes> Parse errors when i do JSON.parse("{a: 6}")
optimusprimem has quit [Ping timeout: 245 seconds]
yaymukund has joined #ruby
babykosh has joined #ruby
Maoko has quit [Quit: Textual IRC Client: www.textualapp.com]
coderhs has quit [Ping timeout: 264 seconds]
Deele has quit [Ping timeout: 240 seconds]
mansi has joined #ruby
cina has quit [Quit: leaving]
rcosta has quit [Remote host closed the connection]
QQQ has joined #ruby
vikhyat has quit [Read error: Connection reset by peer]
vikhyat has joined #ruby
snovak has joined #ruby
kvirani has quit [Remote host closed the connection]
wesside has quit [Ping timeout: 264 seconds]
Nenor has quit [Quit: Nenor]
kvirani has joined #ruby
cooldman224 has joined #ruby
Nenor has joined #ruby
QQQ is now known as Quashie
kvirani has quit [Read error: Connection reset by peer]
Quashie_ has quit [Ping timeout: 240 seconds]
kvirani_ has joined #ruby
vikhyat has quit [Remote host closed the connection]
JumpMast3r has quit [Quit: JumpMast3r]
yaymukund has quit [Ping timeout: 276 seconds]
snovak has quit [Ping timeout: 245 seconds]
khushildep has joined #ruby
claymore has quit [Quit: Leaving]
brunoro has joined #ruby
Xeago_ has quit [Remote host closed the connection]
gyre007 has quit [Ping timeout: 240 seconds]
Xeago_ has joined #ruby
ssrepfler has joined #ruby
Senjai has quit [Remote host closed the connection]
azcodex has joined #ruby
azcodex has quit [Client Quit]
haxrbyte has quit [Read error: Connection reset by peer]
thesheff17 has quit [Remote host closed the connection]
<ssrepfler> hi, is anyone aware if a ruby type (starting with Puppet::Type.newtype(:computer) do...) can be converted to an equivalent java type (essentially I'm after the interface)
DanKnox_away is now known as DanKnox
<ssrepfler> and are there any tools to fascilitate this
Genjikyoshero has joined #ruby
s4muel has joined #ruby
thesheff17 has joined #ruby
s4muel has left #ruby ["oy."]
spider-mario has quit [Read error: Connection reset by peer]
ferdev has joined #ruby
coaster has joined #ruby
mikeric has quit [Quit: Textual IRC Client: www.textualapp.com]
Es0teric has joined #ruby
jamesaanderson has joined #ruby
Genjikyoshero has quit [Quit: Leaving]
Es0teric has quit [Client Quit]
blackmesa has quit [Ping timeout: 240 seconds]
relix has joined #ruby
Xeago_ has quit [Remote host closed the connection]
colonolGron has quit [Quit: Lost terminal]
Xeago has quit [Remote host closed the connection]
adeponte has quit [Remote host closed the connection]
lkba has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
Teddy2steper has quit [Remote host closed the connection]
tclark has quit [Read error: Connection reset by peer]
pushpak has quit [Quit: Linkinus - http://linkinus.com]
nfk has quit [Quit: yawn]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
workmad3 has quit [Ping timeout: 256 seconds]
kayloos has quit [Remote host closed the connection]
kirun has quit [Quit: Client exiting]
yekta has joined #ruby
polaco is now known as polaco_zZz
Liothen has joined #ruby
roryhughes has quit [Quit: roryhughes]
quoin has joined #ruby
blackmesa has joined #ruby
siwica has joined #ruby
siwica has quit [Client Quit]
siwica has joined #ruby
relix has joined #ruby
quoin has quit [Ping timeout: 240 seconds]
relix has quit [Client Quit]
ehc has joined #ruby
Yakko has joined #ruby
Trudko_ has quit [Read error: Connection reset by peer]
Nenor has quit [Quit: Nenor]
pygospa has quit [Disconnected by services]
TheRealPygo has joined #ruby
devoldmx has joined #ruby
jds_ has quit [Remote host closed the connection]
brum has joined #ruby
babykosh has quit [Ping timeout: 264 seconds]
quidnunc has joined #ruby
yekta has quit [Quit: yekta]
yekta has joined #ruby
devoldmx3 has quit [Ping timeout: 260 seconds]
ehc has quit [Quit: ehc]
devoldmx3 has joined #ruby
kayloos has joined #ruby
devoldmx3 has quit [Read error: Connection reset by peer]
babykosh has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dignitas71 has quit [Ping timeout: 264 seconds]
<quidnunc> What is the easiest way to "bundle install" into the current directory?
<quidnunc> (and create an environment to run)
Breadcrumbs has quit [Ping timeout: 260 seconds]
devoldmx has quit [Ping timeout: 248 seconds]
oddalot has quit [Ping timeout: 264 seconds]
mikeric has joined #ruby
oddalot has joined #ruby
dignitas71 has joined #ruby
optimusprimem has joined #ruby
proxie has joined #ruby
Stalkr_ has quit [Quit: Leaving...]
Stalkr^ has quit [Quit: Linkinus - http://linkinus.com]
baroquebobcat has joined #ruby
devoldmx has joined #ruby
kilophoton has quit [Ping timeout: 260 seconds]
snovak has joined #ruby
dignitas71 has quit [Ping timeout: 245 seconds]
prox|a has quit [Ping timeout: 264 seconds]
ssrepfler has quit [Quit: Page closed]
proxie has quit [Remote host closed the connection]
proxie has joined #ruby
baroquebobcat has quit [Client Quit]
blackmesa has quit [Remote host closed the connection]
tacos1de has quit [Remote host closed the connection]
sepp2k has joined #ruby
sepp2k1 has quit [Ping timeout: 264 seconds]
blackmesa has joined #ruby
m8 has quit [Quit: Sto andando via]
snovak has quit [Ping timeout: 276 seconds]
dignitas71 has joined #ruby
jamesaanderson has joined #ruby
cpruitt has quit [Quit: cpruitt]
quidnunc has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
tacos1de has joined #ruby
chrishough has joined #ruby
baroquebobcat has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
babykosh has quit [Ping timeout: 240 seconds]
kaspergrubbe has joined #ruby
mercwithamouth has quit [Ping timeout: 246 seconds]
jds_ has joined #ruby
ehaliewicz has joined #ruby
babykosh has joined #ruby
ggordan has quit [Remote host closed the connection]
digitalcake has quit [Quit: Leaving.]
funburn has joined #ruby
kaspergr_ has joined #ruby
kaspergrubbe has quit [Read error: Connection reset by peer]
amacgregor has quit [Read error: Connection reset by peer]
funburn has quit [Client Quit]
amacgregor has joined #ruby
razi has quit [Quit: Leaving.]
brunoro has quit [Quit: WeeChat 0.3.8]
kilophoton has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
funburn has joined #ruby
ItSANgo_ has quit [Ping timeout: 264 seconds]
elaptics is now known as elaptics`away
tonz has joined #ruby
<tonz> does anyone have some experience with nokogiri who could help me out?
pwh has quit [Quit: pwh]
coaster has quit [Ping timeout: 276 seconds]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
gstamp has joined #ruby
saarinen has quit [Quit: saarinen]
digitalcake has joined #ruby
JumpMast3r has joined #ruby
Astralum has joined #ruby
tonz has quit [Quit: ChatZilla 0.9.90.1 [Firefox 23.0/20130803193131]]
T_T has joined #ruby
NealJ has quit [Quit: :c]
wesside has joined #ruby
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
adeponte has joined #ruby
quoin has joined #ruby
wesside has quit [Ping timeout: 240 seconds]
mercwithamouth has joined #ruby
linux_noob_666 has joined #ruby
dagnachew has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
suisha1 has quit [Ping timeout: 264 seconds]
mansi has quit [Ping timeout: 245 seconds]
jprovazn has joined #ruby
adeponte has quit [Ping timeout: 245 seconds]
quoin has quit [Ping timeout: 245 seconds]
babykosh_ has joined #ruby
babykosh has quit [Ping timeout: 240 seconds]
babykosh_ is now known as babykosh
baroquebobcat has joined #ruby
ehc has joined #ruby
khushildep has quit [Quit: khushildep]
wesside has joined #ruby
tjbiddle has joined #ruby
mrsolo has joined #ruby
mercwithamouth has quit [Ping timeout: 264 seconds]
VTLob has quit [Quit: VTLob]
mercwithamouth has joined #ruby
rcosta has joined #ruby
ehc has quit [Quit: ehc]
Mephisto4 has quit [Ping timeout: 256 seconds]
siwica has quit [Ping timeout: 248 seconds]
siwica has joined #ruby
digitalcake has quit [Quit: Leaving.]
zorg24 has quit [Ping timeout: 264 seconds]
JesseH has quit [Quit: github.com/jessehorne]
predator117 has joined #ruby
snovak has joined #ruby
cody-- has joined #ruby
predator217 has quit [Ping timeout: 256 seconds]
undert has quit [Ping timeout: 264 seconds]
Senjai has joined #ruby
linduxed has quit [Ping timeout: 240 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
snovak has quit [Ping timeout: 264 seconds]
r0bglees0n has quit [Ping timeout: 260 seconds]
vlad_starkov has joined #ruby
gyre007 has joined #ruby
undert has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
wesside has quit [Ping timeout: 245 seconds]
Ripp__ has joined #ruby