kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ascarter has quit [Ping timeout: 265 seconds]
wallerdev has quit [Quit: wallerdev]
nemesit|znc has quit [Ping timeout: 255 seconds]
wallerdev has joined #ruby
SilkFox has quit [Ping timeout: 245 seconds]
doodlehaus has quit [Remote host closed the connection]
mollitz has joined #ruby
ghr has joined #ruby
nwertman has joined #ruby
timonv has joined #ruby
<RubyPanther>
<3 <3 <3 ordered data
Megtastique has joined #ruby
SegFaultAX has quit [Excess Flood]
redondos has quit [Excess Flood]
zz_karupa is now known as karupa
redondos has joined #ruby
moritzschaefer has quit [Ping timeout: 240 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
ghr has quit [Ping timeout: 258 seconds]
nemesit|znc has joined #ruby
timonv has quit [Ping timeout: 264 seconds]
bradhe_ has quit [Remote host closed the connection]
rebelshrug has joined #ruby
pel_daniel has quit [Ping timeout: 276 seconds]
djbkd has quit [Remote host closed the connection]
<shevy>
<3 <3 <3 ordered boobs
pu22l3r has quit [Remote host closed the connection]
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mollitz has quit [Ping timeout: 264 seconds]
yfeldblu_ has joined #ruby
nateberkopec has joined #ruby
flowerhack has quit [Quit: Connection closed for inactivity]
SegFaultAX has joined #ruby
roadie has quit [Ping timeout: 250 seconds]
chrisseaton has quit []
musl has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 240 seconds]
musl has joined #ruby
nateberkopec has quit [Client Quit]
freerobby has joined #ruby
lukec has quit [Quit: lukec]
Jnco has joined #ruby
arrubin has joined #ruby
Jnco has quit [Remote host closed the connection]
mg^ is now known as mg_afk
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mg_afk is now known as mg^afk
pwh has quit []
CaptainJet has joined #ruby
Jnco has joined #ruby
thomasxie has joined #ruby
Rahul_Roy has quit [Quit: Connection closed for inactivity]
<happytux>
OK, so I include two ruby files in Rakefile, but their task (names) intersect at one point, both got a task named 'lint'.
<happytux>
So will the import fail? Can I solve this problem?
<Jnco>
Hey All - I am a former .net / php dev/ops semi dev coming into Ruby.. I just became part of a startup.. doing my best to get started here, had a question, I am pulling down an entire ruby app (all of the webapp folder) from a git repo, I have nginx and passenger setup.. I performed a bundle --deployment command to pull down all needed gems, I have the server running but getting a 404 error. I can see files inside the public folder but the site i
<Jnco>
tself (homepage etc) is not showing up.. (here is my nginx conf, http://pastebin.com/VjnKdRxy) was wondering if you guys had any idea where I could start looking
figgleberry has quit []
<benzrf>
happytux: oh, the wonders of ruby's import system
<happytux>
benzrf: or do I have to modify one imported file and comment out the offending task?
<happytux>
I don't to modify stuff.
endash has joined #ruby
<happytux>
*want
bakflash has quit [Ping timeout: 252 seconds]
pu22l3r has joined #ruby
<Jnco>
happy, do you know the most common reason why my nginx web server would be serving files (https://23.23.109.65/) but not the application itself?
<Jnco>
after setting up codebase on new server
<shevy>
no idea, I always use apache
CaptainJet has quit [Remote host closed the connection]
CaptainJet has joined #ruby
roadie has joined #ruby
testcore has quit [Quit: BitchX-1.3-git -- just do it.]
oo_ has joined #ruby
tjr9898__ has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
mrmargolis has quit [Remote host closed the connection]
armyriad has quit [Ping timeout: 252 seconds]
nateberkopec has joined #ruby
thomasxie has quit [Ping timeout: 250 seconds]
cashnguns has joined #ruby
Hobogrammer has quit [Ping timeout: 264 seconds]
tjr9898 has quit [Ping timeout: 276 seconds]
cjbottaro has joined #ruby
<cjbottaro>
I can't build native gems due to the clang 5.1 issue. ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future bundle install is not working either. What am I doing wrong?
tkuchiki has joined #ruby
JoeGaudet has quit [Quit: Computer has gone to sleep.]
cjbottaro has quit [Client Quit]
pu22l3r has quit [Remote host closed the connection]
amclain has joined #ruby
linojon has quit [Quit: linojon]
baweaver has joined #ruby
PatMakesThings has quit [Ping timeout: 240 seconds]
bin_bash has joined #ruby
tjr9898__ has quit [Read error: Connection reset by peer]
cescalante is now known as ce_afk
jamto11 has quit [Remote host closed the connection]
cricketonastick has joined #ruby
kenneth has joined #ruby
robustus has quit [Ping timeout: 252 seconds]
tjr9898 has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<try>
centrx, thank you. that is good to know. if i do eval print.class in irb, i get NilClass. if i do gets.class, i get String (after entrering something)
rebelshrug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alexju has joined #ruby
CorpusCallosum has quit [Ping timeout: 264 seconds]
oo_ has quit [Remote host closed the connection]
pu22l3r has joined #ruby
nwertman has quit [Ping timeout: 252 seconds]
ValicekB has joined #ruby
<centrx>
try, right, this is an example of method chaining
ce_afk is now known as cescalante
<centrx>
try, the return value of the first method becomes the receiver of the second method
pika_pika has quit [Ping timeout: 240 seconds]
<centrx>
try, This can go on endless, so you can have things like: Date.today.beginning_of_month.end_of_week (this example is from ActiveSupport/Rails)
<try>
oh... still getting used to the optional parens! thank you!
michaeldeol has joined #ruby
raspberrypi has joined #ruby
pu22l3r has quit [Ping timeout: 250 seconds]
kevinykc_ has quit [Read error: Connection reset by peer]
aspires has joined #ruby
kevinykchan has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
hamakn_ has joined #ruby
aspires has quit [Client Quit]
datafirm has joined #ruby
krazh has quit [Remote host closed the connection]
krazh has joined #ruby
Rylee_ has quit [Remote host closed the connection]
ghr has joined #ruby
Rylee has joined #ruby
nari has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
razrunelord has joined #ruby
codeurge has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aspires has joined #ruby
lukec has quit [Quit: lukec]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
raspberr_ has quit [Remote host closed the connection]
apeiros_ is now known as apeiros
raspberryfan has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
raspberryfan has quit [Remote host closed the connection]
raspberryfan has joined #ruby
fgo has joined #ruby
raspberrypi has joined #ruby
marcdel has joined #ruby
Valesk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fgo has quit [Read error: No route to host]
fgo has joined #ruby
arrubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kenneth has joined #ruby
pwh has joined #ruby
oo_ has joined #ruby
marcdel has quit [Ping timeout: 252 seconds]
Morkel has joined #ruby
fgo has quit [Ping timeout: 255 seconds]
marcdel has joined #ruby
danman_ has quit [Quit: danman_]
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
SirFunk has quit [Ping timeout: 240 seconds]
relix has joined #ruby
wald0 has quit [Ping timeout: 240 seconds]
njs126 has joined #ruby
jamto11 has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
jamto11 has joined #ruby
apeiros has joined #ruby
SirFunk has joined #ruby
wald0 has joined #ruby
jsutch has joined #ruby
jsutch has quit [Client Quit]
sj__ has joined #ruby
apeiros has quit [Ping timeout: 252 seconds]
jamto11 has quit [Remote host closed the connection]
felixjet has joined #ruby
nateberkopec has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
aganov has joined #ruby
armyriad has joined #ruby
aspires has quit []
pwh has quit []
Valesk has joined #ruby
Valesk has quit [Remote host closed the connection]
_justin has joined #ruby
soheil has joined #ruby
aspires has joined #ruby
CodeBunny has joined #ruby
soheil has quit [Ping timeout: 264 seconds]
iliketurtles has joined #ruby
davedev24 has quit [Remote host closed the connection]
davedev24 has joined #ruby
JasmeetQA has joined #ruby
krazh has quit [Remote host closed the connection]
krazh has joined #ruby
krazh has quit [Client Quit]
apeiros has joined #ruby
raspberryfan has quit [Remote host closed the connection]
raspberrypi has quit [Quit: Leaving.]
raspberryfan has joined #ruby
Hobogrammer_ has joined #ruby
<sj__>
trying to ingest a directory of filenames that look like qa-test-1, qa-test-2, prod-test-2, dev-test-3 etc, split them into an array along the -, then reuse the array components like: dev-test-3 could be used like "puts file[3], file[2], file[1]" or in some other order.
davedev24 has quit [Ping timeout: 265 seconds]
Hobogrammer has quit [Ping timeout: 258 seconds]
jprovazn has joined #ruby
_tpavel has joined #ruby
fgo has joined #ruby
xcesariox has joined #ruby
CodeBunny has quit [Quit: CodeBunny needs a carrot. Be back later.]
aspires has quit []
aspires has joined #ruby
freggles has quit [Ping timeout: 252 seconds]
razrunelord has joined #ruby
agjacome has quit [Quit: leaving]
omosoj has quit [Quit: Leaving]
<apeiros>
sj__: was that a question? or context to a question I missed?
<sj__>
it's a question.
xcesariox has quit [Client Quit]
<apeiros>
in that case - I don't see a question in that "question" :)
agrinb has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sj__>
"how do I split a filename string across a delimiter and put it into an array such that I could manipulate the elements of each file in a loop"
<apeiros>
a filename is a string. splitting a string is done by String#split. depending on your case, String#match with MatchData#captures might be an option
<apeiros>
putting things in an array: []=, push, <<
razrunelord has quit [Ping timeout: 240 seconds]
chipotle has quit [Read error: Connection reset by peer]
chipotle_ has quit [Remote host closed the connection]
<sj__>
hm. ok
mordocai has quit [Ping timeout: 240 seconds]
kevinykchan has quit [Read error: Connection reset by peer]
tagrudev has joined #ruby
agrinb has quit [Ping timeout: 240 seconds]
<apeiros>
at the moment, your "question" is quite a bit "please write the code for me". please show what you've tried. people here gladly help. but writing the code for you isn't what we usually do.
eynj has left #ruby [#ruby]
kevinykchan has joined #ruby
chipotle has joined #ruby
subraminion has joined #ruby
<sj__>
thanks. I was trying to explain the problem and I didn't do a good job of formulating the question.
<sj__>
<-n00b.
<apeiros>
that's ok. just telling you how I perceive it and what you can do against it :)
robert_ has quit [Read error: Connection reset by peer]
subraminion has quit [Client Quit]
paradisaeidae has joined #ruby
<sj__>
sure. appreciated.
krz has quit [Ping timeout: 240 seconds]
subraminion has joined #ruby
soheil has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
jack_rabbit has quit [Ping timeout: 240 seconds]
subraminion has quit [Remote host closed the connection]
WishBoy has quit [Remote host closed the connection]
raspberryfan has quit [Remote host closed the connection]
subraminion has joined #ruby
raspberryfan has joined #ruby
WishBoy has joined #ruby
oo_ has quit [Remote host closed the connection]
tobago has joined #ruby
Gabri has joined #ruby
raspberrypi has joined #ruby
jericon_ is now known as jericon
soheil has quit [Ping timeout: 255 seconds]
oo_ has joined #ruby
Gabri has quit [Client Quit]
timonv has joined #ruby
meatherly has quit [Remote host closed the connection]
trhodes_ has quit [Ping timeout: 264 seconds]
shvelo has quit [Ping timeout: 252 seconds]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
trhodes_ has joined #ruby
kitak_ has quit [Ping timeout: 240 seconds]
timonv has quit [Ping timeout: 264 seconds]
kitak_ has joined #ruby
felipec has joined #ruby
<felipec>
is there a good way to iterate through a hash with two values as keys?
krz has joined #ruby
<felipec>
hash[[0, 1]] = true
oo_ has quit [Remote host closed the connection]
marcdel has quit []
<apeiros>
felipec: there is no such thing as "two values as key"
codeFiend has joined #ruby
<apeiros>
felipec: your key is one value, that value is an array
<raspberryfan>
I learned ruby a long time ago, so many compatible problems in diff versions. and I gave up.
euclides has joined #ruby
<felipec>
apeiros: look up ^
oo_ has joined #ruby
<apeiros>
felipec: yes. precisely what I said.
nateberkopec has joined #ruby
HornD has joined #ruby
wildroman2 has joined #ruby
<apeiros>
[0,1] # <- one object, one key
<felipec>
apeiros: ignored, you are not useful
<apeiros>
felipec: lol, k
HornD has quit []
Soliah has quit [Quit: Soliah]
<apeiros>
tell me when you figured that it's just how I said it :-p
timonv has joined #ruby
i_s has quit [Remote host closed the connection]
ktun has joined #ruby
bal has joined #ruby
diegoviola has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
sqwirl has joined #ruby
jamto11_ has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
euclides has quit [Client Quit]
kevinykc_ has joined #ruby
kevinykchan has quit [Read error: Connection reset by peer]
<felipec>
I guess the closest would be hash.each {|key, value| a, b = key; stuff(a, b, value) }
oo_ has joined #ruby
<apeiros>
I could tell you how to do it better. But since I'm not useful :-p
toastynerd has joined #ruby
<felipec>
apeiros: I don't believe you could
jarray52 has left #ruby [#ruby]
<apeiros>
felipec: I don't care that you don't believe I could :)
<felipec>
apeiros: prove it
jamto11_ has quit [Ping timeout: 265 seconds]
<apeiros>
no
<felipec>
apeiros: I knew it, you can't
<apeiros>
there's a difference between can't and won't
<apeiros>
felipec: and your rude behavior is why I won't
oo_ has quit [Remote host closed the connection]
<felipec>
apeiros: you can't either way, so it doesn't matter what you say
oo_ has joined #ruby
<apeiros>
there is 1 way to do it better which works for 1.8, there are 2 ways to do your example code better in 1.9+
<apeiros>
lets see whether somebody else will tell you
<apeiros>
otherwise, may this be a lesson for you why being rude will negatively affect you.
<apeiros>
(one of the 2 ways for 1.9+ is the one way for 1.8)
amclain has quit [Quit: Leaving]
andikr has joined #ruby
<felipec>
apeiros: lier
<apeiros>
*liar
<apeiros>
continuing to be rude won't help you felipec
<centrx>
I HAVE SEEN THE FUTURE
<apeiros>
:D
<centrx>
Everything in Ruby Prime will be a METHOD!!!
anaeem1 has joined #ruby
kiri has joined #ruby
Rahul_Roy has joined #ruby
aspires has quit []
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
<felipec>
looks like this does the trick: hash.each {|(a, b), value| stuff(a, b, value) }
<apeiros>
bravo
<apeiros>
that'd be the one which works for 1.8+
<apeiros>
see, being nice could have saved you 20 minutes :-p
toastynerd has quit [Remote host closed the connection]
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros>
the one for 1.9+ is IMO less ugly
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
anaeem1 has quit [Remote host closed the connection]
<felipec>
apeiros: I don't believe you knew about that one
<apeiros>
felipec: don't worry, I can prove it.
<apeiros>
a) because I've code which is 5+ years old which uses that
<apeiros>
b) because I gisted it and gist shows the time ;-)
<felipec>
apeiros: show me
aspires has joined #ruby
<apeiros>
hm, should I show you? it contains the 1.9+ too and I don't really want to show you…
<felipec>
apeiros: either way the second for is not useful, I want the variables a and b
<apeiros>
felipec: "is not useful" is not the same as "I can't use it"
WishBoy has quit [Remote host closed the connection]
<apeiros>
felipec: also, I specifically said *your example*
<felipec>
apeiros: nope, github says you are lying
WishBoy has joined #ruby
<apeiros>
felipec: I don't know where you look. but you can hover over the "created at" and it shows you the precise time.
<apeiros>
felipec: so you can stop being an insulting jerk and apologize.
tyfighter has quit [Quit: tyfighter]
<felipec>
apeiros: 6:19:46Z, which is basically when I provided the answer, so you are lying
ghr has joined #ruby
<apeiros>
felipec: are you stupid?
klaut has joined #ruby
<apeiros>
08:26 felipec: looks like this does the trick: hash.each {|(a, b), value| stuff(a, b, value) }
<apeiros>
that's 7 minutes after
<apeiros>
but sure
anaeem1_ has joined #ruby
<apeiros>
I guess you're just too much of an ass to apologize, even when facing evidence.
thomasxie has joined #ruby
<felipec>
apeiros: all right, the time in my laptop was phased, so maybe you are telling the truth
<felipec>
apeiros: you are still an asshole
felipec was kicked from #ruby by apeiros [felipec]
<apeiros>
blupp
senayar has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 264 seconds]
lsmola has joined #ruby
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pu22l3r has joined #ruby
ktun has joined #ruby
zoraj has joined #ruby
sinkensabe has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
aspires has quit []
aspires has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
anaeem1 has joined #ruby
anaeem___ has joined #ruby
pu22l3r has quit [Ping timeout: 258 seconds]
claymore has joined #ruby
sinkensabe has quit []
sinkensabe has joined #ruby
anaeem1 has quit [Ping timeout: 276 seconds]
raspberrypi has left #ruby [#ruby]
raspberryfan_ has joined #ruby
WishBoy has quit [Remote host closed the connection]
wildroman2 has quit [Remote host closed the connection]
try has quit [Ping timeout: 252 seconds]
WishBoy has joined #ruby
CorySimmons has quit [Quit: Zzz...]
CorySimmons has joined #ruby
oo_ has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
sinkensa_ has joined #ruby
Silent__ has joined #ruby
klaut_ has joined #ruby
matled- has joined #ruby
vpretzel_ has joined #ruby
Mongey_ has joined #ruby
sinkensa_ has left #ruby [#ruby]
matti_ has joined #ruby
yo61_ has joined #ruby
matled has quit [Read error: Connection reset by peer]
Davey has quit [Ping timeout: 252 seconds]
s_e has quit [Ping timeout: 252 seconds]
clamstar has quit [Ping timeout: 252 seconds]
Mongey has quit [Ping timeout: 252 seconds]
yo61 has quit [Ping timeout: 252 seconds]
Morrolan has quit [Ping timeout: 252 seconds]
dreamchaser has quit [Ping timeout: 252 seconds]
CorySimmons has quit [Ping timeout: 252 seconds]
matti has quit [Ping timeout: 252 seconds]
sinkensabe has quit [Ping timeout: 252 seconds]
matled- is now known as matled
klaut has quit [Ping timeout: 252 seconds]
Hobogrammer_ has quit [Ping timeout: 252 seconds]
vpretzel has quit [Ping timeout: 252 seconds]
matti_ is now known as matti
claymore has quit [Ping timeout: 276 seconds]
aspires has quit []
Morrolan has joined #ruby
Davey has joined #ruby
anaeem___ has quit [Quit: Leaving...]
s_e has joined #ruby
Guest68077 has joined #ruby
oo_ has joined #ruby
shvelo has joined #ruby
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Xeago has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wildroman2 has joined #ruby
andikr has quit [Ping timeout: 265 seconds]
clamstar has joined #ruby
_justin_ has joined #ruby
zigomir has joined #ruby
_justin has quit [Ping timeout: 252 seconds]
_justin_ is now known as _justin
oo_ has quit [Remote host closed the connection]
bluOxigen has quit []
oo_ has joined #ruby
xcesariox has joined #ruby
nateberkopec has joined #ruby
robbyoconnor has joined #ruby
sinkensabe has joined #ruby
ktun has joined #ruby
bal has quit [Quit: bal]
hermanmunster has quit [Remote host closed the connection]
tharindu has joined #ruby
hermanmunster has joined #ruby
wildroman2 has quit [Remote host closed the connection]
claymore has joined #ruby
oo_ has quit [Remote host closed the connection]
subraminion has quit [Read error: Connection reset by peer]
subraminion has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
wildroman2 has joined #ruby
hermanmunster has quit [Ping timeout: 240 seconds]
zxq9 has quit [Ping timeout: 245 seconds]
bal has joined #ruby
Xeago has quit [Remote host closed the connection]
paradisaeidae has quit [Quit: ChatZilla 0.9.90.1 [Firefox 30.0/20140505140302]]
seaned has joined #ruby
<vali>
port => "9300"
<vali>
ups
<vali>
morning
<apeiros>
moin :)
raspberryfan has quit []
raspberryfan_ is now known as raspberryfan
AnoGen has joined #ruby
tris has joined #ruby
Xeago has joined #ruby
sooik has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
Jnco has quit [Quit: Jnco]
<toretore>
raspberries are nice
LekeFly has joined #ruby
wildroman2 has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
oo_ has quit [Remote host closed the connection]
robert_ has joined #ruby
robert_ has quit [Changing host]
robert_ has joined #ruby
raspberr_ has joined #ruby
robert_ has quit [Max SendQ exceeded]
ari-_-e has quit [Ping timeout: 245 seconds]
ndrei has joined #ruby
sensen has joined #ruby
rdark has joined #ruby
datafirm has quit [Quit: Computer has gone to sleep.]
Avahey_ has quit [Quit: Connection closed for inactivity]
oo_ has joined #ruby
<atmosx>
toretore: true, they are awesome.
<atmosx>
morning
hermanmunster has joined #ruby
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
razrunelord has joined #ruby
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
mikecmpbll has joined #ruby
agrinb has joined #ruby
sinkensa_ has joined #ruby
Xeago has quit [Remote host closed the connection]
<apeiros>
moin toretore & atmosx
krz has quit [Ping timeout: 250 seconds]
Shidash has joined #ruby
sinkensa_ has quit [Remote host closed the connection]
sinkensa_ has joined #ruby
wildroman2 has joined #ruby
razrunelord has quit [Ping timeout: 240 seconds]
tharindu has quit [Quit: Leaving...]
sinkensabe has quit [Ping timeout: 240 seconds]
oo_ has quit [Remote host closed the connection]
ktun has joined #ruby
agrinb has quit [Ping timeout: 252 seconds]
yfeldblu_ has joined #ruby
timonv has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: i've nodded off.]
ktun has quit [Client Quit]
DouweM has quit [Ping timeout: 240 seconds]
sinkensa_ has quit [Ping timeout: 264 seconds]
sk87 has joined #ruby
ari-_-e has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
oo_ has joined #ruby
yfeldblu_ has quit [Ping timeout: 240 seconds]
<toretore>
mornin atmosx apeiros
<atmosx>
:-)
shiin has joined #ruby
shadoi has quit [Quit: Leaving.]
sooik has quit [Ping timeout: 252 seconds]
Xeago has joined #ruby
ddv has quit [Changing host]
ddv has joined #ruby
ktun has joined #ruby
elaptics`away is now known as elaptics
mikecmpbll has joined #ruby
_justin has quit [Quit: _justin]
moritzs has joined #ruby
ghr has joined #ruby
yacks has joined #ruby
yacks has quit [Max SendQ exceeded]
tharindu has joined #ruby
alex88 has joined #ruby
yacks has joined #ruby
elikem has joined #ruby
mercerist has joined #ruby
codeFiend has quit [Ping timeout: 240 seconds]
blackmes1 has joined #ruby
gigo1980 has joined #ruby
nuck has quit [Ping timeout: 276 seconds]
oo_ has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
Burgestrand has joined #ruby
marr has joined #ruby
kitak_ has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 240 seconds]
nateberkopec has joined #ruby
dawe has joined #ruby
nolic has quit [Remote host closed the connection]
oo_ has joined #ruby
hermanmunster has quit [Remote host closed the connection]
kitak_ has joined #ruby
hermanmunster has joined #ruby
sinkensabe has joined #ruby
moritzs has quit [Ping timeout: 250 seconds]
_justin has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
jamto11 has joined #ruby
andrewlio has joined #ruby
roolo has joined #ruby
hermanmunster has quit [Ping timeout: 245 seconds]
moritzs has joined #ruby
spyzer has joined #ruby
<spyzer>
hey guys does compass run faster on ruby 2.1? I was unable to find benchmarks
bakflash has quit [Remote host closed the connection]
bakflash has joined #ruby
jamto11 has quit [Ping timeout: 258 seconds]
wildroman2 has quit []
<centrx>
spyzer, Probably
<centrx>
spyzer, The app I tested it on was 25% faster than 2.0
<apeiros>
spyzer: just install ruby 2.1 and try? with rvm or similar tools you can switch any time between different rubies
* apeiros
curious when rvm will get ruby 2.1.2
sheepman has quit [Read error: Connection reset by peer]
<apeiros>
probably today or tomorrow
<Sp4rKy>
centrx:
yfeldblum has joined #ruby
predator117 has quit [Ping timeout: 264 seconds]
toretore has quit [Quit: This computer has gone to sleep]
obs has joined #ruby
kaspergrubbe has joined #ruby
blackmes1 has quit [Ping timeout: 276 seconds]
predator117 has joined #ruby
<Burgestrand>
RVM is installing 2.1.2 for me at the moment, apeiros
<Burgestrand>
Granted, it’s from source, but I’m not sure of what you’re waiting for. (:
timonv has joined #ruby
subraminion has quit [Quit: Computer has gone to sleep.]
kaspergrubbe has quit [Ping timeout: 258 seconds]
krz has joined #ruby
<apeiros>
Burgestrand: huh? why does it not show 2.1.2 in the list then? :-O
<apeiros>
Burgestrand: ah, you're probably on edge rvm?
<apeiros>
I use rvm stable :)
<apeiros>
rvm -v --> rvm 1.25.25 (stable)
johng_ has joined #ruby
coderhs has joined #ruby
<apeiros>
hm, no, installing rvm head doesn't get me 2.1.2 either :-/
AnoGen has quit []
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AnoGen has joined #ruby
kaspergrubbe has joined #ruby
LekeFly has joined #ruby
Rahul_Roy has quit [Quit: Connection closed for inactivity]
johng_ has quit [Quit: Leaving]
<Burgestrand>
apeiros: using 1.25.19
<Burgestrand>
I just did `rvm install 2.1.2` and it complied!
funburn has joined #ruby
<apeiros>
hm
<apeiros>
lets try…
einarj has joined #ruby
<apeiros>
hah
<apeiros>
nice
<apeiros>
thanks Burgestrand, TIL :)
klaut_ has quit [Remote host closed the connection]
alexju has quit [Remote host closed the connection]
<Burgestrand>
:)
nuck has joined #ruby
rdark has quit [Ping timeout: 265 seconds]
heftig has joined #ruby
<apeiros>
you don't happen to have a twitter handle, Burgestrand?
speakingcode has quit [Ping timeout: 245 seconds]
<Burgestrand>
apeiros: I’m always named Burgestrand everywhere ;)
<Burgestrand>
apeiros: I don’t use twitter much though. Too much noise.
<apeiros>
evil twitter doesn't autocomplete your nick for me :(
datafirm has joined #ruby
<apeiros>
you know, in my dialect, your name means "beach of castles" :)
greenarrow has joined #ruby
<Burgestrand>
apeiros: it does in Swedish too, but Burg isn’t used in regular speach nowadays
jenskarlsen_ has joined #ruby
bkparso has quit [Ping timeout: 250 seconds]
jenskarlsen has quit [Ping timeout: 250 seconds]
jenskarlsen_ is now known as jenskarlsen
<Burgestrand>
speach?
pu22l3r has joined #ruby
<Burgestrand>
Ha.
<apeiros>
speech
<apeiros>
sbeach
RubyPanther has quit [Ping timeout: 250 seconds]
<apeiros>
heh, funny. you know how that name came to be?
<Burgestrand>
Mine?
<apeiros>
yes
predator117 has quit [Ping timeout: 255 seconds]
<Burgestrand>
Yeah, it’s the concatenation of the surnames of my parents, but I write it together because it’s convenient on the internet
<apeiros>
your parents are named "castle" and "beach"? :D
<DefV>
jo/4
<apeiros>
that's awesome
<Burgestrand>
Burge, and Strand, yeah!
<Burgestrand>
In reality I have two surnames, which tend to mess up a lot of governmental computer systems
<Burgestrand>
It isn’t that uncommon, so it’s a bit weird they don’t handle it better…
<apeiros>
^^
datafirm has quit [Ping timeout: 265 seconds]
<apeiros>
names and computers… always an issue
<apeiros>
swiss interbanking communication can't handle first+lastname > 35 chars
<Burgestrand>
Hah.
<apeiros>
our spanish and indian customers are so happy about that
<Burgestrand>
I can imagine.
bkparso has joined #ruby
<Burgestrand>
There is a really nice article about names in programming (and it’s not the “falsehoods programmers believe about names”), but I can’t seem to find it.
pu22l3r has quit [Ping timeout: 245 seconds]
sski has joined #ruby
kevinykc_ has quit [Read error: Connection reset by peer]
Kneferilis has quit [Read error: Connection reset by peer]
pduersteler has quit [Quit: Page closed]
yfeldblum has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
jamto11 has joined #ruby
fgo has quit [Remote host closed the connection]
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Morkel_ has joined #ruby
danshultz has joined #ruby
Morkel has quit [Ping timeout: 250 seconds]
Morkel_ is now known as Morkel
_justin has joined #ruby
RubyPanther has quit [Ping timeout: 252 seconds]
jamto11 has quit [Ping timeout: 258 seconds]
shiin has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
DeusTron has left #ruby [#ruby]
chrisseaton has joined #ruby
mercwithamouth has joined #ruby
aiguu has joined #ruby
<aiguu>
how can I map array of strings into a hash map?
maximski has joined #ruby
<aiguu>
I want to take Hash[["a", "foo"]] and convert to { "a" => "foo" }
<aiguu>
but work on variable lengths of pairs
sinkensabe has joined #ruby
<Hanmac1>
aiguu: Hash[*["a", "foo"]]
<aiguu>
brilliant, thanks!
<aiguu>
how does that work
ktun has joined #ruby
<Hanmac1>
with evil black magic
Hanmac1 is now known as Hanmac
danshultz has quit [Ping timeout: 264 seconds]
<j416>
> variable lengths of pairs
<j416>
a pair is by definition length 2
eka has joined #ruby
<j416>
o_O
nari has quit [Ping timeout: 245 seconds]
tesuji has joined #ruby
<Mon_Ouie>
But you can have more than one pair
flops has joined #ruby
<aiguu>
I just made a simple arg parser for argv
<aiguu>
for a one off script
<aiguu>
-t someemail -f somesender -b some body
shiin has joined #ruby
<aiguu>
worked
phoo1234567 has joined #ruby
<j416>
aiguu: as long as all options have one argument.. hm :)
jxf has quit [Ping timeout: 258 seconds]
<j416>
aiguu: thanks though, you reminded me to improve my own option parser
jamespw has joined #ruby
moritzs has joined #ruby
tjbiddle has joined #ruby
karupa is now known as zz_karupa
bal has quit [Quit: bal]
nfk has joined #ruby
<tjbiddle>
Can anyone help me out with OAuth1 in Ruby? I'm looking at a Python app that someone wrote and am trying to mimic the request in Ruby. They're using Python requests and it's essentially just: requests.get(self.server_url+url,params=payload,auth=OAuth1(client_key, client_secret),verify=False)
<tjbiddle>
workmad3: Read through just about every possible iteration of Google results. I'm starting to wonder if they don't have a proper OAuth implementation or something and they're just hacking around it.
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kitak_ has quit [Remote host closed the connection]
<workmad3>
tjbiddle: in your python app?
sski has quit [Remote host closed the connection]
<tjbiddle>
But thanks. I just need to get some sort of ping back to see if an app is functional - I think I'll just do that by seeing if it gives a proper error for me not sending in stuff rather than fully implementing it.
sski has joined #ruby
<workmad3>
tjbiddle: because there are plenty of oauth implementations in ruby...
<tjbiddle>
workmad3: I mean I don't think that the service I'm working with has it implemented correctly. The python app has no references to call backs or tokens of any sort. Just the consumer key and secret.
<tjbiddle>
Yet it works fine.
<workmad3>
tjbiddle: ah, ok :)
kung has joined #ruby
<tjbiddle>
I was just given a few files that said "Hey - see if this works - do what you can with it."
<tjbiddle>
lol
<workmad3>
ah, the classic way to start a new project... :D
TaxmanBD has joined #ruby
bal has joined #ruby
<tjbiddle>
Yeeup :p Heh
kitak_ has joined #ruby
Shidash has quit [Quit: Leaving.]
kitak_ has quit [Read error: Connection reset by peer]
AlSquire has joined #ruby
kitak_ has joined #ruby
sensen has quit [Quit: leaving]
razrunelord has quit [Ping timeout: 258 seconds]
RaptorJesus has quit [Ping timeout: 272 seconds]
fgo has joined #ruby
askldjuio2 has quit [Ping timeout: 255 seconds]
sski has quit [Ping timeout: 252 seconds]
ndrei has quit [Ping timeout: 265 seconds]
Ardenzi has joined #ruby
ndrei has joined #ruby
raspberr_ has quit []
raspberryfan has quit [Quit: raspberryfan]
_justin has quit [Quit: _justin]
subraminion has quit [Read error: Connection reset by peer]
subraminion_ has joined #ruby
shredding has quit [Quit: shredding]
ta has quit [Quit: Leaving...]
ta has joined #ruby
ktun has joined #ruby
sski has joined #ruby
nari has joined #ruby
Deele has joined #ruby
askldjuio2 has joined #ruby
phantasm66 has joined #ruby
thomasxie has quit [Quit: Leaving.]
TaxmanBD has quit [Ping timeout: 264 seconds]
nateberkopec has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
doodlehaus has joined #ruby
BucOder has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
JasmeetQA has quit [Read error: Connection reset by peer]
funburn has quit [Ping timeout: 245 seconds]
zoraj has quit [Remote host closed the connection]
moritzs has quit [Ping timeout: 250 seconds]
kevinykchan has quit [Quit: Computer has gone to sleep.]
Mongey_ has quit [Ping timeout: 240 seconds]
mercerist has quit [Quit: Computer has gone to sleep.]
ktun has quit [Read error: Connection reset by peer]
flops has quit [Quit: leaving]
ktun has joined #ruby
gregf has quit [Quit: WeeChat 0.4.3]
atmosx has quit [Quit: WeeChat 0.4.4-dev]
sooik has joined #ruby
lw has joined #ruby
lw has quit [Max SendQ exceeded]
lw has joined #ruby
blackmes1 has joined #ruby
shiin has quit [Ping timeout: 265 seconds]
tkuchiki_ has quit [Remote host closed the connection]
root3d has joined #ruby
krz has quit [Quit: WeeChat 0.4.3]
<yo61>
Did "gem build" behaviour change in 2.x so the current dir is not in the include path?
<workmad3>
yo61: ruby behaviour changed in 1.9.2 so that '.' wasn't on the include path by default
yfeldblu_ has joined #ruby
moritzs has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
<yo61>
I have 1.9.3 on a RHEL 6 box, and the sam,e ruby (with rbenv) on my mbp (OSX)
<yo61>
The RHEL box has gem 1.8.23, my Mac has 2.2.2
<yo61>
the project builds on RHEL but not on my Mac
sooik has quit [Ping timeout: 265 seconds]
atmosx has joined #ruby
<yo61>
What's the "right way" to add the project dir to the include path when I build the gem?
<workmad3>
yo61: may be worth asking in #rubygems if no one else here has an idea...
<shock_one>
How would I avoid this duplication if I can't edit the class' signature? TransferInfo.new(transfer: transfer, association: association, scheduled_at: scheduled_at)
oo_ has quit [Remote host closed the connection]
askldjuio2 has quit [Remote host closed the connection]
<apeiros>
shock_one: what duplication?
<shock_one>
apeiros, transfer: transfer and such.
<apeiros>
eh, that's not duplication
askldjuio2 has joined #ruby
spyderman4g63 has quit [Read error: No route to host]
<apeiros>
one is an object (Symbol key), one is a local variable name
<shock_one>
apeiros, but it doesn't seem nice.
<shock_one>
I understand.
<apeiros>
shock_one: use positional arguments
<shock_one>
apeiros, I can't edit TransferInfo.
<apeiros>
is it frozen?
<shock_one>
apeiros, it's part of a library.
<apeiros>
yeah, that's != can't edit
<workmad3>
shock_one: you could also use shorter variable names... 'TransferInfo.new(transfer: t, association: a, scheduled_at: s)'
<apeiros>
you can do def TransferInfo.positional_new(transfer, association, scheduled_at); new(transfer: transfer, association: association, scheduled_at: scheduled_at); end
<shock_one>
workmad3, when I see single letter variables, I pull out my magnum.
root3d has quit [Ping timeout: 240 seconds]
<shock_one>
apeiros, sure, but it's kind of dirty.
kyb3r__ has quit [Quit: Leaving]
<apeiros>
shock_one: ok. then the answer is: no
<workmad3>
shock_one: depends on how long the variables are in existence for, IMO
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros>
all other variants are equally dirty
root3d has joined #ruby
TaxmanBD has joined #ruby
<shock_one>
workmad3, in my opinion the only allowed single letter varibles are counters. Maybe also some corner cases like cartesian dimensions.
<apeiros>
btw., is binding_of_caller still only a hack?
flughafen has joined #ruby
lw has quit [Quit: s]
mercerist has joined #ruby
<apeiros>
seems like. at least it's not in ruby 2.1.2
sk87 has joined #ruby
<workmad3>
shock_one: I'd consider them in a method where they only existed for a single line and were immediately passed on to keyword args to restore their meaning
ktun has joined #ruby
<workmad3>
shock_one: but I don't know if that's your situation or not
greenarrow has joined #ruby
<shock_one>
workmad3, yes, pretty much. But I accept them as parameters and pass to this constructor.
doodlehaus has quit [Remote host closed the connection]
<workmad3>
shock_one: mostly though, I just accept the hit of duplicated naming when I use kwargs like that :)
<apeiros>
shock_one: that's on the other side of things
<apeiros>
and does not help you with your case
<apeiros>
a syntax solution could look somewhat like this: foo(*&(a, b, c)) - which would be evaluated as: foo(a: a, b: b, c: c)
<apeiros>
but sigils-- :-S
<shock_one>
apeiros, yeah, my bad. I think thou shan't rely on variable names.
<apeiros>
shock_one: I think that's actually fine
<apeiros>
I mean you know your local context
rebelshrug has joined #ruby
tjbiddle has quit [Ping timeout: 250 seconds]
<workmad3>
shock_one: the reason I don't mind the duplication with kwargs is partly because of that... I don't see it as true duplication, because either the kwarg name or the local var name could be changed without impacting the other
<shock_one>
apeiros, maybe I should build a hash instead of assigning?
<apeiros>
but I'm not sure it'd be wise to allow automatic pulling, i.e., what my code did in syntax form: foo(*&) automatically pulling the kwargs
davedev24 has joined #ruby
<apeiros>
workmad3: yeah, hence my initial "that's not duplication". I see it the same way.
<apeiros>
also I like it when the code is explicit
<apeiros>
but then again, I'm a lazy bastard, which is why I ponder making above syntax a feature request on bugs.ruby-lang.org
nateberkopec has joined #ruby
momomomomo has joined #ruby
<workmad3>
apeiros: I like to wonder how people who remove that sort of duplication plan on dealing with all the 'duplicated' letters in their codebase :)
<apeiros>
workmad3: makros!
<workmad3>
:)
askldjuio2 has quit [Ping timeout: 240 seconds]
<apeiros>
damn you!
<apeiros>
now I'm thinking about abusing whitequarks parser to implement makros
<apeiros>
no, no, no. no time for this.
<workmad3>
:D
<apeiros>
especially because I would *never* use it
<apeiros>
I think makros are born out of desparation.
<shock_one>
☎ = make_phonē
<workmad3>
I take it you mean something like Cs pre-processor macros, yeah
<workmad3>
?
<apeiros>
yes
<workmad3>
not lisp macros
<apeiros>
oh, macros
<apeiros>
english, y u no k?
<apeiros>
not familiar enough with lisp :-|
stef_204 has joined #ruby
<workmad3>
lisp macros are ways of rewriting s-expressions
<workmad3>
while C pre-processor macros are purely lexical substitution
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shock_one>
workmad3, yeah, very explaining. Lisp macros is code that generates code.
<apeiros>
well, I guess in lisp it's quite a bit different, since there, code is data. and the macro is at runtime
<apeiros>
so it's closer to rubys metaprogramming
<workmad3>
apeiros: pretty much :) but it can go a step further and also change valid syntax
<apeiros>
has its own demerits, but is IMO far less horrendous than C style preprocessor macros
<workmad3>
shock_one: :D
<shock_one>
very convenient to make DSLs. For example, you can have nice SQL syntax with macros. http://sqlkorma.com/docs
doodlehaus has joined #ruby
<shock_one>
Or you can make a program that makes programs.
sqwirl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ktun has joined #ruby
jamto11 has joined #ruby
<workmad3>
apeiros: I think ruby would be a step closer to lisp macros if we had a way of defining a method that could pass expressions as arguments and determine when (or even if) to evaluate them
ktun has quit [Client Quit]
<workmad3>
or rather, a nice way that didn't involve remembering, as the caller, to wrap the expression in a lambda :)
<apeiros>
workmad3: I'd very much like it if ruby would treat its own code as data
<shock_one>
workmad3, it's called "call by name evaluation strategy".
<workmad3>
shock_one: you and your fancy terminology :P (thanks btw :) )
<shock_one>
workmad3, it has a disadvantage that the same piece of code is executed multiple times.
yacks has quit [Ping timeout: 264 seconds]
<banister>
workmad3 ruby used to be able to re-evaluate an expression even if it wasn't wrapped in a lambda in 1.8 i think
Avahey_ has joined #ruby
<banister>
i think it was called retry
<banister>
only worked for expressions passed as method args tho
<banister>
so u could actually implement a while() loop construct as a method iirc
doodlehaus has quit [Remote host closed the connection]
jamto11 has quit [Ping timeout: 255 seconds]
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
agjacome has joined #ruby
workmad3 is now known as wm3|away
<shock_one>
banister, do you know why it was removed?
<banister>
shock_one it can restart a method from the beginning again
kpshek has joined #ruby
<banister>
shock_one and redo / break / next are weird enough
ndrei has joined #ruby
sinkensabe has quit [Ping timeout: 265 seconds]
maximski has quit []
<shock_one>
banister, it looks as if it could be implemented with tail recursion.
<shock_one>
I mean #repeat_while
timonv has quit [Remote host closed the connection]
tharindu has quit [Read error: Connection reset by peer]
lkba has joined #ruby
<shock_one>
No, I'm wrong. We don't have that expression inside the method.
tharindu has joined #ruby
rOOb has quit [Ping timeout: 264 seconds]
`ph8 is now known as ph8
ph8 has quit [Changing host]
ph8 has joined #ruby
funburn has joined #ruby
benzrf|offline is now known as benzrf
mercwithamouth has quit [Ping timeout: 240 seconds]
jamto11 has joined #ruby
pezhore has joined #ruby
sambao21 has joined #ruby
sinkensabe has joined #ruby
<pezhore>
Anyone have a second to try and help a noob out? I'm trying to get Grape working with ruby on rails, but i'm getting an error I don't know how to troubleshoot: /home/pezhore/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:464:in `load_missing_constant': Unable to autoload constant Ping, expected /home/pezhore/wrapper/app/api/v2/ping.rb to define it (LoadError)
aspiers has joined #ruby
Rahul_Roy has joined #ruby
root3d has quit [Ping timeout: 250 seconds]
maximski has joined #ruby
zz_karupa is now known as karupa
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
subraminion has joined #ruby
sk87 has joined #ruby
chrisseaton has quit []
subraminion has quit [Remote host closed the connection]
tjbiddle has joined #ruby
tjr9898 has joined #ruby
benzrf is now known as benzrf|offline
subraminion has joined #ruby
subraminion has quit [Remote host closed the connection]
subraminion has joined #ruby
mark_locklear has joined #ruby
vpretzel_ is now known as vpretzel
jamto11 has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
garndt has joined #ruby
razrunelord has joined #ruby
tjbiddle has quit [Ping timeout: 240 seconds]
funburn has quit [Quit: funburn]
mr_snowf1ake has joined #ruby
ktun has joined #ruby
yfeldblu_ has quit [Ping timeout: 255 seconds]
noop has joined #ruby
karupa is now known as zz_karupa
codeFiend has joined #ruby
zoraj has joined #ruby
benzrf|offline is now known as benzrf
razrunelord has quit [Ping timeout: 252 seconds]
Lucky_Red has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
paulfm has joined #ruby
tjr9898 has quit [Remote host closed the connection]
funburn has joined #ruby
BucOder has quit [Read error: Connection reset by peer]
TaxmanBD has quit [Ping timeout: 240 seconds]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
tjr9898 has joined #ruby
codeFiend has quit [Ping timeout: 250 seconds]
aiguu has quit [Ping timeout: 276 seconds]
dangerousdave has joined #ruby
iasj has joined #ruby
gregf has quit [Quit: WeeChat 0.4.3]
moritzs has quit [Ping timeout: 258 seconds]
Megtastique has joined #ruby
kitak_ has quit [Remote host closed the connection]
iasj has left #ruby [#ruby]
iasj has joined #ruby
benzrf|offline is now known as benzrf
Rix has joined #ruby
Xeago_ has quit [Remote host closed the connection]
dblessing has joined #ruby
tziOm has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
Nahra has quit [Remote host closed the connection]
obs has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 240 seconds]
mityaz has joined #ruby
obs has joined #ruby
cocotton has joined #ruby
noop has quit [Read error: Connection reset by peer]
subraminion has quit [Remote host closed the connection]
subraminion has joined #ruby
paulfm has quit []
sferrini has joined #ruby
epochwolf is now known as epochlynx
jj has quit [Quit: Page closed]
sambao21 has quit [Client Quit]
razrunelord has quit [Ping timeout: 252 seconds]
ffranz has joined #ruby
zz_jrhorn424 is now known as jrhorn424
CorpusCallosum has joined #ruby
timonv has joined #ruby
Zenigor has joined #ruby
njs126 has quit [Ping timeout: 264 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Zenigor has quit [Client Quit]
Xeago has quit [Remote host closed the connection]
SCommette has quit [Quit: SCommette]
kitak has quit [Remote host closed the connection]
zachallett has joined #ruby
Xeago has joined #ruby
noop has quit [Ping timeout: 240 seconds]
sooik has quit [Ping timeout: 264 seconds]
Abhijit has joined #ruby
<Abhijit>
is there not any inbuilt function to check if a string is number of not? i got strting abcd111 when in loop i detect 111 i need to operate on it?
dangerousdave has quit [Read error: Connection reset by peer]
sferrini has left #ruby [#ruby]
lmickh has joined #ruby
kevinykc_ has joined #ruby
treehug88 has joined #ruby
davedev24 has quit [Read error: Connection reset by peer]
anaeem1_ has quit [Remote host closed the connection]
sk87 has joined #ruby
sailias has quit [Quit: Leaving.]
dangerousdave has joined #ruby
sailias has joined #ruby
SilkFox has joined #ruby
doodleha_ has joined #ruby
<havenwood>
Abhijit: Well #to_i only works for contiguous digits at the beginning of the String. Might use regex.
alexju has joined #ruby
<havenwood>
'abcd111'[/\d*/].to_i
paulfm has joined #ruby
njs126 has joined #ruby
jonfer has joined #ruby
<Abhijit>
havenwood, to_i converts to integer, right? i just need to check if given string is integer or not?
jonfer is now known as XThief
thomasxie has joined #ruby
mofofofo has joined #ruby
<havenwood>
Abhijit: like if it contains any digit?
doodlehaus has quit [Ping timeout: 240 seconds]
jobewan has joined #ruby
<workmad3>
Abhijit: you mean like 'if str =~ /\d+/' (for contains any digit) or 'if str =~ /\A\d+\z/' (for contains just digits)
<Abhijit>
havenwood, workmad3 no.
<havenwood>
Abhijit: any digit or only digits?
<havenwood>
Something else?
<Abhijit>
input is abxch12354. need to loop thourght single string. first a then b then x then c so on. while looping throught, if i found integer need to perform some task. for that need to check if that a is interer, x is interer or not?
kaspergrubbe has quit [Remote host closed the connection]
SilkFox has quit [Ping timeout: 240 seconds]
funburn has quit [Ping timeout: 252 seconds]
pu22l3r has joined #ruby
<Abhijit>
havenwood, workmad3 ^
<apeiros>
Abhijit: str.each_char + what workmad3 said (regex)
<apeiros>
alternatively, and probably faster: String#scan
concordiadiscors has joined #ruby
tharindu|away is now known as tharindu
<workmad3>
(I did a case because I'm anticipating you're going to want to do different things depending on which digit it is... if not, just 'do_stuff(c) if c =~ /\d/
<Abhijit>
1.is_a? Integer is what i was looking for
<apeiros>
>> "hello123world789".scan(/\d/) do |d| puts d end
kevinykc_ has quit [Read error: Connection reset by peer]
rostam has quit [Remote host closed the connection]
<havenwood>
xcesariox: to check if two things are equal or not
kevinykchan has joined #ruby
chipotle has joined #ruby
<tobiasvl>
a pretty standard thing you need to check sometimes in all kinds of applications
<xcesariox>
havenwood, tobiasvl : but whats the difference to use <= , >= and == ?
kaspergrubbe has quit [Remote host closed the connection]
DarkFoxDK has quit [Ping timeout: 240 seconds]
kitak has quit [Remote host closed the connection]
<tobiasvl>
<= is less than or equal, >= is greater than or equal, == is equal, != is not equal, and these things are like the first things you learn in any programming guide
<ericwood>
<=> is the "diamond operator" and is used for comparison
kaichanvong has quit [Ping timeout: 240 seconds]
SecretAgent has quit [Ping timeout: 252 seconds]
<xcesariox>
ericwood: wow diamond.
<ericwood>
it is the coolest looking of the operators and is therefore the best
<apeiros>
<=> does not return true/false/nil like the other operators,
csfrancis has quit [Ping timeout: 240 seconds]
SilkFox has joined #ruby
DarkFoxDK has joined #ruby
<xcesariox>
apeiros: so can you give a statement e.g. when you will use <=> ?
<apeiros>
it returns -1,0,1 depending whether left operand is smaller, equal or bigger than right operand
<ericwood>
it's like the oldskool C stuff that returns -1 0 or 1
chipotle has quit [Remote host closed the connection]
SecretAgent has joined #ruby
eka has joined #ruby
<ericwood>
it's only really used for sorting
rostam has joined #ruby
chipotle has joined #ruby
ec has quit [Ping timeout: 265 seconds]
<apeiros>
xcesariox: case a <=> b; when -1 then do_stuff_cuz_smaller; when 0 then do_stuff_cuz_equal when 1 then do_stuff_cuz_bigger when nil then do_stuff_cuz_incomparable end
<ericwood>
you see it a lot for things like array.sort { |a,b| a <=> b }
<apeiros>
xcesariox: ary.sort { |a,b| a <=> b } # that's what ary.sort without a block does by default, though
<apeiros>
ericwood: if you really see array.sort { |a,b| a <=> b }, spank the dev.
<apeiros>
that's a very verbose and slow way to write array.sort :)
<ericwood>
apeiros: b <=> a
<ericwood>
happy now?!
jjbohn has joined #ruby
<apeiros>
ericwood: .reverse will still be faster :-p
<ericwood>
or maybe it's more concise to write array.sort.reverse
<ericwood>
lol
<workmad3>
also, if you see 'array.sort {|a,b| a.param <=> b.param}' spank the dev... 'array.sort_by(:param)' :)
kaichanvong has joined #ruby
kitak has quit [Ping timeout: 240 seconds]
<ericwood>
hmmm didn't realize you could do that
<ericwood>
I never sort things, tho
SilkFox has quit [Client Quit]
concordiadiscors has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros>
xcesariox: <=> is mostly used for implementing the other methods (<, <=, ==, >=, > and between?)
csfrancis has joined #ruby
<apeiros>
xcesariox: because if you have <=>, all you have to do is include Comparable and bam, you get those other methods for free.
<workmad3>
.sort_by(&:param) even...
LBRapid has joined #ruby
tharindu is now known as tharindu|away
<ericwood>
I haven't had to sort pure ruby stuff in ages...most of the sorting I do at the DB level via ActiveRecord :|
<ericwood>
I'm so out of touch
* workmad3
wonders what happens with a .sort if you sort objects with a non-transitive ordering...
TaxmanBD has joined #ruby
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tagrudev has quit [Remote host closed the connection]
ce_afk is now known as cescalante
SilkFox has joined #ruby
sunya7a has joined #ruby
TaxmanBD has quit [Client Quit]
root3d has joined #ruby
_maes_ has joined #ruby
enebo has quit [Quit: enebo]
ec has joined #ruby
atmosx has quit [Quit: Lost in trance]
rizzatti has joined #ruby
sooik has quit [Ping timeout: 276 seconds]
<xcesariox>
apeiros, ericwood, workmad3 : thank you , to the 3 of you for guiding me.
LBRapid has quit [Ping timeout: 246 seconds]
<xcesariox>
apeiros, ericwood, workmad3 : i'm such a noob, i am on code academy now and coursera to buck up ruby.
hgl has quit [Ping timeout: 240 seconds]
subraminion has quit [Remote host closed the connection]
guilleiguaran_ has quit [Ping timeout: 252 seconds]
concordiadiscors has joined #ruby
charliesome has joined #ruby
tharindu|away is now known as tharindu
jeffreybaird has quit [Ping timeout: 245 seconds]
natewalck has quit [Ping timeout: 245 seconds]
<xcesariox>
ericwood: thanks!
<Abhijit>
how do i iterate throught a varibale number of ARGVs? since ther are not fixed i need to inetere through them in order to access them?
codeFiend has joined #ruby
<xcesariox>
ericwood, apeiros, workmad3 : any good website to recommend to learn html for ruby?
dspadea has joined #ruby
bluehavana has joined #ruby
flowerhack has joined #ruby
ggherdov_ has quit [Ping timeout: 245 seconds]
garndt has joined #ruby
mrgoodcat has joined #ruby
ratdaddy has joined #ruby
<ericwood>
codeacademy.com
<xcesariox>
ericwood, apeiros, workmad3 : i mean like for python, i need to learn the django templates for editing html in a different way, they have their own parathesis.
<ericwood>
wait what
<ericwood>
you want to learn erb I take it?
metadave has joined #ruby
VictorBjelkholm has quit [Quit: Leaving]
jeffreybaird has joined #ruby
guilleiguaran_ has joined #ruby
<tobiasvl>
Abhijit: ARGV.each ?
natewalck has joined #ruby
Pharaoh2 has joined #ruby
charliesome_ has quit [Ping timeout: 265 seconds]
troulouliou_dev has quit [Quit: Leaving]
<Pharaoh2>
Ok, I broke something on my machine... when ever I try to use pretty print using PP, I get this => undefined method `pretty_print' for "Any string here":String. Empty list/hashes are fine. How to debug?
troulouliou_dev has joined #ruby
jamto11 has quit [Remote host closed the connection]
fayimora has quit [Ping timeout: 245 seconds]
prognosticatorz has joined #ruby
razrunelord has joined #ruby
codeFiend has quit [Ping timeout: 258 seconds]
bluehavana has quit [Ping timeout: 245 seconds]
yo61 has quit [Ping timeout: 245 seconds]
<Abhijit>
tobiasvl, okey. but i need to store those values in array. so how do i increment the array[i] inside ARGV.each?
mercerist has quit [Quit: Computer has gone to sleep.]
im0b has quit [Ping timeout: 252 seconds]
andrewstewart has quit [Ping timeout: 252 seconds]
dioms_ has quit [Ping timeout: 252 seconds]
lxsameer has quit [Quit: Leaving]
ratdaddy has quit [Ping timeout: 246 seconds]
nhmood has quit [Ping timeout: 246 seconds]
zrl has quit [Ping timeout: 252 seconds]
Darryl has quit [Ping timeout: 245 seconds]
dnyy has quit [Ping timeout: 245 seconds]
gazarsgo has quit [Ping timeout: 245 seconds]
meinside has quit [Ping timeout: 245 seconds]
ballPointPenguin has quit [Ping timeout: 245 seconds]
CJD14__ has quit [Ping timeout: 245 seconds]
<tobiasvl>
Abhijit: you generally don't. do something like ARGV.each { |value| array << value }
<tobiasvl>
but I'm not sure what you're asking
CJD14__ has joined #ruby
andrewstewart has joined #ruby
gazarsgo has joined #ruby
troulouliou_dev has quit [Client Quit]
Darryl has joined #ruby
bluehavana has joined #ruby
fayimora has joined #ruby
nhmood has joined #ruby
dioms_ has joined #ruby
dnyy has joined #ruby
ballPointPenguin has joined #ruby
<Abhijit>
ARGV.each do |i| array[a] = i a++ end
<Abhijit>
tobiasvl, ^
im0b has joined #ruby
ratdaddy has joined #ruby
zrl has joined #ruby
<Abhijit>
tobiasvl, can i use ARGV as any other array?
<Abhijit>
tobiasvl, how can iterate through array but starting with second position item onwards only. that is ARGV[1] and onwards only. by skipping ARGV[0] while doing ARGV.each do
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
predator117 has quit [Remote host closed the connection]
predator117 has joined #ruby
codeurge has joined #ruby
<prognosticatorz>
ARGV[1]..ARGV.last
<tobiasvl>
or ARGV.drop(1)
<tobiasvl>
ARGV.drop(1).each
<tobiasvl>
many ways to do that
<apeiros>
prognosticatorz: that won't work
<prognosticatorz>
no?
<tobiasvl>
eh yeah it won't, just noticed what he actually suggested
<apeiros>
ARGV[1..-1].each # alternative to tobiasvl's
92AAA03Z8 has joined #ruby
mark_locklear has quit [Quit: Leaving]
<tobiasvl>
prognosticatorz: that creates a range from the second value to the last value :P
<apeiros>
prognosticatorz: that makes a range from the value at ARGV[1] to the value at ARGV.last
<qpok>
hullo, I clone gem source files and want to use them instead of the gem. What's the easiest way? For now, I used absolute require paths, but I needed to modify the gem source files to reference absolute paths as otherwise I was hitting the gem
mityaz has quit [Quit: See ya!]
i_s has joined #ruby
sunya7a has quit [Ping timeout: 252 seconds]
sski has quit [Ping timeout: 265 seconds]
Xeago has quit [Remote host closed the connection]
roolo has quit [Quit: Leaving...]
<qpok>
simply remove the gem for the duration ?
<Abhijit>
how can i access next and previous array item while doing .each do |s|
yfeldblum has joined #ruby
<prognosticatorz>
Abhijit: not sure what you mean
saarinen has quit [Quit: saarinen]
sunya7a has joined #ruby
drager has quit [Ping timeout: 252 seconds]
<Abhijit>
prognosticatorz, X is an array. I am doing X.each do |t| something end
<Hanmac>
Abhijit: you cant, use each_cons
<havenwood>
Abhijit: by index with #each_with_index or #each_cons
<Abhijit>
...
<prognosticatorz>
can you give an example?
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
kevinykchan has quit [Read error: Connection reset by peer]
<Abhijit>
havenwood, yeah each with index will do
toastynerd has quit [Remote host closed the connection]
the_f0ster has joined #ruby
momomomomo has quit [Quit: momomomomo]
linojon has joined #ruby
mg^afk is now known as mg^
kevinykchan has joined #ruby
<Abhijit>
prognosticatorz, X is an array. I am doing X.each do |t| puts t end. This code prints the "current" array item. I wanted to print the previous and next array item along with current item. we can do that with each with index as suggested by havenwood
linojon has quit [Client Quit]
sambao21 has quit [Quit: Computer has gone to sleep.]
<apeiros>
yo61: rubygems will add your gem's lib dir to $LOAD_PATH, though. those lines are only needed to load files for an uninstalled gem (e.g. while developing)
<jimbow>
just like a tv remote you can switch between channels using a command
poguez_ has quit [Quit: Connection closed for inactivity]
<ericwood>
cd - does that
Hobogrammer has joined #ruby
<ericwood>
it switches you back to the last dir you were in
cocotton has quit [Remote host closed the connection]
<jimbow>
you could cd back into it, but to save time you could sdir -s
<jimbow>
or just sdir s
erikruthven has joined #ruby
<havenwood>
yup, `cd -` ftw
<jimbow>
sdir = saved directory
<ericwood>
jimbow: it already exists as `cd -`
<jimbow>
wow let me try it
aiguu has quit [Ping timeout: 240 seconds]
<ericwood>
another cool thing: git checkout -
<ericwood>
it does basically the same thing
gilesw has joined #ruby
<jimbow>
The system cannot find the path specified.
jimbow has quit [Killed (idoru (Spam is off topic on freenode.))]
thomasxie has quit [Remote host closed the connection]
Silent__ has quit [Ping timeout: 240 seconds]
<havenwood>
jimbow: also, `pushd` and `popd`
axl_ has joined #ruby
<Hanmac>
havenwood: the actor who plays Jenny the Daughter of the 11thDoctor, is the daughter of the actor who plays the 5th Doctor, and she married David Tenneart who plays the 11thDoctor
<gilesw>
heya all
krainboltgreene has joined #ruby
<havenwood>
Hanmac: ah, no way
<ericwood>
jumblemuddle: you just typed "cd -"?
<havenwood>
gilesw: hey
subbyyy has joined #ruby
<krainboltgreene>
Anyone know what values the new Ruby ENV memory values should be at for better development?
tkuchiki has quit [Quit: Leaving...]
<Hanmac>
havenwood: yes way, it also blow my mind after i read that ;P
<havenwood>
Hanmac: married his daughter, tsk tsk
tjbiddle has joined #ruby
<havenwood>
Hanmac: even if she is just a clone!
axl_ has quit [Client Quit]
<tjbiddle>
<< status = 'failed'; status == ('OK' or 'FAILED' or 'RESOLVED')
<tjbiddle>
>> status = 'failed'; status == ('OK' or 'FAILED' or 'RESOLVED')
<apeiros>
# from ericwood, just slightly changed for less noise
<gilesw>
or covert to trollop which i use for most of my scripts now..
<ericwood>
thanks for crediting me :P
cescalante is now known as ce_afk
axl_ has joined #ruby
<apeiros>
your code, your credit :)
<krainboltgreene>
Specifically, what do you all set RUBY_GC_HEAP_INIT_SLOTS, RUBY_GC_MALLOC_LIMIT, RUBY_GC_HEAP_FREE_SLOTS, RUBY_GC_HEAP_GROWTH_FACTOR, RUBY_GC_HEAP_GROWTH_MAX_SLOTS, RUBY_GC_MALLOC_LIMIT_GROWTH_FACTOR, RUBY_GC_MALLOC_LIMIT_MAX, RUBY_GC_OLDMALLOC_LIMIT, RUBY_GC_OLDMALLOC_LIMIT_GROWTH_FACTOR, RUBY_GC_OLDMALLOC_LIMIT_MAX to?
<apeiros>
krainboltgreene: there's a blog post
<ericwood>
I set them all to 0
<apeiros>
"demistify gc blabla ruby" something
Xeago has joined #ruby
<krainboltgreene>
apeiros: 2.1 details? Only shows default.
Lewix_ has quit [Remote host closed the connection]
Photism has quit [Quit: Leaving]
Niharvey|afk is now known as niharvey
FaresKAlaboud has quit [Ping timeout: 252 seconds]
tjbiddle_ has joined #ruby
Hanmac has joined #ruby
chipotle has quit [Quit: cya]
instantaphex has quit [Ping timeout: 240 seconds]
happytux is now known as sadtux
tjbiddle has quit [Ping timeout: 255 seconds]
Hanmac1 has quit [Ping timeout: 264 seconds]
toastynerd has quit [Remote host closed the connection]
sadtux is now known as happytux
* havenwood
goes back to plotting how to use Array#rassoc whenever possible.
XThief has joined #ruby
djbkd has quit [Remote host closed the connection]
XThief has quit [Client Quit]
happytux is now known as bipolartux
bipolartux is now known as happytux
toastyne_ has joined #ruby
happytux has quit [Quit: ChatZilla 0.9.90.1-rdmsoft [XULRunner 22.0/20130619132145]]
tjbiddle has joined #ruby
tjbiddle_ has quit [Ping timeout: 258 seconds]
tjbiddle_ has joined #ruby
Burgestrand has joined #ruby
danshultz has quit [Remote host closed the connection]
gheegh has joined #ruby
Ardenzi has quit [Remote host closed the connection]
danshultz has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
timonv has joined #ruby
tjbiddle has quit [Ping timeout: 240 seconds]
tjbiddle_ is now known as tjbiddle
danshultz has joined #ruby
rdark has quit [Quit: leaving]
niftylettuce_ has joined #ruby
concordiadiscors has quit [Quit: Textual IRC Client: www.textualapp.com]
tjbiddle has quit [Client Quit]
carraroj has quit [Ping timeout: 240 seconds]
bricker has quit [Quit: leaving]
root3d has quit [Ping timeout: 240 seconds]
linojon has quit [Quit: linojon]
toastyne_ has quit [Remote host closed the connection]
bricker has joined #ruby
gigo1980 has joined #ruby
linojon has joined #ruby
linojon has quit [Client Quit]
andrewjanssen has quit [Quit: Leaving...]
sambao21 has quit [Quit: Computer has gone to sleep.]
moritzs has quit [Ping timeout: 252 seconds]
pwh has quit []
meatherly has joined #ruby
ghr has joined #ruby
Abhijit has quit [Quit: Bye.]
phoo1234567 has joined #ruby
shadoi has joined #ruby
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
anaeem1 has joined #ruby
ascarter has joined #ruby
anaeem1 has quit [Read error: Connection reset by peer]
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
anaeem1 has joined #ruby
ascarter has joined #ruby
sputnik13 has joined #ruby
sqwirl has joined #ruby
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
ascarter has quit [Max SendQ exceeded]
nwertman has joined #ruby
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
anaeem1 has quit [Read error: Connection reset by peer]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ascarter has joined #ruby
ascarter has quit [Client Quit]
frogsy has quit [Read error: Connection reset by peer]
codecop has joined #ruby
<gizmore>
okay funny: matches = /(\[?<[^>]+>\]?)+/.match('<password> <password>') # => gives only 1 time password... i want 2 times the same string matched in the matches
<gizmore>
Burgestrand: works charmy, thanks man :)
combusean has joined #ruby
<Burgestrand>
\o.
yfeldblum has joined #ruby
<brontos>
are there any yum repos for centos 6.5 to install rubyu 2.1.2?
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
<yxhuvud>
dunno. you can find 2.1.1 in fc rawhide, that can be rebuilt for centos though.
michaeldeol has joined #ruby
benzrf|offline is now known as benzrf
nwertman has quit [Quit: Lost terminal]
aspiers has quit [Ping timeout: 252 seconds]
yfeldblum has quit [Ping timeout: 258 seconds]
timonv has quit [Ping timeout: 252 seconds]
pwh has joined #ruby
sepp2k has joined #ruby
havenwood has joined #ruby
matchaw has quit [Ping timeout: 245 seconds]
toastynerd has joined #ruby
axl_ has quit [Quit: axl_]
matchaw has joined #ruby
sambao21 has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
wldcordeiro_work has joined #ruby
Hanmac1 has quit [Ping timeout: 250 seconds]
djbkd has joined #ruby
endash has quit [Read error: Connection reset by peer]
blackmes1 has joined #ruby
endash has joined #ruby
BucOder has joined #ruby
dukedave has quit [Ping timeout: 258 seconds]
anaeem1_ has joined #ruby
nwertman has joined #ruby
sputnik13 has joined #ruby
obs_ has quit [Remote host closed the connection]
endash has quit [Read error: Connection reset by peer]
toastynerd has quit [Remote host closed the connection]
endash has joined #ruby
toastynerd has joined #ruby
toastynerd has quit [Remote host closed the connection]
instantaphex has joined #ruby
momomomomo has joined #ruby
benzrf is now known as benzrf|offline
sputnik13 has quit [Ping timeout: 265 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
toastynerd has joined #ruby
SolarSailor has joined #ruby
jprovazn is now known as jprovazn_afk
aspires has quit []
elikem has quit [Quit: elikem]
dangerousdave has quit [Read error: Connection reset by peer]
tharindu has joined #ruby
Hanmac has joined #ruby
Rahul_Roy has quit [Quit: Connection closed for inactivity]
SCommette has quit [Quit: SCommette]
andrewjanssen has joined #ruby
nanoyak has quit [Ping timeout: 265 seconds]
eka has quit [Read error: Connection reset by peer]
toastyne_ has joined #ruby
eka has joined #ruby
zegerjan has joined #ruby
toastynerd has quit [Ping timeout: 258 seconds]
djbkd has quit [Remote host closed the connection]
SolarSailor has quit [Ping timeout: 276 seconds]
setra has joined #ruby
aspires has joined #ruby
iceden has joined #ruby
<setra>
*,hello
<setra>
I try to use passenger with ruby web application, but no matter what I try I get the pink screen saying Web application could not be started - uninitialized constant Gem::UserInteraction (NameError)
<setra>
I use ubuntu 12.04 server
<havenwood>
setra: What version of Ruby are you using?: ruby -v
<setra>
First I thought it is the web app, but now I tried any and every fails,
<havenwood>
setra: so you can build gems with native ext: sudo apt-get install ruby1.9.1-dev
razrunelord has quit [Remote host closed the connection]
ldnunes has joined #ruby
aspires has quit [Client Quit]
<havenwood>
setra: then `bundle` in your apps root dir or however you're going to install your gems
<havenwood>
app's*
chipotle has quit [Ping timeout: 252 seconds]
happytux has joined #ruby
wnoronha has joined #ruby
<happytux>
What is the minimal puppet version for rcov?
<setra>
thx guys, need to hit the road... cya
<csmrfx>
Are any rubyists aware of human readable music notation formats?
<xybre>
Uhm?
sambao21 has quit [Ping timeout: 250 seconds]
<csmrfx>
let me rephrase
nowthatsamatt has quit [Read error: Connection reset by peer]
shevy has joined #ruby
havenwood has quit [Remote host closed the connection]
<csmrfx>
Are any rubyists aware of a working, text-based & human-readable music notation format?
ghr has joined #ruby
sputnik13 has joined #ruby
LadyRainicorn has joined #ruby
<Hanmac>
csmrfx: i recent worked with Rosegarden program, but i am not aware if it has a human-readable format
sunya7a_ has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
* csmrfx
makes the bold claim, that despite it being the year 2014, no human-readeble and -editable music notation format implementation exists!
Jnco has joined #ruby
<xybre>
Export to MIDI and convert.
<csmrfx>
no
aspires has joined #ruby
<happytux>
da da daaa da da daaa
<happytux>
lol
<csmrfx>
you might as well ask me to use binary html format
<Hanmac>
nah, that would be php
wjlafrance has quit [Quit: This computer has gone to sleep]
<xybre>
No I'm saying use off the shelf parts.
<xybre>
Oh I see what you mean now.
sunya7a has quit [Ping timeout: 240 seconds]
<happytux>
In rubygems they don't list the required ruby version for a gem.
<happytux>
How can I find it out?
setra has quit [Ping timeout: 252 seconds]
<LadyRainicorn>
HTML should have a binary format.
<xybre>
happytux: You could check the gemspec
<xybre>
LadyRainicorn: XML does, so it probably does :(
<LadyRainicorn>
happytux: Look at the current version of the gem at that its using at the last commit date.
jprovazn_afk is now known as jprovazn
<LadyRainicorn>
Alternatively, git bisect
ghr has quit [Ping timeout: 258 seconds]
<LadyRainicorn>
(and try with various versions)
cescalante is now known as ce_afk
nowthatsamatt has joined #ruby
abra has joined #ruby
<csmrfx>
I have a dream: that any musician using a text editor could create and edit music notation files using a practical format that is easy to learn (for a musician)
vpretzel|1490 is now known as vpretzel
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
sunya7a has joined #ruby
<xybre>
CSound? :p
workmad3 has joined #ruby
yfeldblum has joined #ruby
<csmrfx>
hm, music *notation*
<csmrfx>
I dont remember csound format but I think it has more
<LadyRainicorn>
csmrfx:Why don't you create a format?
<csmrfx>
I might...
<LadyRainicorn>
It wouldn't be hard to map standard notation to ASCII
sooik has quit [Ping timeout: 276 seconds]
<csmrfx>
2k14, UTF baby UTF
<xybre>
CSound is a whole language.
zachallett has quit [Ping timeout: 240 seconds]
x1337807x has joined #ruby
nicholas040 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
sunya7a_ has quit [Ping timeout: 240 seconds]
<csmrfx>
what I think my time and skills *could* do is format definition and human-readable-to-.mid conversion library
<csmrfx>
but, found some formats
geggam has quit [Remote host closed the connection]
tjr9898 has quit [Ping timeout: 276 seconds]
<csmrfx>
musicXML, lilypond may be what I want
dfedde has quit [Remote host closed the connection]
<Hanmac>
xybre: lets cross CSound with Shakespeare-programming-language - write an audio file like a novel ;P
sambao21 has joined #ruby
<xybre>
haha
nowthatsamatt has quit [Ping timeout: 264 seconds]
<xybre>
They're hints that make the parser easier to write most likely.
<csmrfx>
yeah, to me it looks like thats idiomatic
tjr9898 has joined #ruby
<csmrfx>
(sic)
zachallett has joined #ruby
jprovazn is now known as jprovazn_afk
<csmrfx>
also, tautonomous, wouldn't a newline work the same
<banister>
csmrfx sup carl
sdwrage has quit [Read error: Connection reset by peer]
djbkd has quit [Remote host closed the connection]
<csmrfx>
usurps, mr banner
<xybre>
There's certain thigns yo uget for free when using a syntax like that, I don't personally think they're worth it, btu some people think it is, so meh.
alpha123 has joined #ruby
eka has quit [Read error: Connection reset by peer]
<alpha123>
xybre: I've thought about that, it might be a good idea.
tjr9898 has quit [Remote host closed the connection]
Oxddf has joined #ruby
<xybre>
It should be easy to make code generators for LilyPond and MIDI.
<csmrfx>
xybre: I think the most common denominator is .mid -file format
<xybre>
alpha123: Sounds like csmrfx thinks its a good idea, maybe you should work on it together.
coderhs has joined #ruby
<xybre>
csmrfx: Then its as easy as making a DSL for midi, that should be.. trivial.
<csmrfx>
yeah, kinda
moeSeth_ has joined #ruby
<csmrfx>
xybre: or, ".mid has quirks" -galore?
<csmrfx>
I wouldn't know
tjr9898 has joined #ruby
intnsity has joined #ruby
treehug88 has joined #ruby
<xybre>
csmrfx: The specification is pretty simple and has been a standard since 1985ish.
benzrf|offline is now known as benzrf
alem0lars has quit [Quit: Going AFK...]
alem0lars has joined #ruby
<csmrfx>
yeah I've stared real time logs of midi messages for hours on end
aspires has quit []
<xybre>
There's some standard extensions for midi for more fine-grained timings or more flexible note ranges, but I think for a first pass thsoe can be samefly ignored. However I would probably keep in mind the possibility ot output OSC instead of MIDI down the road.
<csmrfx>
now, that I think of it, there's probably a gem
postmodern has joined #ruby
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
LadyRainicorn has quit [Read error: Connection reset by peer]
<Jnco>
Hi All, I am taking over on the infrastructure end for a ruby shop. We have a current configuration stack mysql/nginx+passenger/ruby+capistrano for deployment. I have a feeling this doesnt seem like the most effective setup -- I am new to ruby dev and wanted to know any advice you guys had for best stacks - running now on AWS
tjr9898 has quit [Remote host closed the connection]
<csmrfx>
I'll try to make it a weekend hacker project
rokob has quit [Remote host closed the connection]
<xybre>
Jnco: It's a pretty standard setup.
tjr9898 has joined #ruby
<benzrf>
Jnco: dont use mysql
<benzrf>
use postgres!
<benzrf>
it is better
<xybre>
Yes yes, use MariaDB at least, and Postgres is better, but MySQL is fine.
cek has joined #ruby
<csmrfx>
is that like app+web server?
<csmrfx>
uh, web+app server
<shevy>
oh man
<Jnco>
what do you mean by standard
<shevy>
setting up a new system always takes so long :(
sdwrage has joined #ruby
<Jnco>
a lot of people use nginx+passenger?
<cek>
Did you celebrate Victory day today?
<Jnco>
for ruby deploys
<xybre>
Jnco: Typical? Common?
<Jnco>
do you guys use heroku?
<csmrfx>
I did in 2008
<csmrfx>
twice
scriabin has joined #ruby
<xybre>
define -> standard: used or accepted as normal or average.
<xybre>
I've used Heroku.
<xybre>
Plenty.
<cek>
Jnco: in a way, yes
jjbohn has joined #ruby
<Jnco>
trying to think
<benzrf>
i have used heroku
<benzrf>
but only free tier
<benzrf>
becoz theyre overpriced as fuck
skaflem has joined #ruby
<Jnco>
just want to create the best architecture possible
<scriabin>
can anybody tell me is there a way to tell gem or bundler to use a particular disc for builds rather than my home directory?
<csmrfx>
KISS
<Jnco>
in terms of infrastructure
<xybre>
I only recommend Heroku for starting out. If you already have AWS infrastructure then use it.
<Jnco>
and this world is new to me
<Jnco>
we are on aws
<Jnco>
sortbox.co
<benzrf>
scriabin: a particular disc?
cek has left #ruby [#ruby]
<xybre>
Heroku runs on AWS but dilutes it down so your servers are slower (ie you need to pay for more servers) yet they're also more expensive.
LadyRainicorn has joined #ruby
<Jnco>
what would you use xybre
<Jnco>
for a stack
jjbohn has quit [Client Quit]
mjsmith2 has quit [Remote host closed the connection]
<Jnco>
do you like nginx and passenger? What about unicorn?
<scriabin>
benzrf:yeah - I'm talking on a unixy system
<scriabin>
like GEM_TEMP_FILE=/usr/share/bigdisc
<csmrfx>
Jnco: you are in guessing game
<xybre>
Jnco: It sounds ot me like you already have a pretty decent setup. Personally I use Postgres (when I need SQL), Nginx+Unicorn, Git-Deploy with basic Bash and Ruby scripts for deploymeny.
<xybre>
deployment^
<csmrfx>
Jnco: you should be able to compare metrics you have
Rainicorn has quit [Ping timeout: 258 seconds]
<Jnco>
just starting out feeling overwelmed but having fun at same time
<Jnco>
the wonderful world of ruby
nowthatsamatt has joined #ruby
<xybre>
Jnco: Reguardless of my personal choices, if I was presented with the stack you mentioned I would keep it as is.
<Jnco>
so far i like it, gem style reminds me of python
<benzrf>
Jnco: ruby is roughly equivalent to python in terms of how things workmad3
<Jnco>
thank you xybre
<benzrf>
*work
SCommette has joined #ruby
<workmad3>
benzrf: hah
<workmad3>
benzrf: bit over-active on the tab key there? ;)
<Jnco>
yeah i like the budled functions
<benzrf>
;-;
ctp has joined #ruby
<Jnco>
bundled
<xybre>
Gems have better dependency management than eggs, and RVM+Bundler is a boon for development.
<Jnco>
I cloned the produciton server..
<Jnco>
now I have things running but getting 404 error
<Jnco>
checked routes.rb but .. uhh.. yeah..
krazh has joined #ruby
coderhs has joined #ruby
<xybre>
Jnco: If you have a clone of the production server that isn't running in a public lcoation run the server in development mode so you can see the full error messages.
maletor has joined #ruby
<xybre>
Jnco: Otherwise time to start tailing the production logs :)
<workmad3>
Jnco: check the log
<Jnco>
I will, ok thanks guys
skaflem has quit [Quit: Leaving]
<Jnco>
now I have some other problem heh
<Jnco>
the fun begins
binaryhat has quit [Ping timeout: 255 seconds]
alvaro_o has joined #ruby
<workmad3>
Jnco: diagnosing stuff in production is always fun
<xybre>
Jnco: Hmm, looks like the version of Passenger you're using is from 2012?
meatherly has quit [Remote host closed the connection]
<xybre>
Does that mean your entire stack is from 2012?
rehat has joined #ruby
<xybre>
If so, you, uh, need to update everything. Right now.
<workmad3>
Jnco: in the same way that trying to yawn-rape a crocodile is fun...
soheil has quit [Read error: Connection reset by peer]
soheil_ has joined #ruby
<shevy>
lol
kevind_ has joined #ruby
<csmrfx>
hehe I hope your versioning works well
diegoviola has quit [Quit: WeeChat 0.4.3]
<xybre>
According to your webserver response headers you're running Phusion Passenger 3.0.15
<shevy>
everything stays below version 1.0
<shevy>
if it reaches 1.0 it will have to get a new name
kirun has joined #ruby
<Jnco>
yea
<shevy>
Jnco stop living in the past man!
<workmad3>
Jnco: xybre is correct... you're on passenger 3.0.15 and nginx 1.2.3... both are quite old and could do with some updating
<shevy>
switch to ruby 2.1.2
<Jnco>
no
<Jnco>
Im working on the clone
<shevy>
come on
<Jnco>
server
<xybre>
nginx 1.2.3 is also from 2012.
<Jnco>
not prod
<Jnco>
ugh that is what I mean
<shevy>
you lost almost 3 years here
<Jnco>
im in a world of uh ohs
<csmrfx>
oopx
<Jnco>
well how do I know the code will deploy ok
sambao21 has quit [Quit: Computer has gone to sleep.]
<workmad3>
xybre: or were you old-school and checked the headers in the network tab? :)
<Jnco>
maybe just update
tjr9898 has quit [Remote host closed the connection]
<xybre>
workmad3: Both :)
timonv has joined #ruby
dukedave has joined #ruby
<xybre>
Jnco: Deploy to a staging server before going to production with the updated stuff.
kitak has joined #ruby
kevind has quit [Ping timeout: 258 seconds]
<Jnco>
I will
kevind_ is now known as kevind
<xybre>
Jnco: Your server might be vulnerable to the recent OpenSSL vulnerability a well as probably the Remote Code Execution vulnerabilty discovered in 2013 in Rails.
elikem has joined #ruby
<workmad3>
xybre: I thought that and checked it for him
XThief has joined #ruby
<xybre>
Oh good.
<workmad3>
Jnco: you're safe ;) otherwise I'd have pmed you
tjr9898 has joined #ruby
tjr9898 has quit [Remote host closed the connection]
<workmad3>
on the openssl front that is
<workmad3>
didn't check the rails exploit
<xybre>
workmad3: Did you check the Rails Routes Yaml exploit?
<workmad3>
xybre: no
<xybre>
kk
<workmad3>
forgot about that one
<happytux>
So there are now two rake tasks named 'build', one in the Rakefile and one imported.
<scriabin>
folks is there a way to tell gem to not use my local directory for building stuff?
cyprusre has quit [Quit: Leaving]
<happytux>
However, I want to only use the build task in Rakefile, how can I let ignore the other one?
toastynerd has joined #ruby
<shevy>
waaaah
djbkd has joined #ruby
<shevy>
why can I not compile ext/openssl
<shevy>
compiling ossl_pkcs7.c
<shevy>
make: *** No rule to make target '/thread_native.h', needed by 'ossl.o'. Stop.
<workmad3>
shevy: what's your openssl version?
tjr9898 has joined #ruby
Bira has quit [Remote host closed the connection]
mansi has quit [Remote host closed the connection]
tjr9898 has quit [Remote host closed the connection]
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
Openssl Version: 1.0.1g
<workmad3>
shevy: hmm... dunno then
tjr9898 has joined #ruby
mansi has joined #ruby
Arkaniad has joined #ruby
jlast has joined #ruby
<shevy>
going to try 1.9.3 to see if there is a difference there compared to 2.1.2
timonv has quit [Ping timeout: 252 seconds]
<workmad3>
shevy: was wondering if you were trying to build with something like the native os x openssl (0.9.8) which is too old for new rubies
JoeGaudet has quit [Quit: Computer has gone to sleep.]
rokob has joined #ruby
mansi_ has joined #ruby
wjlafrance has joined #ruby
aspires has joined #ruby
nicholas040 has joined #ruby
meatherly has joined #ruby
rizzatti has joined #ruby
mjuszczak has left #ruby [#ruby]
CodeBunny has joined #ruby
djbkd has quit [Ping timeout: 276 seconds]
Shidash has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
elikem has quit [Quit: elikem]
sambao21 has joined #ruby
alem0lars has quit [Quit: alem0lars]
bradhe has joined #ruby
endash has quit [Quit: endash]
sambao21 has quit [Client Quit]
yalue has quit [Quit: Leaving]
<happytux>
anyone? I find my question really interesting and worth reading it.
<shevy>
Fatal Python error: Py_Initialize: Unable to get the locale encoding
<shevy>
ImportError: No module named 'encodings'
workmad3 has quit [Ping timeout: 255 seconds]
<shevy>
haha python encoding sucks as well
djbkd has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
happytux no idea, I dont use rake. when I need actions, I write them into methods in ruby and put them into some file(s)
XThief has quit [Quit: XThief]
workmad3 has joined #ruby
<RubyPanther>
shevy: you might need --with-openssl-dir or else edit the makefile eg top_srcdir = $(topdir)/../..
zorak has quit [Ping timeout: 264 seconds]
beef-wellington has joined #ruby
<RubyPanther>
'/thread_native.h' looks like there is a path issue
BWStearn1 has quit [Ping timeout: 258 seconds]
wallerdev has joined #ruby
SilkFox has quit [Ping timeout: 245 seconds]
<RubyPanther>
happytux: naming collisions are not actually interesting at all, they're more in the "don't do that, it hurts" category
djbkd has quit [Remote host closed the connection]
kitak has quit [Remote host closed the connection]
danshultz has quit [Remote host closed the connection]
<happytux>
RubyPanther: right, but what is if I want to use some rake tasks in two different required ruby files, but they also share some tasks by name?
danshultz has joined #ruby
<RubyPanther>
happytux: use tools that namespace their tasks correctly
jjbohn has joined #ruby
sambao21 has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
danshultz has joined #ruby
<RubyPanther>
poorly written tools often try to claim global namespace, and even use generic names for things like "build" so then these tools will conflict, either with the application using them, or with other crappy tools
<RubyPanther>
whereas it should be rake suckytool:build
<RubyPanther>
or, just stick a fork in it and add a namespace
klaut has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
krazh has quit [Remote host closed the connection]
rizzatti has quit [Quit: Leaving...]
redondos has quit [Excess Flood]
Oxddf has joined #ruby
mehlah has joined #ruby
instantaphex has quit [Quit: leaving]
redondos has joined #ruby
redondos has quit [Changing host]
redondos has joined #ruby
Royalb15_1 is now known as Royalb15
renier has joined #ruby
djbkd has joined #ruby
LadyRainicorn has quit [Ping timeout: 252 seconds]
LadyRainicorn has joined #ruby
lethjakman has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<shevy>
oh well
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
tomato has joined #ruby
failshell has quit []
sambao21 has joined #ruby
mehlah has quit [Ping timeout: 240 seconds]
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
Bira has joined #ruby
Hanmac1 has joined #ruby
BucOder has quit [Quit: Computer has gone to sleep.]
pika_pika has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
razrunelord has joined #ruby
zenojis has quit [Read error: Connection reset by peer]
bricker has quit [Read error: Connection reset by peer]
zenojis has joined #ruby
zachallett has quit [Remote host closed the connection]
nanoyak has joined #ruby
Bira has quit [Ping timeout: 240 seconds]
zegerjan has quit [Remote host closed the connection]
<shevy>
somehow ruby gets harder and harder to work with the higher the version number :P
endash has joined #ruby
kenneth has joined #ruby
dfinly has joined #ruby
Buddhabelly has joined #ruby
Buddhabelly has quit [Client Quit]
omosoj has quit [Quit: Leaving]
<combusean>
no wonder I don't understand this code
<combusean>
whoever wrote it was on crack
poguez_ has quit [Quit: Connection closed for inactivity]
eka has joined #ruby
diegoviola has joined #ruby
Rahul_Roy has joined #ruby
skysploit has joined #ruby
skysploit has joined #ruby
tjr9898 has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
<shevy>
haha
<shevy>
combusean show some stuff man
jprovazn_afk has quit [Quit: Odcházím]
yairgo has quit [Ping timeout: 252 seconds]
<combusean>
it's too convoluded and spread over too many functions to post
redondos has quit [Excess Flood]
sivoais has quit [Ping timeout: 276 seconds]
redondos has joined #ruby
redondos has quit [Changing host]
redondos has joined #ruby
atmosx has joined #ruby
lw has quit [Quit: s]
bricker has joined #ruby
pika_pika has quit [Ping timeout: 255 seconds]
SCommette has quit [Quit: SCommette]
jonno11 has joined #ruby
<shevy>
just one example PLEASE
Bumptious has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
djbkd has quit [Remote host closed the connection]
treehug88 has quit []
alex88 has quit [Quit: Leaving...]
paulfm has quit []
razrunelord has quit [Remote host closed the connection]
<scriabin>
I'm getting Disc Quota issues running gem install - how do I tell gem to use a particular slice for temp space?
wjlafrance has quit [Quit: This computer has gone to sleep]
CodeBunny has quit [Ping timeout: 264 seconds]
djbkd has joined #ruby
<csmrfx>
slice?
<scriabin>
slice, disc, directory etc.
<csmrfx>
did you see "$ gem help"
mjsmith2 has joined #ruby
<Jnco>
is it a good time to make the jump to ubuntu 14 or stick with 12 for now? for a ruby stack... ??
aspiers has quit [Ping timeout: 276 seconds]
<scriabin>
csmrfx:rtfm? I've only been asking for 45 minutes lol
momomomomo has quit [Quit: momomomomo]
<csmrfx>
Jnco: ubuntu cycle is what? 3 years?? use lts
RaptorJesus has joined #ruby
codezomb has joined #ruby
<shevy>
Jnco all is awful for ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
Arkaniad has quit [Ping timeout: 245 seconds]
<Jnco>
ok
<Jnco>
so uhm
<Jnco>
best ubuntu version for ruby..?
<Jnco>
12 lts?
<Nilium>
Any.
<centrx>
Jnco, It doesn't really matter much
<centrx>
Jnco, Obviously Ubuntu 12.04 is really old
<Jnco>
I have the opportunity to use 14
<Jnco>
im starting my server from scratch
<Nilium>
Use whatever you want. It probably won't make a difference to Ruby.
<Jnco>
have plenty of ice coffee
<Jnco>
what about nginx+passenger?
<csmrfx>
for what?
<Jnco>
or any other components? have any suggestions?
<shevy>
nginx isn't related to ruby is it
<csmrfx>
where?
razrunelord has joined #ruby
<csmrfx>
when?
nateberkopec has quit [Quit: Leaving...]
<csmrfx>
metrics, you create them, then you have something to decide on
<shevy>
so it depends what ubuntu 12 to 14 makes differently there
<Nilium>
I'm more of a BSD person, so I can only say that Ruby probably doesn't care.
<shevy>
but ubuntu is awful anyway so it won't matter what you use
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Jnco>
what do you perfer shevy
<shevy>
Jnco source. for the philosophy, appdirs like in gobolinux.
<Nilium>
I'd use GNU stuff if it wasn't all subtly non-standard
jonno11 has joined #ruby
sambao21 has joined #ruby
alex88 has joined #ruby
<Jnco>
im pretty new to the scene shevy
<shevy>
Jnco good, then you aren't yet disillusioned
<Jnco>
:D
<Jnco>
kinda used to ubuntu and the wonders of apt-get
<Nilium>
Not that the BSDs aren't also subtly non-standard, just.. less so, it feels like.
<Jnco>
dont want to kill myself compiling source packages
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
endash has quit [Quit: endash]
kahrl has quit [Quit: kahrl's attendance has reached limits]
alex88_ has joined #ruby
sunya7a has quit [Quit: leaving]
yubrew has quit []
<centrx>
Nilium, GNU + BSD is the standard
kyb3r_ has joined #ruby
<shevy>
Jnco then archlinux may be better than ubuntu
<Jnco>
need it on aws
<Nilium>
Actually, POSIX is the standard and deviations from that in ways that affect me make me angry.
<shevy>
what is aws?
<Nilium>
Amazon stuff.
<Jnco>
amazon cloud
<shevy>
hmm
<shevy>
you need ruby on amazon cloud?
<Jnco>
im taking over the support of an application and its stack
SCommette has joined #ruby
<Jnco>
and i am totally new to ruby :X
AndChat| has joined #ruby
<Jnco>
reaching out in the dark
* Nilium
hands Jnco a hacksaw
<Nilium>
You'll know what to do with it later.
<shevy>
well
<shevy>
Jnco it seems as if you have a quite long todo list here
dblessing has quit [Quit: dblessing]
alex88 has quit [Ping timeout: 252 seconds]
elaptics is now known as elaptics`away
<Jnco>
seriously
<Jnco>
do
<shevy>
focus on one thing at a time
<Jnco>
almost wondering to start rebuild server or even start with a configuration engine (puppet,chef)
lkba has quit [Ping timeout: 258 seconds]
nateberkopec has joined #ruby
<shevy>
hehehe
franzip has quit [Quit: ...]
sivoais has joined #ruby
ghr has joined #ruby
mansi_ has quit [Read error: Connection reset by peer]
atmosx has quit [Quit: Lost in trance]
* Nilium
shrugs since this is totally not his area
arrubin has quit []
ldnunes has quit [Quit: Leaving]
niftylettuce_ has quit [Quit: Connection closed for inactivity]
momomomomo has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
danshultz has joined #ruby
rehat has quit [Remote host closed the connection]
<tomato>
hey, just learning ruby and my IDE is giving me errors about 'expected expression', missing arguments, expected ;…. for something that actually works!
<DarsVaeda>
I try to install something and this needs bundler 1.0.10 but I have 1.6.2, so I tried "gem install bundler --version=1.0.10" which works but afterwards I still get the version mismatch error and it says I still have 1.6.2?
<tomato>
i have no idea how to see which version of ruby my IDE expects
alex88_ has quit [Ping timeout: 252 seconds]
<csmrfx>
tomato: maybe something without "->"
<csmrfx>
ie labmda
<tomato>
thought it was a proc here
<tomato>
proc literal
<csmrfx>
er, lamb-dah
mjsmith2 has quit []
phantasm66 has quit [Quit: *poof*]
<shevy>
tomato well the syntax is valid, the IDE is just stupid
<bricker>
DarsVaeda: try uninstalling the other version of bundler.
Hanmac has joined #ruby
markveidemanis has left #ruby ["Leaving"]
alex88 has joined #ruby
<tomato>
jet brains can eat my ____
jjbohn has quit [Ping timeout: 240 seconds]
<DarsVaeda>
bricker, thanks I believe this works
Hanmac1 has quit [Ping timeout: 276 seconds]
danman_ has quit [Quit: danman_]
SegFaultAX has joined #ruby
pika_pika has joined #ruby
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
<slash_nick>
... quadruple underscore?
<benzrf>
slash_nick: shit, probably
<benzrf>
tomato seems to believe in censoring oneself
<slash_nick>
i'd rather eat a quadruple underscore
<tomato>
i love it when the enterprise eats my quadruple underscore
<Nilium>
I'd rather eat waffles.
brunops has joined #ruby
<slash_nick>
with peanut butter and maple syrup
alex88 has quit [Quit: Leaving...]
jobewan has quit [Quit: Leaving]
jonno11 has joined #ruby
<tomato>
omg just found how to make it use my sdk!
Morkel has quit [Quit: Morkel]
* tomato
dances flaunting his ____
codecop has quit [Quit: Išeinu]
myke has left #ruby [#ruby]
<Nilium>
I do not approve of what you eat but defend to the death your right to require a quintuple bypass.
djbkd has joined #ruby
djbkd has quit [Remote host closed the connection]
<tomato>
i'm getting a new error on using an array literal, it says i should use '%w' ?
djbkd has joined #ruby
tacos1de has quit [Remote host closed the connection]
timgauthier has joined #ruby
shenk` has joined #ruby
tacos1de has joined #ruby
<shevy>
tomato well keep it simple man
<shevy>
tomato yeah you can build an array with %w
<shevy>
why you should keep it simple? because complexity requires more and more layers on layers of suckage
<tomato>
how is %w more simple than [ ] ?
<shevy>
wait a moment
<shevy>
let's compare it shall we
shenk` has joined #ruby
<shevy>
%w(cat dog mouse)
<shevy>
['cat','dog','mouse']
<shevy>
so
<shevy>
do you notice a difference
<tomato>
one looks like a normal array syntax in other languages
<tomato>
one looks like it belongs in a regex
<tomato>
:P
<shevy>
ok so you don't notice a difference
<shevy>
please keep on using []
<shevy>
the good thing is, the ruby parser itself does not care much about what you use
<tomato>
well i'm guessing the IDE is suggesting things based on the style guide so i'd like to know why.. don't wanna fight the grain too much hey
<Nilium>
attr_reader *%i[suck mah ____]
<tomato>
that's good to know
<shevy>
the IDE wants to teach you to become a good IDE citizen
<happytux>
hi again
<shevy>
one day you will struggle free from its chains
diegoviola has quit [Quit: WeeChat 0.4.3]
<tomato>
looking at git:bbatsov/ruby-style-guide under collections
<happytux>
The ruby author (or someone related) wrote that one shouldn't be dependent on an IDE, but this doesn't mean one mustn't use one if it helps.
<tomato>
Prefer %w to the literal array syntax when you need an array of words (non-empty strings without spaces and special characters in them). Apply this rule only to arrays with two or more elements.
JoeGaudet has joined #ruby
<happytux>
How can I share/reuse rake tasks?
andrewlio has quit [Quit: Leaving.]
<happytux>
Do I have to put them into a gem?
<happytux>
oh
<wallerdev>
i never use the % versions haha
DarsVaeda has left #ruby ["Ex-Chat"]
<shevy>
happytux I dont think you have to put them into a gem at all, rake can work without gems just fine
mrmargolis has quit [Remote host closed the connection]
<tomato>
and vim is making me press ESC about 30 times a minute
djbkd has joined #ruby
<benzrf>
combusean: you have made the right choice congrats
<tomato>
txdv, it half does, you can install a plugin for it
<benzrf>
vim will always prevail over the evil forces of not vim
<benzrf>
because we have
<benzrf>
MODES
<txdv>
you can install for vim a plugin as well to have it
<txdv>
but that doesnt make vim an ide for ruby
mansi has joined #ruby
<benzrf>
good bye now
mansi has quit [Remote host closed the connection]
<happytux>
shevy: But using a gem for it would be 'the right way'?
<centrx>
IDEs are for languages with unwieldy long method names, like Java and C#
<happytux>
shevy: The rake tasks are used in several ci jobs.
<shevy>
happytux no, why do you want to use a gem?
benzrf is now known as benzrf|offline
mansi has joined #ruby
<shevy>
tomato, yeah, vim is pretty brain-heavy, I didn't like that
<happytux>
shevy: I think I am on the wrong track.
mercerist has quit [Quit: Computer has gone to sleep.]
<tomato>
yeh but still pretty hot if you do some SSH stuff
<happytux>
shevy: the point is that those rake tasks will be versioned, not all ci jobs use the same version of a rake task, at least I have to anticipate this.
<happytux>
tomato: eclipse?
<alpha123>
I find vim rather less brain-heavy than most editors, once you tackle the enormous learning curve
<tomato>
after spending a few days installing bundles and configuring sex it can work alright
<happytux>
Well, I heard eclipse is nice but I find it a a little bit slow.
<tomato>
happytux, jetbrains rubymine
<tomato>
sublime is actually the easiest thing in the world
<alpha123>
tomato: Emacs?
* alpha123
hides
<tomato>
...
<shevy>
happytux never heard of anyone wanting to version rake-actions before
<alpha123>
I haven't given Sublime much of a try. I gave the ST2 trial a brief go but barely used it
<alpha123>
that was back in my Emacs days anyway, I'm super happy with vim now.
<tomato>
don't use editors, just cat and regex swaps
<DarsVaeda>
can anyone link to a working tutorial on how to install mysql on debian wheezy? I read and followed like 5 now and I still get "failed to build gem native extension"
djbkd has quit [Read error: Connection reset by peer]
<tomato>
yeh that's it
<shevy>
tomato that's almost the right attitude, except that ruby should edit stuff
<tomato>
not a magnetised needle and a steady hand?
phoo1234567 has quit [Quit: Leaving]
<shevy>
no
<shevy>
you have a computer
mansi has quit [Ping timeout: 240 seconds]
<shevy>
that's all the tools you need
<tomato>
but first you must realise that there is no ruby
<alpha123>
Weak sauce shevy. Real programmers stick with the needle. ;D
shadoi has joined #ruby
<shevy>
alpha123 I haven't found a real programmer yet :(
vlad_starkov has quit [Remote host closed the connection]
<alpha123>
They're in the basement.
<shevy>
haha no
<shevy>
in the basement is the stupid IT department
<shevy>
stupid dungeon masters
<alpha123>
hehe
<shevy>
"I need ruby 2.1.0" "Ok, in a week you will have it." <3 weeks later>
<shevy>
still nothing happened!
<alpha123>
You don't get to install your own stuff? :(
odigity2 has joined #ruby
<txdv>
what
<txdv>
rvm install 2.1.0?
<txdv>
or are you talking about an official release of ruby 2.1.0?
<momomomomo>
txdv: did you read the conversation, or are you just typing?
<odigity2>
I have a ruby script that uses the 'nfc' gem to interface with an NFC (RFID) board to read codes. The read function is a blocking call. While in this state, my script ignores Ctrl-C. Is there any way I can fix that?
<shevy>
alpha123 nah, only in my home dir
<txdv>
momomomomo: im just trying to join the conversation
<momomomomo>
txdv: usually you should do that before joining a conversation
<alpha123>
txdv: You mean chruby and ruby-install? ;)
<shevy>
alpha123 the funniest shit was that they used different servers, with different ruby versions; so the database server had ruby 1.9.3x, and the webserver had ruby 1.8.7
<apeiros>
Burgestrand: remember, kwargs is still a single argument, a hash
<happytux>
>> while true do puts 'test' end
replay has joined #ruby
<happytux>
>> while true do puts 'test'; end
<momomomomo>
you probably just locked up a thread
<momomomomo>
I imagine they enforce closing the threads after x amount of time
<tomato>
and he keeps going
nowthatsamatt has quit [Quit: nowthatsamatt]
x1337807x has quit [Ping timeout: 245 seconds]
<apeiros>
Burgestrand: but I stumbled over the same :)
<odigity2>
I keep googling, and I can only find articles about catching Ctrl-C, nothing about prevent Ctrl-C from being caught and discarded.
rizzatti has quit [Quit: Leaving...]
<Burgestrand>
apeiros: alright I'll give it a try, I assumed it had special semantics, and worked similar to *args, so some_method(**{}) would be identical to some_method(), just like some_method(*[]) is identical to some_method()
<odigity2>
It's infuriating to keep having to look up the process ID and run a kill command every time I make a change to my script and want to rerun it.
<momomomomo>
odigity2: what signal does CTRL+C send?
<Burgestrand>
apeiros: thank, TIL. ;)
<odigity2>
momomomomo, I'm no sure. You mean the integer value?
<apeiros>
Burgestrand: yw ;-)
<momomomomo>
odigity2: No, the Signal
<momomomomo>
odigity2: google
<apeiros>
glad to be useful :^)
nanoyak has quit [Quit: Computer has gone to sleep.]
<odigity2>
momomomomo, I don't understand the question
<momomomomo>
Google 'ctrl + c signal'
replay_ has quit [Ping timeout: 250 seconds]
mercerist has joined #ruby
<Burgestrand>
Hm, I suppose it makes sense, or else all existing code using the old way of delegating would drop out keyword arguments.
SegFaultAX has joined #ruby
<Burgestrand>
i.e. breaking change, or allow *args to pass on keyword arguments as normal. Meh.
<odigity2>
momomomomo, and do what with the results? It seems like you're trying to help me, but you're not really succeeding...
<momomomomo>
odigity2: now google '<signal> catch ruby'
<momomomomo>
replace <signal> with what you found in google from your previous search
Beoran_ has quit [Ping timeout: 240 seconds]
saarinen has joined #ruby
vlad_starkov has joined #ruby
kirun has quit [Quit: Client exiting]
andrewjanssen has quit [Remote host closed the connection]
<odigity2>
momomomomo, I don't know what specific value you're looking to plug into <signal>. frankly, trying to understand you is starting to get more frustrating than my original problem
<happytux>
ok
<happytux>
>> while true do print 'test' end
chinkung has joined #ruby
<momomomomo>
odigity2: When you press CTRL+C, a signal is sent to the program. it has a specific name. Google for that name.
nanoyak has joined #ruby
<momomomomo>
literally the first result has a paragraph about the signal
<odigity2>
it's sigint, dude. wouldn't it have been faster and easier to just determine that yourself rather than walk me through the process of googling it? also, you could have been more specific. signals have short names as well as integer values. you were etremely cryptic
<momomomomo>
odigity2: basically, you can trap that signal, or you can rescue the exceptions raised when ruby catches it and tries to exit the program
alex88 has joined #ruby
troyready has quit [Ping timeout: 265 seconds]
<odigity2>
momomomomo, no, I can't. As I explained, the signal is already being trapped, probably inside a C library wrapped in Ruby. Trying to trap it myself will not work, as it does not address the problem -- UNtrapping it.
saarinen has quit [Quit: saarinen]
<momomomomo>
odigity2: well, now that you know about signals, you might consider running it as a sub process and trapping the signal yourself; tracking the pid, and killing it in ruby
<momomomomo>
odigity2: depends on your code and how you use the C library
<odigity2>
momomomomo, I've known about signals for years. I've trapped them, written handlers for them, used them, etc. I've just never had to prevent a function I'm calling from using them.
nowthatsamatt has joined #ruby
<odigity2>
momomomomo, I suppose forking and running the blocking code in a sub-process, then killing it in a way it can't ignore would work. Lots of additional work for me to set up, but if there's no better alternative, then I'll get started.
<shevy>
can you actually intercept that in ruby?
<DarsVaeda>
I can not install one package without error... -.-
<odigity2>
shevy, I have no idea. That's why I came here to ask, and instead momomomomo tries to send me on a quest for a value of unspecified type and substance to plug into a string interpolation followed by a beginner's lesson in the definition of a signal.
<momomomomo>
odigity2: Really? Did I not just tell you what you came up with in your last response? momomomomo: odigity2: well, now that you know about signals, you might consider running it as a sub process and trapping the signal yourself; tracking the pid, and killing it in ruby
x1337807x has quit [Ping timeout: 276 seconds]
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<odigity2>
momomomomo, Yes, you did. And I was acknowledging that your suggestion would in fact solve the problem by repeating it in my own words.
x1337807x has joined #ruby
<momomomomo>
odigity2: deary me for suggesting a solution that required you to show that you understood the underlying causes first.
<odigity2>
I really just don't fucking understand your deal, dude. Nothing about how you communicated with me makes any sense to me.
<mu>
it refers to some log file in /var/folders but I can't find any obvious errors
benzrf|offline is now known as benzrf
<mu>
I was however able to do `rbenv install 2.1.2`
<mu>
and when using `rbenv versions` it shows that 2.1.2 is "active"
codeurge has joined #ruby
<mu>
but doing ruby --version shows that I am using 2.0.0p451
<mu>
which seems wrong, no?
blackmes1 has quit [Ping timeout: 245 seconds]
Lauritz has quit [Changing host]
Lauritz has joined #ruby
<mu>
`which ruby` shows the binary existing in /usr/bin when it seems like it should exist in ~/.rbenv
<mu>
or maybe I misunderstand how rbenv works?
sinkensabe has joined #ruby
<terrellt>
mu: What about if you do EXPORT RBENV_VERSION=2.1.2 and then ruby --version? If that doesn't switch it, then you probably aren't sourcing the rbenv stuff right
<terrellt>
s/EXPORT/export
Bira has joined #ruby
spyderman4g63 has quit [Ping timeout: 264 seconds]
<mu>
it seemed like a ruby error to me so someone suggested I install rbenv
<bricker>
Hm, this blog post claims that redis-store supports master/slave replication, but I don't need any evidence in the actual library that that's true: http://blog.togo.io/introducing/redis-store/
razrunelord has quit [Remote host closed the connection]
<mu>
unfortunately simply adding that file to the build directory wasn't enough
<mu>
gave me an error regarding getcwd
<mu>
so who knows
<shevy>
I thought you use ruby 2.1.2?
<mu>
2.1.0
<shevy>
ok why is this thing there called rub18_source_location
<shevy>
I mean it sounds as if it is for the ruby 1.8.x branch
<RubyPanther>
if you read http://mislav.uniqpath.com/poignant-guide/book/chapter-5.html you learn that on the planet Endertromb the planet can read your mind and you don't need a shell. But then you also learn that even there, an interactive terminal is really useful.
sunya7a has joined #ruby
<mu>
no idea shevy
<shevy>
mu well it is you who should know or? :)
jack_rabbit has quit [Ping timeout: 240 seconds]
<shevy>
I mean you are trying to install it hehe
<mu>
that's funny
<mu>
it fails on my linux system as well
<mu>
same error
<shevy>
don't say you are randomly installing stuff and don't even know why :P
<mu>
so at least it's consistent
<shevy>
excellent
<shevy>
I hope it fails for all but 1.8.x branches
kitak_ has quit [Remote host closed the connection]
<gizmore>
can you set a watch in byebug?
<mu>
problem is
<RubyPanther>
1.8 is dead, let it rest in peace.
<mu>
I was able to get it working last night on my linux desktop, now this morning I switched branches and I never checked if anything was still workng
<shevy>
RubyPanther but he wants to desperately install ruby18_source_location even though when asked why he can not say
<shevy>
teaches you to break your running system!
<mu>
I assume ruby18 whatever is a dependency of one of the libraries we are using
<shevy>
that sounds like a lie
ffranz has quit [Quit: Leaving]
predator217 has joined #ruby
<mu>
sigh
<shevy>
and I am sure you can not even name "one of the xyz"
<RubyPanther>
I'm a great lover of legacy, I'm running xmms for my media player. But 1.8 is dead. You'll need an old OS distro, too.