<|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|>
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?
<|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>
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
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]
<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
<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]
<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".
<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?
<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
<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
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.]
<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
<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…]
<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
<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]
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
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]