dstynchula has quit [Remote host closed the connection]
JacobHayes has joined #ruby
snath has quit [Ping timeout: 240 seconds]
havenwood has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 240 seconds]
sqwirl has joined #ruby
ctp_ has joined #ruby
<joelbrewer>
hello folks, hoping someone can help me out. I'm trying to access regex matches from within an interpolated string http://pastebin.com/vW24Satn
<shevy>
hmm
jottr_ has joined #ruby
_1_lolputin has joined #ruby
_1_lolputin has left #ruby [#ruby]
<joelbrewer>
any ideas?
<shevy>
class Foo; def initialize; return 3;end;end <--- this won't work as expected right? I wont be able to do: foo = Foo.new # 3
ctp_ has quit [Read error: Connection reset by peer]
<shinobi_one>
shevy: whyyyyy
brunops has quit [Quit: leaving]
ctp_ has joined #ruby
<lupine>
shevy, right, new eats the return value of initialize
m0sz is now known as m0s
<lupine>
you can override new and have it return whatever
<shinobi_one>
^ whyyy
<shevy>
hmm
habanany has quit [Read error: Connection reset by peer]
ctp_ has quit [Client Quit]
<lupine>
this is quite useful in modules
<lupine>
(where it's not an override, of course)
<shinobi_one>
there should be NO reason to do this in a class lol
ctp has quit [Read error: Connection reset by peer]
<shinobi_one>
That's not overriding new to return an integer.
<lupine>
or you might have class Shim ; def self.new ; ... return RealClass.new ; end ; end
<lupine>
it's the same idea
<shinobi_one>
No, it's not. That has actual value.
M4dH4TT3r has joined #ruby
<lupine>
for all you know, MySimpleStubber.new return 3 and the only method I'm interested in is #to_i
M4dH4TT3r is now known as Guest34406
<shinobi_one>
I might die if I look at your tests.
<shevy>
the weak die often and early
Guest34406 has quit [Client Quit]
evenix has quit [Remote host closed the connection]
<shinobi_one>
Only the good die young.
<shevy>
that's true
<lupine>
I didn't realise stubbing was so foreign to you
rezzack has quit [Read error: Operation timed out]
<shevy>
stabbing!
* shevy
stabs shinobi_one
<shevy>
yay!
<shinobi_one>
^
<shevy>
shinobi reminds me of japan
<lupine>
anyway, it's just occurred to me that using modules for shims is a bad idea. you can mixin modules but you can't mixin classes
<lupine>
so overriding new on a class is more precise than implementing a fake new on a module
RowdyChild|Away is now known as RowdyChildren
rylev_ has joined #ruby
rylev has quit [Read error: Connection reset by peer]
teddyp1cker has joined #ruby
<lupine>
doesn't design patterns in ruby recommend undef new for singleton classes?
<lupine>
been a while since I read it
<shinobi_one>
not sure on that one
fabrice31 has joined #ruby
randomnick_ has quit [Quit: Leaving]
mansi has joined #ruby
ephemerian has quit [Quit: Leaving.]
<shinobi_one>
If we weren't the only three in here maybe we'd find out :3
<shevy>
haha
f0ster has quit [Remote host closed the connection]
<shevy>
joelbrewer is also online
fflush has quit [Quit: fflush]
<shevy>
joelbrewer btw your pastie is not useful, we can not reproduce it. provide the string that is assigned to tyour variable content
<shevy>
and use a better pastie such as pastie.org or https://gist.github.com/, pastebin has those annoying flash ads
teddyp1cker has quit [Ping timeout: 268 seconds]
dstynchula has joined #ruby
dyoko has joined #ruby
rylev_ has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 268 seconds]
kitak has quit [Remote host closed the connection]
snath has joined #ruby
kitak has joined #ruby
<lupine>
it's not that important, but I'll look it up in the morning
chris_thomson has joined #ruby
yfeldblum has joined #ruby
blackavr_ has joined #ruby
taf2 has joined #ruby
<joelbrewer>
shevy: I think I got it figured out :) thanks anyway!
supermarin___ has quit [Ping timeout: 255 seconds]
blackavr has quit [Ping timeout: 240 seconds]
blackavr_ is now known as blackavr
dstynchula has quit [Client Quit]
chipotle_ has quit [Quit: cya]
<shevy>
kk away on your path to world domination then
oo_ has joined #ruby
Hanmac has joined #ruby
IceDragon has quit [Quit: Space~~~]
IceDragon has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
fflush has joined #ruby
supermarin___ has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
jxf has quit [Read error: Operation timed out]
arubin has joined #ruby
yfeldblum has joined #ruby
fflush has quit [Client Quit]
ndrei has quit [Ping timeout: 268 seconds]
<taf2>
so the libyaml bug… adding gem 'psych', '~> 2.0.5' to Gemfile should do the trick?
<taf2>
cap fucking deploy # ;)
<taf2>
sorry running the tests now
blackavr has quit [Quit: blackavr]
brunops has joined #ruby
gerep-away is now known as gerep
mary5030 has joined #ruby
nopolitica has joined #ruby
<deg->
hi, just started working with sinatra and curious what the register calls are, example register Sinatra::Contrib, i can't find documentation on what 'register' does, any pointers?
fijimunkii has joined #ruby
ianbrandt has joined #ruby
fflush has joined #ruby
ianbrandt has quit [Client Quit]
ianbrandt has joined #ruby
nateberkopec has quit [Quit: Leaving...]
testcore has quit [Quit: [BX] Just do it like Nike... BEEATCH!]
fflush has quit [Client Quit]
mary5030 has quit [Ping timeout: 255 seconds]
pwh has joined #ruby
<shevy>
there is a #sinatra channel in case noone here knows
ndrei has joined #ruby
<shinobi_one>
^ you mean in case deg- doesn't know
Celm has quit [Remote host closed the connection]
<deg->
i wasn't sure if it was sinatra or ruby specific, ri doesn't seem to show anything, i'll just go code diving
combusean has joined #ruby
jorts has quit [Quit: jorts]
ianbrandt has quit [Ping timeout: 252 seconds]
<shinobi_one>
lupine: do you use rspec?
<lupine>
minitest
<shinobi_one>
is there a mocking library you use?
<lupine>
it has a spec shim, which does most of what rspec does
<lupine>
mocha
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby
<shinobi_one>
but of course, mocha
taf2 has quit [Quit: taf2]
pskosinski_ has joined #ruby
funburn has joined #ruby
zchrykng-work has quit [Read error: Connection reset by peer]
ianbrandt has joined #ruby
dyoko has quit [Ping timeout: 255 seconds]
ianbrandt has quit [Client Quit]
kitak_ has joined #ruby
hooper has quit [Ping timeout: 240 seconds]
mikepack has quit [Remote host closed the connection]
benzrf|offline is now known as benzrf
tylersmith has quit [Ping timeout: 240 seconds]
greggroth has quit [Ping timeout: 240 seconds]
duggiefresh has joined #ruby
nateberkopec has joined #ruby
fflush has joined #ruby
<benzrf>
hello rubyists
<shinobi_one>
hey, how's your gem going?
<combusean>
hi benzrf
pskosinski has quit [Ping timeout: 265 seconds]
<benzrf>
shinobi_one: p sweet
taf2 has joined #ruby
<benzrf>
have u tried it idr >.>
<shinobi_one>
benzrf: i was messing with it the other day
b00stfr3ak has quit [Ping timeout: 240 seconds]
<benzrf>
sweet
<shinobi_one>
benzrf: short memory on this one ;)
duggiefresh has quit [Remote host closed the connection]
<benzrf>
;-;
<shinobi_one>
is that a TIE fighter?
<benzrf>
no
<benzrf>
it is a cry
<benzrf>
the top dots are eyes, - is a mouth, , , are tears
mrmargolis has joined #ruby
<shinobi_one>
looks more like chewbacca
<benzrf>
>tfw
rakm has quit [Quit: Connection closed for inactivity]
mjs2600 has quit [Remote host closed the connection]
RowdyChildren is now known as RowdyChild|Away
<shinobi_one>
lol i'm kidding i know what it is, but my fun is left short as the weather is turning into white flakes pounding into the ground and with that i must leave
davy_ has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
<mozzarella>
benzrf: normal variable I think
<combusean>
it's technically an instance method on the object class.
cj3kim has joined #ruby
sailias has quit [Ping timeout: 268 seconds]
yubrew has quit [Ping timeout: 240 seconds]
cj3kim has quit [Remote host closed the connection]
<benzrf>
combusean: no it is not
<benzrf>
>> method :__FILE__
<eval-in>
benzrf => undefined method `__FILE__' for class `Object' (NameError) ... (https://eval.in/131531)
brunops has quit [Changing host]
brunops has joined #ruby
<combusean>
the fuck
<combusean>
that's straight from the docs
<taf2>
__LINE__ :P
<benzrf>
>> method :__LINE__
<eval-in>
benzrf => undefined method `__LINE__' for class `Object' (NameError) ... (https://eval.in/131532)
<benzrf>
18>> method :__FILE__
<eval-in>
benzrf => undefined method `__FILE__' for class `Object' (NameError) ... (https://eval.in/131533)
<benzrf>
hnh
<combusean>
why do you need an alternative to $0 ?
<mozzarella>
less cryptic name
<combusean>
it's a unixism
<mozzarella>
so I don't ask myself, what's $0 again?
<combusean>
old fossil
<combusean>
and its shared in other languages
tjr9898 has joined #ruby
<benzrf>
$0 is traditional
<combusean>
yeah
<benzrf>
in most contexts
<benzrf>
bash uses it !
<combusean>
it makes sense
<combusean>
$0 for execution $1 for the first argument ...
<mozzarella>
if I make the rb file an executable, yes
<mozzarella>
otherwise I call it with "ruby file.rb"
<mozzarella>
doesn't make as much sense
<mozzarella>
≧°◡°≦
<combusean>
it makes sense in the context of its execution
<mozzarella>
kind of
<mozzarella>
that's how I remember it, anyway
kitak_ has quit [Read error: Connection reset by peer]
kitak_ has joined #ruby
tjr9898 has quit [Ping timeout: 240 seconds]
<combusean>
how are there no ops here for 884 people?
<mozzarella>
they hide
<mozzarella>
and show when there are troublemakers
Celm has quit []
<mozzarella>
that's a freenode policy I think
markisonfire has quit [Ping timeout: 240 seconds]
<combusean>
no way
<mozzarella>
yep
markisonfire has joined #ruby
<mozzarella>
I don't know how many of them there are… Radar is one I think, apeiros too
<benzrf>
combusean: apeiros is a op
<terrellt>
We are all ops.
<benzrf>
among others
<terrellt>
Step lightly.
mrmargolis has quit [Remote host closed the connection]
* combusean
sets terrellt on fire
<terrellt>
I'm going to assume you stepped lightly when you did that.
<combusean>
lol :)
<arubin>
If you turn out the lights, the eyes of the ops will glow.
MatthewsFace has quit [Quit: This computer has gone to sleep]
ndrei has quit [Ping timeout: 240 seconds]
doodlehaus has joined #ruby
aspires has joined #ruby
linuxer1 has joined #ruby
frem_ has quit [Quit: Connection closed for inactivity]
oo_ has quit [Remote host closed the connection]
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jack_rabbit has joined #ruby
mercwithamouth has quit [Ping timeout: 255 seconds]
Mongey has quit [Ping timeout: 255 seconds]
momomomomo has quit [Quit: momomomomo]
nanoyak has quit [Quit: Computer has gone to sleep.]
tkuchiki has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
brunops has quit [Ping timeout: 240 seconds]
narcan has joined #ruby
oo_ has joined #ruby
greggroth has joined #ruby
MatthewsFace has joined #ruby
Aeia has quit []
fgo has joined #ruby
pu22l3r has joined #ruby
jacky has quit [Excess Flood]
Squarepy has quit [Ping timeout: 240 seconds]
mikepack has joined #ruby
Mongey has joined #ruby
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nanoyak has joined #ruby
papercode has quit [Quit: WeeChat 0.4.4-dev]
Aeia has joined #ruby
mehlah has quit [Quit: Leaving...]
markisonfire has quit [Ping timeout: 252 seconds]
Aeia has quit [Client Quit]
centrx has joined #ruby
zachallett has quit [Remote host closed the connection]
jackyalcine has joined #ruby
markisonfire has joined #ruby
timonv has joined #ruby
markisonfire has quit [Client Quit]
linojon has joined #ruby
pu22l3r has quit [Remote host closed the connection]
brunops has joined #ruby
brunops has quit [Client Quit]
pu22l3r has joined #ruby
mikepack has quit [Ping timeout: 252 seconds]
postmodern has quit [Quit: Leaving]
postmodern has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
funburn has quit [Quit: funburn]
afex has quit [Ping timeout: 240 seconds]
timonv has quit [Ping timeout: 255 seconds]
dik_dak has quit [Quit: Leaving]
meatherly has quit [Remote host closed the connection]
greggroth has quit [Ping timeout: 240 seconds]
jrhorn424 is now known as zz_jrhorn424
meatherly has joined #ruby
mikepack has joined #ruby
saarinen has quit [Quit: saarinen]
andy__ has joined #ruby
maximski has joined #ruby
meatherly has quit [Ping timeout: 240 seconds]
holo has joined #ruby
kennym has quit [Quit: Leaving.]
holo has left #ruby [#ruby]
s2013 has joined #ruby
amclain has joined #ruby
Shidash has quit [Ping timeout: 252 seconds]
meatherly has joined #ruby
phoenixSunset has quit [Quit: Lost terminal]
kukyakya has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Deele has quit [Ping timeout: 240 seconds]
jottr_ has quit [Ping timeout: 240 seconds]
Hanmac has joined #ruby
larissa has quit [Quit: Leaving]
joelbrewer has quit [Ping timeout: 268 seconds]
habanany has quit [Ping timeout: 240 seconds]
centrx has quit [Quit: All this computer hacking is making me thirsty]
nanoyak has quit [Quit: Computer has gone to sleep.]
<shevy>
If you turn out the lights
<shevy>
someone will use candles
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
blackavr has joined #ruby
snapcase has quit [Ping timeout: 245 seconds]
Dysruption has joined #ruby
Jinkins has joined #ruby
yubrew has joined #ruby
afex has joined #ruby
vt102 has quit [Ping timeout: 240 seconds]
DEA7TH has joined #ruby
jonmorehouse has quit [Ping timeout: 240 seconds]
<benzrf>
shevy: how deepy
<benzrf>
*deep
alvaro_o has quit [Quit: Ex-Chat]
montyboy has joined #ruby
<combusean>
and still others will be content in the black.
s2013 has quit [Ping timeout: 240 seconds]
tjr9898 has joined #ruby
alvaro_o_ has quit [Quit: Ex-Chat]
yubrew has quit [Ping timeout: 240 seconds]
dx7 has joined #ruby
larsam has joined #ruby
agrinb_ has joined #ruby
cj3kim has joined #ruby
hamakn has quit [Remote host closed the connection]
fflush has quit [Quit: fflush]
narcan has joined #ruby
snapcase has joined #ruby
SCommette has joined #ruby
fflush has joined #ruby
SCommette has quit [Client Quit]
habanany has joined #ruby
evenix has joined #ruby
habanany has quit [Max SendQ exceeded]
jack_rabbit has quit [Quit: Leaving]
tylersmith has joined #ruby
okdas has quit [Read error: Connection reset by peer]
habanany has joined #ruby
habanany has quit [Max SendQ exceeded]
Jinkins has quit [Quit: This computer has gone to sleep]
zorak has quit [Read error: Connection reset by peer]
Lewix has joined #ruby
afex has quit [Ping timeout: 240 seconds]
aspires has quit []
wallerdev has quit [Quit: wallerdev]
s2013 has joined #ruby
fabrice31 has joined #ruby
habanany has joined #ruby
kbarry has quit [Ping timeout: 252 seconds]
habanany1 has joined #ruby
Martxel has quit [Quit: Leaving]
habanany1 has quit [Max SendQ exceeded]
brucelee_ has joined #ruby
amclain_ has joined #ruby
rahult is now known as rahult_
amclain has quit [Ping timeout: 240 seconds]
reset has quit [Quit: Leaving...]
diegoviola has joined #ruby
fabrice31 has quit [Ping timeout: 255 seconds]
jbw has joined #ruby
hamakn has joined #ruby
<jbw>
hey folks.. anyone here run a system wide rbenv install? i'm having issues with the 'rbenv rehash' command.. it keeps complaining that the shims directory isn't writeable.. is there a workaround?
Voodoofish430 has quit [Quit: Leaving.]
<postmodern>
jbw, sudo rbenv rehash ?
WJB has quit [Remote host closed the connection]
Mongey has quit [Ping timeout: 240 seconds]
montyboy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jbw>
is there a workaround which doesn't involve sudo or running of root processes ?
x77686d has quit [Quit: x77686d]
<combusean>
i've had bad experiences with system wide installs. your app ought to be running as a user anyways.
<jbw>
my app is running as a user. i just want to share the rbenv installed rubies rather than setup rbenv for every user on my system
<combusean>
but that's in my context...
Olipro_ has joined #ruby
<jbw>
i guess what i really need is system wide rbenv & rubies but keep the shims per user
Olipro has quit [Ping timeout: 246 seconds]
WJB has joined #ruby
<postmodern>
jbw, you should consider just installing the version of ruby into /usr/local
<postmodern>
jbw, one ruby to rule them all
<benzrf>
i use ruby-install & chrub
<benzrf>
y
doodlehaus has quit [Remote host closed the connection]
<jbw>
not very practical
<bricker`LA>
jbw: have you considered symlinking ~/.rubies to /var/lib/rubies or something?
hooper has joined #ruby
<jbw>
~/.rubies ?
teddyp1cker has joined #ruby
habanany has quit [Quit: habanany]
Olipro_ is now known as Olipro
<bricker`LA>
jbw: whoops, thought we were talking about chruby, ignore me
kennym has joined #ruby
paradisaeidae has joined #ruby
<jbw>
np :)
<jbw>
all i want is rbenv, system wide so each user doesn't need to install it, a global rbenv version but users can still override on a local per-user basis
<jbw>
everything's working except for rehash
<bricker`LA>
okay postmodern, what's the correct way to pronounce "chruby" out loud without sounding like I just had a stroke?
<jbw>
haha
<postmodern>
jbw, why do you need rbenv if you only want one ruby?
<jbw>
err global rbenv version > global ruby version
<postmodern>
bricker`LA, just like chroot :)
Mongey has joined #ruby
<bricker`LA>
postmodern: ...
<jbw>
because i want to be able to add new versions of ruby without upsetting existing users
yohanobs_ has quit [Ping timeout: 240 seconds]
<postmodern>
jbw, /usr/local/bin takes precedence over /usr/bin in $PATH
<bricker`LA>
postmodern: I guess these things just aren't meant to be said out loud
browndawg has joined #ruby
<jbw>
postmodern, asssuming your path has /usr/local/bin specified first, then yes, but what's this got to do with my issue?
<jbw>
and i want to install a new version say 2.1.1 for new users
<postmodern>
jbw, oh i see
<jbw>
then i don't want to have to force user a to use 2.1.1 and break all his shit
hooper has quit [Ping timeout: 240 seconds]
<postmodern>
jbw, well you could try chruby which is designed for system wide installs
yohanobs_ has joined #ruby
<jbw>
hrm
<postmodern>
jbw, or you could just specify the full path to bin/ruby per-app
<jbw>
are you the author? ;)
<postmodern>
jbw, not sure how you are running your apps
skkeeper has quit [Ping timeout: 240 seconds]
<postmodern>
jbw, i've heard of people installing rubies into /opt/rubies, then changing the #! of your scripts to use /opt/rubies/ruby-2.0.0-pXXX/bin/ruby
<jbw>
yeah
<jbw>
that could work but i want to avoid that if at all possible
Kricir has joined #ruby
cescalante is now known as ce_afk
<jbw>
i like the rbenv method whereby you can set the ruby version in .rbenv-version and 'ruby' then reflects that version as does using #!/usr/bin/env ruby
<combusean>
why aren't you using RVM if you want multiple ruby versions?
<combusean>
i'm only saying that with no rbenv experience, btw
<combusean>
rvm is clean and installs easy
skkeeper has joined #ruby
<jbw>
rbenv is cleaner IMO
<combusean>
ooo
fflush has quit [Quit: fflush]
sepp2k has quit [Quit: Leaving.]
krz has joined #ruby
<benzrf>
i use ruby-install + chruby
<benzrf>
super duper clean
<postmodern>
jbw, chruby is only 100 LoC, rbenv does a lot more magic
crystal77 has joined #ruby
platzhirsch has joined #ruby
<jbw>
yeah looking at the github readme now.. it seems to do everything i want
<platzhirsch>
what's going on here
<jbw>
it's that magic where this rehash business is at so i'd rather than muck with that
<postmodern>
jbw, one major caveat, auto-switching requires a shell with auto.sh loaded
<jbw>
auto-switching ?
<postmodern>
like when you cd into a directory, and it detects .ruby-version
<jbw>
oh
<jbw>
doesn't sound like too big a deal
<postmodern>
yeah, auto-switching was not really intended for production envs
<combusean>
the last 3 jobs i've had use rvm
linojon has quit [Quit: linojon]
<combusean>
i default to the market
kennym has quit [Quit: Leaving.]
<jbw>
how's chruby work with gem executables? e.g. bundle / unicorn etc.
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
<benzrf>
jbw: it sets your env and ruby bin path
<benzrf>
or some such
<benzrf>
chruby jruby -> gem is now jruby gem
<jbw>
i see
<postmodern>
jbw, i just do `bundle install --deployment` and `bundle exec` or use bundler's binstubs
<jbw>
so it just sets up your environment so everything is pointing to the right place
habanany has joined #ruby
GreenPlastik has joined #ruby
<postmodern>
jbw, yep PATH, GEM_HOME, GEM_PATH
habanany has quit [Max SendQ exceeded]
<postmodern>
jbw, you could even hardcode these in ~/.bashrc and achieve the same effect
lmickh has quit [Remote host closed the connection]
maximski has quit []
Bumptious has joined #ruby
selina345 has joined #ruby
habanany has joined #ruby
tjr9898 has quit [Remote host closed the connection]
saarinen has joined #ruby
habanany has quit [Max SendQ exceeded]
<jbw>
ok.. i want to avoid hardcoding anything cuz it's likely i'll end up with hundreds of hardcoded files in the future then which need changing
chuk has quit [Quit: This computer has gone to sleep]
rainmanjam has joined #ruby
kennym has joined #ruby
jamto11 has quit [Remote host closed the connection]
meatherl_ has joined #ruby
agrinb_ has quit [Remote host closed the connection]
amclain_ has quit [Ping timeout: 265 seconds]
fflush has joined #ruby
fflush has quit [Changing host]
fflush has joined #ruby
agrinb has joined #ruby
habanany has joined #ruby
danshultz has quit [Remote host closed the connection]
habanany has quit [Max SendQ exceeded]
danshultz has joined #ruby
bluehavana_ has quit [Quit: Connection closed for inactivity]
eka has quit [Read error: Connection reset by peer]
meatherly has quit [Ping timeout: 240 seconds]
kennym1 has joined #ruby
agrinb has quit [Ping timeout: 240 seconds]
sailias has joined #ruby
yubrew has joined #ruby
<GreenPlastik>
no worries. just wanted to shoot the shit and say hi. i'll be around.
amclain has joined #ruby
jack_rabbit has joined #ruby
eka has joined #ruby
danshultz has quit [Ping timeout: 240 seconds]
kennym has quit [Ping timeout: 240 seconds]
hooper has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
benzrf is now known as benzrf|offline
Testalot has joined #ruby
<Testalot>
hi
Chronocity has joined #ruby
<combusean>
hi Testalot
<Testalot>
I heard that the creator of ruby was inspired by emacs-lisp, so he created ruby in it's image.
<arubin>
Testalot: Among other things.
<Testalot>
I'm just now starting to learn emacs, so I'm not sure if I should focus on emacs-lisp or learning ruby.
<Testalot>
can ruby make functions in the middle of a statement?
amclain has quit [Ping timeout: 255 seconds]
greggroth has joined #ruby
<BraddBitt>
how do you mean, Testalot ?
osvico has quit [Ping timeout: 240 seconds]
<arubin>
Testalot: Ruby has lambdas among other things.
<Testalot>
like could I do (onclick obj (labmda ()
<Testalot>
(show "hi"))
hooper has quit [Ping timeout: 255 seconds]
Dysruption has quit [Quit: Dysruption]
mjs2600 has joined #ruby
kukyakya has quit [Remote host closed the connection]
<Testalot>
if it has lambdas then I think i'm good to go with ruby.
<Testalot>
But can the lambdas be used in-line?
<arubin>
Testalot: It is very common to pass around code blocks in Ruby. Lambdas are only one form in Ruby.
<eval-in>
benzrf => no implicit conversion of Array into Integer (TypeError) ... (https://eval.in/131596)
<benzrf>
wat
<Nilium>
When I was little, I was forced to recite the US pledge of allegiance.
<RubyPanther>
You're getting hypnotized by the /'s
<Nilium>
I actually do not remember how it goes.
<benzrf>
RubyPanther: ?
<RubyPanther>
I part of about 20% of the class who recited the pledge in pre-150's form
Gooder has joined #ruby
amclain has joined #ruby
<RubyPanther>
benzrf: the second one doesn't ahve a w
yubrew has quit [Ping timeout: 240 seconds]
<Nilium>
So, no "under god"?
<RubyPanther>
lol right
<Nilium>
I remember that coming up in my rhetoric class a few years ago
<Nilium>
Also the old US salute.
<Nilium>
Or all the other weird religious symbols we crammed into our stuff in recent years that people just assume's been there since the inception of the US.
<RubyPanther>
In my schools we were required to recite the pledge, recite the pledge with words omitted, or sit quietly during the pledge. So it wasn't really "required" except in name.
<Nilium>
I don't know if we had an option to sit out the pledge, but most of us mumbled it after a while.
<Nilium>
Or just mouthed it.
_justin has joined #ruby
Lewix has quit [Remote host closed the connection]
<Nilium>
I think the best thing I remember from my rhetoric class was when the instructor had us pretend he was the flag and do the old-style salute while reciting the pledge.
<RubyPanther>
My class usually managed a properly bored and disinterested mumble. There was substantially more interest in memorizing the names of Presidents.
JasmeetQA has joined #ruby
<Nilium>
At which point he flashed up a picture of people saluting Hitler. I think he enjoyed that a lot.
trhodes_ has quit [Ping timeout: 255 seconds]
<RubyPanther>
I pledge allegiance to my rubber ducky, and the manual which he reads back to me...
<Nilium>
I pledge allegiance to Dash, my documentation god.
<Nilium>
Who was at one point a cat and is now apparently a train or something.
<Nilium>
Dash works in mysterious ways.
pu22l3r_ has joined #ruby
rahult is now known as rahult_
trhodes_ has joined #ruby
funburn has joined #ruby
<dseitz>
Remember that time; when you went and looked at docsets; then realised there was a whole portal for rubygems and was like "not uh"
jeregrine has quit [Quit: Connection closed for inactivity]
pu22l3r has quit [Ping timeout: 240 seconds]
pu22l3r_ has quit [Ping timeout: 255 seconds]
NightGriffin has joined #ruby
fabrice31 has joined #ruby
newUser1234 has quit [Remote host closed the connection]
yfeldblum has joined #ruby
browndawg has joined #ruby
jonahR has joined #ruby
<dseitz>
I haven't been able to reorder docsets as of the latest release
siwica has joined #ruby
jonahR has quit [Client Quit]
saarinen has quit [Quit: saarinen]
yfeldblu_ has joined #ruby
jonahR has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
lmickh has joined #ruby
chipotle has joined #ruby
yfeldblum has quit [Ping timeout: 268 seconds]
rahult_ is now known as rahult
<jonmorehouse>
anyone know a solid gem that I could use to generate hashes from markdown?
wjlafrance has joined #ruby
kobain has quit [Ping timeout: 240 seconds]
emergion has joined #ruby
kobain has joined #ruby
yfeldblu_ has quit [Ping timeout: 255 seconds]
kenndel_ has joined #ruby
greggroth has quit [Ping timeout: 268 seconds]
_justin has quit [Quit: _justin]
chipotle has quit [Quit: cya]
robustus has quit [Ping timeout: 252 seconds]
daynak has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
<Nilium>
jonmorehouse: The digest stuff in the stdlib should probably be sufficient for that.
jason__ has joined #ruby
kenndel has quit [Ping timeout: 265 seconds]
<Nilium>
It's just text, there's no real reason to have a markdown-specific hash.
Dysruption has joined #ruby
oo_ has joined #ruby
bricker`LA has quit [Quit: leaving]
kenndel_ has quit [Ping timeout: 265 seconds]
robustus has joined #ruby
kenndel has joined #ruby
rainmanjam has quit []
hermanmu_ has quit [Remote host closed the connection]
kenndel_ has joined #ruby
hermanmunster has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
meatherly has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
<jonmorehouse>
ahh -- when I said hash I meant to create like a dictionary. Not actually hash the string text
kornet has joined #ruby
kenndel has quit [Ping timeout: 265 seconds]
hermanmunster has quit [Ping timeout: 240 seconds]
pfg has joined #ruby
pfg has quit [Client Quit]
fflush has quit [Quit: fflush]
linuxer1_ has joined #ruby
teddyp1cker has joined #ruby
nisstyre has joined #ruby
meatherly has quit [Remote host closed the connection]
kenndel has joined #ruby
horrorvacui has quit [Quit: Leaving]
linuxer1 has quit [Ping timeout: 240 seconds]
linuxer1_ is now known as linuxer1
oo_ has joined #ruby
kenndel_ has quit [Ping timeout: 246 seconds]
monkegjinni has joined #ruby
teddyp1cker has quit [Ping timeout: 240 seconds]
JacobHayes has joined #ruby
hermanmunster has joined #ruby
willb1 has quit [Ping timeout: 255 seconds]
hermanmunster has quit [Remote host closed the connection]
x77686d has quit [Quit: x77686d]
kenndel has quit [Ping timeout: 240 seconds]
hermanmunster has joined #ruby
benzrf is now known as benzrf|offline
Cache_Money_ has joined #ruby
jason__ has quit [Remote host closed the connection]
chipotle has joined #ruby
jason__ has joined #ruby
hermanmunster has quit [Ping timeout: 252 seconds]
hollyw00d has joined #ruby
jason__ has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
jason__ has joined #ruby
hollyw00d has quit [Client Quit]
userx has quit [Ping timeout: 240 seconds]
nateberkopec has quit [Quit: Leaving...]
yubrew has joined #ruby
hermanmunster has joined #ruby
jason__ has quit [Ping timeout: 255 seconds]
tjr9898 has joined #ruby
greggroth has joined #ruby
Dysruption has quit [Quit: Dysruption]
jzig has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
linuxer1_ has joined #ruby
nopolitica has quit [Remote host closed the connection]
centrx has joined #ruby
jamto11 has joined #ruby
jonahR has quit [Quit: jonahR]
willb1 has joined #ruby
mary5030 has quit [Remote host closed the connection]
cpruitt has joined #ruby
mary5030 has joined #ruby
tjr9898 has quit [Ping timeout: 255 seconds]
greggroth has quit [Ping timeout: 240 seconds]
linuxer1 has quit [Ping timeout: 268 seconds]
linuxer1_ is now known as linuxer1
cpruitt has quit [Client Quit]
nilobject has quit [Quit: nilobject]
siwica has quit [Ping timeout: 255 seconds]
jamto11 has quit [Ping timeout: 240 seconds]
browndawg has quit [Ping timeout: 255 seconds]
mary5030 has quit [Ping timeout: 240 seconds]
browndawg has joined #ruby
pu22l3r has joined #ruby
wjlafrance_ has joined #ruby
pu22l3r has quit [Remote host closed the connection]
wjlafrance_ has quit [Max SendQ exceeded]
wjlafrance has quit [Ping timeout: 245 seconds]
pu22l3r has joined #ruby
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby
hooper has joined #ruby
nisstyre has quit [Ping timeout: 268 seconds]
wjlafrance has joined #ruby
abdulsattar has joined #ruby
hooper has quit [Ping timeout: 255 seconds]
tylersmith has quit [Ping timeout: 268 seconds]
gabrielCmendes has quit [Ping timeout: 240 seconds]
gabrielCmendes has joined #ruby
codeFiend has joined #ruby
combusean has joined #ruby
mjs2600 has joined #ruby
wjlafrance has quit [Quit: This computer has gone to sleep]
willb1 has quit [Ping timeout: 240 seconds]
nisstyre has joined #ruby
mjs2600 has quit [Ping timeout: 240 seconds]
JohnBat26 has joined #ruby
thomasxie has left #ruby [#ruby]
lmickh has quit [Quit: lmickh]
timonv has joined #ruby
ninegrid has quit [Ping timeout: 264 seconds]
mr_snowf1ake has joined #ruby
hooper has joined #ruby
pontiki has joined #ruby
ninegrid has joined #ruby
<pontiki>
hi all o/
centrx has quit [Quit: All this computer hacking is making me thirsty]
MatthewsFace has quit [Quit: This computer has gone to sleep]
timonv has quit [Ping timeout: 255 seconds]
yohanobs_ has quit [Ping timeout: 240 seconds]
viscera has joined #ruby
<postmodern>
what's the best practice for initializing git submodules from rake?
<postmodern>
apparently git creates the submodule/ directory by default, but doesn't clone into it
<postmodern>
so file 'mysubmodule' ... doesn't work
cgore` has joined #ruby
hooper has quit [Ping timeout: 240 seconds]
jonmorehouse has quit [Ping timeout: 252 seconds]
sensen has quit [Ping timeout: 240 seconds]
cgore` has quit [Client Quit]
willb1 has joined #ruby
<pontiki>
hmm.. no idea about that, postmodern
JacobHayes has quit [Ping timeout: 265 seconds]
Slavox|AFK is now known as Slavox
kitak__ has joined #ruby
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JacobHayes has joined #ruby
keen__ is now known as keen_
browndawg has quit [Quit: Leaving.]
Morkel has joined #ruby
kitak_ has quit [Ping timeout: 260 seconds]
sensen has joined #ruby
nari has joined #ruby
hooper has joined #ruby
toastynerd has joined #ruby
tobago has joined #ruby
tobago has quit [Client Quit]
abdulsattar has quit [Ping timeout: 240 seconds]
tobago has joined #ruby
aagdbl has joined #ruby
civillian has joined #ruby
tobago has quit [Client Quit]
echevemaster has quit [Quit: Leaving]
mengu has joined #ruby
mengu has joined #ruby
<civillian>
I'm having an issue with ruby/activeldap, I'm getting 'false' when trying to save a user account after modifying it
<civillian>
as in, u.save returns false
<civillian>
even though I'm using an admin account for the bind
tobago has joined #ruby
tobago has quit [Read error: Connection reset by peer]
tobago has joined #ruby
toastynerd has quit [Remote host closed the connection]
<civillian>
u.save! returns "ActiveLdap::EntryInvalid: Distinguishedname is duplicated: cn=blah"
hooper has quit [Ping timeout: 240 seconds]
<civillian>
what am I doing wrong
<pontiki>
couldn't possibly say without looking at code
mansi has quit [Remote host closed the connection]
dx7 has quit [Remote host closed the connection]
dx7 has joined #ruby
<civillian>
I will see if I can paste bin my hacks :)
yubrew has joined #ruby
Photism2 has quit [Ping timeout: 240 seconds]
decoponio has joined #ruby
sski has quit [Remote host closed the connection]
Photism has joined #ruby
sski has joined #ruby
timonv has joined #ruby
Cache_Money_ is now known as Cache_Money
dx7 has quit [Ping timeout: 251 seconds]
rahult is now known as rahult_
greggroth has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
NightGriffin has quit [Remote host closed the connection]
jonmorehouse has joined #ruby
coderhs has joined #ruby
sski has quit [Ping timeout: 240 seconds]
hooper has joined #ruby
toastynerd has joined #ruby
chipotle_ has joined #ruby
saarinen has joined #ruby
tagrudev has joined #ruby
chipotle has quit [Ping timeout: 240 seconds]
toastynerd has quit [Read error: No route to host]
hooper has quit [Ping timeout: 252 seconds]
bambuka has joined #ruby
Elhu has joined #ruby
teddyp1cker has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
toastyne_ has joined #ruby
cj3kim has joined #ruby
saarinen has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
aagdbl has quit [Quit: This computer has gone to sleep]
blahblah has joined #ruby
blahblah has left #ruby [#ruby]
maletor has joined #ruby
Nukepuppy has joined #ruby
_tpavel has joined #ruby
fabrice31 has joined #ruby
toastyne_ has quit [Ping timeout: 268 seconds]
heftig has quit [Quit: Quitting]
hooper has joined #ruby
Hanmac1 has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
timonv has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
hooper has quit [Ping timeout: 240 seconds]
rahult_ is now known as rahult
funburn has quit [Quit: funburn]
mary5030 has quit [Ping timeout: 240 seconds]
viscera has quit [Quit: viscera]
chris_thomson has quit [Quit: Zzz...]
monsieurp has quit [Read error: Connection reset by peer]
ndrei has joined #ruby
abdulsattar has joined #ruby
nanashiRei has quit [Ping timeout: 240 seconds]
davedev24 has quit [Remote host closed the connection]
WJB has quit [Ping timeout: 240 seconds]
Kuda has joined #ruby
kwertie has quit [Ping timeout: 246 seconds]
matti has quit [Ping timeout: 246 seconds]
droptone has quit [Ping timeout: 246 seconds]
Patteh has quit [Ping timeout: 240 seconds]
cj3kim has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
davedev24 has joined #ruby
matti has joined #ruby
apeiros has joined #ruby
Patteh has joined #ruby
pfg has joined #ruby
mikepack has quit [Remote host closed the connection]
Guest15582 has quit [Remote host closed the connection]
hooper has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
davedev24 has quit [Ping timeout: 240 seconds]
nanashiRei has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
michael_lee has joined #ruby
browndawg has joined #ruby
hooper has quit [Ping timeout: 240 seconds]
Nukepuppy has quit [Ping timeout: 268 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davedev24 has joined #ruby
bahar has quit [Ping timeout: 252 seconds]
apeiros has quit [Ping timeout: 240 seconds]
michael_lee has quit [Max SendQ exceeded]
droptone has joined #ruby
s2013 has quit [Ping timeout: 268 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
tharindu has joined #ruby
LadyRainicorn has joined #ruby
monsieurp has joined #ruby
bal has joined #ruby
toastynerd has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
yfeldblum has joined #ruby
jonmorehouse has quit [Ping timeout: 240 seconds]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
yubrew has joined #ruby
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jackneill has joined #ruby
keeguon has joined #ruby
jonmorehouse has joined #ruby
freerobby has quit [Quit: Leaving.]
rahult is now known as rahult_
dr0ff has left #ruby [#ruby]
havenwood has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 255 seconds]
rahult_ is now known as rahult
mansi has joined #ruby
taf2 has quit [Quit: taf2]
michael_lee has joined #ruby
evenix has quit [Remote host closed the connection]
bronson has quit [Quit: bronson]
jonmorehouse has quit [Ping timeout: 252 seconds]
_justin has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
fgo has quit [Remote host closed the connection]
carraroj has joined #ruby
showaz has joined #ruby
supersym has joined #ruby
cj3kim has joined #ruby
chichou has quit [Remote host closed the connection]
supersym has quit [Client Quit]
<dmarr>
do you still have to set GEM_HOME and GEM_PATH when using rbenv
supersym has joined #ruby
supersym has quit [Client Quit]
<dmarr>
they are both empty for me and running bundle install fails trying to write to /System (osx)
supersym has joined #ruby
supersym has quit [Client Quit]
<dmarr>
so it seems rbenv isnt setting up properly
supersym has joined #ruby
tvw has joined #ruby
tjr9898 has joined #ruby
michael_lee has quit [Max SendQ exceeded]
pu22l3r_ has joined #ruby
hermanmunster has quit [Remote host closed the connection]
jonmorehouse has joined #ruby
abdulsattar has quit [Ping timeout: 240 seconds]
hermanmunster has joined #ruby
pu22l3r__ has joined #ruby
jamto11 has joined #ruby
dagobah has joined #ruby
tjr9898 has quit [Ping timeout: 265 seconds]
pu22l3r has quit [Ping timeout: 240 seconds]
NovapaX has joined #ruby
Hanmac has joined #ruby
showaz has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
pu22l3r_ has quit [Ping timeout: 240 seconds]
Hanmac1 has quit [Ping timeout: 252 seconds]
keeguon has quit [Quit: keeguon]
hermanmunster has quit [Ping timeout: 240 seconds]
keeguon has joined #ruby
greggroth has quit [Quit: WeeChat 0.4.3]
emergion has quit [Quit: Connection closed for inactivity]
jamto11 has quit [Ping timeout: 240 seconds]
pu22l3r__ has quit [Ping timeout: 240 seconds]
jzig has quit [Ping timeout: 240 seconds]
poguez_ has joined #ruby
dodosan has joined #ruby
hooper has joined #ruby
akemrir has joined #ruby
havenwood has joined #ruby
arturaz has joined #ruby
Gooder has quit [Ping timeout: 240 seconds]
hooper has quit [Ping timeout: 252 seconds]
LiohAu has joined #ruby
browndawg has quit [Ping timeout: 240 seconds]
michael_lee has joined #ruby
mjs2600 has joined #ruby
selina345 has quit [Quit: Leaving]
jonmorehouse has quit [Ping timeout: 268 seconds]
rahult has quit [Quit: Back to the world of zombies]
toastynerd has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
centrx has joined #ruby
Aquilo has joined #ruby
freerobby has joined #ruby
saarinen has joined #ruby
mjs2600 has quit [Ping timeout: 240 seconds]
aganov has joined #ruby
kornet has quit [Remote host closed the connection]
anarang has joined #ruby
klaut has joined #ruby
socrambuntu has joined #ruby
Terminus- has joined #ruby
_Andres has joined #ruby
freerobby has quit [Ping timeout: 255 seconds]
_justin has quit [Quit: _justin]
noop has joined #ruby
abdulsattar has joined #ruby
<dmarr>
is there general toolchain channel for ruby?
socrambuntu has left #ruby ["Leaving"]
<centrx>
dmarr, What do you mean by general toolchain
showaz has joined #ruby
jarray52 has joined #ruby
havenwood has quit [Ping timeout: 255 seconds]
_justin has joined #ruby
zigomir has joined #ruby
browndawg has joined #ruby
fabrice31 has joined #ruby
kitak__ has quit [Remote host closed the connection]
brucelee_ has quit [Ping timeout: 240 seconds]
jbw has quit [Ping timeout: 240 seconds]
pu22l3r has joined #ruby
apeiros has joined #ruby
<dmarr>
like gem and bundler - how to set them up
<LadyRainicorn>
Try RVM.
Stalkr_ has joined #ruby
<LadyRainicorn>
It will autoinstall most of the dependencies.
<centrx>
dmarr, This is usually the most active of those channels.
dx7 has joined #ruby
<centrx>
dmarr, Not much activity in any channel at this hour.
oo_ has quit [Remote host closed the connection]
yubrew has joined #ruby
oo_ has joined #ruby
<dmarr>
ok - well thanks i'll mess around in a vm in the meantime
<LadyRainicorn>
Seems active enough to me.
<crome>
indeed
<LadyRainicorn>
dmarr: Do you really want rbenv specifically? RVM tend to be more user friendly imo.
NovapaX has quit [Ping timeout: 255 seconds]
yfeldblum has quit [Ping timeout: 255 seconds]
hermanmunster has joined #ruby
<dmarr>
LadyRainicorn: i tried rvm on my work machine and its pretty ok , rbenv seemed a little more intriguing for provisioning servers.. im trying to get boxen installed too on my mac
<crome>
more user friendly than rbenv? I dont know much about rvm but I have never use more than 1 command with rbenv
hermanmunster has quit [Remote host closed the connection]
andy__ has quit [Ping timeout: 268 seconds]
<LadyRainicorn>
RVM manages system dependencies.
<LadyRainicorn>
and just tends to be magicaller.
yubrew has quit [Ping timeout: 255 seconds]
chichou has joined #ruby
<dmarr>
crome: do you still have to set the GEM_HOME and GEM_PATH to install gems? I've tried using system and 2.1.1 and they both try to install stuff into system paths
JacobHayes has quit [Remote host closed the connection]
chichou has quit [Remote host closed the connection]
<crome>
dmarr: ask me again a bit later, I can check my work setup
<crome>
but I dont remember messing with them
olivier_bK has quit [Ping timeout: 246 seconds]
hermanmunster has joined #ruby
rails426 has joined #ruby
nooteh has joined #ruby
pu22l3r has quit [Ping timeout: 252 seconds]
Xeago has joined #ruby
hermanmunster has quit [Remote host closed the connection]
skammer has joined #ruby
rdark has joined #ruby
nooteh has quit [Read error: Connection reset by peer]
sensen has quit [Quit: leaving]
sigurding has joined #ruby
Stalkr_ has quit [Quit: Leaving...]
mansi has joined #ruby
claymore has joined #ruby
Jon30 has quit [Ping timeout: 268 seconds]
freerobby has joined #ruby
mansi has quit [Ping timeout: 255 seconds]
cj3kim has quit [Remote host closed the connection]
fgo has joined #ruby
freerobby has quit [Read error: Operation timed out]
keeguon has quit [Quit: keeguon]
ephemerian has joined #ruby
greenarrow has joined #ruby
amclain has quit [Quit: Leaving]
jonmorehouse has joined #ruby
mr_snowf1ake has quit [Ping timeout: 252 seconds]
ndrei has quit [Ping timeout: 255 seconds]
saarinen has quit [Quit: saarinen]
cj3kim has joined #ruby
ndrei has joined #ruby
ndrei has quit [Read error: Connection reset by peer]
jack_rabbit has quit [Ping timeout: 240 seconds]
dodosan has quit []
centrx has quit [Quit: All this computer hacking is making me thirsty]
dfranciosi has quit [Remote host closed the connection]
dfranciosi has joined #ruby
rm__ has quit [Remote host closed the connection]
rm__ has joined #ruby
yacks has quit [Ping timeout: 240 seconds]
jack_rabbit has joined #ruby
Elhu has joined #ruby
scttnlsn has quit [Ping timeout: 264 seconds]
rm__ has quit [Ping timeout: 255 seconds]
scttnlsn has joined #ruby
aagdbl has joined #ruby
hooper has joined #ruby
jonmorehouse has quit [Ping timeout: 252 seconds]
pfg has joined #ruby
jprovazn has joined #ruby
ndrei has joined #ruby
pu22l3r has joined #ruby
ghr has joined #ruby
cj3kim has quit [Remote host closed the connection]
jorts has joined #ruby
hooper has quit [Ping timeout: 268 seconds]
nvrch has joined #ruby
qba73 has joined #ruby
elaptics`away is now known as elaptics
dyoko has joined #ruby
fabrice31 has quit [Remote host closed the connection]
sski has joined #ruby
arietis has joined #ruby
fabrice31 has joined #ruby
jonmorehouse has joined #ruby
pu22l3r has quit [Ping timeout: 255 seconds]
jhass|off is now known as jhass
skammer is now known as skammer|afk
skammer|afk is now known as skammer
dumdedum has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
havenwood has joined #ruby
ikaros has joined #ruby
timonv has joined #ruby
_justin has quit [Quit: _justin]
ndrei has joined #ruby
jorts has quit [Quit: jorts]
havenwood has quit [Ping timeout: 240 seconds]
andy__ has joined #ruby
maroloccio has joined #ruby
Xeago_ has joined #ruby
Hanmac1 has joined #ruby
yacks has joined #ruby
yubrew has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
oo_ has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 255 seconds]
andy__ has quit [Ping timeout: 268 seconds]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
lxsameer has joined #ruby
oo_ has joined #ruby
mrnugget has joined #ruby
jack_rabbit has quit [Ping timeout: 240 seconds]
keeguon has joined #ruby
sameerynho has joined #ruby
yubrew has quit [Ping timeout: 255 seconds]
canton7-mac has joined #ruby
timonv has quit [Remote host closed the connection]
jonmorehouse has quit [Ping timeout: 240 seconds]
lxsameer has quit [Ping timeout: 255 seconds]
einarj has joined #ruby
claymore has quit [Ping timeout: 240 seconds]
roolo has joined #ruby
maroloccio has quit [Quit: WeeChat 0.4.3]
nfk has quit [Quit: yawn]
claymore has joined #ruby
chichou has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
sameerynho has quit [Ping timeout: 240 seconds]
makara has joined #ruby
Kneferilis has quit [Ping timeout: 240 seconds]
cover has joined #ruby
chichou has quit [Remote host closed the connection]
phansch has joined #ruby
nfk has joined #ruby
marr has joined #ruby
olivier_bK has joined #ruby
combusean has quit [Ping timeout: 240 seconds]
nomenkun has joined #ruby
mansi has joined #ruby
mehlah has joined #ruby
deadlock has joined #ruby
carraroj has quit [Ping timeout: 240 seconds]
abdulsattar has quit [Ping timeout: 240 seconds]
skammer has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
skammer has joined #ruby
_justin has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
lxsameer has quit [Ping timeout: 240 seconds]
oo_ has quit [Remote host closed the connection]
Squarepy has joined #ruby
oo_ has joined #ruby
freerobby has quit [Ping timeout: 240 seconds]
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Xeago_ has quit []
coderhs has quit [Quit: Leaving]
kaspergrubbe has joined #ruby
Lewix has joined #ruby
anarang has quit [Ping timeout: 255 seconds]
redondos has quit [Ping timeout: 245 seconds]
anarang has joined #ruby
falood has joined #ruby
jamto11 has joined #ruby
AlSquire has joined #ruby
Dr3amc0d3r|away has quit [Changing host]
Dr3amc0d3r|away has joined #ruby
Dr3amc0d3r|away is now known as Dr3amc0d3r
pskosinski_ is now known as pskosinski
jzig has joined #ruby
cover_ has joined #ruby
greenarrow has quit [Quit: 500]
aeontech has joined #ruby
aeontech has quit [Client Quit]
cover has quit [Ping timeout: 255 seconds]
jamto11 has quit [Ping timeout: 252 seconds]
codeFiend has quit [Ping timeout: 268 seconds]
Jonah11_ has quit [Ping timeout: 240 seconds]
abdulsattar has joined #ruby
skammer is now known as skammer|afk
mikecmpbll has joined #ruby
RaptorJesus_ has joined #ruby
Xeago has joined #ruby
redondos has joined #ruby
greenarrow has joined #ruby
emanu has joined #ruby
cover_ has quit [Read error: Operation timed out]
jzig has quit [Ping timeout: 268 seconds]
RaptorJesus has quit [Ping timeout: 240 seconds]
CaptainJet has quit []
viscera has joined #ruby
coderxin has joined #ruby
combusean has joined #ruby
cover has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
carraroj has joined #ruby
yfeldblum has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
tvw has quit []
Kneferilis has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
<shevy>
dumdedum
tvw has joined #ruby
combusean has quit [Ping timeout: 255 seconds]
<dumdedum>
dum de dum
stef_204 has joined #ruby
sameerynho has joined #ruby
sski has quit [Remote host closed the connection]
andrewlio has joined #ruby
sski has joined #ruby
cover_ has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
cover has quit [Ping timeout: 240 seconds]
bronson has joined #ruby
RyanV has joined #ruby
lxsameer has quit [Ping timeout: 255 seconds]
bronson has quit [Client Quit]
havenwood has joined #ruby
hooper has joined #ruby
jbueza has joined #ruby
carraroj has quit [Ping timeout: 240 seconds]
reactormonk has joined #ruby
sameerynho has quit [Ping timeout: 240 seconds]
dx7 has joined #ruby
<reactormonk>
code golf: move 10% of the files in a directory to another one.
sski has quit [Ping timeout: 240 seconds]
gaussblurinc has joined #ruby
Dr3amc0d3r is now known as Dr3amc0d3r|away
cover has joined #ruby
cover_ has quit [Ping timeout: 240 seconds]
<shevy>
hehe
havenwood has quit [Ping timeout: 240 seconds]
dx7 has quit [Ping timeout: 240 seconds]
hooper has quit [Ping timeout: 252 seconds]
skammer|afk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zommi has joined #ruby
Zai00 has joined #ruby
davedev24 has quit [Remote host closed the connection]
himsin has joined #ruby
kaspergr_ has joined #ruby
rm__ has joined #ruby
timonv has quit [Remote host closed the connection]
kaspergrubbe has quit [Ping timeout: 255 seconds]
zommi has quit [Remote host closed the connection]
browndawg has quit [Quit: Leaving.]
DaniG2k has joined #ruby
<guardian>
hello, I have a .yaml file that contains smart quotes. I pass that file through ERB then I parse it with YAML.load
<guardian>
but as soon as I do Encoding.default_external = 'ISO-8859-1'
<guardian>
ERB outputs x80\x9C for the open smart quote
<reactormonk>
guardian, somehow the idea of ERB -> yaml feels fishy to me
Lewix has quit [Remote host closed the connection]
<guardian>
and then the YAML parser dies
<reactormonk>
guardian, btw, you can pass an encoding argument to IO.read - I hope, at least.
<guardian>
with Psych::SyntaxError: (<unknown>): control characters are not allowed at line 1 column 1
chichou has joined #ruby
<guardian>
the thing is, if I change the encoding and don't pass the file through ERB then Psych parses it happily
<shevy>
what encoding does erb use there?
Es0teric has quit [Quit: Computer has gone to sleep.]
<shevy>
psych only allows utf
supergeek has joined #ruby
<guardian>
reactormonk: fair enough, but I would like to solve the encoding puzzle first :)
<guardian>
shevy: so you're suggesting I should convert ERB's output back to UTF-8 before sending it to psych?
<shevy>
I dont suggest anything
rm__ has quit [Ping timeout: 252 seconds]
<shevy>
because I can not in good faith recommend erb :)
<shevy>
and I don't like psych either
pr0ggie has joined #ruby
DEA7TH has quit [Ping timeout: 240 seconds]
<shevy>
what encoding do you get with ERB.new there?
<guardian>
please guys, don't go the "do Y instead" path :/
<shevy>
I did not say do Y instead
<guardian>
what do you mean by what encoding do you get with ERB.new?
<shevy>
My question is - what encoding do you pass to psych?
<guardian>
if I do Encoding.default_external = 'ISO-8859-1' then IO.read('./x.yaml')).result outputs iso-8859-1 and escapes unicode characters it seems
heftig has joined #ruby
aagdbl has quit [Quit: This computer has gone to sleep]
<shevy>
ok, psych won't allow this
<reactormonk>
guardian, so why do you set the encoding?
<guardian>
reactormonk: It's part of a test suite. I guess it covers the case for ruby under cygwin on Windows or alike
jprovazn has quit [Quit: Leaving]
<reactormonk>
guardian, ok. As mentioned, tell IO.read you want utf-8 or similar.
rails426 has quit []
ohwhoa has joined #ruby
ohwhoa has quit [Client Quit]
<shevy>
:D
supergeek has quit [Client Quit]
<guardian>
yeah that's my idea as well, but I wanted to gather opinions
<guardian>
as for ERB in YAML... well it's a hack to workaround the lack of include directive
Lewix has joined #ruby
<shevy>
well it's quite simple, psych really does not give you an alternative.
<Hanmac1>
psych is that problem
<reactormonk>
guardian, fuck includes, just make a config directory
<shevy>
I have invalid yaml files, they work with syck, syck is available as gem
<guardian>
shevy: which I didn't know, so I'm glad you answered
<reactormonk>
and IIRC even windows supports file links, correct?
<shevy>
hey I did not know for a long time myself and hated this
<shevy>
because all my system config and personal config files I cleverly stored in yaml back then :\
<shevy>
then ruby generates all sorts of configuration files from that
poikon has joined #ruby
<reactormonk>
shevy, puppet?
<shevy>
then suddenly syck was gone and psych was added and nothing worked anymore
<guardian>
reactormonk: symlinks don't fly in my situation. I can't commit a symlink in git and expect it to become a windows symlink under windows
<shevy>
nah, all self written over the years
<shevy>
my first mistake was to depend on one-config-format-to-rule-them-all
<shevy>
but yaml can be so convenient, it's like a drug :)
yfeldblum has joined #ruby
<RubyPanther>
I thought psych added encoding support recently
<shevy>
really?
<shevy>
I don't follow its development too closely
<shevy>
that would be kinda cool haha
<reactormonk>
guardian, yeah, git isn't too great with windows and symlinks :-/
Speed has joined #ruby
<reactormonk>
not too sure if I need to add the symlinks part here.
yfeldblum has quit [Read error: Connection reset by peer]
<reactormonk>
or the part about git </rant>
yfeldblum has joined #ruby
poikon_ has joined #ruby
carraroj has joined #ruby
<shevy>
never stop a rant!
<shevy>
only add more <rant>s
<RubyPanther>
I depend on one config format to rule them all... SQL
<shevy>
I like my flat files :(
<reactormonk>
I prefer flat files in directories for ultimate git fun
<crome>
dmarr: I dont do any magic with ruby environment variables. gems are always installed under the current ruby directory which is used by rbenv
<shevy>
I am archaic... cd foo/; vim lalala.config (ok... lalala.yml)
<reactormonk>
or just good ol' elisp
poikon has quit [Ping timeout: 255 seconds]
_justin has quit [Quit: _justin]
<shevy>
ewwww
<RubyPanther>
I love flat files! only problem, my data is stringy and textured
<keeguon>
Hey guys I’m trying to combine net-ftp w/ openssl to connect to a remote FTPS using a defined certificate/key pair. In order to do this and avoid rewriting code I decided to use the following gem: https://rubygems.org/gems/double-bag-ftps. However whatever I do I run into the following error: "SSL_connect returned=1 errno=0 state=SSLv3 read server hello A: wrong version number”. Any ideas?
<shevy>
RubyPanther but sometimes you need to use () for method invocations
<RubyPanther>
sure but not for definition
shredding has joined #ruby
<RubyPanther>
I invoke with parens frequently, even when I don't have to... but never for definitions
<RubyPanther>
And in tenderlove's defense, most of his methods are correct lower-case Ruby style. visit_Encoding etc are in a form where you can say send( "visit_#{klass}" )
sski has quit [Ping timeout: 240 seconds]
bluehavana_ has joined #ruby
kaspergrubbe has joined #ruby
predator117 has joined #ruby
_justin has joined #ruby
francisfish has joined #ruby
JasmeetQA has quit [Read error: Connection reset by peer]
<workmad3>
Cork: I think you're right that it's due to the unless or if... IRB is probably parsing them out in order to determine when to evaluate multi-line input
<workmad3>
Cork: works fine in pry btw ;)
mehlah has joined #ruby
obs has joined #ruby
shredding has quit [Quit: shredding]
poguez_ has quit [Quit: Connection closed for inactivity]
fflush has joined #ruby
fflush has quit [Changing host]
fflush has joined #ruby
obs has quit [Client Quit]
nfk has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
njection has quit []
greenarrow has quit [Quit: 500]
maximski has joined #ruby
freerobby has joined #ruby
m0s^away is now known as m0s
andrewlio has quit [Quit: Leaving.]
Kuda has quit [Quit: Sleep]
Kuda has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
freerobby1 has joined #ruby
njection has joined #ruby
jxf has joined #ruby
habanany has joined #ruby
charlies_ has joined #ruby
Elhu has joined #ruby
njection has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
lkba has quit [Ping timeout: 268 seconds]
habanany has quit [Max SendQ exceeded]
ndrei has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
charliesome has quit [Ping timeout: 255 seconds]
teddyp1cker has joined #ruby
francisfish has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
freerobby1 has quit [Ping timeout: 240 seconds]
Kuda has quit [Ping timeout: 240 seconds]
bal has quit [Quit: bal]
angusiguess has joined #ruby
mansi has joined #ruby
tjr9898_ has joined #ruby
tulak has joined #ruby
chrisseaton has quit []
nuck has quit [Ping timeout: 240 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
teddyp1c_ has joined #ruby
carraroj has quit [Ping timeout: 240 seconds]
wald0 has joined #ruby
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
teddyp1__ has joined #ruby
kukyakya has joined #ruby
slawrence00 has joined #ruby
teddyp1cker has quit [Ping timeout: 268 seconds]
nuck has joined #ruby
slawrence00 has quit [Client Quit]
slawrence00 has joined #ruby
teddyp1c_ has quit [Ping timeout: 252 seconds]
yubrew has joined #ruby
teddyp1cker has joined #ruby
_Andres has joined #ruby
teddyp1__ has quit [Ping timeout: 240 seconds]
gaussblurinc has quit [Quit: Leaving.]
jottr_ has joined #ruby
fgo has joined #ruby
_Andres has quit [Read error: Connection reset by peer]
teddyp1c_ has joined #ruby
bahar has joined #ruby
yubrew has quit [Ping timeout: 268 seconds]
ndrei has quit [Ping timeout: 252 seconds]
claymore has quit [Ping timeout: 240 seconds]
teddyp1cker has quit [Ping timeout: 240 seconds]
flops has joined #ruby
spyderman4g63 has joined #ruby
claymore has joined #ruby
_Andres has joined #ruby
teddyp1c_ has quit [Ping timeout: 240 seconds]
andrewlio has joined #ruby
habanany has joined #ruby
habanany has quit [Max SendQ exceeded]
viscera has quit [Quit: viscera]
AlexRussia has joined #ruby
chichou has quit [Remote host closed the connection]
djbender has joined #ruby
FDj has joined #ruby
teddyp1cker has joined #ruby
Deele has joined #ruby
chuk has joined #ruby
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
sailias has quit [Ping timeout: 240 seconds]
deadlock has quit [Ping timeout: 240 seconds]
fflush has quit [Quit: fflush]
flops has quit [Ping timeout: 255 seconds]
flops_ has joined #ruby
Hanmac has joined #ruby
_Andres has quit [Read error: Connection reset by peer]
sputnik1_ has joined #ruby
FDj has quit [Ping timeout: 240 seconds]
Mongey has quit [Ping timeout: 240 seconds]
mengu has quit [Remote host closed the connection]
gerep has joined #ruby
Hanmac1 has quit [Ping timeout: 268 seconds]
mansi has quit [Ping timeout: 240 seconds]
atmosx has quit [Remote host closed the connection]
simono has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
dfranciosi has quit [Remote host closed the connection]
atmosx has joined #ruby
havenwood has joined #ruby
vt102 has joined #ruby
teddyp1cker has joined #ruby
dfranciosi has joined #ruby
mmochan_ has quit [Quit: Connection closed for inactivity]
arietis has quit [Quit: Computer has gone to sleep.]
<Hanmac>
hihi i found errors in rake and irb ;P
ndrei has joined #ruby
mansi has quit [Ping timeout: 252 seconds]
himsin has quit [Quit: himsin]
Lewix has joined #ruby
r_rios has joined #ruby
kennym has quit [Ping timeout: 268 seconds]
_sambao21 has quit [Quit: Computer has gone to sleep.]
platzhirsch has quit [Quit: Leaving.]
tkuchiki_ has joined #ruby
taf2 has joined #ruby
habanany has joined #ruby
habanany has quit [Max SendQ exceeded]
kennym has joined #ruby
havenwood has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby
sailias has joined #ruby
Hanmac1 has joined #ruby
peterellisjones has joined #ruby
platzhirsch has joined #ruby
_justin has quit [Quit: _justin]
mansi has joined #ruby
Hanmac has quit [Ping timeout: 255 seconds]
yacks has joined #ruby
havenwood has quit [Ping timeout: 240 seconds]
tkuchiki_ has quit [Remote host closed the connection]
sambao21 has joined #ruby
sambao21 has quit [Client Quit]
obs has joined #ruby
DouweM has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
nateberkopec has joined #ruby
arietis has joined #ruby
renklaf has joined #ruby
r_rios is now known as r_rios|work
<shevy>
I hate rewrites
mrmargolis has joined #ruby
yfeldblum has joined #ruby
zchrykng-work has joined #ruby
jlast has joined #ruby
yubrew has joined #ruby
dik_dak has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
maxmanders_ is now known as maxmanders
doodlehaus has joined #ruby
benzrf|offline is now known as benzrf
yubrew has quit [Ping timeout: 240 seconds]
zz_jrhorn424 is now known as jrhorn424
enebo has joined #ruby
_5kg has quit [Quit: WeeChat 0.4.3]
ndrei has quit [Ping timeout: 268 seconds]
krz has quit [Quit: WeeChat 0.4.3]
m0s is now known as m0s^away
ndrei has joined #ruby
newUser1234 has joined #ruby
kaspergr_ has quit [Ping timeout: 268 seconds]
kukyakya has quit [Remote host closed the connection]
_5kg has joined #ruby
kukyakya has joined #ruby
<keeguon>
hey guys do anyone of you know a little bit about the openssl lib?
pu22l3r_ has joined #ruby
<jhass>
just ask your question, don't try to find the right person to answer it first
Hanmac has joined #ruby
Morkel has quit [Ping timeout: 268 seconds]
Morkel has joined #ruby
jeregrine has joined #ruby
kukyakya has quit [Remote host closed the connection]
Hanmac1 has quit [Ping timeout: 268 seconds]
<keeguon>
well I have this tricky issue I’m able to connect to a remote FTPS server (not SFTP but FTP w/ SSL) using openssl s_client and setting the starttls to ftp but when I try to do the same in Ruby combining with the net-ftp lib it seems that the starttls command isn’t sent
chuk_ has joined #ruby
<keeguon>
which is a bit annoying so is there anyway to replicate what the starttls option of openssl s_client is doing using the openssl in ruby?
tjr9898_ has quit [Remote host closed the connection]
saarinen has joined #ruby
flowerhack has joined #ruby
rylev has quit [Remote host closed the connection]
phansch has quit [Quit: WeeChat 0.4.2]
chipotle has joined #ruby
arubincloud has joined #ruby
AlexRussia has quit [Read error: Operation timed out]
phantummm has quit [Quit: phantummm]
nateberkopec has quit [Quit: Leaving...]
linuxer1 has quit [Quit: linuxer1]
oo__ has quit [Remote host closed the connection]
<platzhirsch>
shevy: hah, never
<shevy>
you are excused
<shevy>
in london it is not good to go down with the pants
LadyRainicorn has quit [Quit: Bye]
oo_ has joined #ruby
pu22l3r_ has quit [Remote host closed the connection]
rudisimo has joined #ruby
pu22l3r has joined #ruby
<platzhirsch>
:o)
AlexRussia has joined #ruby
phantummm has joined #ruby
afreidah1 has joined #ruby
mary5030 has joined #ruby
havenwood has quit [Ping timeout: 240 seconds]
platzhirsch has quit [Quit: Leaving.]
platzhirsch1 has joined #ruby
oo_ has quit [Remote host closed the connection]
pu22l3r has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
dx7 has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Ping timeout: 240 seconds]
oo__ has joined #ruby
centrx has joined #ruby
jefflyne has quit [Ping timeout: 240 seconds]
andrewlio has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
gabrielCmendes has quit [Ping timeout: 268 seconds]
gabrielCmendes has joined #ruby
kimiamania|BNC is now known as kimiamania
renklaf has quit [Remote host closed the connection]
<thoraxe>
does anyone know if it is possible to observe the SELinux information about a file via File? I tried to google around for info but I am getting only results about selinux bothering ruby
ffranz has joined #ruby
dayepa has joined #ruby
<thoraxe>
stat doesn't seem to know/care about selinux
jefflyne has joined #ruby
teddyp1cker has quit [Read error: Connection reset by peer]
meatherly has joined #ruby
obs has quit [Quit: Konversation terminated!]
teddyp1cker has joined #ruby
<thoraxe>
well, i should say that File::Stat.new doesn't pull in that information, but the stat utility (at least on linux) seems to have the info
makara has quit [Quit: Leaving]
mansi has joined #ruby
oo__ has quit [Remote host closed the connection]
coderhs has joined #ruby
<hoelzro>
thoraxe: do an strace on stat to see what system calls it's using
tagrudev has quit [Remote host closed the connection]
pontiki has quit [Ping timeout: 268 seconds]
pontiki`` has joined #ruby
akemrir has quit [Quit: WeeChat 0.4.3]
soahccc has joined #ruby
mengu has quit []
<thoraxe>
rdark: looks like they use some Selinux thing but I'm not sure wehre it came from
rylev has joined #ruby
<thoraxe>
i'll dig deeper later
<thoraxe>
thanks all
duggiefresh has quit []
duggiefresh has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
dayepa has quit [Ping timeout: 240 seconds]
pontiki` has quit [Ping timeout: 268 seconds]
rylev has quit [Remote host closed the connection]
charlies_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Jonah11_ has joined #ruby
xcv has quit [Remote host closed the connection]
gemmy has joined #ruby
wjlafrance has joined #ruby
benzrf|offline is now known as benzrf
toastynerd has joined #ruby
_5kg has quit [Ping timeout: 255 seconds]
pwh has quit []
ndrei has quit [Ping timeout: 240 seconds]
pontiki`` is now known as pontiki
pu22l3r has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 240 seconds]
<benzrf>
ok ok
<benzrf>
yo DouweM u there
pu22l3r has joined #ruby
<DouweM>
ya
frem_ has joined #ruby
fgo has quit [Remote host closed the connection]
Jonah11_ has quit [Ping timeout: 240 seconds]
<benzrf>
DouweM: ideas n shit
<benzrf>
via bilbo_swagginz
havenwood has joined #ruby
ndrei has joined #ruby
<DouweM>
wat
<benzrf>
DouweM: in quick, make it so that starting a new quick instance creates an empty git repo in ~/.quicks or something
<benzrf>
then doing 'quick checkpoint' dumps the frozen state to that repo
<benzrf>
as well as dumping the dir structures
linuxer1 has joined #ruby
<DouweM>
I'd like that
<benzrf>
then you can use 'quick git <commands here>' to execute those commands on the repo and autoload the new stuff
snath has quit [Ping timeout: 240 seconds]
<benzrf>
i.e. 'quick git log'
newUser1234 has quit [Remote host closed the connection]
<benzrf>
'quick git checkout HEAD^^'
<benzrf>
after each git subcmd, if the repo was modified then load the frozen state from it as well as all of the code
<benzrf>
by dumping the code in addition to the state, you can merge branches
<benzrf>
you keep the newer prog state but merge the code
saarinen has quit [Quit: saarinen]
<benzrf>
[still planning on quick export of course]
cpruitt has quit [Quit: cpruitt]
<DouweM>
:)
klaut has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kevinykchan has joined #ruby
r_rios|work is now known as r_rios
yubrew has joined #ruby
rvraghav93 has joined #ruby
dyoko has joined #ruby
<benzrf>
DouweM: opinion on this mechanic:
agrinb has joined #ruby
<benzrf>
doing 'quick start <name>' will create or load the repo ~/.quicks/<name>
cpruitt has joined #ruby
Aquilo has quit [Remote host closed the connection]
Aquilo has joined #ruby
psyko666 has joined #ruby
<DouweM>
sounds all right to me
IcyDragon has joined #ruby
<arubincloud>
benzrf: Is there any documentation for quick?
ce_afk is now known as cescalante
IceDragon has quit [Ping timeout: 240 seconds]
newUser1234 has joined #ruby
cescalante is now known as ce_afk
rayners has joined #ruby
eynj has quit [Quit: Leaving.]
predator117 has quit [Ping timeout: 252 seconds]
Kricir has joined #ruby
pushpak has joined #ruby
evenix has joined #ruby
Jonah11_ has joined #ruby
lsmola_ has quit [Ping timeout: 240 seconds]
<benzrf>
arubincloud: not yet
mansi has quit [Ping timeout: 255 seconds]
thevishy has quit [Ping timeout: 255 seconds]
<benzrf>
(⊙ω⊙)
jottr_ has quit [Ping timeout: 240 seconds]
newUser1234 has quit [Remote host closed the connection]
<arubincloud>
A blog post? Anything?
predator117 has joined #ruby
joelbrewer has joined #ruby
<DouweM>
benzrf: just add a quick (hehe) description of the available commands to the readme, and/or link to a screencast
<benzrf>
arubincloud: the repo has a demo typescript
w|t is now known as jtz
sputnik1_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
qba73 has quit []
psyko666 has quit [Quit: Leaving]
Lewix has quit [Remote host closed the connection]
habanany has joined #ruby
Kricir_ has joined #ruby
r_rios has quit [Ping timeout: 240 seconds]
Kricir has quit [Ping timeout: 268 seconds]
habanany has quit [Max SendQ exceeded]
x77686d has joined #ruby
platzhirsch1 has quit [Quit: Leaving.]
jorts has joined #ruby
Vik-Thor has joined #ruby
<Vik-Thor>
hi
apeiros has quit [Remote host closed the connection]
tylersmith has quit [Remote host closed the connection]
apeiros has joined #ruby
tylersmith has joined #ruby
<Vik-Thor>
I use capibara for functional testing, and i just wanted to know if there was a function who recognize a string in a HTML tag?
monkegjinni has quit [Remote host closed the connection]
cpruitt has quit [Quit: cpruitt]
shabgard has joined #ruby
<j416>
Vik-Thor: not sure I understand what you are trying to say, but look at nokogiri
andy__ has joined #ruby
aganov has quit [Quit: Leaving]
mansi has joined #ruby
apeiros has quit [Ping timeout: 255 seconds]
tylersmith has quit [Ping timeout: 240 seconds]
obs has joined #ruby
toastynerd has quit [Remote host closed the connection]
platzhirsch has joined #ruby
cpruitt has joined #ruby
shabgard has quit [Client Quit]
<shevy>
benzrf told you! you should work on docu
<benzrf>
shevy: yeah w/e dude
Speed has joined #ruby
<shevy>
:D
gaussblurinc has quit [Quit: Leaving.]
Cache_Money has quit [Quit: Cache_Money]
lxsameer has joined #ruby
<DouweM>
Vik-Thor: yeah, capy can definitely do that. what are you looking for specifically?
jzig has joined #ruby
<DouweM>
j416: that's not relevant ;)
<Sou|cutter>
if you have the text of the tag just use a regex on it
IcyDragon is now known as IceDragon
mansi has quit [Ping timeout: 255 seconds]
<j416>
DouweM: alright. Didn't know capibara had a built-in parser.
fgo has joined #ruby
kevinykchan has quit [Read error: Connection reset by peer]
<Sou|cutter>
capybara...
ce_afk is now known as cescalante
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
m0s is now known as m0s^away
klaut has joined #ruby
Dizorder has joined #ruby
relix has joined #ruby
<fbernier>
Anyone knows if it's possible to use TracePoint to trace uncaught exceptions ?
relix has quit [Client Quit]
m0s^away is now known as m0s
jetblack has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
gchristensen has joined #ruby
<DouweM>
j416: yeah, the whole point is that you can talk to the document over Ruby. the HTML isn't just parsed, it's actually loaded in a (headless) browser
gchristensen has left #ruby ["WeeChat 0.4.1"]
jxf has quit [Ping timeout: 240 seconds]
<j416>
ok
Dizorder has quit [Client Quit]
tylersmith has joined #ruby
<j416>
crazy. :)
snath has joined #ruby
kevinykchan has joined #ruby
habanany has joined #ruby
Dizorder has joined #ruby
vt102 has joined #ruby
habanany has quit [Max SendQ exceeded]
SCommette has joined #ruby
fabrice31 has quit [Remote host closed the connection]
<DouweM>
j416: if you didn't know that, I wonder what you've been using Capybara for!
JacobHayes has quit [Remote host closed the connection]
kitak has joined #ruby
<jeregrine>
just trying to figure out whats the culprite since we cannot reporoduce in any other environment
nomenkun has quit [Remote host closed the connection]
<GreatSUN>
I have to implement a receiver that has to work with all the args and values there
x77686d has quit [Quit: x77686d]
<jhass>
GreatSUN: did you understand regular blocks and capturing them so far?
<GreatSUN>
jhass: never have been working with that
<DouweM>
jeregrine: again, from what to what does the format change?
<GreatSUN>
up to now
<GreatSUN>
;-)
nomenkun has joined #ruby
<GreatSUN>
jhass: some small intro url or such would be nice, if you have
<jhass>
GreatSUN: so you have no clue what yield does for example?
<GreatSUN>
jhass: oh, yield I know
<jeregrine>
from : 2014-04-02T22:00:02+00:00
<jeregrine>
to: yyyy-MM-dd HH:mm:ss Z
kidoz has joined #ruby
kennym has quit [Quit: Leaving.]
<GreatSUN>
jhass: but I never heard of regular blocks and never saw code like this in a normal ruby script before
benzrf|offline is now known as benzrf
xcv_ has quit [Ping timeout: 240 seconds]
<jhass>
GreatSUN: okay, so, you can capture a block to a proc with def somename(regular_args, &block); and pass a proc to a method with my_proc = proc { ... }; somename(regular_args, &my_proc)
<workmad3>
GreatSUN: if that's doing what I suspect, you're gonna want to look up instance_eval ;)
<DouweM>
jeregrine: you're sure that in both cases it's a Date object that's being serialized, and that it hasn't accidentally been saved as the second string representation in the DB?
Vik-Thor has quit [Quit: Lost terminal]
<benzrf>
quit
shevy has joined #ruby
<DouweM>
jeregrine: so you're absolutely sure it's actually the Date serialization changing?
gemmy has joined #ruby
<jhass>
GreatSUN: the thing you need to do for something like this to work is to change the execution context, so you'd implement a class that provides these methods and then run the block in the context of an instance of this class
benzrf is now known as benzrf|offline
hemanth has joined #ruby
Kricir has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 240 seconds]
<GreatSUN>
jhass: hmmm.. ok, I am not really sure that I completely understood everything now, but lemme try
aagdbl has joined #ruby
<jeregrine>
DouweM: one of the first things we checked.
<axl_>
In ruby, a Float can be initalized by passing a string argument to its class name, example: Float("1") …
habanany has quit [Max SendQ exceeded]
sigurding has quit [Ping timeout: 240 seconds]
<axl_>
is this an initalization pattern? where can I learn more about this?
<jhass>
GreatSUN: googling something like "building a ruby dsl" should give you tons of explanations and examples
<centrx>
axl_, Those are simply methods of Kernel
blackmesa has joined #ruby
<GreatSUN>
jhass: ok, I got it I think
<GreatSUN>
thanks a lot for your support
<DouweM>
jeregrine: all right. well, without all the information I doubt we're gonna have any idaes that you haven't already had. any more related code would be appreciated
<axl_>
centrx: I am new to ruby … not sure what 'methods of Kernal' mean
<workmad3>
axl_: Float("1") is calling the method 'Float', nothing to do with the class ;)
<jeregrine>
DouweM: yea I'm going to log everytime our action is called to show the source of the to_json moneky patch
xcv_ has joined #ruby
<DouweM>
jeregrine: as you mentioned, this is the first time this happens, so it's definitely something with your code, not some common rabl bug
<axl_>
awesome. thanks guys
<axl_>
i will look that up
<workmad3>
axl_: Float and Integer are sometimes referred to as 'constant methods' btw
<DouweM>
jeregrine: you shouldn't need the monkey patch at all
<workmad3>
axl_: when used as conversions
<jeregrine>
DouweM: hopefully -.- not the first confusing as hell bug I've run int
<axl_>
aaah … so it is special to Float and INteger
<jeregrine>
bug/behavior
<DouweM>
jeregrine: hehe
dblessing has quit [Ping timeout: 240 seconds]
dblessing_ is now known as dblessing
<axl_>
in other words, I should pursue writing similar methods for MyClass so that it gets initalized by something like MyClass("1")
xcv__ has joined #ruby
<DouweM>
jeregrine: I'm pretty familiar with the internals of Rabl, so if it does end up being something in there I may be able to help
toastynerd has quit [Remote host closed the connection]
<jeregrine>
so over rabl right now TBH
AlexRussia has joined #ruby
<jhass>
axl_: not really, you can do class MyThing; end; def MyThing; end; just well
blackmesa has quit [Client Quit]
<axl_>
i meant 'i should not pursue'
<jeregrine>
want to go back to mashing hashes together
subbyyy_ has joined #ruby
<axl_>
hmmmm… .
<DouweM>
jeregrine: hehe
mehlah has joined #ruby
<axl_>
k. i'll go read the docs you guys linked and get some theory. Thanks a bunch guys
Kricir has joined #ruby
ascarter has joined #ruby
<DouweM>
jeregrine: I love Rabl, but it does have a learning curve if you want to do anything more complicated than a flat hash of attribute values
kennym has joined #ruby
havenwood has quit [Remote host closed the connection]
<jeregrine>
learning curve or design flaw?
<jhass>
axl_: core uses them for conversions, personally I avoid adding such methods and prefer stuff like MyThing.from_x(..)
<DouweM>
jeregrine: :)
<DouweM>
jeregrine: It's definitely a design flaw if I needed to familiarize with the source to understand how to get what I wanted out of it
<axl_>
jhass: Thanks for your inputes
<axl_>
inputs*. That helps
shevy has quit [Ping timeout: 240 seconds]
<DouweM>
jeregrine: but I'm gonna make myself some dinner. Good luck, and I'll be back
<jeregrine>
thanks
nvrch has joined #ruby
Mon_Ouie has joined #ruby
nvrch has quit [Client Quit]
xcv_ has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
x77686d has joined #ruby
timonv has joined #ruby
mehlah has quit [Client Quit]
xcv__ has quit [Ping timeout: 240 seconds]
Bumptious has quit [Remote host closed the connection]
noop has quit [Ping timeout: 252 seconds]
cpruitt has quit [Quit: cpruitt]
timonv_ has joined #ruby
Kricir_ has joined #ruby
Kricir has quit [Ping timeout: 268 seconds]
Lewix has quit [Remote host closed the connection]
<snkcld>
if my http client is receiving an EOF, what would that mean exactly is happening?
<snkcld>
specifically it's excon receiving the EOF
Solnse has joined #ruby
jonmorehouse has joined #ruby
<jhass>
End Of File, you shouldn't expect more data and close the stream
<Hanmac>
apeiros: ! the usa use mIRC for controlling their drones ;P
mr_snowf1ake has joined #ruby
Xeago has quit [Remote host closed the connection]
GaryOak_ has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
<pontiki>
what do we do?
<centrx>
Do?
blackavr has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
<pontiki>
<Hanmac> apeiros: ! the usa use mIRC for controlling their drones ;P
pel_daniel has joined #ruby
<Hanmac>
i dont use mirc, i use pidgin ;P
<pontiki>
i use erc
Kricir has joined #ruby
<pontiki>
but i don't have any drones, either
xcv has joined #ruby
cpruitt has joined #ruby
<pontiki>
heck, i don't even have any minions
Kricir_ has quit [Ping timeout: 268 seconds]
francisfish has quit [Remote host closed the connection]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gemmy has quit [Quit: leaving]
wallerdev has joined #ruby
francisfish has joined #ruby
newUser1234 has joined #ruby
sigurding has joined #ruby
shredding has joined #ruby
toastynerd has joined #ruby
Slavox is now known as Slavox|AFK
mark_locklear has quit [Ping timeout: 240 seconds]
cpruitt has quit [Client Quit]
xcv has quit [Ping timeout: 252 seconds]
Kricir has quit [Ping timeout: 268 seconds]
mark_locklear has joined #ruby
Kricir_ has joined #ruby
shevy has joined #ruby
shredding has quit [Client Quit]
VTLob has joined #ruby
pel_daniel has quit [Ping timeout: 240 seconds]
kidoz has quit [Quit: Ухожу я от вас]
cgore has quit [Remote host closed the connection]
zigomir has quit [Remote host closed the connection]
bronson has joined #ruby
francisfish has quit [Ping timeout: 268 seconds]
jobewan has joined #ruby
blackavr has quit [Quit: blackavr]
davexunit has joined #ruby
pwh has joined #ruby
poikon has quit []
habanany has joined #ruby
habanany has quit [Max SendQ exceeded]
jlebrech has quit [Quit: Konversation terminated!]
<davexunit>
hello all, I'm having some misunderstanding about modules. I have a class Foo::Bar that I'm writing tests for. In my test, I define a class Foo::Baz. I have code in Foo::Bar that can take a symbol :baz and translate it into a reference to Foo::Baz. my test fails.
cpruitt has joined #ruby
shevy has quit [Ping timeout: 268 seconds]
kaspergrubbe has quit [Read error: Operation timed out]
<davexunit>
this works in the "real world", outside of my testing environment.
<banister>
davexunit you're not nearly giving enough information
blackavr has joined #ruby
Kricir_ has quit [Ping timeout: 240 seconds]
Slavox|AFK is now known as Slavox
<davexunit>
banister: allow me to elaboratel.
<davexunit>
s/elaboratel/elaborate/
<jhass>
davexunit: show code
maximski has quit []
<davexunit>
I am dynamically looking up a class in a module given a symbol.
newUser1234 has quit [Remote host closed the connection]
Celm has joined #ruby
x1337807x has joined #ruby
Kricir has joined #ruby
<wallerdev>
are you using const_get
fgo has joined #ruby
<centrx>
Who knows what he's doing, he needs to show code.
combusean has joined #ruby
<wallerdev>
centrx: you must be one of those people that skips to the last page of a mystery novel
<wallerdev>
ruins the fun
<wallerdev>
:p
<centrx>
davexunit, Did you turn it off and then on again?
horofox has quit [Read error: No route to host]
<davexunit>
centrx: don't jump on me so fast, I'm trying to get stuff together.
<workmad3>
davexunit: less backchat, more gisting!!!
<GreatSUN>
jhass, workmad3: thanks a lot, I understood it and it is working properly :-)
<certainty>
wallerdev: haha :)
TripTastic has joined #ruby
<workmad3>
wallerdev: why buy the novel when you can read the synopsis and the solution on wikipedia?
afreidah1 has quit [Ping timeout: 268 seconds]
mary5030 has quit [Read error: Connection reset by peer]
<davexunit>
workmad3: working on it. it won't be a gist, though.
mary5030 has joined #ruby
jollyy has quit [Quit: jollyy]
<workmad3>
wallerdev: also, if the only reason to read the book is because of one unknown, and nothing to do with good, solid writing or decent characters... why did you buy it? ;)
duggiefresh has quit [Remote host closed the connection]
<certainty>
workmad3: damn you can take every comment and make it so that the one that made it feels bad
<davexunit>
I have to write a simple example that demonstrates the issue without having to know everything about the application it's part of.
<workmad3>
certainty: you really think that little of me? and that I could be that malicious and conniving? :(
TripTastic has left #ruby [#ruby]
<certainty>
workmad3: i should've seen that one coming. Now i feel bad :p
fgo has quit [Ping timeout: 268 seconds]
<workmad3>
certainty: :D
Kricir has quit [Ping timeout: 255 seconds]
dtcrshr has joined #ruby
ce_afk is now known as cescalante
<pontiki>
i think he thinks that *much* of you, not that *little*
Kricir has joined #ruby
himsin has joined #ruby
roolo has quit [Read error: Connection reset by peer]
roolo has joined #ruby
habanany has joined #ruby
habanany has quit [Max SendQ exceeded]
roolo has quit [Client Quit]
p8952 has quit [Quit: Leaving]
razrunelord has joined #ruby
<workmad3>
pontiki: bah, stop ruining my fun :)
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrhe has joined #ruby
m0s^away is now known as m0s
<pontiki>
now i feel bad
<pontiki>
you win! \o/
nisstyre has quit [Remote host closed the connection]
<pontiki>
oh wait:
<workmad3>
woo!!! what do I win!
aagdbl has quit [Quit: This computer has gone to sleep]
<pontiki>
workmad3: </sarcasm>
Stalkr_ has joined #ruby
Lewix has joined #ruby
tylersmith has joined #ruby
<workmad3>
pontiki: bah, if you had feelings for random electrons on the internets, you'd have felt bad :P
papercode1 has joined #ruby
papercode1 has quit [Client Quit]
<pontiki>
i have no feelings for electrons, can't even feel them bounce off
scarolan has joined #ruby
shevy has joined #ruby
angusiguess has quit [Disconnected by services]
<RubyPanther>
In the old days of the Cathedral, the Words of Code were Sacred. Help with the Sacred Code was always reduced to foo and bar, so as to not offend the Temple Builders. In the post-post-modern world of Ruby, you're expected to have deconstructed all that already, and be trying to put the pieces together into something simple. It is no longer sacred, and foo and bar have become maligned and out of work. Now people expect to look directl
<RubyPanther>
y at your pile of broken bricks to tell you what went wrong.
papercode has quit [Remote host closed the connection]
cpruitt has quit [Quit: cpruitt]
mrnugget has quit [Quit: mrnugget]
jbueza has quit [Ping timeout: 268 seconds]
papercode has joined #ruby
mjs2600 has joined #ruby
sigurding has quit [Ping timeout: 240 seconds]
zigomir_ has joined #ruby
<GreatSUN>
ahhh foo bar!
<GreatSUN>
I love foo and bar
nitish has joined #ruby
siwica has joined #ruby
<GreatSUN>
and in german you get "furchtbar" :D
<QKO_>
barfoo
<combusean>
i love it when you end up using baz and bat because foo and bar are taken
<pontiki>
after foo, bar, baz, you're supposed to use quux
<jhass>
foo bar are great for writing context less examples
brucelee_ has quit [Ping timeout: 240 seconds]
<jhass>
they're horrible to explain problems
zigomir_ has quit [Remote host closed the connection]
<GreatSUN>
jhass: mostly, yes
<combusean>
quux?
<jhass>
since problems tend to depend on context
<GreatSUN>
matters on complexity
<combusean>
hmmm
aagdbl has joined #ruby
sigurding has joined #ruby
<GreatSUN>
jhass: you know what "furchtbar" in german means?
<jhass>
I'm german ,)
zigomir_ has joined #ruby
<GreatSUN>
jhass: ahhh nice :-)
<jhass>
(and no, I don't think they sound alike)
Slavox is now known as Slavox|AFK
hemanth has quit [Quit: This computer has gone to sleep]
zigomir_ has quit [Remote host closed the connection]
pu22l3r has joined #ruby
cj3kim has quit [Remote host closed the connection]
keeguon has quit [Quit: keeguon]
siwica has quit [Ping timeout: 240 seconds]
enebo has quit [Quit: enebo]
Jon30 has joined #ruby
Jon30 has quit [Changing host]
Jon30 has joined #ruby
zigomir has joined #ruby
dstynchu_ has joined #ruby
tesuji has quit [Ping timeout: 252 seconds]
Jonah11_ has quit [Ping timeout: 240 seconds]
timonv_ has quit [Remote host closed the connection]
michaeldeol has joined #ruby
aagdbl has quit [Quit: Leaving]
Zai00 has quit [Quit: Zai00]
afreidah1 has joined #ruby
pu22l3r has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pu22l3r has joined #ruby
<GaryOak_>
they should use iron man to promote ruby, they're the same color
<certainty>
i once read a piece of C sources where the variables had names like, banana and diaper
claymore has quit [Ping timeout: 268 seconds]
pfg has joined #ruby
dstynchula has quit [Ping timeout: 240 seconds]
cj3kim has joined #ruby
<jhass>
probably still better than all the single letter stuff
<certainty>
oh that was in there too
<GaryOak_>
everyone should start metaphorically naming variables
dblessing has quit [Remote host closed the connection]
dblessing has joined #ruby
arietis has joined #ruby
<certainty>
meta-names?
<RubyPanther>
mine are: foo bar baz bing bong omg wtf
cj3kim has quit [Remote host closed the connection]
<certainty>
RubyPanther: heh ordered with the level of frustration in the moment you use them? :)
habanany has joined #ruby
* combusean
hearts metasyntactic variables
keen_ has left #ruby [#ruby]
karmatr0n has joined #ruby
<GaryOak_>
it would let people know where difficult parts of the code are
<RubyPanther>
certainty: if I get to help_im_trapped_in_a_bug then I'll throw it all away and write tests instead
sambao21 has quit [Read error: Connection reset by peer]
Lewix has quit [Remote host closed the connection]
habanany has quit [Max SendQ exceeded]
jamto11 has joined #ruby
subbyyy_ has quit [Ping timeout: 240 seconds]
Czupa has joined #ruby
sambao21 has joined #ruby
agjacome has quit [Remote host closed the connection]
peterellisjones has quit [Quit: Leaving.]
davy_ has joined #ruby
<certainty>
RubyPanther: good plan. I usually have tests like it "helps me when i'm trapped in a bug" ...
<certainty>
not
<GreatSUN>
RubyPanther: hmmm... I got a lot of workarounds instead :D
lkba has joined #ruby
<RubyPanther>
GreatSUN: I don't need tests because I know what the workarounds were, and somebody else... isn't me! They can write the tests if they need them. I still remember what the code does.
thrillagorilla has joined #ruby
Kricir has quit [Remote host closed the connection]
jxf has joined #ruby
<GreatSUN>
RubyPanther: ahhh, you write tests to get to know what bug you found
<GreatSUN>
sorry, missunderstood you though
toastynerd has joined #ruby
zigomir has quit [Remote host closed the connection]
<RubyPanther>
If I know I found a bug but I'm not sure what it is... for most people that would be a test problem. For me that would imply an architecture rewrite.
zigomir has joined #ruby
<certainty>
at least it's an indicator that there is something wrong. In the end, when all your shiny tests have passed and you app still misbehaves you need to be able to actually understand the system and debug
<LastWhisper>
with the space within the optional params
<LastWhisper>
it doesnt work for me
<LastWhisper>
well, doesn't work.. in rubular
<LastWhisper>
:P
tobago has joined #ruby
newUser1234 has quit [Remote host closed the connection]
agrinb has quit [Quit: Leaving...]
<RubyPanther>
dmarr: usually that means you only added to PATH and didn't do eval "$(rbenv init -)"
dkamioka has joined #ruby
Kricir has quit [Ping timeout: 240 seconds]
<centrx>
LastWhisper, It sure seems to work in Rubular
agrinb has joined #ruby
<LastWhisper>
oh? shouldn't the 123 show up at the end>?
fgo has quit [Ping timeout: 240 seconds]
siwica has joined #ruby
<dmarr>
RubyPanther: good to know. I'll check the syntax but I do remember adding that.. even was inspecting the output of that init command
<RubyPanther>
dmarr: sometimes people put in the wrong file for their system, I recommend using ~/.profile because it should always get run. The other ones only get run in certain conditions.
nitish has joined #ruby
arietis has joined #ruby
Kricir has joined #ruby
<dmarr>
yep, thats what I use
<LastWhisper>
oh wait
<LastWhisper>
im a dumbass
<LastWhisper>
hang on
<terrellt>
Anyone seen ruby scripts slow down because you're puts-ing to the console?
<LastWhisper>
lol wow im an idiot
<RubyPanther>
terrellt: no
<LastWhisper>
haha thanks
nitish has quit [Client Quit]
lxsameer has quit [Quit: Leaving]
nitish has joined #ruby
nitish has quit [Changing host]
nitish has joined #ruby
davy_ has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 252 seconds]
<RubyPanther>
terrellt: is it highly unlikely that puts is going to cause an IO bottleneck. I would check everything else first. And by everything, I'm including the Martian invasion.
<Jamo>
I'v seen aleast in Java that if you print a lot the script will be slower
<Jamo>
ans I bet its the same in Ruby
<Jamo>
but it shouldn't matter unless you have huge datasets you will print
kaspergrubbe has joined #ruby
* combusean
tests this
<RubyPanther>
Ruby uses the print functions from the C stdlib
Kricir has quit [Read error: Connection reset by peer]
noop has joined #ruby
* combusean
manages to crash vi in the process
<combusean>
fuck i have the worst luck
davy_ has joined #ruby
<centrx>
It sure seems slower to use puts
Kricir has joined #ruby
<centrx>
probably waits on IO for terminal
<RubyPanther>
printing to an IO is not going to slow down the code before and after. The print calls themselves will be slow if you're printing a huge amount to a console, or other slow IO. If you're printing in a tight loop, that can be slow enough to notice. But the code after runs normal speed.
<LastWhisper>
okay
<LastWhisper>
this is what i was worried about centrx Jamo
<LastWhisper>
jhass: what does the ? on the 2nd arg mean ?
<jhass>
non-greedy
Kricir_ has quit [Remote host closed the connection]
<LastWhisper>
hmm can you explain that like i'm a 5 year old
shredding has quit [Client Quit]
Kricir has joined #ruby
<LastWhisper>
like it was taking up the rest of the arg previously?
<LastWhisper>
does non-greedy mean it's optional?
<jhass>
insteading of taking at much as it can it takes as less as it can
x1337807x has quit [Ping timeout: 240 seconds]
<RubyPanther>
I'd tell a 5yo, "don't worry, you can read the manual when you're older."
<wallerdev>
haha
teddyp1cker has joined #ruby
tjr9898 has quit [Remote host closed the connection]
<wallerdev>
.+ will match the rest of the string and not try to match anything after it if you dont use the ?
<jhass>
LastWhisper: the sane and robust solution would be to drop the .+ for more specific versions, but I can't tell the possible values from that example
<Hanmac>
shevy: yeah they use the evil program mIRC for that ;P
<BraddBitt>
wallerdev if you don't mind me asking, are you in school or work?
<wallerdev>
work
<wallerdev>
in SF
sambao21 has quit [Quit: Computer has gone to sleep.]
nitish has quit [Remote host closed the connection]
aspires has joined #ruby
<BraddBitt>
ah, nice. I'm in SF too. I only ask because you've been particularly knowledgeable and helpful with my questions
<wallerdev>
oh cool where at?
arianit has quit [Quit: Leaving]
<BraddBitt>
recent AppAcademy grad
<BraddBitt>
so like, mid-market (unfortunately)
arietis has quit [Quit: Computer has gone to sleep.]
rezzack has joined #ruby
afreidah1 has joined #ruby
<advorak>
I am trying to understand why the variable "letters" isn't understood in my code (I'm sure it has something to do with scope, but why it's not working I don't understand ...) https://gist.github.com/advorak/9980951
ndrei has quit [Read error: Operation timed out]
<wallerdev>
haha
george2 has quit [Remote host closed the connection]
<wallerdev>
im at 989 market
sambao21 has joined #ruby
kennym has quit [Quit: Leaving.]
snezhi has joined #ruby
<shevy>
what does this mean
<shevy>
sex against money?
poguez_ has quit [Quit: Connection closed for inactivity]
<BraddBitt>
oh wow, you're super close to me then. I'm at 1061
<shevy>
and why are you folks all in SF
DouweM has quit [Read error: Connection reset by peer]
<combusean>
I live in Parkmerced =)
<wallerdev>
all the cool people in SF shevy
snezhi has left #ruby [#ruby]
<combusean>
well
<advorak>
#sfcastro
<shevy>
yeah I am beginning to see that wallerdev
randomnick_ has quit [Quit: Leaving]
<shevy>
but the town scares me, it's built on a frigging hill
<BraddBitt>
ahaha
Riking has joined #ruby
<combusean>
work at main and mission
Riking has quit [Excess Flood]
<wallerdev>
market st / soma area is pretty flat
<BraddBitt>
did you go to SFSU combusean ?
<combusean>
nope
<combusean>
maybe someday
Riking has joined #ruby
Riking has quit [Excess Flood]
DouweM has joined #ruby
Soda has quit [Remote host closed the connection]
<combusean>
just needed an apartment in SF and I had requirements
<BraddBitt>
ah I see
<BraddBitt>
I'm not particularly fond of living that far out
Riking has joined #ruby
Riking has quit [Excess Flood]
timonv has joined #ruby
<combusean>
yeah i hate it
<hooper>
the outer richmond is nice
Guest54003 has joined #ruby
Guest54003 has quit [Excess Flood]
<shevy>
who is hooper now
<combusean>
the dirty 8 tho
<shevy>
there are like a million SF folks popping out of nowhere
<wallerdev>
lol
Lewix has joined #ruby
<wallerdev>
SF meetup in #ruby
riking_ has joined #ruby
riking_ has quit [Excess Flood]
ndrei has joined #ruby
* combusean
ships shevy out from wherever he is out to SF.
Ziarkaen has joined #ruby
<certainty>
SF?
riking_ has joined #ruby
riking_ has quit [Excess Flood]
<combusean>
san francisco
Spami has quit [Quit: This computer has gone to sleep]
<wallerdev>
hes across the world
<certainty>
ah, alright
<combusean>
oh well, he'll adjust
<BraddBitt>
advorak is that end on line 7 premature?
<BraddBitt>
or one of them on line 11/12
riking_ has joined #ruby
riking_ has quit [Excess Flood]
riking_ has joined #ruby
riking_ has quit [Excess Flood]
<v0n>
do you guys have an idea of an unicode character that makes think about a CPU?
<BraddBitt>
well I guess now is an appropriate time to ask, does anyone know any quality SF ruby/rails/js/cs theory meetups ?
<BraddBitt>
v0n cpu like processor chip or cpu computer?
<combusean>
BraddBitt, does that mean there are bad ones in the city?
mary5030 has quit [Read error: Connection reset by peer]
riking_ has joined #ruby
<wallerdev>
theres a women's javascript conference held here every wednesday i think
mary5030 has joined #ruby
<BraddBitt>
I wouldn't doubt it. I've never been to any but I can't imagine they are all amazing
<combusean>
eh
<BraddBitt>
im particularly interested in a cs theory meetup
<v0n>
BraddBitt: processor
<combusean>
they're usually good places to drink and eat and socialize
Solnse has joined #ruby
<combusean>
sometimes for free
<combusean>
often for free
DouweM has quit [Read error: Operation timed out]
<BraddBitt>
i doubt it v0n. Can you use a glyphicon or vector image instead?
Hobogrammer has quit [Quit: WeeChat 0.4.3]
<BraddBitt>
that's what I've heard combusean
<BraddBitt>
plus network and find me a jobby joby
<BraddBitt>
s/joby/job
DouweM has joined #ruby
<combusean>
the market's tough
<advorak>
BraddBitt, It is not premature. I reposted this question to #ruby after realizing it was a ruby question after posting it to #rubyonrails .. right now I'm getting help there :-) sorry for the trouble ..
<combusean>
for there being a lot of demand
<combusean>
not knowing ruby is enough
<wallerdev>
its not that tough
<v0n>
BraddBitt: I'm not familiar with glyphicon :s it's meant to use with a standard font such as DejaVu
<wallerdev>
just send out some applications haha
<combusean>
you need mobile or ops or scaling and usually have to have a solid CS fundamentals
codeurge has joined #ruby
<advorak>
BraddBitt, There were really nice Ruby meetups in Baltimore and DC when I lived there through March last year ... There needs to be similar-quality ones here in SF, definitely ..
<combusean>
wallerdev, in SF it's very tough, esp if you don't have a CS degree and aren't an ad nauseum expert at stuff
saarinen has quit [Quit: saarinen]
<wallerdev>
oh he doesnt have a CS degree?
Lewix has quit [Ping timeout: 268 seconds]
<combusean>
i don't.
<BraddBitt>
i never finished my degree
mark_locklear has quit [Read error: Operation timed out]
<wallerdev>
do you have any projects you can talk about
<BraddBitt>
i started my job search on monday though and I already have a few phone and technical interviews lined up
<wallerdev>
like open source something or other
<BraddBitt>
of course
<BraddBitt>
my github is quite populated
<wallerdev>
then you'll be fine
<BraddBitt>
in ruby, js, java, python, etc
mark_locklear has joined #ruby
<BraddBitt>
well assuming I don't blow the tech interviews ( ≖‿≖)
<combusean>
java programmers interview you and they expect you to know binary search trees and linked lists and all sorts of sort algos that you'll never deal with in ruby.
cocotton_ has quit [Remote host closed the connection]
kennym has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
<RubyPanther>
All that stuff makes me glad that it doesn't matter because we really duck type :)
<DouweM>
hehe
dkamioka_ has joined #ruby
<certainty>
still few opjects respond to #duck? :(
sepp2k has joined #ruby
<BraddBitt>
must not be a duck then ( ≖‿≖)
<certainty>
objects
<certainty>
damn
<certainty>
could be some other bird
<certainty>
a combinator bird maybe
yokel has joined #ruby
nicoulaj has joined #ruby
<RubyPanther>
if you're worrying what kind of bird it "really" is, the duck already died
phutchins has quit [Ping timeout: 268 seconds]
cj3kim has quit [Remote host closed the connection]
<Squarepy>
shrodingers duck
dgarstang has quit [Ping timeout: 252 seconds]
<certainty>
if it smells like a dead duck it probably is a dead duck
<RubyPanther>
right, we don't know if you're duck typing until you do it... there is no declaration
dkamioka has quit [Ping timeout: 240 seconds]
nanoyak has joined #ruby
rdark has quit [Quit: leaving]
Cheets-X has left #ruby ["Leaving"]
<certainty>
duck typing is just a synonym for hunt & peck
GaryOak_ has quit [Remote host closed the connection]
teddyp1cker has quit [Remote host closed the connection]
<noob101>
Hey I have a question.
<certainty>
does it involve ducks of some kind?
nanoyak has quit [Read error: Connection reset by peer]
<noob101>
I am trying to clean my lenovo computer clean, what channel should I go to for that?
cocotton has joined #ruby
nanoyak has joined #ruby
DEA7TH has quit [Ping timeout: 240 seconds]
<certainty>
#java
Hanmac1 has joined #ruby
donnoc has joined #ruby
<shevy>
#php
<BraddBitt>
he said clean, not destroy
deg- has left #ruby [#ruby]
Hanmac has quit [Ping timeout: 240 seconds]
pel_daniel has joined #ruby
dyoko has quit [Ping timeout: 240 seconds]
<certainty>
#basic as he wanted to goto there
<Squarepy>
#burn
<shevy>
#die
<noob101>
What channel should I go to, any suggestions please?
<noob101>
Hi shevy!
<cout>
noob101: have you tried windex?
<shevy>
noob101 eh
<shevy>
go use linux man
<noob101>
What is windex?
<Squarepy>
noob101, #linux , please insert live cd -> overwrite HD -> yes, byebye windows
<cout>
noob101: the blue stuff in the spray bottle
<shevy>
windows hates you noob101
<noob101>
Linux, hmm. I don't know. Everyone is telling me to switch to windows.
<noob101>
I mean linux
<noob101>
See I am thinking about windows
<certainty>
they really mean amiga os
<noob101>
I used it since I was a child.
<Squarepy>
mike os
<cout>
noob101: you can try linux inside a vm if you want to experiment with it
<certainty>
or a vm inside linux
<certainty>
works both ways
<BraddBitt>
or live boot
<lupine>
linux fte
<noob101>
But what channel would help me clean my computer?
<lupine>
ftw*
Ziarkaen has quit [Remote host closed the connection]
carraroj has quit [Quit: Konversation terminated!]
<certainty>
noob101: it depends on your operating system and the current phase of the moon
<BraddBitt>
noob101 you mean clean up the software or physically clean the inside?
elaptics is now known as elaptics`away
<noob101>
Windows.
<BraddBitt>
i think a google search would be more helpful
<noob101>
BraddBitt, I am trying to start my computer from scratch like when I first got it
aspires has quit []
donnoc has quit [Ping timeout: 240 seconds]
<BraddBitt>
get spybot S&D, hijack this, clean up the startup processes, delete old files/folders, remove unused programs
<noob101>
Bradd, I did that but there are so many types of computers and different operations that I am not familiar with
<noob101>
I don't want to do an operation then mess up my only desktop.
Megtastique has joined #ruby
maximski has joined #ruby
brunops has joined #ruby
<noob101>
I already messed up my laptop yesterday it has a black screen and can't boot into windows. :(
<BraddBitt>
combusean if i make my dice.com profile "Searchable" is that basically saying "spam me please"
mattmcclure has joined #ruby
<lupine>
your local computer shop will be pleased to charge you a small fortune to help
maximski has quit [Max SendQ exceeded]
<BraddBitt>
noob101 start with basic virus scan
<BraddBitt>
actually lets take this to PM
<combusean>
BraddBitt, it's making you searchable to recruiters that have paid for dice membership
<BraddBitt>
so... yes
<BraddBitt>
( ≖‿≖)
<combusean>
you WANT to be spammed when you're looking for a job
lmickh has joined #ruby
x1337807x has joined #ruby
<BraddBitt>
eh, true
<combusean>
recruiters are your best friend when you're unemployed and your worst enemy when you're working
<BraddBitt>
haha
<BraddBitt>
alright
maximski has joined #ruby
<BraddBitt>
good advice
<RubyPanther>
noob101: step 1: download linux "livecd" step 2: click something with words like "install to disk" step 3: when the installer asks about your hard drive, tell it to format. That will start you over fresh and new. step 4: click Next until done
carraroj has joined #ruby
donnoc has joined #ruby
<RubyPanther>
recruiters are _always_ evil.
timonv has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
<RubyPanther>
recruiters do NOT help you get a job, they help you get your resume into the first round of selection... right where it starts if you apply directly to companies you want to work for
<noob101>
RubyPanther, I don't want Linux though. I don't feel comfortable. Thank you though for the advice.
Megtastique has quit [Client Quit]
<RubyPanther>
if you need a special OS to "feel comfortable" you should just "get over it" and stop being scared of computers.
kennym has quit [Quit: Leaving.]
x77686d has joined #ruby
chrisseaton has joined #ruby
Nukepuppy has quit [Ping timeout: 240 seconds]
randomnick_ has joined #ruby
klaut has joined #ruby
<RubyPanther>
it is just applications, even the interfaces are all the same, eg, you get interfaces from frameworks not OSes. and applications it shouldn't matter if it is an Apple ][, an Amiga, Windows 3.11 with Win32s extensions, or linux
havenwood has joined #ruby
mehlah has joined #ruby
SHyx0rmZ has joined #ruby
carraroj has quit [Remote host closed the connection]
jxf has quit [Ping timeout: 240 seconds]
davy_ has joined #ruby
Megtastique has joined #ruby
Hanmac1 has quit [Ping timeout: 252 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
habanany has joined #ruby
jkamenik has joined #ruby
carraroj has joined #ruby
habanany has quit [Max SendQ exceeded]
pwh has joined #ruby
nanoyak has quit [Read error: Connection reset by peer]
Musashi1 has joined #ruby
davy__ has joined #ruby
Musashi1 has quit [Client Quit]
nanoyak has joined #ruby
arubincloud has quit []
Spami has joined #ruby
nomenkun has joined #ruby
dx7_ has joined #ruby
sigurding has quit [Quit: sigurding]
rm_ has joined #ruby
frewsxcv has joined #ruby
donnoc has quit [Ping timeout: 240 seconds]
davy_ has quit [Ping timeout: 240 seconds]
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<BraddBitt>
which is the more expensive operation: read random line from file or read random row from DB? The file, right?
donnoc has joined #ruby
kennym has joined #ruby
rm_ has quit [Ping timeout: 255 seconds]
<shevy>
I think it may depend on the size
<DouweM>
depends on your definition of "random", whether you have any DB indexes in place and whether the DB or file are already loaded into memory, but generally I'd say yeah, the file.
<iitywimwybmab>
BraddBitt: not sure that's enough info to say
<DouweM>
+1 shevy, size matters as well
Hanmac has joined #ruby
<shevy>
yeah man, girls taught me that
<DouweM>
:)
jackyalcine has quit [Excess Flood]
<BraddBitt>
lets assume we are storing text (varchar 255 in the db), no indexes, 1 block of text per line in file/row in db
<BraddBitt>
equal length
dorei has joined #ruby
chichou has quit [Remote host closed the connection]
timonv has joined #ruby
<shevy>
well I would hope that the database is faster
<shevy>
I am absolutely sure it is faster the more and more data it has stored, compared to the same information stored in flat files
<BraddBitt>
right
<shevy>
but who knows, perhaps you have a quadrilcore CPU and a few trillion gigabytes of RAM
<BraddBitt>
ok
<DouweM>
with the file, you'd still have to read the entire file and then get the rand() line you're looking for, with the DB you'll be able to access it randomly
dblessing has quit [Quit: dblessing]
<BraddBitt>
hmm
<shevy>
perhaps he just uses seek to set a position
<BraddBitt>
im deciding the most efficient way to build markov chains
<DouweM>
are you looking for random or arbitrary?
<shevy>
you know I have no idea what I am talking about
<shevy>
because I never had to do any of that :)
<BraddBitt>
but i think doing 5-10 database reads to build a chain could be expensivee
<shevy>
markov
<shevy>
sounds russian
<DouweM>
in any case, the DB performance will be increased by using indexes, no such thing with plain text files
CaptainJet has joined #ruby
brunops has quit [Read error: No route to host]
<BraddBitt>
maybe a better solution is to hold a buffer of the last n lines written in memory, and use that to build the chains
<DouweM>
but who the hell cares if we're talking < a million lines or so
<DouweM>
your bottleneck will probably be Ruby anyway
<BraddBitt>
heh
<BraddBitt>
true
Es0teric has quit [Ping timeout: 240 seconds]
<selina345>
i keep getting readline errors in ROR on ubuntu
<BraddBitt>
can you post the erroR?
<BraddBitt>
error*
<RubyPanther>
BraddBitt: unless the file has fixed-length lines, you have to read the whole file up to the record, the database can short-circuit each row if you're testing for a condition. So the "random" case is not really a good sample... testing random rows against a string is a more realistic case, and the db is faster at that point even without indexes
<BraddBitt>
I see...
<dorei>
DBs usually use b-trees, right?
<certainty>
you could also map the file to memory
<BraddBitt>
i think i'll circumvent this whole problem and store the last 500 or so lines in memory
<RubyPanther>
with an index the db is always faster, of course
<DouweM>
dorei: that's one of multiple options for indexes, sure
brunops has joined #ruby
<BraddBitt>
plus, that ensures a somewhat "fresh" markov chain each time
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
<RubyPanther>
The thing is, any disk that is used frequently, _including_ the db files, will be in your OS cache already
<BraddBitt>
ah
ascarter has joined #ruby
<RubyPanther>
So it is a lot easier to slow that down that speed it up :) even using a ram disk
<RubyPanther>
but I'd use a RAM disk before memory-mapping a file, because it is generic and doesn't push your optimization onto your other code
RaptorJesus has quit [Ping timeout: 268 seconds]
donnoc has quit [Ping timeout: 252 seconds]
<selina345>
Could not find gem 'rb-read\-line (~> 0.4.2)
zigomir has joined #ruby
<selina345>
in the gems available on this machine
<selina345>
BraddBitt
<BraddBitt>
did you bundle install?
<selina345>
bundle install what?
<selina345>
i was trying to bundle install --without production
<BraddBitt>
run the command `bundle install`
cocotton has quit [Remote host closed the connection]
<BraddBitt>
oh
<selina345>
and it keeps giving me that message
tesuji has joined #ruby
<BraddBitt>
can you post the line in your gemfile that has that gem name?
saarinen has quit [Quit: saarinen]
chuk has joined #ruby
dkamioka_ has quit [Remote host closed the connection]
<wallerdev>
selina345: are you on windows?
Lewix has quit [Remote host closed the connection]
<wallerdev>
lol
<selina345>
ubuntu
<wallerdev>
why are you using a readline gem then
<certainty>
no love for rlwrap
<BraddBitt>
yeah, ruby has a built in File class with #readlines method
<BraddBitt>
if that is what you're ater
<BraddBitt>
after
<thoraxe>
can someone take a look at: https://github.com/thoraxe/lambchop -- when I call "Lambchop.dsl("/some/file", :selinux => true)" I get: NoMethodError: undefined method `selinux_stanzas' for Lambchop::Parser:Class
dtcrshr has quit [Remote host closed the connection]
<BraddBitt>
thoraxe should selinux_stanzas be a class or instance method?
<thoraxe>
BraddBitt: class method, which i guess means it needs to be def self.selinux_stanzas ?
<BraddBitt>
: )
<thoraxe>
i suppose it could be an instance method, but i'm not sure on what instance it would be called
<BraddBitt>
right
<BraddBitt>
try it out and report back
yalue has quit [Quit: Leaving]
MattStratton has joined #ruby
<thoraxe>
there won't bea new
MattStratton has quit [Max SendQ exceeded]
<BraddBitt>
exactly
nateberkopec has quit [Quit: Leaving...]
dunix has quit []
sambao21 has quit [Quit: Computer has gone to sleep.]
dtcrshr has joined #ruby
mikepack has quit [Ping timeout: 268 seconds]
timonv has quit [Remote host closed the connection]
hfp is now known as hfp`away
maximski has quit []
arietis has joined #ruby
saarinen has quit [Quit: saarinen]
keeguon has joined #ruby
phansch has quit [Quit: WeeChat 0.4.2]
mark_locklear has quit [Quit: Leaving]
brucelee has quit [Ping timeout: 240 seconds]
Mon_Ouie has quit [Quit: WeeChat 0.4.3]
SCommette has quit [Quit: SCommette]
chichou has joined #ruby
arietis has quit [Ping timeout: 252 seconds]
havenwood has quit [Remote host closed the connection]
mib_mib has joined #ruby
havenwood has joined #ruby
sigurding has joined #ruby
SHyx0rmZ has quit [Ping timeout: 268 seconds]
<BraddBitt>
wow combusean already cintacted by a recruiter
Musashi1 has joined #ruby
<BraddBitt>
in less than an hour
<combusean>
:)
<combusean>
good luck out there Bradd
sigurding_ has joined #ruby
Musashi1 has quit [Client Quit]
<BraddBitt>
thanks
sdegutis has joined #ruby
codabrink has quit [Ping timeout: 255 seconds]
carraroj has quit [Quit: Konversation terminated!]
mrmargolis has quit []
GaryOak_ has quit [Remote host closed the connection]
sambao21 has joined #ruby
wallerdev has quit [Quit: wallerdev]
RowdyChildren is now known as RowdyChild|Away
<sdegutis>
Never mind, figured it out.
codabrink has joined #ruby
havenwood has quit [Ping timeout: 268 seconds]
nopolitica has joined #ruby
<sdegutis>
Apparently I had to do ARGV.clear before doing anything else, otherwise 'gets' would assume args were names of files and try to load them up.
yacks has quit [Ping timeout: 240 seconds]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
bilbo_swaggins you said that languages will pop up even if identical languages already exist, I likened it to the average distribution of new users coming to a language
thrillagorilla has quit []
<bilbo_swaggins>
I don't follow
x1337807x has joined #ruby
lagweezle has joined #ruby
jlast has quit [Remote host closed the connection]
<sent-hil>
i'm getting i686-apple-darwin11-gcc-4.2.1: yes: No such file or directory when trying to install hiredis. i'm on mountain lion
<Hanmac>
shevy what was this language statistic site? last "Language of the Year" was a proprietary one from microsoft
<shevy>
tiobe?
<Hanmac>
yeah
<shevy>
I no longer trust them even for anything
teddyp1cker has quit [Ping timeout: 252 seconds]
<shevy>
they seemed to be more an ad-site
<benzrf>
shevy that looks sweet
St_Marx has quit [Remote host closed the connection]
pwh has quit []
brucelee has quit [Ping timeout: 268 seconds]
<benzrf>
but the english on the page is rather poor =[
<shevy>
"go use this microsoft product, look it jumped up 20 ranks in a year"
newUser1234 has quit [Remote host closed the connection]
jeregrine has quit [Quit: Connection closed for inactivity]
donnoc has joined #ruby
AndChat| has joined #ruby
agrinb_ has joined #ruby
wjlafrance has quit [Remote host closed the connection]
byennen has joined #ruby
AlexRussia has quit [Read error: Operation timed out]
jarto has joined #ruby
lkba has quit [Read error: Connection reset by peer]
codabrink has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
GreatSUN has quit [Quit: Page closed]
crystal77 has quit [Quit: Computer has gone to sleep.]
Shidash has joined #ruby
newUser1234 has joined #ruby
AlexRussia has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wjlafrance has joined #ruby
toastynerd has quit [Remote host closed the connection]
CreativeEmbassy has quit [Quit: FO SHO]
mostlybadfly has quit [Quit: Connection closed for inactivity]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
postmodern has quit [Remote host closed the connection]
taf2 has joined #ruby
ascarter has joined #ruby
<mozzarella>
GUYS
rm_ has joined #ruby
<xybre>
wat
<benzrf>
yeah?
claymore has quit [Quit: Leaving]
Shidash has quit [Ping timeout: 252 seconds]
meatherly has quit [Remote host closed the connection]
<hooper>
ls
meatherly has joined #ruby
tcstar has joined #ruby
<mozzarella>
if I have an object @cmd and would like to call multiple methods on it, what can I do? I'd like to open its scope… and not have to type @cmd.something everytime
skammer has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass>
you do want to type that everytime
crystal77 has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass>
some people do something like .tap do |c|
rm_ has quit [Ping timeout: 268 seconds]
saarinen has quit [Quit: saarinen]
kitak has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 240 seconds]
Shidash has joined #ruby
<jhass>
but if I'd find @cmd.instance_eval do in production code to safe typing, I'd go hunting for the author
<jhass>
*save
nolic has joined #ruby
kitak has joined #ruby
Celm_ has joined #ruby
postmodern has joined #ruby
ndrei has joined #ruby
jarto has quit [Ping timeout: 240 seconds]
meatherly has quit [Ping timeout: 268 seconds]
kevind has quit [Quit: kevind]
siwica has quit [Read error: Operation timed out]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davy_ has quit [Remote host closed the connection]
djbender has joined #ruby
Celm has quit [Ping timeout: 252 seconds]
albedoa has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davy_ has joined #ruby
nopolitica has quit [Remote host closed the connection]
weems has joined #ruby
banister has joined #ruby
dayepa has quit [Quit: dayepa]
m8 has quit [Quit: Sto andando via]
afex has quit [Ping timeout: 240 seconds]
tobago has quit [Read error: Connection reset by peer]
<bilbo_swaggins>
is there any way to emulate namespacing with Ruby?
bean has joined #ruby
donnoc has quit [Ping timeout: 252 seconds]
bean has quit [Changing host]
bean has joined #ruby
<DouweM>
as in?
rezzack has quit [Read error: Operation timed out]
<Hanmac>
bilbo_swaggins: modules /classes works like namespaces too ...
banister has quit [Ping timeout: 252 seconds]
<bilbo_swaggins>
I mean like Python's "import X as Y"
axl_ has quit [Quit: axl_]
St_Marx has quit [Remote host closed the connection]
<bilbo_swaggins>
maybe I'm using the wrong term
<chrisseaton>
bilbo_swaggins: you can require 'x'; Y = X if you want to
<mozzarella>
jhass: thanks bro, that's exactly what I wanted
<bilbo_swaggins>
sorry brb
<bilbo_swaggins>
on a call
SCommette has quit [Client Quit]
<Hanmac>
shevy i think he is more looking for something like require_into ... that prevents require from adding the code to the main namespace and add it into a anoymous/local one ...
<bilbo_swaggins>
yes
funktor has joined #ruby
<shevy>
bilbo_swaggins yeah, I don't think we should be forced to restrict ourselves to namespaces that other people came up with for us
<mozzarella>
what's wrong with it, btw?
cocotton_ has joined #ruby
<mozzarella>
(instance_eval)
cocotton_ has quit [Remote host closed the connection]
linojon has quit [Quit: linojon]
<shevy>
Hanmac yep, that is also perfectly fine, my issue at the ruby bugtracker would include those possibilities
<bilbo_swaggins>
I'd support you, yeah
<shevy>
I've been too lazy to formulate it so far and without a chance of success and support I'll not do so anyway, too many other things I can work on safely or work around
<shevy>
\o/
supermarin____ has quit [Quit: Computer has gone to sleep.]
hooper has quit [Ping timeout: 240 seconds]
<shevy>
bilbo_swaggins right now I am even cheating the require system of ruby
<shevy>
it's not good at all
<shevy>
require 'foobar' # <-- foobar gem
<Hanmac>
shvy for sample load with a parameter adds the code into an anoymous namespace ... but it does not retrun this one
<shevy>
require 'foobar/module' # <-- foobar gem became a module
<bilbo_swaggins>
it's about time I learn C#
<shevy>
require 'foobar/autoinclude' # <-- foobar gem will be autoincluded
<bilbo_swaggins>
now that it's wading into the OSS ecosystem
<bilbo_swaggins>
I hear great things about it
<shevy>
Hanmac yeah but I dont think matz will add anything to require()
Martxel has joined #ruby
<bilbo_swaggins>
and I ought to have another Ruby-like language
zchrykng-work has quit [Quit: Leaving]
<shevy>
I'd need to make the case that python offers more with import
<mozzarella>
should I create my own ruby forum
<mozzarella>
or use an existing one
<shevy>
problem is, I dont know what importa all does
cescalante is now known as ce_afk
<shevy>
*import
<Hanmac>
shevy i may not want to add it to require itself, maybe an extra function like require_relative
<shevy>
mozzarella use the ruby-forum backend
skammer has joined #ruby
<bilbo_swaggins>
mozzarella: use Discourse unless you have a specific reason not to
<shevy>
mozzarella and help improve it haha
cocotton_ has joined #ruby
<mozzarella>
shevy: what's that?
<bilbo_swaggins>
might as well not reinvent the wheel
<shevy>
Hanmac I hate require_relative !
cocotton has quit [Ping timeout: 240 seconds]
cocotton_ has quit [Remote host closed the connection]
<bilbo_swaggins>
oh god it's the worst
<shevy>
but yeah
rylev has joined #ruby
<shevy>
perhaps another way to require or include something
<mozzarella>
bilbo_swaggins: discourse is fucking hard to deploy
<shevy>
perhaps IMPORT :D :D :D
afreidah1 has joined #ruby
<bilbo_swaggins>
fair enough I haven't used Discourse
<drocsid>
I'm using a machine running an ancient centOS 5.10 with ruby 1.8.5 in the repos. What's the easiest way to get a more recent version ?
VTLob has quit [Quit: VTLob]
<shevy>
ack
<shevy>
you are on centos
<shevy>
don't they tell you how to upgrade their packages?
<Hanmac>
drocsid: format the disks ?
<pontiki>
i hope you are kidding about Discourse
<shevy>
lol
<mozzarella>
pontiki: who?
<pontiki>
bilbo
maximski has joined #ruby
<drocsid>
I think they intentionally use old packages..... :(
<Nilium>
What about discourse?
<shevy>
drocsid further options are: compile from source: ftp://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.1.tar.bz2 or use something like chruby rvm ruby-install and so forth
<shevy>
yeah, centos is the slowest of the slow ones
<mozzarella>
discourse is a monolithic app
<shevy>
even slower than debian "stable"
* combusean
dislikes centos
<Hanmac>
shevy i think stonehage was faster ;P
<drocsid>
I don't like it either
<mozzarella>
which must be run on ubuntu 64 bit on a intel processor
x77686d has quit [Quit: x77686d]
<drocsid>
but its what I was given
<mozzarella>
inside a virtual machine
<drocsid>
what I have to work with
<shevy>
drocsid enjoy it :)
wjlafrance has quit [Quit: This computer has gone to sleep]
<drocsid>
whould i get rvm or source build. I'm just worried about out of date dependices
<shevy>
I recommend to wget the source
toastynerd has quit [Remote host closed the connection]
<mozzarella>
it's a wonderful shell script ;-)))))))
<Nilium>
Was it rvm that is a giant monstrosity of bash scripts?
<shevy>
I just mentioned it so you know your options drocsid
<shevy>
I have no idea, I never used rvm or any other of those managers
<jhass>
drocsid: you can also ruby-build, ruby-install or a sane distro that ships a recent ruby
<shevy>
or compile from the source!
chris_thomson has joined #ruby
<Nilium>
I just use rbenv.
<Nilium>
Could use chruby but I'm lazy about switching.
<Nilium>
I compile all my Ruby versions from source.
<mozzarella>
ruby in the fedora repos is good… not too outdated
<shevy>
you use rbenv!
x1337807x has joined #ruby
toastynerd has joined #ruby
<jhass>
Nilium: chruby has auto switching
Es0teric has quit [Quit: Computer has gone to sleep.]
<Nilium>
Then just symlink the directory into rbenv's ruby versions directory.
<Nilium>
So does rbenv.
ktosiek has quit [Ping timeout: 240 seconds]
<shevy>
yeah, that's what most everyone does when managing multiple versions
<dorei>
rvm is nice
<Nilium>
Unless you're referring to the lazy-about-switching thing, in which case I'm talking about switching from rbenv to chruby, not some feature of rbenv
<combusean>
i agree dorei
GreatSUN has joined #ruby
<dorei>
i really like that that .ruby-version and .ruby-gemset files autoselect your ruby enviroment without needing to type anything :)
<shevy>
oh man
<shevy>
this channel should be renamed to #ruby-lazy
peret has quit []
<bilbo_swaggins>
RVM is nice
Speed has quit [Quit: reboot]
<combusean>
you'd be surprised how "lazy" the working world is
<bilbo_swaggins>
what's with the hate?
m0s^away is now known as m0s
<dorei>
shevy: if I weren't lazy, I'd be coding in java :p
<bilbo_swaggins>
lol
x77686d has joined #ruby
<bilbo_swaggins>
compiling from source isn't too hard
<shevy>
:)
<bilbo_swaggins>
but why do work when you don't have to?
<shevy>
!!!
crystal77 has quit [Quit: Computer has gone to sleep.]
<bilbo_swaggins>
if we wanted to do work ourselves, we wouldn't use computers
Speed has joined #ruby
<shevy>
computers made people lazy
<bilbo_swaggins>
LOOK WHAT YOU DID TO US, COMPUTERS!
whatasunnyday has quit [Quit: whatasunnyday]
zorak has joined #ruby
evenix has joined #ruby
coderhs has quit [Ping timeout: 240 seconds]
<drocsid>
failed to compile readline
bronson has quit [Ping timeout: 240 seconds]
okdas has quit [Quit: Computer has gone to sleep.]
<bilbo_swaggins>
that would be pretty stupid, though
<bilbo_swaggins>
"Be sure to call the builtin cd function or you will cause either very nasty or very amusing side effects (depending on perspective)."
<solidus-river>
there are some typos there but should be enough to get the idea
<shevy>
I am not sure what you want to achieve
<shevy>
but I am quite sure you want to use *
<jle`>
what are some things you guys feel would improve ruby? thinking about writing a new scripting language and looking for some inspiration
<shevy>
jle` improve in which regard
andy__ has quit [Ping timeout: 240 seconds]
<jle`>
anything, any language ideas
derek_c has joined #ruby
<shevy>
I mean, there are a million ways to answer
mostlybadfly has joined #ruby
<jle`>
yeah it's pretty open ended
<shevy>
so, better high quality documentation is not a good answer? :>
<jle`>
language design ideas
<shevy>
jle` k
<wallerdev>
solidus-river: are you talking about ruby 2 named params?
<jhass>
solidus-river: foo({:foo => bar}), foo(:foo => bar), foo {:foo => bar} and foo :foo => bar are all the same thing
teddyp1cker has quit [Ping timeout: 240 seconds]
<shevy>
jle` ruby 3.0 should be much simpler, also for newcomers. it should also focus on the www such as php did. it should have a much better documentation and for the features it offers there should be clear use cases
<solidus-river>
jhass: but one of the params is not named and expected as the first arg
<jhass>
solidus-river: show the method definition
<solidus-river>
jhass: and foo("something", {:foo => bar}) is no thte same as foo("something, :foo => bar)
<jhass>
solidus-river: it is
<shevy>
jle` distributing addons should be simple and streamlined, no gem/bundler madness
<solidus-river>
* "something"
<solidus-river>
wierd it is?
<shevy>
solidus-river ruby cheats
RaptorJesus has quit [Ping timeout: 268 seconds]
<jhass>
solidus-river: foo {foo: bar} can not be the same as foo foo: bar, depending on the method definition
<shevy>
:foo => bar is really { :foo => bar }
donnoc has quit [Ping timeout: 240 seconds]
<solidus-river>
i'm building up parameters for search in the searchkick gem here