<mozzarella>
or you could try "bundle exec ruby galaserv.rb"
<mozzarella>
not sure if that works
mistermocha has quit [Remote host closed the connection]
davedev24_ has quit [Ping timeout: 252 seconds]
<skaag>
that worked
<skaag>
I guess it fixes up the environment prior to running
<skaag>
(that's what the docs say anyway)
<mozzarella>
yes
wallerdev has quit [Quit: wallerdev]
delianides has joined #ruby
Soda has quit [Remote host closed the connection]
eladmeidar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
olivierrr has left #ruby [#ruby]
lkba_ has joined #ruby
lkba has quit [Read error: Connection reset by peer]
MissionCritical has joined #ruby
MissionCritical has quit [Max SendQ exceeded]
havenwood has joined #ruby
w0rldmaker has quit [Ping timeout: 252 seconds]
delianides has quit [Remote host closed the connection]
delianides has joined #ruby
thumpba has joined #ruby
delianid_ has joined #ruby
segmond has quit [Ping timeout: 264 seconds]
TheNet has quit [Remote host closed the connection]
TheNet has joined #ruby
delianid_ has quit [Read error: Connection reset by peer]
skj3gg has quit [Quit: ZZZzzz…]
delianid_ has joined #ruby
thumpba has quit [Ping timeout: 245 seconds]
coderhs has joined #ruby
deliani__ has joined #ruby
delian___ has joined #ruby
delianides has quit [Ping timeout: 264 seconds]
jack_rabbit has quit [Ping timeout: 256 seconds]
boshhead has quit [Ping timeout: 246 seconds]
delianides has joined #ruby
MissionCritical has joined #ruby
boshhead has joined #ruby
ghostpl_ has joined #ruby
MissionCritical has quit [Max SendQ exceeded]
tokik has joined #ruby
deliani__ has quit [Read error: Connection reset by peer]
delianid_ has quit [Ping timeout: 264 seconds]
delian___ has quit [Ping timeout: 246 seconds]
arescorpio has joined #ruby
rbennacer has joined #ruby
ghostpl_ has quit [Ping timeout: 252 seconds]
pontiki has joined #ruby
coderhs has quit [Quit: Leaving]
robustus|Off has quit [Ping timeout: 264 seconds]
delianid_ has joined #ruby
rbennacer has quit [Ping timeout: 250 seconds]
segmond has joined #ruby
MissionCritical has joined #ruby
jottr_ has joined #ruby
MissionCritical has quit [Max SendQ exceeded]
jtdowney has joined #ruby
DrShoggoth has joined #ruby
robustus has joined #ruby
ta has joined #ruby
Sawbones_ has joined #ruby
SOLDIERz has joined #ruby
delianides has quit [Ping timeout: 255 seconds]
marr has quit [Ping timeout: 250 seconds]
Hobogrammer has quit [Ping timeout: 264 seconds]
Hobogrammer_ has joined #ruby
jottr_ has quit [Ping timeout: 250 seconds]
io_syl has joined #ruby
tus has quit []
ta has quit [Ping timeout: 250 seconds]
Inv1s1ble has quit [Remote host closed the connection]
SOLDIERz has quit [Ping timeout: 250 seconds]
io_syl has quit [Client Quit]
crdpink2 has joined #ruby
MissionCritical has joined #ruby
crdpink has quit [Ping timeout: 250 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Tinfoilhat___ has quit [Read error: Connection reset by peer]
febuiles has joined #ruby
Akagi201 has joined #ruby
ptrrr has joined #ruby
febuiles has left #ruby [#ruby]
MissionCritical has quit [Ping timeout: 256 seconds]
skj3gg has joined #ruby
skj3gg has quit [Client Quit]
keen__________75 has quit [Read error: Connection reset by peer]
Soda has joined #ruby
rrrutr has quit [Quit: Leaving]
ptrrr has quit [Ping timeout: 264 seconds]
sevenseacat has joined #ruby
sivsushruth has joined #ruby
keen__________75 has joined #ruby
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
w0rldmaker has joined #ruby
otisZart has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mkevin has quit [Remote host closed the connection]
BTRE has quit [Remote host closed the connection]
shum has quit [Quit: WeeChat 1.1.1]
aspiers has quit [Ping timeout: 265 seconds]
shum has joined #ruby
sivsushruth has quit [Ping timeout: 240 seconds]
DrShoggoth has quit [Ping timeout: 245 seconds]
MissionCritical has joined #ruby
MissionCritical has quit [Max SendQ exceeded]
w0rldmak1r has joined #ruby
fgo has quit [Read error: Connection reset by peer]
delianid_ has quit []
fgo has joined #ruby
Vile` has quit [Ping timeout: 250 seconds]
allcentury has quit [Ping timeout: 246 seconds]
bruno- has quit [Ping timeout: 252 seconds]
w0rldmaker has quit [Ping timeout: 246 seconds]
gr33n7007h has quit [Ping timeout: 265 seconds]
sargas has quit [Quit: This computer has gone to sleep]
krz has joined #ruby
aspiers has joined #ruby
rnat has joined #ruby
Vile` has joined #ruby
tunaCanBruh has joined #ruby
bim has quit [Remote host closed the connection]
mikeric has quit []
shum has quit [Quit: WeeChat 1.1.1]
MissionCritical has joined #ruby
shum has joined #ruby
MissionCritical has quit [Max SendQ exceeded]
rnat has left #ruby [#ruby]
Takle has joined #ruby
allcentury has joined #ruby
tunaCanBruh has quit [Ping timeout: 250 seconds]
unreal_ has joined #ruby
unreal has quit [Ping timeout: 265 seconds]
lys has quit [Quit: lys]
sivsushruth has joined #ruby
Takle has quit [Ping timeout: 264 seconds]
MissionCritical has joined #ruby
CorySimmons has quit [Quit: Bye!]
DrShoggoth has joined #ruby
MissionCritical has quit [Max SendQ exceeded]
psy has quit [Ping timeout: 246 seconds]
charliesome has quit [Quit: zzz]
charliesome has joined #ruby
mikeric has joined #ruby
MissionCritical has joined #ruby
Guest65 has quit [Max SendQ exceeded]
Lingo has joined #ruby
Lingo has quit [Client Quit]
MissionCritical has quit [Max SendQ exceeded]
_blizzy_ has quit [Quit: Leaving]
Yzguy has joined #ruby
blizzy has joined #ruby
<Yzguy>
weaksauce, I have a Network Administration and Information Security degree, I want to go back for a computer science degre
<Yzguy>
I might not go for a full degree, but maybe just a couple classes just for programming
Lingo has joined #ruby
<weaksauce>
ah nice
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest65 has joined #ruby
<weaksauce>
comp sci is more of a theoretical thing than a practical programming thing
nb_bez___ has quit [Quit: Connection closed for inactivity]
<Yzguy>
I actually took programming classes when I was in college, but the teachers were bad.
<havenwood>
Yzguy: i enrolled in two but dropped both after the first days
blizzy is now known as _blizzy_
<Yzguy>
when I got to the high level one, the teacher was terrible so OOP concept and actually doing it was really lacking
<Yzguy>
I have to look into it. I was looking at Penn State for it
<weaksauce>
I took a few programming courses back in the day to fulfill requirements and they were ok
<Yzguy>
I just want a good class, where I can do OOP stuff, and challenges me
<Yzguy>
because that's the big gap in my programming is OOP
<weaksauce>
probably ain't going to find that in college unfortunately.
jbeeze has joined #ruby
_blizzy_ has quit [Quit: Leaving]
<weaksauce>
the practical object oriented programing with ruby by sandy metz is really good though
blizzy has joined #ruby
<Yzguy>
my employer will pay for it, so taking at least one class is worth a shot
<weaksauce>
ah
blizzy has quit [Read error: Connection reset by peer]
<weaksauce>
that's somewhat different
blizzy has joined #ruby
<Yzguy>
I'm going to check out this book as well, thank you
JDiPierro has quit [Remote host closed the connection]
<Yzguy>
I think the real problem I have is that I don't have that OOP mindset. I think very procedurally still.
blizzy has quit [Read error: Connection reset by peer]
<Yzguy>
which is great for scripts, sys admin, etc.
blizzy has joined #ruby
SOLDIERz has joined #ruby
<Yzguy>
but now that I'm getting into more configuration management with puppet, automation, web services, it's holding me back
MissionCritical has joined #ruby
<weaksauce>
most programming courses are just teaching you syntax and some problem solving. not a ton of time is on object oriented design unless you actually get a course in it
juanpablo_ has joined #ruby
<Yzguy>
yeah, and that's what I was looking for.
MissionCritical has quit [Max SendQ exceeded]
<Yzguy>
the design part
pappilino has joined #ruby
adriancb has quit [Remote host closed the connection]
<Yzguy>
I understand encapsulation, polymorphism, etc. but the design part is what I need to bring it together
sivsushruth has quit [Ping timeout: 264 seconds]
aamador has quit [Ping timeout: 264 seconds]
RegulationD has joined #ruby
blizzy is now known as _blizzy_
sargas has joined #ruby
sivsushruth has joined #ruby
_blizzy_ has quit [Client Quit]
blizzy has joined #ruby
<Yzguy>
this book is great, thank you very much weaksauce
SOLDIERz has quit [Ping timeout: 256 seconds]
juanpablo_ has quit [Ping timeout: 256 seconds]
<jbeeze>
i was looking for a good OO ruby book, thanks too weaksauce
<sevenseacat>
poodr is a great book :)
ghr has joined #ruby
oo_ has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 264 seconds]
RegulationD has joined #ruby
Esya has quit [Ping timeout: 256 seconds]
zdennis has joined #ruby
<Yzguy>
and the reason I focus on ruby is that a lot of the great DevOps tools are written in Ruby
Rapier- has quit [Quit: (null)]
<Yzguy>
Vagrant, Puppet, etc.
<Yzguy>
plus I dig the community, tons of great people
ghr has quit [Ping timeout: 252 seconds]
RegulationD has quit [Ping timeout: 256 seconds]
krz has quit [Ping timeout: 245 seconds]
Esya has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RegulationD has joined #ruby
Lingo has quit [Read error: No route to host]
<pappilino>
I've installed spree with alchemy together, and i can see spree button on alchemy dashboard, however when i click on them, it just render alchemy dashboard again inside the iframe
<pappilino>
i've tried rubyonrails and spree, no one answers me so far since asking yesterday
krz has joined #ruby
<jhass>
pappilino: you should inform everybody when you crosspost
RegulationD has quit [Ping timeout: 255 seconds]
x1337807x has joined #ruby
<pappilino>
ok, thats a rule i've learned just now
x1337807x has quit [Max SendQ exceeded]
oo_ has joined #ruby
jaequery has joined #ruby
<jhass>
well, the important part is to inform the other sides of provided answers actually, so nobody wastes their time
x1337807x has joined #ruby
<pappilino>
well, since no one provides any answer....
<jhass>
2-6 hours response time is nothing unusual on IRC
<jhass>
depending on channel activity
<havenwood>
pappilino: I've never used Alchemy. It might be hard to find someone who has used the Spree/Alchemy combo (i thought Spree was stuck on Rails 3?).
<Radar>
Spree is not stuck.
<pappilino>
spree now is using rails _4.1.8_ , on the github page however it states you can use 4.2.0
<pappilino>
but i've tried and it gave me dependencies issue
<pappilino>
i thought everybody uses alchemy for spree cms? could u please suggest other cms to go with spree?
MissionCritical has joined #ruby
Lewix has joined #ruby
bruno- has joined #ruby
MissionCritical has quit [Max SendQ exceeded]
LiquidInsect has quit [Ping timeout: 246 seconds]
unclouded has quit [Read error: No route to host]
sargas has quit [Quit: This computer has gone to sleep]
LiquidInsect has joined #ruby
sargas has joined #ruby
sargas has quit [Changing host]
sargas has joined #ruby
jlast has quit [Remote host closed the connection]
<havenwood>
pappilino: I seem to be terribly informed about these gems. TIL, there's even an alchemy_spree gem.
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<pappilino>
havenwood: yes, alchemy cms and spree cms can go together with alchemy_spree which function as connector, and there's even spree_alchemy. which is very confusing
bruno- has quit [Ping timeout: 265 seconds]
<havenwood>
pappilino: Hehe, that is confusing. Well I'm not going to be any help it seems since this is all news to me. :) But good luck!
<pappilino>
havenwood: thanks and jhass for trying, it has been a moral support for me
mjuszczak has joined #ruby
<pappilino>
one last question, what gem do u use to build ecommerce if not spree?
bim has joined #ruby
jaequery has joined #ruby
MissionCritical has joined #ruby
thumpba has joined #ruby
armyriad has quit [Ping timeout: 252 seconds]
_honning_ has joined #ruby
armyriad has joined #ruby
rbennacer has joined #ruby
aphprentice has quit [Ping timeout: 256 seconds]
zdennis has quit [Quit: zdennis]
Synthbread has quit [Ping timeout: 252 seconds]
thumpba has quit [Ping timeout: 255 seconds]
bim has quit [Ping timeout: 244 seconds]
LiquidInsect has quit [Read error: Connection timed out]
rbennacer has quit [Remote host closed the connection]
LiquidInsect has joined #ruby
rbennacer has joined #ruby
<Radar>
pappilino: Spree is the best choice for that.
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Vile` has joined #ruby
shum has quit [Quit: WeeChat 1.1.1]
allcentury has quit [Ping timeout: 250 seconds]
mistermocha has quit [Ping timeout: 250 seconds]
rupertbg has joined #ruby
Iniquity has joined #ruby
TheNet has quit [Remote host closed the connection]
TheNet has joined #ruby
skj3gg has joined #ruby
Sawbones_ has quit [Remote host closed the connection]
kyb3r_ has joined #ruby
bim has joined #ruby
bim has quit [Remote host closed the connection]
mistermocha has joined #ruby
Iniquity has quit [Client Quit]
Iniquity has joined #ruby
mistermocha has quit [Remote host closed the connection]
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
boshhead has quit [Ping timeout: 264 seconds]
x1337807x has joined #ruby
rhg000 is now known as rhg135
jottr_ has joined #ruby
Iniquity has left #ruby [#ruby]
pappilino has quit [Ping timeout: 265 seconds]
vt102 has quit [Ping timeout: 250 seconds]
juanpablo_ has joined #ruby
aphprentice has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
skj3gg has joined #ruby
jottr_ has quit [Ping timeout: 246 seconds]
Drakevr has quit [Ping timeout: 245 seconds]
Drakevr has joined #ruby
juanpablo_ has quit [Ping timeout: 250 seconds]
codeurge has joined #ruby
mistermocha has joined #ruby
skj3gg has quit [Client Quit]
aphprentice has quit [Ping timeout: 246 seconds]
skj3gg has joined #ruby
bim has joined #ruby
wldcordeiro has joined #ruby
<pontiki>
i've recently discovered some people learn quite a bit just by shoulder surfing when I'm banging on the keyboard
AlexRussia has quit [Ping timeout: 252 seconds]
jbeeze has quit [Remote host closed the connection]
krz has joined #ruby
TheNet has quit [Remote host closed the connection]
RegulationD has joined #ruby
TheNet has joined #ruby
ferr has quit [Quit: WeeChat 1.1.1]
Sawbones_ has joined #ruby
Sawbones_ has quit [Remote host closed the connection]
chrishough has joined #ruby
chrishough has quit [Client Quit]
RegulationD has quit [Ping timeout: 250 seconds]
skj3gg has quit [Quit: ZZZzzz…]
ghr has joined #ruby
skj3gg has joined #ruby
<ponga>
pontiki: really? learn to code over shoulder?
<Nilium>
I'd feel bad if my coworkers did that with me.
<Nilium>
Using vim is unnecessarily confusing to my coworkers..
MissionCritical has quit [Ping timeout: 250 seconds]
ponga has quit [Read error: Connection reset by peer]
ponga has joined #ruby
chipotle has quit [Quit: cheerio]
bkparso has joined #ruby
tkuchiki_ has joined #ruby
Hirzu has joined #ruby
<Musashi007>
over the shoulder coder molder?
<pontiki>
yeah, we were sitting around at hack night, and they had a bunch of questions, so i said "watch how i'm doing this"
LiquidInsect has quit [Ping timeout: 265 seconds]
<Musashi007>
What is this ‘hack night’ may i ask
ghr has quit [Ping timeout: 250 seconds]
<pontiki>
kinda neat, i could talk, they could ask questions, and i was building a small sample app
bruno- has joined #ruby
<pontiki>
i don't think it's any different than watching a video, i suppose
LiquidInsect has joined #ruby
<Musashi007>
the ability to interact adds a lot
AlexRussia has joined #ruby
<pontiki>
i imagine it does
tkuchiki has quit [Ping timeout: 246 seconds]
armyriad has quit [Read error: Connection reset by peer]
bkparso has quit [Client Quit]
Alina-malina has quit [Ping timeout: 255 seconds]
TheNet has quit [Remote host closed the connection]
chipotle has joined #ruby
TheNet has joined #ruby
Lingo has quit [Quit: (null)]
mesamoo has joined #ruby
<ponga>
pontiki: i never thought English had 'over shoulder' 'shoulder surfing' expression, thought it was only my mother tongue
<ponga>
interesting
<ponga>
its universal
bruno- has quit [Ping timeout: 250 seconds]
bkparso has joined #ruby
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bkparso has quit [Client Quit]
bkparso has joined #ruby
bkparso has quit [Client Quit]
<Musashi007>
shoulder surfing isn’t an english expression that I know of..
<pontiki>
Nilium: i thought my using Emacs would be a pain for these two folks, who were using Sublime, but they didn't seem to have a problem
<pontiki>
huh
<pontiki>
i've only heard it in English
thumpba has joined #ruby
pretodor has joined #ruby
DrShoggoth has quit [Quit: Leaving]
w0rldmak1r has quit [Ping timeout: 252 seconds]
xploshioon has joined #ruby
aphprentice has joined #ruby
MissionCritical has joined #ruby
Hirzu has quit [Quit: Leaving...]
last_staff has joined #ruby
<ponga>
is it true that emacs get your fingers *ucked up
arescorpio has quit [Excess Flood]
<pontiki>
no
<ponga>
my regular wiki says so that it causes RSI by having hotkeys in stupid places
<pontiki>
lies
thumpba has quit [Ping timeout: 252 seconds]
<heftig>
Carpal Emacs Syndrome
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pontiki>
RSI is *REPETATIVE* strain injury
<pontiki>
if you're repeating a lot of the same keystrokes in emacs, yer doin it rong
<pontiki>
none of the keystrokes are hard to reach
<pontiki>
they can be hard to learn and remember
<pontiki>
but not hard to use
ghostpl_ has joined #ruby
<pontiki>
like any other coding editor, 90% of the time, you're just typing code
mistermocha has quit [Remote host closed the connection]
ikeike443 has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
<pontiki>
that said, i don't think you should bother to learn Emacs
<Nilium>
pontiki: Emacs behaves a lot like modern editors, key mappings aside
lxsameer has joined #ruby
<Nilium>
So it should be pretty clear what's going on usually. The whole modal thing in vim can confuse people not used to it.
<ponga>
uhh im ok with my sublime *derp
<pontiki>
how else can one maintain that cultured air of superiority if one doesn't have something they don't have experience with to put down? i mean, after all, what is important here?
<ponga>
sublime does what i want it to do
<Nilium>
If you live sublime, you should totally use sublime.
<Nilium>
*like
<Nilium>
Good god my typing is bad tonight.
TheNet has quit [Remote host closed the connection]
duncannz has joined #ruby
TheNet has joined #ruby
ghostpl_ has quit [Ping timeout: 245 seconds]
<weaksauce>
neovim is getting closer to having a few guis
<Nilium>
I tried it once but couldn't find a good way to get it to use my regular vimrc, so it just kept trying to use .nvimrc and whatnot and I decided I wasn't going to bother.
<Nilium>
Incidentally, someone did get emacs running inside of neovim
<weaksauce>
Nilium most people just use a symbolic link
<ericwood>
I'm still waiting on some Mavericks patches to finally make it into MacVim master :(
<Nilium>
weaksauce: I wanted to avoid that since I didn't want neovim touching my viminfo/undofiles/etc.
<weaksauce>
don't think it does Nilium
<Nilium>
Basically wanted to keep it sandboxed for testery.
jonr22 has joined #ruby
<weaksauce>
but it's possible it does
<Nilium>
If it uses viminfo and it respects what I set viminfo to, it'll use my viminfo
<pontiki>
shmoon_: count is defined inside class << self, which makes all those methods class methods
<Nilium>
And if it's not respecting that, it's not a very good vim O_o
sargas has quit [Quit: Leaving]
<weaksauce>
yeah if you are changing things in there then yeah
<Nilium>
Trying to decide if I want to install slackware on a 24gb partition
<weaksauce>
it noops a few things
<shmoon_>
o shit yes so silly i am pontiki :/ thanks
Musashi007 has quit [Quit: Musashi007]
<pontiki>
what would you use it for, Nilium?
<Nilium>
Mostly dev stuff.
TheNet has quit [Remote host closed the connection]
TheNet has joined #ruby
Limix has quit [Quit: Limix]
<Nilium>
I just can't decide if I want to use Slackware again after all these years.
omosoj has quit [Quit: leaving]
<pontiki>
maybe a VM first?
jonr22 has quit [Ping timeout: 250 seconds]
Qladstone has joined #ruby
<Nilium>
VM wouldn't tell me if I could make it work, seeing as I'm on a retina Macbook.
<pontiki>
then if it's a go, make it a partition
<pontiki>
oh, that's an issue, yeat
<pontiki>
yeah
<Nilium>
It's not a question of whether I want a small bootable Linux partition, just not sure if I feel like doing everything I had to do back when I was 13
<Nilium>
'Cause Slackware was what I used back then
BTRE has quit [Quit: Leaving]
<pontiki>
i liked slack
Musashi007 has joined #ruby
<Nilium>
It was pretty great since it was one of the it-just-works distros (i.e., to get booting - still had to install graphics drivers and such)
<Nilium>
And then once it was up, it never stopped working.
<pontiki>
way back when, when Emacs was my window manager :D
fgo has quit [Quit: WeeChat 1.1.1]
yfeldblu_ has quit [Read error: Connection reset by peer]
<Nilium>
I had fluxbox back then.
turtil-kun has quit [Quit: WeeChat 1.1.1]
Cadillactica has joined #ruby
yfeldblum has joined #ruby
<Nilium>
Oh, I could do Hurd. That'd be a fun one to explain.
<pontiki>
lol
kp666 has joined #ruby
SouL has quit [Ping timeout: 245 seconds]
jack_rabbit has joined #ruby
sumark has quit [Remote host closed the connection]
<omosoj>
if i lay down some basic functions in base.rb... how do i refer to that file when using classes defined there?
<omosoj>
(in a separate file)
ptrrr has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
<omosoj>
will require 'path/to/file' be enough?
fenzil has quit [Quit: Leaving]
<Cadillactica>
omosoj: yes that should be enough. require_relative is also helpful
Qladstone has quit [Remote host closed the connection]
aphprentice has quit [Ping timeout: 264 seconds]
ptrrr has quit [Ping timeout: 250 seconds]
<omosoj>
k. also found out that u should put ./ before
ryanf has joined #ruby
<Cadillactica>
omosoj: with require_relative?
<omosoj>
no.. plain require
<omosoj>
wonder if require_relative would not need it
<omosoj>
probably, right?
<Cadillactica>
omosoj: yeah that requires full path. require_relative assumes you’re starting in the same directory so I don’t believe so
Qladstone has joined #ruby
red_horned_rihno has joined #ruby
Channel6 has quit [Quit: Leaving]
<Cadillactica>
question: I often come across patterns such as this: http://pastebin.com/H1rJZ5sF define array, add to it, return it at the end. I’ve become a fan of using .tap to skip declaration/return, but I’ve heard that’s frowned upon. any thoughts/advices?
riotjones has joined #ruby
<diegoviola>
so some company wants me to write tests for their code (some API), is it reasonable to ask them for specifications/scenarios at least?
<Nilium>
I used to the tap thing. Started avoiding it because it's slow.
<diegoviola>
I mean, I can't read minds
<Nilium>
Performance there may not be that useful to you.
<Nilium>
diegoviola: Yes.
ryanf has quit [Quit: leaving]
<ponga>
diegoviola: isn't it more reasonable if company asked you if you wanted their scenarios
<diegoviola>
ponga: what do you mean?
last_staff has quit [Quit: last_staff]
<ponga>
it sounds common for a company to ask 'you' if you, diegoviola, wanted to know their scenario/specifications
<ponga>
not the other way round
riotjones has quit [Ping timeout: 245 seconds]
rupertbg has quit [Quit: Leaving.]
x1337807x has quit [Ping timeout: 264 seconds]
skj3gg has joined #ruby
<diegoviola>
well, they just said: "I’d like you to fill out the tests to check all the methods that are exposed in the API [:show, :index, :create, etc]."
x1337807x has joined #ruby
<diegoviola>
which sounds fairly standard rails routes, but still, I'd like to know what are they hoping to achieve
<diegoviola>
or what problem are they trying to solve
red_horned_rihno has quit [Ping timeout: 252 seconds]
nahtnam has joined #ruby
bim has quit [Remote host closed the connection]
armyriad has joined #ruby
armyriad has quit [Remote host closed the connection]
tunaCanBruh has joined #ruby
armyriad has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
MissionCritical has quit [Ping timeout: 246 seconds]
wallerdev has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Arnie25 has quit [Ping timeout: 245 seconds]
tunaCanBruh has quit [Ping timeout: 264 seconds]
Morkel has joined #ruby
BTRE has joined #ruby
red_horned_rihno has joined #ruby
Cadillactica has quit [Quit: Cadillactica]
agent_white has joined #ruby
<agent_white>
Evenin'
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Joufflu has joined #ruby
krz has quit [Ping timeout: 255 seconds]
skj3gg has joined #ruby
tobago has joined #ruby
krz has joined #ruby
jottr_ has joined #ruby
vdamewood has joined #ruby
duncannz has quit [Ping timeout: 264 seconds]
The_Phoenix has joined #ruby
MissionCritical has joined #ruby
jottr_ has quit [Ping timeout: 245 seconds]
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby
timonv has joined #ruby
ghostpl_ has joined #ruby
<Nilium>
Alright, I now have 100gb free. Slightly more space to abuse.
OrbitalKitten has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
bim has joined #ruby
skj3gg has joined #ruby
ghostpl_ has quit [Ping timeout: 250 seconds]
Lewix has quit []
adriancb has joined #ruby
omosoj has quit [Quit: leaving]
rhg135 is now known as rhg135|zzz
juanpablo_ has joined #ruby
Mon_Ouie has joined #ruby
adriancb has quit [Ping timeout: 256 seconds]
charliesome has quit [Quit: zzz]
Mia has joined #ruby
tvon has quit [Quit: Lost terminal]
tvon has joined #ruby
juanpablo_ has quit [Ping timeout: 265 seconds]
rushed has joined #ruby
<pontiki>
diegoviola: getting paid in advance for this?
<pontiki>
Nilium: you can have *3* slack partitions!!
<diegoviola>
pontiki: nope, they seem to have good reputation though
<diegoviola>
pontiki: and we agreed on a 2-weeks pay
_pakchoi_ops has joined #ruby
<diegoviola>
pontiki: before we started working, they were nice to ask if I wanted upfront pay
<Nilium>
I'm pretty sure that's closer to something like 12 Slackware partitions
<Nilium>
It's good at being tiny.
* agent_white
hugs pontiki
hvxgr has quit [Ping timeout: 244 seconds]
<Nilium>
I wonder if Arch is worth looking at or if I'm too impatient for this crap now
<diegoviola>
pontiki: we agreed on bi-weekly
bim has quit [Remote host closed the connection]
<pontiki>
Nilium: just being silly
thumpba has joined #ruby
ta has joined #ruby
RegulationD has joined #ruby
<diegoviola>
pontiki: they seem to be involved in open source also
<agent_white>
diegoviola: Good to hear you're getting those issues ironed out about getting paid for work... at least last I had heard a bit ago you had troubles.
<agent_white>
:D
j416 has quit [Ping timeout: 245 seconds]
<diegoviola>
agent_white: right, I'm happy too
<agent_white>
\o/
<diegoviola>
agent_white: it's just a matter of working with nice people, I guess
<diegoviola>
not saying the people I used to work weren't nice
<diegoviola>
maybe just some misunderstandings, it happens
j416 has joined #ruby
<diegoviola>
:)
riotjones has joined #ruby
<Nilium>
I like who I work with, but I disagree with them heavily on technology choices.
thumpba has quit [Ping timeout: 246 seconds]
<Nilium>
'Cause they use PHP and node.js. So I'm just naturally opposed on moral and technical levels.
Macaveli has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
pretodor has quit [Quit: Ex-Chat]
timonv has quit [Ping timeout: 250 seconds]
<diegoviola>
I'm also not a big fan of either
<agent_white>
diegoviola: Fair enough :) Just gotta ensure a misunderstanding doesn't keep you from paying the bills!
<diegoviola>
right
riotjones has quit [Ping timeout: 265 seconds]
last_staff has joined #ruby
bim has joined #ruby
f03lipe has quit [Ping timeout: 246 seconds]
ta has quit [Remote host closed the connection]
Alina-malina has joined #ruby
Soda has quit [Remote host closed the connection]
ycyclist has quit [Ping timeout: 246 seconds]
apeiros_ has quit [Remote host closed the connection]
_pakchoi_ops has quit [Quit: No Ping reply in 180 seconds.]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
apeiros_ has quit [Ping timeout: 245 seconds]
fabrice31 has joined #ruby
ta has quit [Remote host closed the connection]
MissionCritical has quit [Ping timeout: 250 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
diegoviola has quit [Remote host closed the connection]
wldcordeiro has quit [Ping timeout: 256 seconds]
ptrrr has joined #ruby
leat has joined #ruby
Takle has joined #ruby
oo_ has joined #ruby
hvxgr has joined #ruby
grrrr_ has joined #ruby
MissionCritical has joined #ruby
jonr22 has joined #ruby
ptrrr has quit [Ping timeout: 264 seconds]
Takle has quit [Ping timeout: 244 seconds]
SixiS has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
rushed has quit [Quit: rushed]
jonr22 has quit [Ping timeout: 250 seconds]
User458764 has joined #ruby
Morkel has quit [Quit: Morkel]
Qladstone has quit [Remote host closed the connection]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
anaeem1_ has joined #ruby
dru has quit [Ping timeout: 252 seconds]
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
bal has joined #ruby
schaerli has joined #ruby
Musashi007 has quit [Remote host closed the connection]
sinkensabe has joined #ruby
polysics has quit [Remote host closed the connection]
Musashi007 has joined #ruby
selu has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
rikai has quit [Ping timeout: 240 seconds]
bim has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
apeiros_ has joined #ruby
rikai has joined #ruby
diego1 has joined #ruby
pontiki has quit [Ping timeout: 255 seconds]
hmnhf has quit [Ping timeout: 244 seconds]
diego1 is now known as diegoviola
aganov has joined #ruby
Qladstone has joined #ruby
Crisix has joined #ruby
rushed has joined #ruby
Crisix has quit [Max SendQ exceeded]
<certainty>
moin
<agent_white>
\o
<agent_white>
pancakes?
<certainty>
nope, tea first. but thanks
<agent_white>
Fair enough! Though more importantly, cold or hot syrup? ;)
<certainty>
hot
GnuYawk has quit [Read error: No route to host]
quazimod1 has quit [Ping timeout: 255 seconds]
<agent_white>
I guess I'll need to try tea sometime :D
GnuYawk has joined #ruby
diegoviola has quit [Quit: WeeChat 1.1.1]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rushed has quit [Quit: rushed]
lolmaus has quit [Quit: Konversation terminated!]
tunaCanBruh has joined #ruby
polysics has joined #ruby
diegoviola has joined #ruby
davejacobs has joined #ruby
razieliyo has joined #ruby
JaTochNietDan has quit [Ping timeout: 250 seconds]
Diabolik has quit [Ping timeout: 252 seconds]
wicope has joined #ruby
aswen has joined #ruby
andikr has joined #ruby
tunaCanBruh has quit [Ping timeout: 244 seconds]
wldcordeiro has joined #ruby
davejacobs has quit [Ping timeout: 246 seconds]
Diabolik has joined #ruby
JaTochNietDan has joined #ruby
User458764 has joined #ruby
amundj has joined #ruby
SOLDIERz has joined #ruby
amclain has quit [Quit: Leaving]
jottr_ has joined #ruby
strixd has joined #ruby
aswen has quit [Ping timeout: 245 seconds]
grrrr_ has quit [Remote host closed the connection]
MissionCritical has quit [Ping timeout: 256 seconds]
jottr_ has quit [Ping timeout: 255 seconds]
GnuYawk has quit [Quit: WeeChat 1.0]
GnuYawk has joined #ruby
LetErikTry has joined #ruby
lemur has quit [Remote host closed the connection]
_Andres has joined #ruby
Joufflu has quit [Read error: Connection reset by peer]
odigity has quit [Ping timeout: 265 seconds]
SouL has joined #ruby
oki has joined #ruby
ghostpl_ has joined #ruby
aphprentice has joined #ruby
dumdedum has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
odigity has joined #ruby
claptor has quit [Quit: this channel is bakas]
arup_r has joined #ruby
ghostpl_ has quit [Ping timeout: 252 seconds]
zorak8 has quit [Ping timeout: 256 seconds]
sigurding has joined #ruby
aphprentice has quit [Ping timeout: 264 seconds]
shredding has joined #ruby
MissionCritical has joined #ruby
MissionCritical has quit [Max SendQ exceeded]
ponga has quit [Remote host closed the connection]
lolmaus has joined #ruby
charliesome has quit [Quit: zzz]
juanpablo_ has joined #ruby
gr33n7007h has joined #ruby
zacstewart has quit [Read error: Connection reset by peer]
zacstewart has joined #ruby
sinkensabe has quit [Remote host closed the connection]
exadeci has joined #ruby
<davzie>
Try tea sometime...
<davzie>
You sir, are missing out
MissionCritical has joined #ruby
<davzie>
I have a cupboard shelf that is just commited to various teas and stuff, Bold Kenyan, Assam, Ceylon, Darjeeling, Organic White, Jasmine Dragon Pearls etc. It's like an adventure-land.
Nahra has quit [Remote host closed the connection]
MissionCritical has quit [Max SendQ exceeded]
aswen has joined #ruby
juanpablo_ has quit [Ping timeout: 240 seconds]
rdark has joined #ruby
OrbitalKitten has joined #ruby
Bounga has joined #ruby
hmnhf has joined #ruby
Vile` has quit [Remote host closed the connection]
kalusn has joined #ruby
kalusn has quit [Remote host closed the connection]
sinkensabe has joined #ruby
kalusn has joined #ruby
atom3 is now known as noS3rvic3
noS3rvic3 is now known as atom3
tesuji has joined #ruby
Vile` has joined #ruby
danjordan has joined #ruby
tvw has joined #ruby
ghr has joined #ruby
Spami has joined #ruby
davedev2_ has quit [Remote host closed the connection]
Qladstone has quit [Remote host closed the connection]
msgodf has joined #ruby
thumpba has joined #ruby
einarj has joined #ruby
MissionCritical has joined #ruby
RegulationD has joined #ruby
MissionCritical has quit [Max SendQ exceeded]
einarj has quit [Remote host closed the connection]
avril14th has joined #ruby
einarj has joined #ruby
codecop has joined #ruby
sinkensabe has quit [Remote host closed the connection]
TheNet has quit [Quit: Leaving...]
godd2 has quit [Ping timeout: 245 seconds]
riotjones has joined #ruby
thumpba has quit [Ping timeout: 246 seconds]
lolmaus has quit [Quit: Konversation terminated!]
arup_r has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 255 seconds]
Hobogrammer_ has quit [Ping timeout: 255 seconds]
funkpuppet has joined #ruby
hmnhf has quit [Ping timeout: 272 seconds]
terlar has joined #ruby
funkpuppet has left #ruby [#ruby]
CustosLimen has quit [Ping timeout: 265 seconds]
GnuYawk has quit [Ping timeout: 264 seconds]
MissionCritical has joined #ruby
riotjones has quit [Ping timeout: 250 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<zotherstupidguy>
it lets you somthing like $ rbenv install 2.0.0-p247
<zotherstupidguy>
so you can easily move from one ruby ver to another
bruno- has joined #ruby
<zotherstupidguy>
also from your gist you are trying to use redmine, i think you can add the ruby -v you need in the Gemfile and it will load it for you
gluten_hell has quit [Ping timeout: 252 seconds]
JBreit has joined #ruby
zacstewart has quit [Read error: Connection reset by peer]
lxsameer has quit [Read error: Connection reset by peer]
<toretore>
modruby
<toretore>
lol
<otisZart>
what was that?
xploshioon has quit [Quit: Leaving]
lxsameer has joined #ruby
lxsameer has quit [Read error: Connection reset by peer]
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
MissionCritical has joined #ruby
MissionCritical has quit [Max SendQ exceeded]
grrrr_ has joined #ruby
kalusn has quit [Remote host closed the connection]
lxsameer has joined #ruby
zacstewart has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
jonr22 has joined #ruby
lxsameer has quit [Read error: Connection reset by peer]
zacstewart has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Read error: Connection reset by peer]
<Mon_Ouie>
It used to be a plugin for Apache
<otisZart>
well, history teaches us that mod is now obsolete?
<Mon_Ouie>
And I believe only fflush (and not all ops) can change that message
jonr22 has quit [Ping timeout: 256 seconds]
Zai00 has quit [Quit: Zai00]
MissionCritical has joined #ruby
davedev24_ has joined #ruby
Drakevr has quit [Changing host]
Drakevr has joined #ruby
timonv has joined #ruby
rodfersou has joined #ruby
zacstewa_ has joined #ruby
dmolina has joined #ruby
zacstewart has quit [Read error: Connection reset by peer]
aphprentice has joined #ruby
spider-mario has joined #ruby
MissionCritical has quit [Ping timeout: 240 seconds]
<zotherstupidguy>
arup_r_: yup :)
aphprentice has quit [Ping timeout: 265 seconds]
<arup_r_>
zotherstupidguy: so who is `z` ? Is Z a Cat name ?
<zotherstupidguy>
"the other"
<arup_r_>
Aww!!
<zotherstupidguy>
its a super philosphy that we all do mistakes, so i dont get the illusion that i am smart or anybody else is diff :)
SOLDIERz has quit [Quit: Be back later ...]
<zotherstupidguy>
it makes learning more fun
User458764 has joined #ruby
SOLDIERz has joined #ruby
zotherstupidguy has quit [Quit: leaving]
zacstewa_ has quit [Ping timeout: 255 seconds]
zotherstupidguy has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
sinkensabe has joined #ruby
sinkensa_ has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
SOLDIERz has quit [Ping timeout: 264 seconds]
MissionCritical has joined #ruby
<shevy>
I don't do mistakes
<otisZart>
thats a strong sentence mate
commmmodo has quit [Quit: commmmodo]
<shevy>
only if you are too weak to handle it!
<toretore>
it's "i don't make mistakes" you dumbass
<toretore>
;)
<workmad3>
toretore: I, not i, dumbass ;)
tkuchiki_ has quit [Ping timeout: 256 seconds]
<toretore>
i do much mistakes
<otisZart>
shevy we all have flaws. For example I ended up using java a lot, but I seriously cannot stop doing int c=0; and inside the iteration see all the glory and joy of doing c++;
<otisZart>
thats just my fetish
<shevy>
otisZart you should pick better languages :)
<workmad3>
otisZart: you should also learn to recognise jokes on IRC ;)
joonty has quit [Quit: joonty]
sinkensa_ has quit [Read error: Connection reset by peer]
<zotherstupidguy>
thank you all for making my point :)
<shevy>
how can ruby drop 8 ranks in a year
antgel has quit [Ping timeout: 250 seconds]
<otisZart>
shevy confirmed for flaws. Also the sentence 'Shevy: I don't do mistakes' contains 3 S, half life 3 confirmed
<shevy>
hey
<toretore>
what
<shevy>
my nick is downcased
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
* workmad3
sighes
<zotherstupidguy>
whats the 1st ranked ?
<shevy>
:-)
<otisZart>
shevy or is it just an illusion? our perception depends on others
<shevy>
zotherstupidguy C
<shevy>
ruby is written mostly in C, the linux kernel is... most of the *nix core tools are too...
<zotherstupidguy>
Stuxnet happend :)
joonty has joined #ruby
antgel has joined #ruby
<shevy>
the only odd ones are the KDE folks
gr33n7007h has joined #ruby
<otisZart>
wtf mate, ruby is just the slowest language out there
<zotherstupidguy>
what about BSD?
* otisZart
lynch incoming.. just kidding
<shevy>
otisZart naaah really it's comparable to perl python and php
<shevy>
zotherstupidguy BSD is a unix derivative so also heavy C
<otisZart>
I agree with you shevy to be honest
<zotherstupidguy>
i thinkn ruby is a good balance, i tried perl and python
gr33n7007h has quit [Client Quit]
<shevy>
perl5 is still faster for some tasks if I remember correctly
_Andres has joined #ruby
<zotherstupidguy>
python 3 and perl 5 two diff communities
gr33n7007h has joined #ruby
<shevy>
even python 2 and python 3 :D
<toretore>
what about parrot
<otisZart>
'Objective c days seems to be over' well .. finally.
<shevy>
dunno... perl 6 will be there at the end of 2015 then we can judge!
<otisZart>
I hated so much it, could not wait to jump on swift
nettoweb has quit [Ping timeout: 244 seconds]
<zotherstupidguy>
atleast in ruby, matz pushes use to make the ugrade "now now now"
postmodern has quit [Quit: Leaving]
<shevy>
it would be a real embarassment if perl 6 would be slower than perl 5 though
<shevy>
15 years of evolution
* workmad3
wishes people would stop using TIOBE as a rating of popularity
tunaCanBruh has joined #ruby
<workmad3>
it even states it right there on the page that TIOBE isn't about the 'best language'... "It is important to note that the TIOBE index is not about the best programming language or the language in which most lines of code have been written"
<shevy>
you need to accept the TIOBE standard workmad3
TheRinger has joined #ruby
<shevy>
don't fight it, accept and embrace it like a brother :)
<otisZart>
so what should I take 'tiobe' for?
<shevy>
well
<shevy>
that's the beauty of it
<workmad3>
shevy: it's purely a search-engine ranking for results about programming languages
<shevy>
you can interprete everything into that dataset
<shevy>
workmad3 so nobody is interested in ruby nowadays :(
davejacobs has joined #ruby
<otisZart>
mmm .. at first i wanted to jump on ruby/rails but I am still reading and I am not completely convinced guys, what are your points?
<workmad3>
shevy: no, it just means that there's more SO entries about C, or more people out there asking for help, or anything else that the search engines surface to get results about a query like 'Ruby Programming Language"
<shevy>
otisZart well, a lot of the peak of ruby activity (2004-2008 or so) was related to rails
lxsameer has joined #ruby
lxsameer has joined #ruby
<zotherstupidguy>
otisZart, try ruby and sinatra first :)
<phale>
whats the most efficient way to read a binary file
<zotherstupidguy>
otisZart you said you wanted a challange, i thought if you read the code of the microframeworks, which should be fun and short, you can get a flavor of ruby and how things are done in a timely manner
lxsameer has joined #ruby
<workmad3>
shevy: oh, and just found in the TIOBE pages that the search they use is '+"<language> programming"' across the various search engines
lxsameer has quit [Read error: Connection reset by peer]
<otisZart>
zotherstupidguy ok thanks, I am still reading
bruno- has quit [Ping timeout: 264 seconds]
piotrj has quit [Remote host closed the connection]
lxsameer has joined #ruby
lxsameer has quit [Read error: Connection reset by peer]
<phale>
hm
<phale>
should i read a binary file line by line
<phale>
or read it all in a string
<canton7>
binary files don't have lines
<phale>
heh
<phale>
\n
<canton7>
\n is meaningless in a binary file, still
<phale>
alright
<zotherstupidguy>
good point
sinkensa_ has joined #ruby
<phale>
so how do i read in an entire binary file
<canton7>
read it all at once, or chunk by chunk (where the chunk has a fixed length)
<phale>
in a string
sinkensabe has quit [Read error: Connection reset by peer]
lxsameer has joined #ruby
jottr_ has quit [Ping timeout: 246 seconds]
<canton7>
you don't want it in a string, most likely. things like encoding and nulls can really screw you up
<phale>
so where do i want it in
<arup_r_>
what's the definition of a ninja programmer ?
<canton7>
not every random byte sequence is a valid string. most aren't
<canton7>
you want it as an array of bytes, probably
<phale>
alright
terlar has quit [Ping timeout: 272 seconds]
<phale>
but what do I use to read it in?
<workmad3>
canton7: well, a string with encoding BINARY allows for any arbitrary byte sequence as a valid string
<canton7>
true
<phale>
File.open(file, "rb") do |s|
<workmad3>
at least in ruby... nulls can screw you up in C where they're used as string terminators :)
<zotherstupidguy>
arup_r_ its somthing like "lust of the dead" triology and "zombie ass: tiolet of the dead"
lxsameer has quit [Read error: Connection reset by peer]
Tinfoilhat_ has quit [Read error: Connection reset by peer]
<arup_r_>
:)
segmond has quit [Ping timeout: 244 seconds]
<phale>
man im so confused
<shevy>
zotherstupidguy lol zombie ass?
<phale>
all i wanted to do was read in a .wdb file
<phale>
and parse it
<shevy>
phale what's wrong with File.open
<zotherstupidguy>
shevy no idea yet, i am downloading it
<phale>
no
<phale>
nothing
<phale>
he's just says that i cant use a string
<phale>
so im not sure
lxsameer has joined #ruby
sinkensabe has joined #ruby
<workmad3>
phale: you need to be *careful* using a string, because in ruby strings aren't just arbitrary byte buffers
<shevy>
all my .rb files have on the second line "Encoding: ASCII-8BIT", it made things so much easier :)
sinkensa_ has quit [Read error: Connection reset by peer]
<phale>
workmad3: okay
<nerder>
guys, noob question. Symbols are not object? i mean, setting up an hash with int as key is faster than symbols as key? i get a bit confused of the symbols purpose
doodlehaus has quit [Remote host closed the connection]
<workmad3>
phale: which means you need to be sure that you're treating the string as arbitrary bytes... there can also be other issues like endian-ness that you need to take account of with binary data, which is where something like String#unpack comes into play
<tobiasvl>
nerder: both ints and symbols are objects
<phale>
yeah i've heard of unpack
<phale>
sounds fun
<phale>
alright i have read it into a string
<phale>
how do i check if it includes the sequence of characters i was discussing earlier
<workmad3>
phale: did it read in with binary encoding?
<phale>
not sure
<phale>
all i did was
rdark has quit [Read error: Connection reset by peer]
<shevy>
nerder symbols are always the same, always same object_id
<workmad3>
shevy: yeah, I had a suspicion that 'rb' as the flags would set the encoding to ASCII-8BIT, but I wasn't sure :)
sigurding has quit [Quit: sigurding]
lxsameer has joined #ruby
lxsameer has quit [Read error: Connection reset by peer]
<workmad3>
phale: yes, BINARY is an alias for ASCII-8BIT when setting encodings in ruby
<phale>
okay
<shevy>
nerder I guess since 2.2.0 symbols are better than strings for when you need to store stuff into a hash and cant decide whether to use a symbol or a string
<workmad3>
phale: so the next step is what I just mentioned... figuring out the file layout and pulling it apart into usable data in ruby
<phale>
okay
<phale>
the sequence of characters
<phale>
as seen in my hex editor
parduse has quit [Ping timeout: 272 seconds]
<phale>
will identify it as a valid .wdb file
lxsameer has joined #ruby
<workmad3>
phale: is that a magic number byte marker at the start of the file?
<phale>
not at the start
lxsameer has quit [Read error: Connection reset by peer]
<phale>
however
<phale>
it starts at 8 bytes after the beginning
<phale>
(counting from 0)
fabrice31 has joined #ruby
piotrj has joined #ruby
<phale>
hm
<workmad3>
phale: oh gods... just looked up what wdb is to see if there was a nice specification... is it really an MS Works DB file? :/
<phale>
sadly yes
<phale>
it's used by a game im playing
<phale>
i wanted to implement a protocol conforming to it since it's very obscure
sinkensa_ has quit [Read error: Connection reset by peer]
<phale>
strchr("SUne", c);
<phale>
where c is the character
<phale>
it returns 1 if the character is inside "SUne"
mr_blue has joined #ruby
<phale>
returns 0 if it isn't
sinkensabe has joined #ruby
<shevy>
ah
<shevy>
.include?
<phale>
yeah but
<phale>
im iterating over an array
selu has joined #ruby
thumpba has joined #ruby
<mr_blue>
hi all
woodyb23_ has quit [Remote host closed the connection]
<phale>
look at the code I posted
mr_blue has left #ruby [#ruby]
<phale>
isvalid?
<shevy>
your code is weird :)
<phale>
why?
<shevy>
I'd use case/when menu
RegulationD has joined #ruby
<shevy>
case con.chr
<shevy>
when 'S','U','n','e'
DaniG2k has quit [Ping timeout: 264 seconds]
<shevy>
you also probably can avoid using .each
<toretore>
phale: explain what it is you want to do instead
<phale>
okay
<phale>
i need to find this specific sequence of characters that start at 8 bytes and end at 11 bytes
<shevy>
we have .select .reject .map
<phale>
SUne
<toretore>
str[8,4] == 'SUne'
<phale>
well now i feel dumb
kalusn has quit [Remote host closed the connection]
<phale>
thanks
quazimodo has joined #ruby
<phale>
nah that wont work
<phale>
returns false
DaniG2k has joined #ruby
<shevy>
what does str[8,4] output?
<phale>
sec
<shevy>
array start at 0 btw so perhaps you may have to pass [7
thumpba has quit [Ping timeout: 244 seconds]
<waxjar>
strings are zero-indexed, 7 would return the 8th byte
<waxjar>
or character i suppose
<phale>
ah
mkaesz has joined #ruby
shazaum has quit [Quit: This computer has gone to sleep]
<phale>
i should of mentioned
<phale>
it's not a string
<phale>
it's an array
MissionCritical has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
<shevy>
btw you can put "itemcache.wdb" into: def initialize(file = "itemcache.wdb"), then you can use that as default and omit it lateron when you call .new
<phale>
yeah but
<toretore>
ary[8,4] == ['S', 'U', 'n', 'e']
<phale>
this is going to be a gem
<phale>
in the future
shredding has quit [Ping timeout: 264 seconds]
<phale>
im still a ruby beginner so
<phale>
yeah
<phale>
toretore: i'll try this
<shevy>
:)
MissionCritical has quit [Max SendQ exceeded]
<toretore>
i wouldn't use this gem
<phale>
lol
<phale>
i found out that the best book for ruby is
<phale>
"The Ruby Programming Language"
<shevy>
phale toretore wrote one famous gem
<shevy>
I forgot the name though
<phale>
since it's written by the creator of ruby
<phale>
he knows how ruby works
<shevy>
I liked the pickaxe more
<phale>
so should be good
<phale>
how do I convert
<shevy>
but only the second edition when I did not know ruby
* jhass
just hopes this isn't fed into eval later on
<sonOfRa>
I could have just tried that. *sigh*
<sonOfRa>
Thanks
<sonOfRa>
jhass: don't even ask :)
jottr_ has joined #ruby
fabrice31 has joined #ruby
bruno- has joined #ruby
<jhass>
but maybe I know a better solution! :P
<sonOfRa>
jhass: but no, I won't actually do that, it's just something i wanted to try out for a non-production thing
sigurding has quit [Quit: sigurding]
<sonOfRa>
I'm writing an LDAP management tool, and adding a massedit function, with interpolation of existing attributes. Say: Edit all users, set the "mail" field to "yadayada#{current_uid}@example.com"
paulfm has joined #ruby
<jhass>
yeah, guessed something like that
<sonOfRa>
I'm not actually going to pass that into eval for obvious reasons, but it's the first draft for a solution that "works" fsvo works
<jhass>
the better option are named format strings
sinkensa_ has quit [Read error: Connection reset by peer]
sinkensabe has joined #ruby
vt102 has quit [Ping timeout: 250 seconds]
selu has quit [Ping timeout: 272 seconds]
bruno- has quit [Ping timeout: 240 seconds]
<sonOfRa>
The first plan I had was something like passing the textual positions of the interpolations, and then replacing them back to front. But that's icky, too. %{} looks more feasible, thanks
AlecTaylor has joined #ruby
<AlecTaylor>
hi
iamjarvo has joined #ruby
danjordan has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
<AlecTaylor>
How do I do `and` in a case/switch? - I know I can do `or` with `,`
bruno- has joined #ruby
iamjarvo has joined #ruby
<jhass>
you basically don't afaik
<jhass>
got an example of what you want to achieve
<jhass>
?
<shevy>
AlecTaylor case/when in ruby is really kind of simple, if you need more complicated checks you may have to use if/else, or methods
<AlecTaylor>
shevy: I can use a lambda
<shevy>
hehe
JohnBat26 has joined #ruby
SolarSailor has quit [Quit: My Turing machine has gone to sleep. ZZZzzz…]
<AlecTaylor>
;)
antgel has joined #ruby
Macaveli has joined #ruby
aclearman037 has joined #ruby
brb3 has joined #ruby
a5i has joined #ruby
tunaCanBruh has joined #ruby
Morkel has quit [Quit: Morkel]
shum has quit [Quit: WeeChat 1.1.1]
MissionCritical has joined #ruby
MissionCritical has quit [Max SendQ exceeded]
Takle has joined #ruby
<shevy>
a new line
<shevy>
would you write newline or new_line
Grantlyk has joined #ruby
<cHarNe2>
newline
<shevy>
I just looked at old code and noticed a variable called: add_new_line
<shevy>
it tripped me up
<shevy>
cHarNe2 ok
nettoweb has joined #ruby
maiuqoh has joined #ruby
<maiuqoh>
<TheRinger> !join #ruby
<maiuqoh>
hmmm
davidroy has joined #ruby
<cHarNe2>
does it add a new line or a newline? :P
shum has joined #ruby
<shevy>
cHarNe2 yeah
<shevy>
it's like: some_string_here << "\n" if add_newline
<avril14th>
flughafen: it's perfecty alright, why do you think it may not?
danjordan has joined #ruby
SOLDIERz has joined #ruby
<flughafen>
avril14th: my logic must be messed up, because it's not doing what i want, haha. but it works better if i do "string.include? string2"
chinmay_dd has joined #ruby
<avril14th>
== means both string are exactly equal
sevenseacat has quit [Remote host closed the connection]
zenith_ has quit [Read error: Connection reset by peer]
Takle has joined #ruby
<avril14th>
includes? responds true if second is included in first but not the other way around
keksike has left #ruby [#ruby]
d10n-work has joined #ruby
zenith_ has joined #ruby
<flughafen>
avril14th: this is a very small script just to help with something, so there is no way it'd be weird.
segmond has quit [Ping timeout: 255 seconds]
dmolina has left #ruby [#ruby]
tunaCanBruh has quit [Ping timeout: 240 seconds]
juanpablo_ has joined #ruby
<workmad3>
avril14th: well, if the strings are equal then 's1.include?(s2) && s2.include?(s1)' but yeah, typically s1 will be something like "foobarfuntimes" and s2 will be "bar"
sanguisdex has quit [Quit: Leaving.]
<avril14th>
these statements are not contradictory :)
<gregf__>
flughafen: it would prolly matter if those were objects(well strings are objects as well, but other type of objects)
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zenith_ has quit [Read error: Connection reset by peer]
<throstur>
Hi, I've never used Ruby, but I want to fiddle with a ruby gem. I cloned the gem from github, how do I "play with it"? Can I run an interactive ruby session (like python IDLE) and just 'import' the gem?
sanguisdex has left #ruby [#ruby]
Channel6 has joined #ruby
joonty has joined #ruby
Takle has quit [Remote host closed the connection]
<avril14th>
throstur: yes exactly
<throstur>
avril14th: how do I establish the linkage between my local directory and "my ruby session"?
<throstur>
import 'directory-containing-gem' ?
rushed has quit [Quit: rushed]
bruno- has quit [Ping timeout: 240 seconds]
<avril14th>
just require the gem
<avril14th>
I mean the gem's main file
bmn has quit [Quit: obai]
<throstur>
again, absolute ruby noob, how do I 'require' a gem?
<eval-in>
avril14th => undefined method `to_date' for class `String' (NameError) ... (https://eval.in/295038)
<throstur>
got it cheers
<leekme>
got it avril14th ;) thank's
<avril14th>
leekme: yes, it's an active_support method so if you project don't use that there is no to_date method
_Andres has joined #ruby
<avril14th>
you're welcome
DaniG2k has joined #ruby
vt102 has joined #ruby
djcp has joined #ruby
scripore has joined #ruby
segmond has joined #ruby
My_Hearing is now known as Mon_Ouie
<leekme>
Actually it's a rails project but apparently rails methods are not available from my test environement, I probably failed some 'require'
<havenwood>
throstur: If you don't want to use a switcher like chruby or RVM, in one of your dotfiles that gets sourced add the line: export PATH="$HOME/.gem/ruby/2.2.0/bin:$PATH"
<avril14th>
leekme: that's odd
MissionCritical has joined #ruby
<havenwood>
throstur: You can try it in your current terminal before adding it to a dotfile.
zenith_ has joined #ruby
zenith__ has quit [Read error: Connection reset by peer]
ponga has quit [Read error: Connection reset by peer]
MissionCritical has quit [Max SendQ exceeded]
ponga has joined #ruby
zacstewart has joined #ruby
<throstur>
yeah I got it working I'm on arch so I put it in /etc/profile
brutzelspeck has joined #ruby
<havenwood>
leekme: Should be available already from the Rails console. If you wanted to use ActiveSupport outside Rails you could cherry pick: require 'active_support/core_ext/string/conversions'
ineb has quit [Remote host closed the connection]
<leekme>
Well it's working fine when I try it in 'rails c', but not working when I run rspec 'my_file.rb'
<leekme>
Apparently some helpers are missing
jonr22 has quit [Ping timeout: 265 seconds]
<brutzelspeck>
hello
<brutzelspeck>
I am trying to parse some json and am having trouble
sinkensabe has quit [Remote host closed the connection]
cmluciano has left #ruby [#ruby]
crueber has joined #ruby
Liothen has joined #ruby
rbennacer has joined #ruby
jlast has joined #ruby
plashchynski has joined #ruby
rbennacer has quit [Remote host closed the connection]
sinkensabe has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
paradoja has quit [Ping timeout: 256 seconds]
hollywood has joined #ruby
rbennacer has joined #ruby
ta has joined #ruby
toretore has joined #ruby
sivsushruth has quit [Ping timeout: 245 seconds]
FooMunki_ has quit [Ping timeout: 245 seconds]
<throstur>
what am I doing wrong in this small ruby script? http://sprunge.us/SNij it is telling me undefined method `duration' for {}:Hash (NoMethodError)
wolves_cs has joined #ruby
polysics has quit [Remote host closed the connection]
sinkensabe has quit [Remote host closed the connection]
<jhass>
throstur: you access hash keys with [], not by method calls
GnuYawk has joined #ruby
<ponga>
throstur: there is no 'duration' method for hash
ArchRogem has joined #ruby
<throstur>
ahh I see ponga so it's just my syntax then?
<throstur>
so, options[duration] when I access it?
<ponga>
throstur: no my word is just re-written into easy english
<ponga>
listen to jhass
<gr33n7007h>
throstur: options[:duration] = d || 60
centrx has joined #ruby
<gr33n7007h>
or use ostruct
mjuszczak has quit []
FooMunki_ has joined #ruby
<jhass>
don't use ostruct until you understood Hash :)
<gilmour>
^
senayar has joined #ruby
<throstur>
ok... one last question, I thought options[:duration] = d || 60 would make the default duration 60 if it's not specified, but it looks like it is set to 0 when I run it, how do I change that?
MissionCritical has joined #ruby
<gilmour>
It may be that somewhere your nil is being cast to an integer. nil.to_i == 0
mitchellhenke has quit [Quit: Computer has gone to sleep.]
ta has quit [Remote host closed the connection]
<c_nick>
I have my web server running in Sinatra .. All it does is get some records from database process it and display it on the web browser, But sometimes this processing takes a while.. and the GET request responds with Proxy Error : unable to get data from <url>.. if i keep refreshing the page i may get the results.. Is this an issue with timeout? i have sessions enabled. Do i need Rack::Cookie::Session and set the time out? User login interface is not there
spacemud has quit [Ping timeout: 246 seconds]
scripore has quit [Quit: This computer has gone to sleep]
dfinninger has joined #ruby
fabrice31 has quit [Ping timeout: 256 seconds]
aphprentice has quit [Ping timeout: 252 seconds]
tuelz has joined #ruby
MissionCritical has joined #ruby
speakingcode has quit [Ping timeout: 245 seconds]
mitchellhenke has joined #ruby
Takle has joined #ruby
MissionCritical has quit [Max SendQ exceeded]
mistermocha has joined #ruby
scripore has joined #ruby
dblessing has quit [Ping timeout: 265 seconds]
spacemud has joined #ruby
bayed has joined #ruby
<jhass>
c_nick: you might want to add some logging to your app to see where the time is spent, also check the logs of your database server
sushant94 is now known as sushant94_
<jhass>
if the queries are expensive, chances are you database is just overloaded
sushant94_ is now known as sushant94__
sushant94__ is now known as sushant94
bal has quit [Quit: bal]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
MissionCritical has quit [Ping timeout: 245 seconds]
<throstur>
cool
<bradland>
no snark intended :) just like to teach men to fish
<throstur>
it's cool!
zcreative has joined #ruby
<throstur>
can I glue that symbol on the back of another thing?
<throstur>
like NS::Class.options[:my_thing].to_sym
<throstur>
is that just bracket use?
apeiros_ has quit [Ping timeout: 246 seconds]
claw has quit [Ping timeout: 256 seconds]
<bradland>
so, what you'd want to do in that case, is understand what class NS::Class.options[:my_thing] is
ptrrr has joined #ruby
<bradland>
if it's a string, then yes, you can just call .to_sym on it
<bradland>
that's called method chaining in ruby
<bradland>
and it's very popular
ta has joined #ruby
<bradland>
to find out what class it is, you can do NS::Class.options[:my_thing].class
sambao21 has quit [Quit: Computer has gone to sleep.]
<throstur>
bradland: NS::Class.red is something I can do, but I want my options (cmdline parameter) to go there instead
<bradland>
that's called introspection
<bradland>
or reflection
fabrice31_ has quit [Remote host closed the connection]
fabrice31 has joined #ruby
<bradland>
unfortunately, i'm not sure what to do with the information you just gave me
sambao21 has joined #ruby
fabrice31_ has joined #ruby
<throstur>
ok, so what I have is an options = { :color => "red"} and I am trying to do LIFX::Color.red() without specifying 'red' in the code, but rather in the command line (that's where options comes from really)
elfuego has joined #ruby
<arup_r>
shevy: you are there?
dblessing has joined #ruby
<arup_r>
you want the zip code
<arup_r>
?
<shevy>
arup_r sort of but I am kinda sleepy :D
<elfuego>
i’m trying to import a bunch of data into elastic search but i’m getting this error: `load': marshal data too short (ArgumentError)
Grumelo has quit [Read error: Connection reset by peer]
LekeFly has quit [Ping timeout: 252 seconds]
tkuchiki has quit [Remote host closed the connection]
^Denis has joined #ruby
<throstur>
bradland: so if I am only interested in sending the first parameter, I can do that by specifying one, but if I want the second I would have to specify the first?
adriancb has quit [Ping timeout: 250 seconds]
<elfuego>
: i’m trying to import a bunch of data into elastic search but i’m getting this error: `load': marshal data too short (ArgumentError) is anyone familiar with this error?
f03lipe has joined #ruby
centrx has quit [Ping timeout: 245 seconds]
dru has quit [Ping timeout: 244 seconds]
<hannes___>
throstur: No
<throstur>
hannes___: so for a function with named arguments I must always specify all arguments?
<hannes___>
throstur: if you use 2.x named parameters you can just foo.send(:foo_meth, named_params_as_hash)
dru has joined #ruby
<throstur>
yay! I have 2.2!
<havenwood>
thomas: it works as you proposed, try it
<havenwood>
thomas: sorry, misstell
<havenwood>
throstur: ^
<havenwood>
throstur: use #public_send instead of #send when you can
<hannes___>
throstur: although for that kind question, just open up pry/irb and try for yourself, faster turnover time than irc
<havenwood>
throstur: it's fine to: foo.public_send(method, named_parameter: 1)
<throstur>
hannes___: I have been trying this interactively just not gotten it to work
<throstur>
the only difference between public_send and send is just that send allows sending to private methods, correct?
<havenwood>
throstur: yup
MissionCritical has quit [Max SendQ exceeded]
hannes___ has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
<havenwood>
throstur: public_send is public only
<hannes___>
I don't suppose there is an excon channel?
mary5030 has joined #ruby
claw has joined #ruby
livathinos has quit []
<throstur>
does ruby have "regions" like C# (just for folding code in a sane manner)?
speaking2ode is now known as speakingcode
<havenwood>
throstur: I don't know C# regions. What are they?
adriancb has joined #ruby
<throstur>
havenwood: basically, you can do #region my_code_block #endregion and fold it in an IDE
dfinninger has quit [Read error: Connection reset by peer]
<hannes___>
throstur: that's kind of pointless
<throstur>
hannes___: yes, it is. I like it tho :(
dfinninger has joined #ruby
<throstur>
I think C/C++ still allow "meaningless" { } blocks
<hannes___>
throstur: if you really want to, you can use comments... and most editors with folding support can figure out what to fold on their own
apeiros_ has joined #ruby
chishiki has joined #ruby
B1n4r10 has joined #ruby
<havenwood>
throstur: We tend to use text editors that can collapse portions without code being added. Admittedly the idea of #region seems really odd to me, describing how your code is viewed in your code.
* wasamasa
must be the only one who finds folding an useless trick
<havenwood>
wasamasa: i never do it
<wasamasa>
then, I don't use imenu either
<hannes___>
havenwood: that's pretty much worse literate programming
<throstur>
havenwood: I do agree, but then again I'm using vim and haven't learned all the folding features
<havenwood>
throstur: :)
<hannes___>
havenwood: with lit-p you at least specify how your code is viewed in a somewhat useful fashion
<throstur>
I really just wanted to fold the options I'm done with so that I don't have to 33j
<wasamasa>
which I should since it gives me the only benefit I can see in folding
<wasamasa>
jumping quickly to a top-level form
<havenwood>
throstur: check for vim syntax folding for Ruby, i'm sure someone has figured that out
rhllor_ has joined #ruby
arup_r has joined #ruby
<wasamasa>
throstur: moving by paragraphs is useful!
<throstur>
wasamasa: how do I do that?
<hannes___>
wasamasa: well, it's just zf to create a fold and za to toggle it. :h fold really.
<hannes___>
throstur: P{
<hannes___>
{}
bruno- has joined #ruby
<throstur>
oh nice
rhllor has quit [Ping timeout: 256 seconds]
rhllor_ is now known as rhllor
<wasamasa>
hannes___: I assume you mean throstur :P
<wasamasa>
hannes___: since I don't use vim
MissionCritical has joined #ruby
<throstur>
hannes___: you can't zf when foldmethod=syntax
mary5030 has quit [Remote host closed the connection]
MissionCritical has quit [Max SendQ exceeded]
<hannes___>
throstur: well, but then presumably you already have all the folds you could ever want
<throstur>
presumably :)
<havenwood>
>> "Please use the One True Editor, #{%w[emacs vim].sample}..."
<hannes___>
eh, I've tried viper. Not a huge fan. Was somewhat sluggish when I used it, and vim muscle memory was killing me
<workmad3>
eam: I've already got my improved vi... I call it vim :P
<godd2>
You can't spell evil without vi
<eam>
wasamasa: aware of it but haven't used it :)
<wasamasa>
eam: you should
danjordan has quit [Quit: danjordan]
<workmad3>
godd2: you can't spell evil with vim though ;)
<GaryOak_>
You can't spell emacs backwards without scam
thumpba has joined #ruby
<hannes___>
godd2: you can't spell emacs without emacs
<godd2>
You can't spell sarcasm without letters
swgillespie has joined #ruby
<hannes___>
godd2: at least not in english
<GaryOak_>
haha
<eam>
wasamasa: pretty happy with viper-mode, but if I get a chance I'll give it a spin
<workmad3>
hannes___: was about to say similar :)
polysics has quit [Ping timeout: 245 seconds]
<workmad3>
hannes___: I wonder what the babylonian cuniform of 'sarcasm' is :)
GnuYawk has joined #ruby
<wasamasa>
mber: I'm still not sure what to think of their latest trick
frobs has quit [Quit: Konversation terminated!]
ndrei has quit [Ping timeout: 245 seconds]
<GaryOak_>
workmad3: it's the word sarcasm written in english
<wasamasa>
mber: enabling terminal emulation in vim buffers
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<hannes___>
wasamasa: I could see that working in nvim, but I would stay away in vim, rather use tbone instead
<wasamasa>
mber: on the one hand it's good because it's replacing the hacky existing implementation
mloveless has joined #ruby
ptrrr has joined #ruby
<wasamasa>
mber: on the other hand it's screaming "We want to be more like Emacs, really."
bricker has joined #ruby
User458764 has joined #ruby
a5i has joined #ruby
<hannes___>
I don't really think having a terminal emulator in vim is all that useful. most of the time, you kind of just want to paste text between the two
shum has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
thumpba has quit [Ping timeout: 252 seconds]
<mber>
wasamasa: there are many good ideas in that project. And since Bram Molenaar appeared resilient to change, I find the fork legitimate.
spyderma_ has quit [Ping timeout: 264 seconds]
<jhass>
when would a fork be illegitimate anyway
<wasamasa>
hannes___: I suspect some plugin authors would disagree with that
<wasamasa>
hannes___: IIRC the feature is what enabled the tee trick in the first place
Takle has quit [Remote host closed the connection]
johnh has joined #ruby
multiscan has quit []
<hannes___>
wasamasa: ok, I seem to be out of the loop a bit; What tee trick?
rbennacer has quit [Remote host closed the connection]
<godd2>
Well if it's a legitimate fork, the repo has natural defenses against it.
ptrrr has quit [Ping timeout: 245 seconds]
<mber>
the new plugin system is the most compelling change to me. As to vim becoming like emacs, sublime text seems to be the main influence
Grantlyk has quit [Remote host closed the connection]
lemur has joined #ruby
MasterPiece has joined #ruby
<a5i>
Why do some people keep saying ruby is dying? :/
* wasamasa
flogs a5i
<a5i>
flogs ? :S
* wasamasa
whips a5i harder
<a5i>
:(
<a5i>
I dont think it is
tkuchiki has joined #ruby
<godd2>
a5i because they can
<wasamasa>
a5i: you're part of them
<godd2>
watch
<godd2>
php is dying
<a5i>
No im not...
<wasamasa>
D:
<godd2>
java is dying
<wasamasa>
a5i: yes you are, every time someone asks the question, there's at least someone else getting the wrong impression and perpetuating that myth
<a5i>
I dont think Ruby is dieing
<a5i>
dying* it just not hip as it was
<godd2>
oh is that what dying means?
<wasamasa>
yup
<wasamasa>
I assume it is
<godd2>
then the only alive lang is node, brah
<mber>
with the influx of new developers into IT from around the world, a decreasing userbase seems unlikely.
Guest65 has joined #ruby
rbennacer has joined #ruby
RandyT_ has joined #ruby
<wasamasa>
don't forget goland
<wasamasa>
*golang
<eam>
godd2: node is a good choice for getting close to the metal
RandyT has quit [Ping timeout: 255 seconds]
Hirzu has quit [Ping timeout: 265 seconds]
MissionCritical has joined #ruby
Jackneill has joined #ruby
<toretore>
whoooooooooo gives a shit
Akuma has joined #ruby
bMalum has joined #ruby
MissionCritical has quit [Max SendQ exceeded]
Akuma has quit [Client Quit]
lemur has quit [Remote host closed the connection]
<godd2>
mber according to unclebob, the number of professional programmers is doubling every 5 years
tkuchiki has quit [Ping timeout: 265 seconds]
sigurding has joined #ruby
<godd2>
which means that at any given time, half of the professional programmers have less than 5 years experience
SumoBoy has joined #ruby
w0rldmaker has joined #ruby
<arup_r>
toretore: not me
<eam>
at any given time, 5 years experience places you at above average experience
<a5i>
The only reason I ever spoke of Ruby and those rumors is because I really like Ruby and im noyl 16 and hope that it stills has a large marketshare in 5 years :/
<a5i>
still*
j_mcnally has joined #ruby
<godd2>
a5i programming will still have a large market share in 5 years
Hirzu has joined #ruby
thumpba has joined #ruby
<a5i>
but I really like programming in Ruby
<a5i>
Im just worried
w0rldmaker has quit [Ping timeout: 250 seconds]
centrx has quit [Ping timeout: 250 seconds]
<godd2>
If you want to make programming your career, you really shouldn't only know 1 programming language, especially after 5 years
bMalum has quit [Quit: bMalum]
adamski2600 has joined #ruby
<godd2>
for the first 2 or 3 years, sure, but after that you should start picking up 1 or two more
<a5i>
Well I already know Node.js and Rust
<a5i>
and taking AP Java in school
<godd2>
plus at that point, you'll be able to gauge the market anyway, so you won't have to worry on that kind of time scale
<Cadillactica>
i often come across patterns such as this: http://pastebin.com/H1rJZ5sF define array, add to it, return it at the end. I’ve become a fan of using .tap to skip declaration/return steps, but I’ve heard that’s frowned upon. any thoughts/advices?
<Hijiri>
I'm guessing haskell doesn't count as an ML
bdamos has quit [Remote host closed the connection]
iamjarvo has joined #ruby
<godd2>
just read the instructions on the bottom, and youll know the syntax for Clojure in no time (there's not a lot of syntax(
robustus|Off is now known as robustus
tuelz1 has joined #ruby
JDiPierro has joined #ruby
<waxjar>
if you want to learn about different programming styles/paradigms, i'd pick either ruby or python, since they seem pretty similar
<a5i>
godd2, in your POV, will Rails still have a good piece of marketshare in 5 years? because if theres a Rails job open when Im fullstack, Im gonna pick Rails :P
<throstur>
I've wondered... what exactly makes someone fullstack
<godd2>
a5i the answer to your question is yes, but you're asking the wrong question
<godd2>
5 years is too long to worry about that sort of thing
<Hijiri>
if you want to be forced to learn a different paradigm (and you haven't functional-programmed before), I would go with haskell
centrx has joined #ruby
<throstur>
one of my good mates told me the same thing
<a5i>
sigh, Okay
<throstur>
but then the go and teach you SML-nq and Scheme in college
<throstur>
s/nq/nj/
tuelz has quit [Ping timeout: 250 seconds]
adriancb has quit [Ping timeout: 245 seconds]
<Hijiri>
I think they have haskell in a couple of the courses at my school
<Hijiri>
but mostly everything is Java/C++/C
djbkd has joined #ruby
<Hijiri>
well, I can't make that judgment yet, but that's all I've seen
<throstur>
based on my experience, "mostly everything" includes C# .NET
<throstur>
"everyone" is doing .NET apps
qhartman has joined #ruby
Hirzu has quit [Remote host closed the connection]
<throstur>
but whatever you do, don't NOT learn at least one scripting language
<Hijiri>
mostly everything at my school, I mean
<throstur>
or you'll be stuck with bash/cmd.exe scripts
red_horned_rihno has quit [Ping timeout: 245 seconds]
jonr22 has joined #ruby
<Hijiri>
haskell w/ shelly/turtle :P
<Hijiri>
I will probably learn python at some point
User458764 has joined #ruby
matthewhill has joined #ruby
sigurding has quit [Quit: sigurding]
<godd2>
a5i I have to commend you for thinking ahead though, many beginning programmers want things to happen overnight
<godd2>
your prescience and patience will reward you
<a5i>
:P
<Hijiri>
I certainly wouldn't mind if things could happen overnight
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
MissionCritical has joined #ruby
bim has joined #ruby
MissionCritical has quit [Max SendQ exceeded]
yeticry has quit [Ping timeout: 245 seconds]
yeticry has joined #ruby
oki has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
dumdedum has quit [Quit: foo]
roadt has joined #ruby
ghr has quit [Ping timeout: 265 seconds]
frobs has joined #ruby
Pumukel has quit [Ping timeout: 250 seconds]
zachrab has joined #ruby
skj3gg has joined #ruby
tunaCanBruh has joined #ruby
jenrzzz has joined #ruby
RegulationD has quit [Remote host closed the connection]
MissionCritical has joined #ruby
ducklobster has joined #ruby
Hirzu has joined #ruby
mjuszczak has quit []
MissionCritical has quit [Max SendQ exceeded]
baweaver has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mudtose has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
dfinninger has quit [Remote host closed the connection]
cocotton has joined #ruby
rushed has joined #ruby
scripore has joined #ruby
<cocotton>
Hey channel. I got an array and I'm trying to remove the first and last element. I'm not too sure what the cleanest way to do this is. I tried using .pop which is fine, but .shift causes me some troubles
<shevy>
_code I think the biggest fear with eval is when you are not in control of what gets evaled
triple_b_ has joined #ruby
Waheedi has quit [Quit: Waheedi]
thumpba has quit [Remote host closed the connection]
patric100e99 has joined #ruby
<shevy>
arup_r I was joking, I don't eat spam for breakfaster; if anything I may drink some milk perhaps, have bread, perhaps light cheese. or I skip breakfast and go for eating between 10:00-12:00
patrick99e99 has quit [Quit: Page closed]
<shevy>
*breakfast
<centrx>
eval loads up a another Ruby interpreter
<shevy>
eval runs perl!!!
thumpba has joined #ruby
<shevy>
AND PHP
<eam>
shevy: spam is pretty good, you should try it for breakfast
<shevy>
_code you are a vegetarian? perhaps you can help answer something for me
doodlehaus has quit [Ping timeout: 272 seconds]
<_code>
please don't be a question about why i don't eat meat
<jhass>
a5i: please don't add bots the channel without prior permission by an OP, use a test channel such as ##rubybot to test your bot
<shevy>
_code oh no
<a5i>
srry :(
<shevy>
_code it's a design question :)
<_code>
okay, go ahead
<shevy>
_code I noticed that in supermarkets and groceris, there are some products that are like made from soja or vegetables, but "appear" to look like e. g. a hamburger or just a burger for grilling. Can you explain to me why there are people "designing" food like that, that should look like flesh?
Rubybot has quit [Remote host closed the connection]
<jhass>
!eval `rm -rf /`
<jhass>
oh, too slow :P
<shevy>
I once did that on /
<shevy>
but accidentally through a wrongful tab completion
<_code>
well, they're fauz versions of the real thing
<waxjar>
shevy easy substitution in existing meals?
<shevy>
waxjar no I mean, it really looks like a burger
<shadoi>
shevy: because most vegans/vegetarians were once omnivores and they subconsciously crave animal flesh. ;)
<_code>
so it's meant to look like it's the real thing
<shevy>
if you rip it open, then you see it's more a meshwork of ... I dunno... soja... and other things
<_code>
uuh no
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
werelivinginthef has quit [Remote host closed the connection]
<_code>
*soya
<_code>
it's not called soja :P
<shevy>
k
<GaryOak_>
Their body wants fat and protein, but there isn't a great substitute for that besides meat
<_code>
also, i was raised a vegtarian
<_code>
really.
<_code>
i actually get enough protein
<_code>
without having to eat meat
jimms has joined #ruby
<GaryOak_>
through beans and nuts?
<_code>
yep
<GaryOak_>
cool
<_code>
beans are great :D
<shevy>
popeye likes spinach
<eam>
shevy: we need more meat modified to look like veggies
<_code>
can't remember if nuts are in tho
<_code>
uuh
<_code>
that's just wrong...
<shevy>
eam aha but there is not! the other way it is though. I wonder if people thing that vegetarians feel missing out on meat, if food products are designed to look like meat
<shevy>
*think
<_code>
naw
<eam>
shevy: the interesting thing is we're now able to produce vegan meat, but it still isn't vegetarian
<_code>
what?
<_code>
if it's vegan then it's vegetarian
<eam>
not true!
<havenwood>
eating vegans isn't vegetarian either
<eam>
vegan means not produced from an animal
<_code>
it compatibel only one way
<eam>
vegetarian means plant product
<_code>
if you're vegan
<_code>
*a vegan
tuelz1 has joined #ruby
<_code>
then it means you do not eat any animal products whatsoever
<apeiros_>
the best defensive variant would IMO be to raise a "different encodings, string is <A>, regex is <B> - ensure that both have the same encoding" exception.
<toretore>
no, that's exactly my point, you *have to* worry about it
<eam>
toretore: many environments let you work with byte arrasy
mjuszczak has joined #ruby
<eam>
arrays
<godd2>
toretore I'm agreeing with yout
<apeiros_>
eam: setting everything to binary is effectively that in ruby
<toretore>
eam: sure, but that's a different type altogether
<toretore>
eam: not saying ruby shouldn't have that
<toretore>
it could
<apeiros_>
it has
yfeldblum has quit [Read error: Connection reset by peer]
zenith_ has joined #ruby
<eam>
toretore: not really. Every encoded string type is also a byte array
Soda has joined #ruby
<shevy>
godd2 just as it was in ruby 1.8.x !
<toretore>
but it's not, it's a string
jonr22 has joined #ruby
<toretore>
getting pedantic here
cpt_yossarian has joined #ruby
yfeldblum has joined #ruby
* apeiros_
backs off slowly…
bim has quit [Remote host closed the connection]
<toretore>
it can be thought of as one, but it's still a string
<eam>
toretore: are there any instances of String which aren't also a byte array?
zachrab has quit [Remote host closed the connection]
<apeiros_>
not in ruby
bmn has quit [Quit: obai]
MissionCritical has joined #ruby
<eam>
so it's not a *different* type necessarily, rather it's a superset of things which can include String
<apeiros_>
strings in ruby: byte array + encoding "flag"
<toretore>
eam: you're right of course; i'm just saying that they are two different concepts, and i'm not sure that mixing them is a good idea
<eam>
toretore: I agree
<tgunr>
yesterday I finally got redmine 2.5 to work, today I went to install another plugin and am getting `There are no gemspecs at /srv/redmine.` The net is not showing me any useful solutions, what does this error mean and how to correct it. I did back out the plugin but a subsequent `bundle install --without development test` results in same error
<eam>
(except I want the ability to mix when I need)
<toretore>
redmine lol
<apeiros_>
which is why you can easily just treat everything as binary. and String#b makes that even easy.
huck5 has joined #ruby
tunaCanBruh has quit [Ping timeout: 252 seconds]
hollywood has quit [Quit: Leaving]
<eam>
so File.read(RbConfig.ruby).b.scan /2\.\d+\.\d+/
The_Phoenix has quit [Read error: Connection reset by peer]
<eam>
that's what I needed :)
<toretore>
eam: i'm just foreseeing lots of unforeseen (hah) complications with it
<godd2>
ugh, looks like I'll have to spend some story points on these leaky abstractions
<apeiros_>
otherwise ruby tries to coerce, and that leads to the exceptions you've seen.
adriancb has joined #ruby
<toretore>
story points lol
<toretore>
ruby lol
<eam>
>> :"#{File.read(RbConfig.ruby).b}"
<eval-in>
eam => /tmp/execpad-a0323460d1f3/source-a0323460d1f3:1:in `inspect': failed to allocate memory (NoMemoryError) ... (https://eval.in/295182)
<toretore>
apeiros lol
<apeiros_>
toretore: lol
<toretore>
life lol
segmond has joined #ruby
triple_b_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<huck5>
Hey there. I recently started work on a group project. The project was developed a year or so ago, and the gems are compatible with ruby 1.9.3. I currently have 2.2.0 installed on my system. After installing 1.9.3 using RVM, the application deployed correctly. However, once I closed my console, left my computer, came back and ran the application again, Ruby is now pointing back to 2.2.0
fabrice31 has joined #ruby
<huck5>
My question is: How can I effectively downgrade from Ruby 2.2.0 to Ruby 1.9.3.
<centrx>
huck5, rvm use <name of your ruby 1.9.3 installation>
<toretore>
learn how rvm works
<centrx>
^
<toretore>
lol
<godd2>
"lol" lol
<huck5>
centrx, awesome, thank you :)
jonr22 has quit [Ping timeout: 256 seconds]
<apeiros_>
rvm lol
baroquebobcat has quit [Quit: baroquebobcat]
<havenwood>
huck5: If you don't want to `rvm use 1.9.3` each time you enter the directory, you can create a .ruby-version file and puts `ruby-1.9.3` in it.
atomiccc has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
otisZart has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
FooMunki has joined #ruby
<pipework>
godd2: Because no one cares if you don't know 'y'. It's not that useful a letter.
zenith_ has quit [Ping timeout: 255 seconds]
<havenwood>
reall, you can alwas drop it and usuall still understand
FooMunki has quit [Client Quit]
<a5i>
wat
robustus is now known as robustus|Off
<Fluent>
Because acronyms v.s grammatical errors
<pipework>
havenwood: Personally, I feel like I'm not the kind of person who would handle the kind of people who are better able to log into gitter than IRC.
bim has quit [Remote host closed the connection]
<havenwood>
hehe
<godd2>
is it an error if I intentionally don't put in an apostrophe
<Fluent>
Yes.
<godd2>
well thats just sillynessismology
<havenwood>
nobody has wandered into #streem yet :P
skaag has joined #ruby
<havenwood>
sure it can only syntax check, but is that really a reason not to go ahead and replace bash with it?
einarj has quit [Ping timeout: 240 seconds]
<miah>
i think the benefit that gitter has is that users who dont generally use irc can still get access to live help. but more than often its tumbleweed city. so you just get the appearance of receiving live help. though it make take hours to receive a response.
<miah>
some irc channels are like that too though =)
AlexRussia has quit [Ping timeout: 265 seconds]
bim has joined #ruby
<miah>
especially channels where the primary crowd is in a much different timezone than you
<eam>
if its heuristics hint it's not running on the right hardware it makes the game less enjoyable
jottr_ has quit [Ping timeout: 245 seconds]
<jen_>
I think I installed Ruby 2.2.0 but now getting this: Could not locate Gemfile or .bundle/ directory
<jen_>
any help...
hmnhf has quit [Ping timeout: 255 seconds]
dj_zubehoer has quit [Remote host closed the connection]
piotrj has quit []
davejacobs has joined #ruby
bim has quit [Remote host closed the connection]
<Senjai>
What are you trying to do
<Senjai>
jen_:
FooMunki_ has joined #ruby
Hirzu has quit [Remote host closed the connection]
adriancb has quit [Read error: Connection reset by peer]
<jen_>
Senjai: sec
MissionCritical has joined #ruby
<godd2>
as in "wait one second" or something else?
scripore has joined #ruby
MissionCritical has quit [Max SendQ exceeded]
dfinninger has joined #ruby
bim has joined #ruby
<centrx>
That's what I would guess
oki has quit [Ping timeout: 246 seconds]
tunaCanBruh has quit [Ping timeout: 264 seconds]
tuelz1 has quit [Quit: WeeChat 1.0]
silkfox has quit [Ping timeout: 246 seconds]
<jen_>
Senjai: I am trying to run a Ruby script at my server which makes an API call to Google but this is all above my head. I am a front-end programmer.
qiffp has quit [Ping timeout: 256 seconds]
<Senjai>
yeah, code please
<jen_>
I had Ruby 1.8.7 installed and Google suggested I upgrade.
<jen_>
PM pls
baweaver has joined #ruby
<Senjai>
nope
<jen_>
ok
<Senjai>
Your question should stay in the channel
ych4k3r has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jen_>
$?
davejacobs has quit [Ping timeout: 250 seconds]
<Senjai>
so other people can benefit from the answer.
scripore has quit [Client Quit]
<jen_>
Trust me, now one will learn anything from my situation.
<jen_>
It’s probably something very silly.
<godd2>
including yourself?
w0rldmaker has quit [Ping timeout: 245 seconds]
x1337807x has joined #ruby
<jen_>
godd2: yes, me too.
silkfox has joined #ruby
<a5i>
cant fine my /.bundle folder
<a5i>
any help?
scripore has joined #ruby
<Senjai>
a5i: did you type bundle?
mois3x has joined #ruby
<havenwood>
jen_: how'd you install RUby?
rushed has quit [Quit: rushed]
danman has joined #ruby
<hannes___>
a5i: if you installed ruby with rvm there won't be a ~/.bundle folder
<jen_>
havenwood: rvm get head # update rvm
<jen_>
rvm install 2.2 # install ruby-2.2
HoloIRCUser has joined #ruby
<havenwood>
jen_: did you?: rvm use 2.2 --default
<jen_>
yes
<havenwood>
jen_: what is?: rvm current
adriancb has joined #ruby
grrrr_ has joined #ruby
MissionCritical has joined #ruby
chrishough has joined #ruby
<jen_>
oops…ruby-1.8.7-head@cj havenwood
<havenwood>
jen_: rvm use 2.2
MissionCritical has quit [Max SendQ exceeded]
<hannes___>
jen_: ruby 1.8.7? why do you even have that O_O
AnxiousGarlic has joined #ruby
m8 has joined #ruby
commmmodo has joined #ruby
<jen_>
old install
rushed has joined #ruby
AnxiousGarlic has left #ruby [#ruby]
scripore has quit [Quit: This computer has gone to sleep]
<jen_>
ok, did that havenwood
<jen_>
let me try running this again.
scripore has joined #ruby
<jen_>
havenwood: error occurred while installing system_timer (1.2.4), and Bundler cannot continue
<havenwood>
jen_: what error?
ponga has quit [Ping timeout: 244 seconds]
jimms has quit [Ping timeout: 256 seconds]
<jen_>
i ran bundle install and got ^^
<havenwood>
jen_: looks like it's a 1.8-only gem, remove it from your Gemfile
<jen_>
“havenwood Make sure that `gem install system_timer -v '1.2.4'` succeeds before bundling.”
<jen_>
:) havenwood
<havenwood>
jen_: In supported Rubies you can just: require 'timeout'
w0rldmaker has joined #ruby
mesamoo has quit [Quit: Konversation terminated!]
jimms has joined #ruby
<havenwood>
I mean in all supported Rubies.
kaiZen has quit [Ping timeout: 246 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
senayar has joined #ruby
chrishough has quit [Ping timeout: 252 seconds]
ghytfghj has joined #ruby
xiq has quit [Ping timeout: 256 seconds]
bMalum has quit [Quit: bMalum]
kaiZen has joined #ruby
Spooner has quit [Ping timeout: 256 seconds]
<Senjai>
chruby + ruby-install = bliss
enterprisedc has joined #ruby
<pipework>
p good stuff, that.
<havenwood>
\o/
MasterPiece has quit [Remote host closed the connection]
<jhass>
tnelsond: might consider something that does (or at least claims) CommonMark instead. Not sure which library to recommend on the Ruby front there though
paulfm has quit [Quit: Zzzzz...]
davejacobs has joined #ruby
baweaver has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ponga has quit [Ping timeout: 245 seconds]
elfuego has joined #ruby
MissionCritical has joined #ruby
MissionCritical has quit [Max SendQ exceeded]
peterhu has joined #ruby
Squarepy has quit [Quit: Leaving]
otisZart has quit [Remote host closed the connection]
<tnelsond>
jhass: yeah, commonmark looks like a better standard.
w0rldmaker has quit [Ping timeout: 265 seconds]
djbkd has quit [Remote host closed the connection]
AlexRussia has joined #ruby
wldcordeiro has joined #ruby
<jhass>
the benefit is that you can get in theory the same result across different tools
ptrrr has quit [Quit: ptrrr]
<jhass>
which is a complete mess in the markdown world atm
<jhass>
the issue with markdown is that there is/was no standard/specification
<jhass>
so everybody ended up interpreting it slightly differently
<bricker`work>
oh yeah
<jhass>
or forgetting a few cases
segmond has joined #ruby
<bricker`work>
jhass: I thought "CommonMark" and "BabelMark" were two different syntaxes, didn't realize they were implmentations
<jhass>
commonmark is a standardization of Markdown, the bablemark i linked above is a tool that runs a snippet through a ton of markdown/commonmark parsers
aswen has quit [Ping timeout: 245 seconds]
segmond has quit [Max SendQ exceeded]
segmond has joined #ruby
adriancb has joined #ruby
WildBamboo-Josh has quit [Quit: Leaving]
juanpablo_ has quit [Ping timeout: 246 seconds]
wolves_cs has quit [Ping timeout: 252 seconds]
PaulCapestany has quit [Quit: .]
tkuchiki has joined #ruby
DaniG2k has quit [Ping timeout: 252 seconds]
ta has quit [Remote host closed the connection]
mjuszczak has quit []
DaniG2k has joined #ruby
jottr_ has joined #ruby
PaulCapestany has joined #ruby
segmond has quit [Ping timeout: 244 seconds]
rushed has quit [Quit: rushed]
mjuszczak has joined #ruby
yekta has quit [Quit: yekta]
tkuchiki has quit [Ping timeout: 256 seconds]
robustus is now known as robustus|Off
razieliyo has joined #ruby
<Radar>
AsciiDoc is what Markdown should've been.
x1337807x has joined #ruby
iamjarvo has joined #ruby
x1337807x has quit [Max SendQ exceeded]
x1337807x has joined #ruby
roshanavand has quit [Ping timeout: 272 seconds]
x1337807x has quit [Max SendQ exceeded]
babykosh has quit [Quit: babykosh]
workmad3 has quit [Ping timeout: 246 seconds]
x1337807x has joined #ruby
wicope has quit [Remote host closed the connection]
<Senjai>
cute
<Senjai>
Havent heard of that before
x1337807x has quit [Max SendQ exceeded]
x1337807x has joined #ruby
DaniG2k has quit [Quit: leaving]
freerobby has quit [Quit: Leaving.]
scripore has quit [Quit: This computer has gone to sleep]
sivsushruth has quit [Ping timeout: 252 seconds]
bruno- has quit [Ping timeout: 250 seconds]
sivsushruth has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
adamski2600 has quit []
adriancb has quit [Read error: Connection reset by peer]
Hijiri has joined #ruby
Pisuke has quit [Quit: WeeChat 1.2-dev]
segmond has joined #ruby
jottr_ has quit [Ping timeout: 256 seconds]
mesamoo has joined #ruby
pandaant has quit [Read error: Connection reset by peer]
scripore has joined #ruby
adriancb has joined #ruby
shum has quit [Quit: WeeChat 1.1.1]
shum has joined #ruby
scripore has quit [Client Quit]
<Radar>
I've rewritten Rails 4 in Action in AsciiDoc and it's been nothing short of pleasing.
mjuszczak has quit []
<Senjai>
I had thought steve took over that book
<Senjai>
are you back on it?
<centrx>
Radar, why not tex/latex?
kavita has joined #ruby
<Radar>
centrx: Because I am not an academic
jerius has quit [Quit: /quit]
<Senjai>
centrx: Party like its 1984!
<Senjai>
xD
ponga has joined #ruby
<Radar>
Senjai: he did and now I'm back on it
tacotaco_ has quit [Ping timeout: 272 seconds]
<mozzarella>
who's Steve?
<Senjai>
Radar: Did you ever end up using that errata I made for R3IA?
<Senjai>
mozzarella: Steve Klabnik (sp?)
dj_zubehoer has quit [Remote host closed the connection]
<jhass>
skaag: to understand: obj["a"] is a method call, it's syntax sugar for obj.[]("a"). That method call returns you the nested hash on which you can chain the next method call, obj.[]("a").[]("b")
ponga has joined #ruby
leafybasil has joined #ruby
mary5030 has quit [Remote host closed the connection]
dapz has joined #ruby
Macaveli has quit [Ping timeout: 264 seconds]
sevvie has joined #ruby
mary5030 has joined #ruby
<skaag>
nice
duncannz has joined #ruby
oki has quit [Ping timeout: 246 seconds]
phutchins has joined #ruby
bruno- has quit [Ping timeout: 264 seconds]
bruno- has joined #ruby
djbkd has quit [Ping timeout: 245 seconds]
bricker`work is now known as bricker
Shazaum has joined #ruby
Shazaum has quit [Changing host]
Shazaum has joined #ruby
baweaver has joined #ruby
jen_ has joined #ruby
<jen_>
havenwood: hi again…I am not giving up!!
Aswebb_ has quit [Remote host closed the connection]
dapz has quit [Client Quit]
jlast has quit [Remote host closed the connection]
Hijiri has quit [Ping timeout: 265 seconds]
<jen_>
I cd into my directory, which ruby gives me 1.8.7-head. BUt I installed 2.2.0
<jen_>
now what/
jobewan has quit [Quit: Leaving]
<havenwood>
jen_: rvm use 2.2.0
mary5030 has quit [Ping timeout: 265 seconds]
<havenwood>
jen_: ruby -v
<havenwood>
jen_: ^ check that it's 2.2.0
emocakes has joined #ruby
<jhass>
jen_: also check for a .rvmrc or .ruby-version file
enebo has quit [Quit: enebo]
<jen_>
ok..sec
duncannz has quit [Ping timeout: 265 seconds]
<jen_>
where would the .rvmrc file be?
<jhass>
the projects root usually, if it exists
<jen_>
i see a .rvm directory
bruno- has quit [Ping timeout: 245 seconds]
<havenwood>
jen_: one more thing to check is that there's no `ruby=1.8.7` in your Gemfile