apeiros changed the topic of #ruby to: http://ruby-community.com || Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org, other public logging is prohibited
Astrologos_ has quit [Ping timeout: 272 seconds]
cjim_ has quit [Quit: (null)]
mjuszczak has quit []
Dakota-choad has quit [Ping timeout: 245 seconds]
Rollabunna has quit [Remote host closed the connection]
icebourg has quit []
Rollabunna has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
MatthewsFace has joined #ruby
sevenseacat has joined #ruby
shock_one has joined #ruby
<sohrab> if you string methods and the first method returns only 1 value, is there a way to add a second value for the second method's parameters
mjuszczak has joined #ruby
lkba_ has quit [Read error: Connection reset by peer]
mleung has quit [Quit: mleung]
x1337807_ has joined #ruby
x1337807x has quit [Ping timeout: 255 seconds]
mjuszczak has quit [Client Quit]
MatthewsFace has quit [Ping timeout: 240 seconds]
evanjs has joined #ruby
wldcordeiro has quit [Ping timeout: 245 seconds]
shock_one has quit [Ping timeout: 256 seconds]
superscott[8] has quit []
mjuszczak has joined #ruby
michaeld_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<xxneolithicxx> sohrab: var.method1.method2(param1, param2) ?
vivekananda has quit [Ping timeout: 245 seconds]
<xxneolithicxx> sohrab: post an example gist
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
evanjs has quit [Ping timeout: 244 seconds]
zachrab has joined #ruby
freerobby has quit [Quit: Leaving.]
tubuliferous_ has joined #ruby
cajone has quit [Ping timeout: 252 seconds]
rodferso1 has joined #ruby
ki0 has joined #ruby
MasterPiece has quit [Quit: Leaving]
havenn has joined #ruby
charliesome has quit [Quit: zzz]
doodlehaus has quit [Remote host closed the connection]
rbo has joined #ruby
rodfersou has quit [Ping timeout: 264 seconds]
baweaver has joined #ruby
havenwood has quit [Ping timeout: 255 seconds]
wallerdev has quit [Quit: wallerdev]
ki0 has quit [Ping timeout: 276 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
laurentide has joined #ruby
DerisiveLogic has joined #ruby
perturbation has quit [Quit: Leaving]
x1337807_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rickmasta has joined #ruby
r0bby_ is now known as robbyoconnor
DerisiveLogic has quit [Ping timeout: 264 seconds]
Deele has joined #ruby
<Hijiri> diegoviola: /
<Hijiri> sorry, typop
P1RATEZ has joined #ruby
cajone has joined #ruby
Ellis has joined #ruby
endash has quit [Quit: endash]
Spami has quit [Quit: This computer has gone to sleep]
arescorpio has quit [Read error: Connection reset by peer]
Guest123456666 has joined #ruby
juanpablo__ has joined #ruby
_blizzy_ has joined #ruby
nobitanobi has quit [Remote host closed the connection]
wallerdev has joined #ruby
Ellis has left #ruby [#ruby]
Bira has joined #ruby
msmith has quit []
Guest51681 has quit [Ping timeout: 276 seconds]
mrmargolis has joined #ruby
sshao has quit [Remote host closed the connection]
jerius has quit [Quit: /quit]
_blizzy_ has quit [Ping timeout: 240 seconds]
juanpablo__ has quit [Ping timeout: 240 seconds]
sinkensabe has joined #ruby
x1337807x has joined #ruby
cajone has quit [Ping timeout: 250 seconds]
bricker has quit [Quit: leaving]
milesmatthias has joined #ruby
Filete has joined #ruby
<rbo> Does anyone here blog about their code? I wanted to know if there is an easy way to setup syntax (or code) highlighting with Github Flavored Markdown, trying to implement it into my blog posts.
<rbo> or if RoR the only way to achieve it easily?
<rbo> is*
sinkensabe has quit [Ping timeout: 264 seconds]
<sevenseacat> i have code in my blog, i use jekyll for publishing
lidenskap has quit [Remote host closed the connection]
<mrmargolis> rbo: See the "Syntax highlighting" section on https://help.github.com/articles/github-flavored-markdown/
Guest123456666 has quit [Quit: Textual IRC Client: www.textualapp.com]
ramfjord has quit [Ping timeout: 245 seconds]
msmith has joined #ruby
huddy has quit [Quit: Connection closed for inactivity]
milesmatthias has quit [Ping timeout: 255 seconds]
<b4tm4n> anybody have experience with rbenv and setting up init scripts for unicorn?
<rbo> omg
zzing has joined #ruby
<rbo> the question exploded in my head and turned into an answer. thank you guys
<sevenseacat> lol awesome
<sevenseacat> i need to do more stuff to my blog
MatthewsFace has joined #ruby
xploshioon has joined #ruby
mitchellhenke has joined #ruby
<rbo> Yeah, i'm just getting started on it.
<rbo> s/on/in;
<sevenseacat> i dont know what things other people are going to find interesting
<sevenseacat> not that anyone reads it anyway
nii236 has quit [Quit: WeeChat 1.0.1]
<rbo> How to setup syntax highlighting on a dreamhost server? :P
<sevenseacat> mmm dreamhost, i moved away from them a long time ago
* rbo might write about it as i actually do it.
<sevenseacat> i just use jekyll on github pages now
<rbo> I got dh for just $20 for a year lol
<sevenseacat> yeah dont think its worth that much
robustus has quit [Ping timeout: 255 seconds]
<xxneolithicxx> sohrab: you want to do method2(method1, var2) or method2(var2, method1)
Bira has quit [Remote host closed the connection]
<b4tm4n> any rbenv users here?
MatthewsFace has quit [Ping timeout: 256 seconds]
jaequery has joined #ruby
oo_ has joined #ruby
<xxneolithicxx> sohrab: actually the first one sorry
lucashungaro has quit [Quit: lucashungaro]
cajone has joined #ruby
robustus has joined #ruby
lessless has joined #ruby
AlphaAtom has quit [Ping timeout: 272 seconds]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
balazs has joined #ruby
michael_mbp has quit [Excess Flood]
<havenn> b4tm4n: #chruby for chruby, #rvm for rvm and tweet @dhh for rbenv
michael_mbp has joined #ruby
renier_ has joined #ruby
Guest123456666 has joined #ruby
<Radar> lol @ tweet @dhh
<havenn> ;)
sargas has joined #ruby
sargas has quit [Max SendQ exceeded]
balazs has quit [Ping timeout: 240 seconds]
MatthewsFace has joined #ruby
<billy_ran_away> Anyone know what version of Ruby #sort_by moved from Array to Enumerable?
renier has quit [Ping timeout: 256 seconds]
evanjs has joined #ruby
workmad3 has joined #ruby
zachrab has quit [Remote host closed the connection]
zachrab has joined #ruby
ramfjord has joined #ruby
<havenn> billy_ran_away: Was there ever an Array#sort_by or no?
yqt has quit [Ping timeout: 252 seconds]
Technodrome has joined #ruby
<havenn> billy_ran_away: 1.8 and 1.9.1 had no Array#sort_by's of any sort, and 1.9.3 has Array#sort_by! just like 2.2.2.
workmad3 has quit [Ping timeout: 244 seconds]
zachrab has quit [Ping timeout: 246 seconds]
sargas has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sargas has quit [Client Quit]
sshao has joined #ruby
<havenn> billy_ran_away: So Array#sort_by! 1.9.2+ and no Array#sort_by ever that I know of.
sargas has joined #ruby
sargas has quit [Max SendQ exceeded]
Cloudhand has joined #ruby
sargas has joined #ruby
sargas has quit [Remote host closed the connection]
justin_pdx has joined #ruby
<billy_ran_away> havenn: thanks for looking and responding, i swear i saw it in array before but now i think i'm losing my mind
sargas has joined #ruby
ki0 has joined #ruby
droidburgundy has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
droidburgundy has joined #ruby
Bira has joined #ruby
oo_ has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
jottr_ has quit [Ping timeout: 250 seconds]
realname_ has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ki0 has quit [Ping timeout: 248 seconds]
realname_ is now known as Guest90783
oo_ has joined #ruby
fgo has joined #ruby
sargas has quit [Client Quit]
jaequery has joined #ruby
xploshioon has quit [Quit: Leaving]
spicerack has quit [Changing host]
spicerack has joined #ruby
zenojis has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TheNumb has quit [Ping timeout: 264 seconds]
doodlehaus has joined #ruby
Valian has quit [Quit: Leaving]
TheNumb has joined #ruby
evanjs has quit [Remote host closed the connection]
doodlehaus has quit [Remote host closed the connection]
RegulationD has joined #ruby
spider-mario has quit [Ping timeout: 276 seconds]
xMopxShell has quit [Ping timeout: 272 seconds]
galeido has quit [Ping timeout: 250 seconds]
jamto11 has joined #ruby
n008f4g_ has quit [Ping timeout: 246 seconds]
graydot has quit [Quit: graydot]
RegulationD has quit [Ping timeout: 252 seconds]
xMopxShell has joined #ruby
galeido has joined #ruby
bruno- has joined #ruby
bruno- is now known as Guest17779
jeramy_s has joined #ruby
msmith has quit [Remote host closed the connection]
duderonomy has joined #ruby
msmith has joined #ruby
Guest17779 has quit [Ping timeout: 252 seconds]
msmith has quit [Read error: No route to host]
msmith has joined #ruby
<sohrab> xxneolithicxx: okay. i knew that was possible, but thought it might be ugly. is that the idiomatic solution?
sankaber has joined #ruby
<sohrab> (thanks for your help)
jaequery has joined #ruby
<xxneolithicxx> sohrab: pretty much
<sohrab> k, thanks
tkuchiki has joined #ruby
rrichardsr3 has quit [Ping timeout: 272 seconds]
milesmatthias has joined #ruby
FernandoBasso has quit [Quit: leaving]
Rickmasta has joined #ruby
diegoviola has quit [Quit: WeeChat 1.1.1]
tus has quit [Ping timeout: 245 seconds]
fgo_ has joined #ruby
fgo has quit [Ping timeout: 245 seconds]
bayed has quit [Quit: Connection closed for inactivity]
xploshioon has joined #ruby
djbkd has quit [Quit: My people need me...]
wallerdev has quit [Quit: wallerdev]
shock_one has joined #ruby
milesmatthias has quit [Ping timeout: 276 seconds]
philip1 has quit [Ping timeout: 264 seconds]
plutonic has joined #ruby
ramfjord has quit [Ping timeout: 245 seconds]
doodlehaus has joined #ruby
krz has joined #ruby
shock_one has quit [Ping timeout: 250 seconds]
Guest92020 has joined #ruby
Guest92020 has quit [Changing host]
Guest92020 has joined #ruby
Guest92020 is now known as mocha
doodlehaus has quit [Remote host closed the connection]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Spami has joined #ruby
krz has quit [Read error: Connection reset by peer]
balazs has joined #ruby
blizzy has joined #ruby
edwardly has quit [Read error: Connection reset by peer]
zorak8 has quit [Quit: Leaving]
DerisiveLogic has joined #ruby
lidenskap has joined #ruby
VBlizzard has quit [Ping timeout: 264 seconds]
VBlizzard has joined #ruby
balazs has quit [Ping timeout: 250 seconds]
Oka has quit [Quit: さようなら]
krz has joined #ruby
pika_pika has quit [Ping timeout: 245 seconds]
fgo has joined #ruby
sshao has quit []
zachrab has joined #ruby
fgo_ has quit [Ping timeout: 255 seconds]
blizzy has quit [Ping timeout: 264 seconds]
greenbagels has joined #ruby
juanpablo__ has joined #ruby
jeramy_s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
Technodrome has quit [Quit: Technodrome]
mengu has joined #ruby
juanpablo__ has quit [Ping timeout: 272 seconds]
Technodrome has joined #ruby
mleung has joined #ruby
mengu has quit [Ping timeout: 250 seconds]
momomomomo has quit [Quit: momomomomo]
agent_white has joined #ruby
<agent_white> Evenin' folks
jeramy_s has joined #ruby
msmith has quit []
kubunto has left #ruby [#ruby]
kartouch has quit [Ping timeout: 265 seconds]
mrmargolis has quit [Remote host closed the connection]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_blizzy_ has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
growlove has quit [Remote host closed the connection]
rrichardsr3 has joined #ruby
duncannz has joined #ruby
<havenn> agent_white: g'evening
havenn is now known as havenwood
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
mjuszczak has quit []
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
slackbotgz has joined #ruby
duncannz has quit [Max SendQ exceeded]
bruno- has joined #ruby
bruno- is now known as Guest8343
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
rbo has quit [Ping timeout: 256 seconds]
P1RATEZ has quit []
f3lp has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
iotouch has quit [Quit: This computer has gone to sleep]
xploshioon has quit [Quit: Leaving]
Guest8343 has quit [Ping timeout: 265 seconds]
pontiki has joined #ruby
pdoherty has joined #ruby
milesmatthias has joined #ruby
moted has quit [Ping timeout: 256 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jeramy_s has quit [Quit: Peace out!]
Cloudhand has quit [Ping timeout: 245 seconds]
justin_pdx has quit [Quit: justin_pdx]
tubuliferous has quit [Ping timeout: 250 seconds]
iotouch has joined #ruby
x1337807x has joined #ruby
nettoweb has joined #ruby
mgberlin has joined #ruby
workmad3 has joined #ruby
freerobby has joined #ruby
rshetty has joined #ruby
musashi1 has joined #ruby
duncannz has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
Lissie has joined #ruby
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
b4tm4n has quit [Quit: Leaving]
duncannz has quit [Max SendQ exceeded]
workmad3 has quit [Ping timeout: 252 seconds]
duncannz has joined #ruby
rshetty has quit [Remote host closed the connection]
braincrash has quit [Quit: bye bye]
VegasSith has quit []
milesmatthias has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x1337807x has joined #ruby
x1337807x has quit [Client Quit]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eshiffob has joined #ruby
sohrab has quit [Quit: leaving]
braincrash has joined #ruby
multi_io has quit [Ping timeout: 255 seconds]
juanpablo__ has joined #ruby
cefkamcau has quit [Ping timeout: 265 seconds]
multi_io has joined #ruby
duncannz has quit [Ping timeout: 250 seconds]
juanpablo__ has quit [Ping timeout: 248 seconds]
Lissie has quit [Read error: Connection reset by peer]
RegulationD has joined #ruby
hgl- has joined #ruby
hgl has quit [Read error: Connection reset by peer]
hgl- is now known as hgl
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Lissie has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
Channel6 has joined #ruby
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
RegulationD has quit [Ping timeout: 248 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_2_Vendetta has joined #ruby
<_2_Vendetta> Hey
<pontiki> hi
<_2_Vendetta> wassup
beneggett has joined #ruby
<pontiki> notmuch
icebourg has joined #ruby
<_2_Vendetta> Ima New To This Shxt !
mjuszczak has joined #ruby
Brozo has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
mjuszcza_ has joined #ruby
_honning_ has quit [Ping timeout: 256 seconds]
_2_Vendetta has quit [Quit: WhatsChat IRC Android APP]
ebbflowgo has joined #ruby
yfeldblum has joined #ruby
mjuszczak has quit [Ping timeout: 256 seconds]
spicerack has joined #ruby
mocha has quit [Quit: Leaving]
mjuszcza_ has quit []
<Radar> YO WHAT UP MY HOMIE
Technodrome has quit [Quit: Technodrome]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> yo Radar
<Radar> shevy: MY DAWG WHAT IS *UP* FOOL?
<sevenseacat> lol
<shevy> just woke up!
<shevy> now I have to feed the cat first... she is staring at me from a corner again... it's psychic warfare, until I get to feed her, she just continues to stare...
Brozo has joined #ruby
<havenwood> shevy: do what the cat says
lidenskap has quit [Remote host closed the connection]
beneggett has joined #ruby
<agent_white> shevy: Lucky. My cat pees on the wall or takes over my sleep spot.
<agent_white> Though if I turn on the space-heater she turns into a banana in front of it.
Lissie has quit [Read error: Connection reset by peer]
slackbotgz has quit [Remote host closed the connection]
Lissie has joined #ruby
lidenskap has joined #ruby
oo_ has quit [Remote host closed the connection]
<peteyg> Does calling Thread.new { GC.start() }.join behave as expected (namely, trigger the global GC in a separate thread--though I understand the benefits are limited due to Ruby's GIL)?
Eiam_ has joined #ruby
oo_ has joined #ruby
MyGreenPickle has joined #ruby
Zamerick has quit [Read error: Connection reset by peer]
tearan has joined #ruby
tearan has quit [Client Quit]
fred1807 has quit [Quit: fred1807]
Brozo has quit [Remote host closed the connection]
Cloudhand has joined #ruby
Brozo has joined #ruby
Lissie has quit [Quit: My computer has gone to sleep. ZZZzzz…]
a5i has quit [Quit: Connection closed for inactivity]
Spami has joined #ruby
bricker has joined #ruby
_blizzy_ has quit [Ping timeout: 245 seconds]
Technodrome has joined #ruby
rshetty has joined #ruby
jenrzzz has joined #ruby
roger_rabbit has quit [Read error: Connection reset by peer]
<zenojis> I would guess so, why not test it? shouldn't be hard to make a little test script
Rickmasta has joined #ruby
<Eiam_> my hosting service passes in $RACK_ENV for my procfile, web: bundle exec thin -R config.ru start -p $PORT -e $RACK_ENV
<Eiam_> but when I use foreman start, $RACK_ENV isn't set. Would the appropriate place to set that be in like.. environments.rb for sinatra? something like ENV['RACK_ENV'] = :development ?
MyGreenPickle has quit [Ping timeout: 264 seconds]
tcrypt has quit [Remote host closed the connection]
jamto11 has quit [Remote host closed the connection]
Morkel has joined #ruby
djbkd has joined #ruby
freerobby has quit [Quit: Leaving.]
Morkel has quit [Client Quit]
dudedudeman has quit [Ping timeout: 252 seconds]
Morkel has joined #ruby
dudedudeman has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
Dreamer3_ has joined #ruby
Contigi777 has joined #ruby
jud^ has joined #ruby
<bricker> Eiam_: If it's Foreman, put it in .env
mgberlin has quit [Remote host closed the connection]
greenbagels_ has joined #ruby
Anthony__ has joined #ruby
<Eiam_> hmm, lemme go read foreman docs to see where is reading that
Dreamer3 has quit [Read error: Connection reset by peer]
<Eiam_> for posterity, configure :development do
<Eiam_> set :database, 'sqlite:///dev.db'
<Eiam_> set :show_exceptions, true
<Eiam_> ENV['RACK_ENV'] = "development" did not work =)
<Eiam_> damnit stupid multiline
<Eiam_> sry
balazs has joined #ruby
mgberlin has joined #ruby
<bricker> Eiam_: well, it makes sense right, but the time it gets to that line it's too late
<bricker> that's why it's passed in as a command line argument :)
<Eiam_> right
<Eiam_> =)
<Eiam_> curse you and your logic
A205B064 has quit [Ping timeout: 264 seconds]
mgberlin has quit [Remote host closed the connection]
Guest62726 has quit [Ping timeout: 252 seconds]
mgberlin has joined #ruby
<Radar> Yeah, what bricker said. Put it in .env
Contigi has quit [Ping timeout: 240 seconds]
jamto11 has joined #ruby
greenbagels has quit [Ping timeout: 240 seconds]
VBlizzard has quit [Ping timeout: 240 seconds]
<Eiam_> hmm. yeah
jud has quit [Ping timeout: 245 seconds]
<Eiam_> I don't want to drop it in my bash profile
<Eiam_> gonna see if it will take a local .env file
rshetty has quit [Remote host closed the connection]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
<Eiam_> cool. `touch .env | echo "RACK_ENV='development'" > .env` and we are cookin
balazs has quit [Ping timeout: 250 seconds]
<bricker> *high-five*
<Radar> GO TEAM
Olipro- has joined #ruby
<Eiam_> I gave up on my haskell adventures for the time being ;)
<Eiam_> needed to get some stuff done and couldn't afford the investment so, back to ruby
<pontiki> what do you need a pipe there for?
iotouch has quit [Quit: This computer has gone to sleep]
<Eiam_> pontiki: *shrug* I figured that wasn't optimal but it worked. shouuld have &&
<Eiam_> and I actually think > will create a file if it doesn't exist
<Eiam_> or there is a mojo to do it
<pontiki> it will
<Eiam_> didn't feel like looking it up
<Eiam_> I flex my bash muscle like, once every other month
<Eiam_> it atrophies with time.
<Eiam_> gosh I've missed you guys & ruby. =)
<bricker> ruby misses you too
<Radar> Talk of Haskell reminded me of this tweet this morning: https://twitter.com/_dnch/status/591035586741284864
<sevenseacat> Radar: thats awesome.
<bricker> hah
vt102 has quit [Ping timeout: 255 seconds]
tubuliferous_ has quit [Ping timeout: 264 seconds]
mjuszczak has joined #ruby
pdoherty has quit [Quit: Leaving]
oo_ has quit [Remote host closed the connection]
plutonic has quit [Quit: plutonic]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ylluminarious has quit [Quit: Leaving...]
rbo has joined #ruby
<Eiam_> man I feel so productive again
<Eiam_> surreal to write code without struggling
rshetty has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
duncannz has joined #ruby
pontiki has quit [Quit: good night]
beneggett has joined #ruby
<sevenseacat> the thing that amazes me about ruby is how much you can do with how little code, whenever i use languages that dont have nice things like map, or select, etc. i go nuts
<Eiam_> oh haskell for sure has those..
<Radar> Really Haskell is simple too
<sevenseacat> you mean i have to write my own loops and do counts? ffs
Lubbed has joined #ruby
<Brozo> lol
<Radar> a :: a -> b() x monad something
<Lubbed> Hey.
<Eiam_> Radar: once you know something, i agree that its simple. =)
<sevenseacat> true. i havent done haskell for a long time
<Brozo> i feel like ruby is the devils fruit for high schoolers learning code
yfeldblum has quit [Remote host closed the connection]
<Lubbed> How long does it take to become really good at Ruby and RoR? (Consider previous programming skills)
<Radar> Eiam_: I tried to learn Haskell and it wasn't explained well so I gave up. True story.
<Brozo> then again its still used
<bricker> Lubbed: 15 minutes
<Radar> Lubbed: I'll let you know when I get there. It's taken me 10 years to get this far.
<Eiam_> Radar: I have spent about 6 weeks on haskell..
<sevenseacat> depends on said previous programming skills
rshetty has quit [Client Quit]
<Eiam_> i can mostly read & follow it now but.. siting down from scratch and doing stuff takes me a long time
<sevenseacat> Radar: and i think nearly everyone would call you 'really good at them' :P
yfeldblum has joined #ruby
<Brozo> Lubbed: how much experience are we talking here
agent_white has joined #ruby
<Radar> sevenseacat: In certain areas.
<Eiam_> Lubbed: I think Ruby and RoR are two different skill sets
<Radar> One does not simply become a master of everything
mjuszczak has quit []
<Lubbed> Radar, 10 years?
<sevenseacat> true.
<bricker> I'm on the Go train now, choo choo all aboard
<Radar> Lubbed: Round about.
<Eiam_> I'm happy to know very little RoR
<sevenseacat> just when i think i'm getting good, i get foiled by stupid little issues
<Radar> Lubbed: It's very easy to learn Ruby + Rails. I would say a couple of months of good study would get you familiar with most of the concepts.
mleung has quit [Quit: mleung]
<Lubbed> Brozo, C, C++, x86 asm, phd in pure math. Round it to 12 years.
<Radar> Lubbed: But it's the practice of running into issues after issues after issues that really gives you the skill.
<sevenseacat> like 'lets apply and display validations to a has_many relationship'
<sevenseacat> grr
rbo has quit [Ping timeout: 256 seconds]
<Radar> LOL no
<sevenseacat> -_-
ylluminarious has joined #ruby
iotouch has joined #ruby
<Lubbed> Radar, I think you have rounded the numbers too high up.
<bricker> Radar: yes that's why I hang out here, people run into issues for me and I solve them and steal the knowledge gains
nahtnam has quit [Quit: Connection closed for inactivity]
x1337807x has joined #ruby
<sevenseacat> user can upload many documents. have to upload at least one of type A and one of type B
<Radar> Lubbed: Have I?
mjuszczak has joined #ruby
beneggett has quit [Client Quit]
<Radar> bricker: +1
<Lubbed> Radar, You would still say 10 years? I told you my previous experience.
<Radar> bricker: Similar to group questing in RPGs ;)
<bricker> :D
<sevenseacat> true, i've learnt so much just by seeing other people answering stuff
<sevenseacat> i hate group questing in RPGs.
<Radar> Lubbed: 10 years was a joke. I did qualify that it was a couple of months probably that you could use to get a proper hang of most things
* sevenseacat plays MMOs solo
<Brozo> isn't that why employers nowadays ask for stackoverflow usernames
<Radar> sevenseacat: when it's a good group it's good
<Radar> sevenseacat: PUGs are shit and I avoid them if I can
<Lubbed> Radar, I'm talking about being really good. Proper is not enough :(
<Radar> Brozo: You mean like this http://stackoverflow.com/users/15245/ryan-bigg
plutonic has joined #ruby
<Radar> Lubbed: Why do you want to be the very best? Like noone ever was?
* sevenseacat will never get all of the achievements in elder scrolls online because they require group questing ;_;
<Lubbed> Radar, Ok now you went a lil bit too far :P
<Lubbed> Radar, But to be able to do the stuff I want to do.
<Radar> Lubbed: Which is what?
<Radar> Lubbed: If you're going to be vague with your descriptions I'll be even more vague with my answers and we'll get nowhere.
<Brozo> Radar: only 0.20% overall, weak
<Radar> Precision of language ;)
<Radar> Brozo: I AM SORRY :(
<Lubbed> Radar, I can't tell you right now what I want to do. But simple stuff in a good way, web applications mostly.
<Eiam_> Lubbed: get started and let us know how long it took =0
<Radar> :)
<Eiam_> I contributed to an existing rails 2 app my first day on the job, with no rails or ruby experience
* Eiam_ shrugs
<Lubbed> Eiam_, The industry sucks :)
<sevenseacat> Radar: dammit you're extending your lead
<Eiam_> I wasn't hired for my knowledge of ruby or rails. I was hired for my ability to get shit done
<Eiam_> and that I could think. so.. the ruby part was pretty irrelevant.
<Radar> sevenseacat: Organically, too. I rarely answer on there any more.
<AlecTaylor> How do I get Jekyll (in RVM) working with Grunt? - http://stackoverflow.com/q/29791893
Bira has quit []
<Radar> AlecTaylor: Step 1: stop using RVM
<sevenseacat> curses.
<Radar> Step 2: ruby-install + chruby
<AlecTaylor> chruby?
<Eiam_> rbenv has fallen out of favor now? =0
<Radar> Eiam_: yup
<sevenseacat> it was ever in favour?
<Radar> Briefly.
<Eiam_> damn, leave for a year and it all changes =/ does pry suck now too?
<Radar> Pry is still amazing.
<Eiam_> okay whew
<Radar> Eiam_: Well, I would like it to fall out of favour completely mainly because I have a vendetta against 37 Signals and anyone who works for them.
<Brozo> what makes pry better than rbenv?
<sevenseacat> haha
<Radar> pry doesn't do the same thing as rbenv
<Eiam_> they are totally different things
<AlecTaylor> Wasn't pry an irb thing?
<Radar> I want them to have less influence on our tooling because they have a terrible (as of recent) record of releasing terrible software.
<Eiam_> pry is a debugger
<Radar> Turbolinks, rbenv, Sprockets, etc.
<sevenseacat> good thing 37 signals doesnt exist anymore!
<AlecTaylor> ah
tubuliferous has joined #ruby
<Radar> sevenseacat: oh true, they renamed.
<sevenseacat> indeed
<Eiam_> hiding from radar no doubt
<sevenseacat> theyre all about that base...camp now
bluOxigen has joined #ruby
<bricker> Radar: is pry developed by 37s?
<Radar> bricker: no
<Eiam_> no
<Eiam_> banister
<Radar> sevenseacat: See what you did there, I did.
<bricker> Radar: oh, I missed the context of your messages
<Radar> bricker: tl;dr: burn rbenv at the stake, use ruby-install+chruby instead. pry is heavenly. Basecamp sucks at software that isn't Basecamp.
<Radar> There were three things I was talking about, really.
<sevenseacat> basecamp is kinda sucky too, tbh. i didn't enjoy using it.
<bricker> Radar: agree, agree, agree, agree
<bricker> Basecamp be like, "Remove functionality that's not core to Rails! 100% of Rails users don't need it? Remove it!"
<bricker> HERE'S SOME WEBSOCKETS ENJOY
<bricker> HERE'S SOME JAVASCRIPT PJAX THING THAT DOESN'T WORK ENJOY
<bricker> (I know turbolinks is not part of rails core)
psy_ has quit [Ping timeout: 250 seconds]
<sevenseacat> we heard you like debugging asset problems so we made you a pipeline so we can forcefeed you with them
towski_ has quit [Remote host closed the connection]
blueOxigen has joined #ruby
<Radar> bricker: it's enabled by default and that's bad enough
<bricker> agreed
<bricker> sevenseacat: shhhh, the asset pipeline is the reason rails devs still make a lot of money
<bricker> if it was easy, anybody could do it
<Radar> Also hilarious that when sprockets came out it *was* baked into Rails quite heavily. I submitted a PR to extract it out into a gem called sprockets-rails, which got rejected.
<Radar> Two years later, they created a gem called sprockets-rails.
<Radar> WHOOPS
<sevenseacat> Radar: you're a man ahead of your time
michael_mbp has quit [Excess Flood]
bluOxigen has quit [Ping timeout: 255 seconds]
<bricker> Sounds like they owe you some OSS bucks
tubuliferous has quit [Ping timeout: 245 seconds]
<bricker> which you can spend on free OSS
<Radar> bricker: So many Fake Internet Points owed.
<AlecTaylor> Radar: Okay, so installing Ruby with ruby-install, which flags should I use?
<sevenseacat> you need flags?
jaequery has joined #ruby
shock_one has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
michael_mbp has joined #ruby
towski_ has joined #ruby
rbo has joined #ruby
djbkd has quit [Quit: Leaving...]
djbkd has joined #ruby
fxck has joined #ruby
fxck has joined #ruby
fxck has left #ruby [#ruby]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
workmad3 has joined #ruby
<AlecTaylor> sevenseacat, Radar : I ran `$ ruby-install ruby`
<sevenseacat> you missed the version number
<sevenseacat> which version do you want to install?
<AlecTaylor> latest
<AlecTaylor> this got 2.2.1
Technodrome has quit [Quit: Technodrome]
<rbo> evening again sevenseacat :)
* rbo had to install linux...
<AlecTaylor> Do I just manually augment my PATH, is there a flag, or should I install it system wide? `- >>> Successfully installed ruby 2.2.1 into /home/at/.rubies/ruby-2.2.1`
oo_ has joined #ruby
<sevenseacat> rbo: howdy
<sevenseacat> AlecTaylor: thats what chruby is for
<Radar> AlecTaylor: Install chruby as well and the follow the autoswitching instructions further down in the readme
<AlecTaylor> kk
<Eiam_> hmm. auto reloader/watcher for foreman? i would have kind of expected it to do so on its own, bu it does not appear that way
<bricker> Eiam_: upstart, god, bluepill, etc.
shock_one has quit [Ping timeout: 256 seconds]
<Eiam_> thought god was for redis/resque
<Eiam_> ah, i meant like.. during development
<bricker> oh
<Eiam_> save a file, it reloads
<bricker> Eiam_: Guard
workmad3 has quit [Ping timeout: 246 seconds]
<bricker> there is a guard plugin for everything
philip1 has joined #ruby
<bricker> I wrote one for gradle for god's sake
<sevenseacat> even asciidoctor, i found out, though its not complete
<bricker> :O
iotouch has quit [Quit: This computer has gone to sleep]
<bricker> Eiam_: you don't really need to restart your server in dev though
<Radar> You do it if it's a Sinatra app
<bricker> indeed
<Eiam_> ^
www-BUKOLAY-com has joined #ruby
<Eiam_> it is sinatra
<Eiam_> i am, sadly enough, dicking with favicons
Brozo has left #ruby ["Leaving..."]
towski_ has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
<Eiam_> for some reason its not looking in public for "GET /apple-touch-icon.png HTTP/1.1" 404
<Eiam_> I hate 404s =)
Feyn has joined #ruby
icebourg has quit []
michael_mbp has joined #ruby
jeromelanteri has joined #ruby
philip1 has quit [Ping timeout: 256 seconds]
<AlecTaylor> sevenseacat, Radar: It's not working :( - put the auto.sh and chruby.sh in my .bashrc, but it can't find my ruby ( ~/.rubies/ruby-2.2.1/bin/ruby )
<AlecTaylor> ruby --version still fails to find ruby in a new shell window :(
iotouch has joined #ruby
<sevenseacat> are you using bash?
<Radar> AlecTaylor: wat
<Radar> AlecTaylor: what happens when you run `which ruby`
<AlecTaylor> Radar: error code 1
<Radar> AlecTaylor: which gives you an error code?
<AlecTaylor> No
<Radar> AlecTaylor: Or you mean that it exits?
<AlecTaylor> No
<AlecTaylor> Wait, I mean the which command returns 1
<AlecTaylor> echo $?
<Radar> right
<Radar> how about chruby ruby 2.2.1
<AlecTaylor> $ chruby-exec ruby 2.2.1
<AlecTaylor> chruby-exec: COMMAND required
<AlecTaylor> chruby not found in PATH :(
<Radar> yay
<Eiam_> spent 2 hours today trying to wedge my procfile into docker
<Radar> I don't know how that happened.
<Eiam_> so I wouldn't have to run services locally
<Eiam_> gave up, just ended up using foreman (obviously)
<Radar> AlecTaylor: What commands did you use to install chruby? Per the README or what?
<AlecTaylor> git clone https://github.com/postmodern/chruby.git && cd chruby && sudo make install
roger_rabbit has joined #ruby
<Radar> Not these instructions?
<sevenseacat> fun
juanpablo__ has joined #ruby
mgberlin has quit [Remote host closed the connection]
<AlecTaylor> fun fun
<AlecTaylor> Newer is better remember :P
<sevenseacat> yes, but not stable is not better
bricker has quit [Ping timeout: 248 seconds]
juanpablo__ has quit [Ping timeout: 256 seconds]
<AlecTaylor> sevenseacat, Radar: Same error with wgetted version
<Radar> AlecTaylor: No chruby command?
<Radar> What OS?
<sevenseacat> are you using bash?
<AlecTaylor> Yes yes
<Eiam_> hmm
<AlecTaylor> Bash 4.3.30(1)-release
<Eiam_> no binding.pry from within guard?
<sevenseacat> so `chruby 2.2.1` asplodes?
<AlecTaylor> yup
<AlecTaylor> $ which chruby
<AlecTaylor> $ echo $?
<AlecTaylor> 1
RegulationD has joined #ruby
<sevenseacat> thats not what i said to run
<sevenseacat> how does it asplode?
<Radar> What operating system?
<AlecTaylor> chruby never gets to my PATH
<AlecTaylor> Radar: Ubuntu 14.10 x64
<sevenseacat> well it definitely works there
<Radar> AlecTaylor: And the make install succeeds? Can you show me the output of that please?
<AlecTaylor> Radar: Alright, running it again
jenrzzz has joined #ruby
ylluminarious has quit [Quit: Leaving...]
<AlecTaylor> Radar: Output - http://pastebin.com/ykJPZ3Wx
<ruboto> AlecTaylor, we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
<Radar> AlecTaylor: Start a new terminal. Is it present there?
<Radar> That output looks good to me
<AlecTaylor> $ chruby
<AlecTaylor> chruby: command not found
<Radar> wow.
<Radar> I have no idea how this is happening :(
ohaibbq has joined #ruby
<AlecTaylor> :(
<AlecTaylor> So I'll manually augment my PATH and hope that grunt then works?
RegulationD has quit [Ping timeout: 256 seconds]
astrobunny has joined #ruby
<Radar> seems_bad.jpg
<Radar> I would investigate why chruby isn't working for you.
tagrudev has joined #ruby
Contigi has joined #ruby
iotouch has quit [Quit: This computer has gone to sleep]
greenbagels__ has joined #ruby
Olipro- has quit [Ping timeout: 245 seconds]
ponga has joined #ruby
Cloudhand has quit [Ping timeout: 256 seconds]
MatthewsFace has quit [Remote host closed the connection]
<Radar> AlecTaylor: Consider filing a bug report with the details from script/bug_report.sh in the chruby dir
tvw has joined #ruby
balazs_ has quit [Ping timeout: 256 seconds]
mwlang has quit [Ping timeout: 252 seconds]
blizzy has joined #ruby
droidburgundy has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<Radar> interesting that the last line in the install script only copies documentation
<Radar> It's like it's not copying the script at all
greenbagels__ has quit [Client Quit]
greenbagels_ has quit [Ping timeout: 246 seconds]
Channel6 has quit [Quit: Leaving]
jud^ has quit [Ping timeout: 255 seconds]
Contigi777 has quit [Ping timeout: 255 seconds]
jamto11 has quit [Ping timeout: 246 seconds]
gmas has quit [Ping timeout: 252 seconds]
Anthony__ has quit [Ping timeout: 264 seconds]
jaequery has quit [Ping timeout: 250 seconds]
Dreamer3_ has quit [Ping timeout: 256 seconds]
dopie has joined #ruby
TinkerTyper has quit [Ping timeout: 264 seconds]
doppler has joined #ruby
<doppler> o/
dparker1 has quit [Quit: Leaving.]
shock_one has joined #ruby
bricker has joined #ruby
blueOxigen has quit [Ping timeout: 255 seconds]
<Eiam_> hmm. so when using pry with foreman, It hits the "client received, starting remote session" then it mmediately terminates the session too. https://gist.github.com/anonymous/4a97e1c1270ce4967bb4 ? documentation seems to indicate that remote debugger should work with foreman
bluOxigen has joined #ruby
agnostic has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Brozo has joined #ruby
penzur has joined #ruby
<penzur> hello
iotouch has joined #ruby
Contigi has quit [Quit: Leaving]
penzur has quit [Quit: bbl]
djbkd has quit [Quit: My people need me...]
<AlecTaylor> Radar: rarr, I don't want to code/improve ruby and its toolsets, all I want is for my static file generator to work with my javascript toolset
djbkd has joined #ruby
jud has joined #ruby
jud has quit [Changing host]
jud has joined #ruby
TinkerTyper has joined #ruby
Dreamer3 has joined #ruby
OnBrokenWings has joined #ruby
Olipro- has joined #ruby
<Radar> AlecTaylor: Sorry I couldn't hear you over the sound of that delicious irony. Please try again.
<Radar> "I want to benefit from OSS, but I don't want to contribute back to it."
<shevy> AlecTaylor I usually compile ruby from source, it was much simpler for me than having to learn some tool. Latest source is at: ftp://ftp.ruby-lang.org/pub/ruby/2.2/ruby-2.2.2.tar.xz
mwlang has joined #ruby
gmas has joined #ruby
psy_ has joined #ruby
psy_ has quit [Max SendQ exceeded]
psy_ has joined #ruby
aganov has joined #ruby
dopie has quit [Remote host closed the connection]
sigurding has joined #ruby
sinequanon has joined #ruby
SOLDIERz has joined #ruby
AlecTaylor has quit [Quit: Leaving]
dopie has joined #ruby
mjuszczak has quit []
A205B064 has joined #ruby
agent_white has quit [Quit: goodnight]
djbkd has quit [Quit: Leaving...]
f3lp has quit [Ping timeout: 272 seconds]
BradPitt has joined #ruby
droidburgundy has joined #ruby
iamninja_ has quit [Read error: Connection reset by peer]
iamninja_ has joined #ruby
djellemah has joined #ruby
mistermocha has quit [Remote host closed the connection]
<Eiam_> where are all the settings for sinatra stored? setings.inspect has effectively nothing in it. where are all the values that "set :" sets ?
Spami has quit [Quit: This computer has gone to sleep]
OnBrokenWings has quit [Ping timeout: 244 seconds]
OnBrokenWings has joined #ruby
icarus has joined #ruby
iasoon has quit [Ping timeout: 276 seconds]
linoespinoza has joined #ruby
icarus has quit [Ping timeout: 256 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<certainty> moin
icarus has joined #ruby
lkba has joined #ruby
iotouch has quit [Quit: This computer has gone to sleep]
linoespinoza has quit [Remote host closed the connection]
timonv has joined #ruby
iotouch has joined #ruby
michael_mbp has quit [Excess Flood]
AlecTaylor has joined #ruby
simonewestphal has joined #ruby
<AlecTaylor> Radar: Maybe I'll just use - https://www.brightbox.com/docs/ruby/ubuntu/
<AlecTaylor> Almost switched to https://github.com/drone/jkl
laurentide has quit [Read error: Connection reset by peer]
<AlecTaylor> " a static site generator written in Go based on Jekyll"
<AlecTaylor> :3
michael_mbp has joined #ruby
SouL_|_ has joined #ruby
bal has joined #ruby
AlecTaylor has quit [Client Quit]
iasoon has joined #ruby
balazs has joined #ruby
parduse has quit [Ping timeout: 264 seconds]
parduse has joined #ruby
psmolen has quit [Ping timeout: 245 seconds]
zzing has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hmnhf_ has joined #ruby
hmnhf_ has quit [Client Quit]
psmolen has joined #ruby
lidenskap has quit [Remote host closed the connection]
balazs has quit [Ping timeout: 264 seconds]
sigurding has quit [Quit: sigurding]
iotouch has quit [Quit: This computer has gone to sleep]
IronKoopa has joined #ruby
hanmac1 has joined #ruby
iotouch has joined #ruby
hgl has quit [Max SendQ exceeded]
hgl has joined #ruby
lkba_ has joined #ruby
BradPitt has quit [Ping timeout: 245 seconds]
dopie has quit []
jenrzzz has quit [Ping timeout: 276 seconds]
vulix has joined #ruby
lidenskap has joined #ruby
lkba has quit [Ping timeout: 265 seconds]
iasoon has quit [Ping timeout: 256 seconds]
<vulix> #/join rubyonrails
<vulix> oops
<vulix> im n00b
bruno- has joined #ruby
fabrice31 has joined #ruby
bruno- is now known as Guest53574
arturaz has joined #ruby
Mon_Ouie has quit [Ping timeout: 248 seconds]
josephleon has quit [Quit: Leaving...]
lidenskap has quit [Remote host closed the connection]
Guest53574 has quit [Ping timeout: 276 seconds]
Brozo has quit [Remote host closed the connection]
rippa has joined #ruby
devlop has joined #ruby
tubuliferous has joined #ruby
Lissie has joined #ruby
www-BUKOLAY-com has quit [K-Lined]
turtil has quit [Quit: WeeChat 1.1.1]
astrobunny has quit [Remote host closed the connection]
SOLDIERz has quit [Ping timeout: 252 seconds]
iasoon has joined #ruby
vire has joined #ruby
tubuliferous has quit [Ping timeout: 272 seconds]
vire has quit [Read error: No route to host]
kp666 has joined #ruby
tmoor has quit [Read error: Connection reset by peer]
<Eiam_> it complains that I define more than one source, so I try to specify the source for a gem but thats no longer valid
tmoor has joined #ruby
<Eiam_> hmm
<Eiam_> i see it in the manul now
chipotle has joined #ruby
<Eiam_> http://bundler.io/v1.7/man/gemfile.5.html#SOURCE-source- and when I use it.. it says its not a valid option =0
<Eiam_> you pased :source as an option for the gem 'my_test_gem', but it is invalid. Valid options are: group, groups, git, path, name, branch, ref, tag, require,
<Eiam_> submodules, platform, platforms, type
<Radar> What version of bundler are you using?
<Radar> bundler -v
<Eiam_> 1.6.2
<Eiam_> hm that maybe old
<sevenseacat> and youre looking at the docs for 1.7
Igorshp has joined #ruby
<Eiam_> looks like its on 1.9 =0
workmad3 has joined #ruby
* Eiam_ updates
<Eiam_> indeed =)
<Eiam_> gosh its late, im going to blame the time =)
<Eiam_> haha thanks
<Eiam_> and now it works as expected
astrobunny has joined #ruby
<Radar> MAGIC
<Eiam_> MAGIC!
<Eiam_> honestly that was just me being dumb
<Eiam_> but its a sign I should sleep so, im off for the evening. thank you fine folks have a good morning/day/night wherever you are
rodferso1 has quit [Ping timeout: 256 seconds]
<Radar> Eiam_: gnight
workmad3 has quit [Ping timeout: 250 seconds]
Lissie has quit [Read error: Connection reset by peer]
Lissie has joined #ruby
rkazak has joined #ruby
postmodern has joined #ruby
kevinhh has joined #ruby
Nahra has joined #ruby
rkazak has left #ruby [#ruby]
yfeldblum has quit [Remote host closed the connection]
jheg has joined #ruby
kevinhh has quit [Client Quit]
kevinhh has joined #ruby
vasilakisfil has joined #ruby
Igorshp has quit [Remote host closed the connection]
allenn has joined #ruby
_blizzy_ has joined #ruby
vire has joined #ruby
scripore has joined #ruby
<shevy> bugs bugs bugs
ohaibbq has quit [Quit: Leaving...]
juanpablo__ has joined #ruby
kyrylo_ has joined #ruby
wldcordeiro has joined #ruby
* wasamasa bugs shevy
<shevy> ruby has gotten pretty big
<shevy> ruby-2.2.2.tar.xz 10M
wldcordeiro has quit [Max SendQ exceeded]
_blizzy_ has quit [Ping timeout: 252 seconds]
<shevy> still smaller than python3
<shevy> python-3.4.3.tar.xz 14M
<shevy> even perl
codecop has joined #ruby
<shevy> perl-5.20.2.tar.xz 11M
wldcordeiro has joined #ruby
jheg has quit [Quit: jheg]
wldcordeiro has quit [Max SendQ exceeded]
juanpablo__ has quit [Ping timeout: 240 seconds]
Filete has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
andikr has joined #ruby
<shevy> the linux kernel should be rewritten in http://en.wikipedia.org/wiki/LOLCODE
<shevy> IM IN YR LOOP
oo_ has quit [Remote host closed the connection]
<izzol> moin.
RegulationD has joined #ruby
relix has joined #ruby
oo_ has joined #ruby
rdark has joined #ruby
Macaveli has joined #ruby
morholt has joined #ruby
djbkd has joined #ruby
Macaveli has quit [Client Quit]
Igorshp has joined #ruby
`sicks has joined #ruby
<kq_away> Is there a mnemonic or something to remember the difference between .. and ...?
Igorshp has quit [Remote host closed the connection]
<kq_away> Checking it in pry/irb all the time is tedious
<pipework> inclusive vs. not
rikai has quit [Ping timeout: 245 seconds]
Macaveli has joined #ruby
<kq_away> pipework: I just can't seem to remember which is which
<pipework> kq_away: That inclusive is ..?
<sevenseacat> I generally remember it as 0...5 being 0 to 5 ...but not 5
RegulationD has quit [Ping timeout: 256 seconds]
w0lf has joined #ruby
bal has quit [Quit: bal]
simonewestphal has left #ruby [#ruby]
<pipework> I generally use inclusive more, so .. being shorter is all I need.
Lissie has quit [Read error: Connection reset by peer]
bal has joined #ruby
Hobogrammer_ has joined #ruby
Lissie has joined #ruby
<kq_away> uh uh
<kq_away> I know there are .. and ..., and one is inclusive and one is not, my problem is that in half an hour I won't know which is which again and I'll have to fire up pry again
<kq_away> I was looking for something like right hand rule or something
Hobogrammer has quit [Ping timeout: 246 seconds]
<pipework> kq_away: Either stop smoking while you work, or smoke some more.
<sevenseacat> well i told you how i remember it, so
<shevy> is ARGV[0] the same as ARGV.first? I would assume so but right now I stare at old code I wrote and my old code confuses me
<Radar> shevy: yes
scripore has quit [Quit: This computer has gone to sleep]
<Radar> ARGV is an Array
justin_pdx has joined #ruby
<shevy> okies
<Radar> unless someone overrode #[] or #first, they will return the same values
<kq_away> oh, right, sevenseacat
<shevy> kq_away I remember the .. vs. ... with as the "extra dot", which "adds something extra" (the element itself) aka more dots, more data
<shevy> imagine if we also have ....!
<shevy> and .....
<rbo> gnight
<kq_away> shevy: apparently, it's the opposite
<shevy> waaaaaaaaa
<kq_away> more dots, less data
<sevenseacat> yep.
<kq_away> >> (1...10).inject([],&:push)
<ruboto> kq_away # => [1, 2, 3, 4, 5, 6, 7, 8, 9] (https://eval.in/317575)
<sevenseacat> 1 to 10 ...but not 10
<pipework> >> (1..10).to_a
<ruboto> pipework # => [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] (https://eval.in/317576)
<pipework> >> (1...10).to_a
<ruboto> pipework # => [1, 2, 3, 4, 5, 6, 7, 8, 9] (https://eval.in/317577)
<kq_away> anyway, thanks sevenseacat. the second ... in your sentence is only valid as ellipsis
<kq_away> which forces it to be 3 dots
<sevenseacat> yeeeep
<shevy> so more means less
<kq_away> less is more
<Radar> NEXT ON #ruby: strftime("%p") == AM, strftime("%P) == "am"
<sevenseacat> haha really?
<sevenseacat> awesome
<kq_away> that doesn't bother me
<kq_away> There's no way I skip the docs for this function
<Radar> heh
w0lf is now known as Lap64
lidenskap has joined #ruby
rbo has quit [Ping timeout: 246 seconds]
jim_at_jibba has joined #ruby
jenrzzz has joined #ruby
Juanchito has joined #ruby
ta has quit [Remote host closed the connection]
bal has quit [Read error: Connection reset by peer]
bal has joined #ruby
justin_pdx has quit [Quit: justin_pdx]
wldcordeiro has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
lidenskap has quit [Remote host closed the connection]
iotouch has quit [Quit: This computer has gone to sleep]
<shevy> we can use alias to a method, like:
<shevy> class Foo; def bar; puts 'hey bar here'; end; alias foo bar; end
<shevy> is there an elegant way to do the same, for a class method?
oo_ has quit [Remote host closed the connection]
<ytti> shouldn't alias work just fine in
<ytti> class << self
<ytti> alias ...
<ytti> end
gauke has joined #ruby
oo_ has joined #ruby
krz has quit [Ping timeout: 256 seconds]
oo_ has quit [Remote host closed the connection]
iotouch has joined #ruby
oo_ has joined #ruby
<apeiros> shevy: `class Module; def alias_singleton_method(*args); singleton_class.__send__(:alias_method, *args); end; end`
vdamewood has joined #ruby
<apeiros> then you can do: `class Foo; alias_singleton_method :enhanced_new, :new; end`
marr has joined #ruby
sigurding has joined #ruby
Brozo has joined #ruby
charliesome has joined #ruby
hanmac has quit [Ping timeout: 265 seconds]
roshanavand has joined #ruby
DerisiveLogic has quit [Ping timeout: 248 seconds]
Lissie_ has joined #ruby
Lissie has quit [Read error: Connection reset by peer]
Brozo has quit [Ping timeout: 264 seconds]
kevinhh has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
kevinhh has joined #ruby
_djbkd has joined #ruby
gauke has quit [Ping timeout: 265 seconds]
wldcordeiro has quit [Ping timeout: 245 seconds]
iotouch has quit [Quit: This computer has gone to sleep]
ghr has joined #ruby
wldcordeiro has joined #ruby
livathinos has joined #ruby
wldcordeiro has quit [Remote host closed the connection]
shoutsid has joined #ruby
codecop has quit [Ping timeout: 240 seconds]
kevinhh has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
Technodrome has joined #ruby
roshanavand1 has joined #ruby
iotouch has joined #ruby
roshanavand has quit [Remote host closed the connection]
terlar has joined #ruby
codecop has joined #ruby
hanmac has joined #ruby
<avril14th> morning
ghr has quit [Ping timeout: 256 seconds]
<doppler> o/
yfeldblum has joined #ruby
vsh_ has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
roshanavand has joined #ruby
roshanavand1 has quit [Ping timeout: 245 seconds]
OnBrokenWings has quit [Quit: Leaving]
yfeldblum has joined #ruby
jim_at_jibba has quit [Remote host closed the connection]
<hanmac1> jokke hi
<jokke> hanmac1: hi
devlop has quit [Ping timeout: 245 seconds]
<hanmac1> jokke: have you got my link with my gist for &:to_s.(16) stuff?
<jokke> hanmac1: the method chaining for blocks?
<hanmac1> yeah that one
<jokke> yeah i got it
<jokke> it's quite neat :) but then again in most cases quite overkill :P
<hanmac1> ;P and? did you like it? (hm yeah it might not be the best but i still tink its a nice idea)
iotouch has quit [Quit: This computer has gone to sleep]
_djbkd has quit [Read error: Connection reset by peer]
_djbkd has joined #ruby
<hanmac1> jokke: i also have a pastie for an Wrapping stucture where you can call to_i! to change the class of the object itself ;p
Lissie_ has quit [Read error: Connection reset by peer]
<jokke> omg :D
<hanmac1> "so as it seems for the outside user"
Lissie has joined #ruby
ghr has joined #ruby
ta has joined #ruby
timonv has quit [Ping timeout: 276 seconds]
iotouch has joined #ruby
<hanmac1> jokke: check that out! https://gist.github.com/Hanmac/4619845 ;p
Mon_Ouie has joined #ruby
<jokke> oh god. :P
<avril14th> I see a lot of gems to limit / filter received api requests ( rack_defense, etc.), but it there a gem to SEND request so they won't get filtered away by a server using such limits?
ta_ has joined #ruby
sinequanon has quit []
livathinos has quit [Ping timeout: 250 seconds]
psy_ has quit [Ping timeout: 264 seconds]
_djbkd has quit [Ping timeout: 256 seconds]
djbkd_ has joined #ruby
Lissie has quit [Quit: My computer has gone to sleep. ZZZzzz…]
chthon has joined #ruby
<adaedra> grml, Hash#slice is only in ActiveSupport
balazs has joined #ruby
djbkd has quit [Ping timeout: 264 seconds]
vtunka has joined #ruby
granthatcher has joined #ruby
IronKoopa has quit [Quit: Leaving]
<sevenseacat> see, activesupport is useful!
piotrj has joined #ruby
colorisco has joined #ruby
Hirzu_ has quit [Remote host closed the connection]
plutonic has quit [Quit: plutonic]
Hirzu has joined #ruby
balazs has quit [Ping timeout: 264 seconds]
codecop has quit [Remote host closed the connection]
lidenskap has joined #ruby
elaptics_away is now known as elaptics
fella5s has joined #ruby
tubuliferous has joined #ruby
sheepman has joined #ruby
charliesome has quit [Quit: zzz]
jeromelanteri has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
jeromelanteri has joined #ruby
User458764 has joined #ruby
krz has joined #ruby
piotrj has quit [Remote host closed the connection]
<User458764> Is there a channel for rack?
tubuliferous has quit [Ping timeout: 250 seconds]
ta_ has quit [Remote host closed the connection]
Igorshp has joined #ruby
yqt has joined #ruby
<apeiros> User458764: alis says #rack
<User458764> apeiros there are only 19 people :)
krz has quit [Ping timeout: 250 seconds]
c0m0 has joined #ruby
doertedev has joined #ruby
lidenskap has quit [Remote host closed the connection]
workmad3 has joined #ruby
<adaedra> So it exists
<adaedra> sevenseacat: yeah, I'm going to add dependency to active support for one method.
<pipework> hehe
<pipework> It's easy to reproduce.
<sevenseacat> >_>
jeromelanteri has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<adaedra> pipework: sure, took me 1 minute. Still, it would have been easier to have it available directly.
niKeITA has joined #ruby
A205B064 has quit [Ping timeout: 276 seconds]
jeromelanteri has joined #ruby
<sevenseacat> isnt that the point of activesupport, to provide the helper methodsthat the stdlib doesnt?
<adaedra> sure
arquebus has joined #ruby
<pipework> adaedra: That's kind of the point of activesupport.
<adaedra> but taking the whole dependency for just Array#slice, really?
<adaedra> Hash#slice*
<hanmac1> active support still does not support binary prefix for file sizes correct ... and that is > 10 years old
workmad3 has quit [Ping timeout: 250 seconds]
<adaedra> I was using many, not easy to reproduce methods, I don't say
<adaedra> I usually import it for String#underscore and alikes
<pipework> Egh, I'd almost treat activesupport as a required dependency to deal with some things in ruby that it doesn't handle for you.
Zai00 has joined #ruby
<pipework> That said, I still require the specific bits of activesupport that I need when I need them.
shoutsid06 has joined #ruby
<adaedra> This said, there are many methods which could deserve to be in stdlib
<pipework> Quite.
lolmaus has quit [Ping timeout: 256 seconds]
shoutsid has quit [Ping timeout: 256 seconds]
Mon_Ouie has quit [Ping timeout: 256 seconds]
Spleeze has quit [Ping timeout: 264 seconds]
juanpablo__ has joined #ruby
jenrzzz has joined #ruby
bricker has quit [Ping timeout: 244 seconds]
juanpablo__ has quit [Ping timeout: 265 seconds]
lloyd is now known as Lloyd
piotrj has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
Cust0sL1men has quit [Ping timeout: 276 seconds]
RegulationD has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
icarus has quit [Ping timeout: 245 seconds]
<adaedra> pry + byebug is <3
lolmaus has joined #ruby
lkba_ has quit [Ping timeout: 264 seconds]
asmodlol has joined #ruby
iotouch has quit [Quit: This computer has gone to sleep]
icarus has joined #ruby
mengu has quit [Ping timeout: 255 seconds]
RegulationD has quit [Ping timeout: 246 seconds]
iotouch has joined #ruby
<pipework> Except when it acts irrationally.
psy_ has joined #ruby
quimrstorres has joined #ruby
<adaedra> I just discovered it, don't crush my hopes
quimrstorres has quit [Remote host closed the connection]
joonty has joined #ruby
arquebus has quit [Quit: konversation disconnects]
SouL_|_ has quit [Ping timeout: 272 seconds]
Narzew has joined #ruby
icarus has quit [Ping timeout: 264 seconds]
icarus has joined #ruby
withnale_ has joined #ruby
<izzol> adaedra: byebug?
<izzol> let me try.
<izzol> I know, just found on the google ;-)
<izzol> Testing..
<ytti> pry is on of the few programs i donated for
<ytti> it saves so much time for me
iasoon has quit [Ping timeout: 256 seconds]
quimrstorres has joined #ruby
<izzol> adaedra: looks nice
<adaedra> it is
astrobunny has quit [Remote host closed the connection]
<adaedra> helped me find a bug rather quickly
zenojis has quit [Ping timeout: 246 seconds]
<izzol> I will need to spend some time to undertand how to use it efficiently.
<izzol> but it looks like it can help ;-)
<djellemah> izzol: binding.pry is unbelievably useful
astrobun_ has joined #ruby
postmodern has quit [Quit: Leaving]
hectortrope has joined #ruby
Morkel has quit [Quit: Morkel]
yqt has quit [Ping timeout: 272 seconds]
Cust0sL1men has joined #ruby
ZYPP has quit [Remote host closed the connection]
Brozo has joined #ruby
ndrei has quit [Ping timeout: 265 seconds]
panga has joined #ruby
krisquigley has joined #ruby
jsaak has quit [Ping timeout: 244 seconds]
n008f4g_ has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
krisquig_ has quit [Read error: Connection reset by peer]
krisquig_ has joined #ruby
krisquig_ has quit [Read error: Connection reset by peer]
hectortrope is now known as noobQ
teddyp1cker has joined #ruby
ZYPP has joined #ruby
Brozo has quit [Ping timeout: 264 seconds]
ponga has quit [Ping timeout: 256 seconds]
dumdedum has joined #ruby
musashi1 has quit [Remote host closed the connection]
krisquigley has quit [Ping timeout: 272 seconds]
krisquigley has joined #ruby
lolmaus has quit [Ping timeout: 256 seconds]
djdb has joined #ruby
timonv has joined #ruby
lidenskap has joined #ruby
mengu has joined #ruby
jasabella has quit [Ping timeout: 256 seconds]
terlar has quit [Read error: No route to host]
lidenskap has quit [Ping timeout: 272 seconds]
stef204 has joined #ruby
astrobun_ has quit [Remote host closed the connection]
Oreolek has joined #ruby
musashi1 has joined #ruby
<Oreolek> hi! can anyone help me with mysql2 gem? it hangs on UPDATE queries
<Oreolek> and the regular mysql has problems with Unicode
<musashi1> anyone have an idea as to what this error means : /home/yogamixer/.rvm/gems/ruby-2.2.1/gems/sequel-4.20.0/lib/sequel/extensions/pg_array.rb:206:in `block in extended': undefined method `copy_conversion_procs' for #<Sequel::SQLite::Database: "sqlite://development.db"> (NoMethodError)
<izzol> undefined method sounds like the undefined method
<izzol> Are you sure copy_conversion_procs is defined?
edwinvdgraaf has joined #ruby
<okdas> :D
<adaedra> Oreolek: With that much information, we can't see many things…
<musashi1> I suppose it must not be but.. how does one define it? I feel like that is a function that should be installed by something else
<adaedra> wait
kyrylo_ is now known as kyrylo
<adaedra> pg_array sounds like something that could act on Postgre databases
iasoon has joined #ruby
<adaedra> anyway, I suggest that you ask this on #sequel channel. It's not very active, but Sequel's author is there and may help you reliably
<canton7> ^ correct
<canton7> sounds like you're trying to use a postgres-specific data type on an sqlite database
<vulix> So I do some data mining for work. Noticed ruby lacks tools in this space but Im new to the language and like it. Is it wasted effort to recreate the wheel a bit here? Think anyone will use some data\web mining tools?
<musashi1> @adaedra will do thank you
<canton7> musashi1, why are you using pg_array?
<musashi1> @canton7 i'll look into this thank you for giving me some hints
DanKnox has quit [Quit: ZNC - http://znc.in]
Oreolek has quit [Quit: Ухожу я от вас]
<musashi1> i.. don't know :D
<musashi1> I have some research to do
<adaedra> some context (code *hint* *hint*) may help
DanKnox has joined #ruby
<canton7> what code are you running that produces that problem?
<izzol> the best will be to show some part of the code ;-)
<musashi1> why is it looking for pg_array.rb in that sequel subdirectory
DaniG2k has joined #ruby
<musashi1> I'm happy to show some code :D
<canton7> please do
<adaedra> and don't use pastebin
<musashi1> there's just a number of files let me see if i can pick through the right one
<canton7> (top tip: posting code is the *first* thing you should do)
<musashi1> i see. pardon me, then
nfk has joined #ruby
matcouto has joined #ruby
krz has joined #ruby
<musashi1> so the issue here is that there are like 15 files in this project and i'm trying to figure out which one is calling it
ta_ has joined #ruby
<adaedra> I suppose it's not on GitHub/BitBucket/whatever?
fgo has quit [Ping timeout: 250 seconds]
<musashi1> no it's all custom
lolmaus has joined #ruby
<adaedra> vulix: never be afraid of writing code even if it already exists, and even more if it's for training/fun purpose.
sevenseacat has quit [Quit: Me dun like you no more.]
<canton7> musashi1, your code should be in the call stack from that exception
edwinvdgraaf has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby
<musashi1> ok, i'm googling how to trace that.. the program gives that error when i run foreman start on a sinatra app
iotouch has quit [Quit: This computer has gone to sleep]
allcentury has joined #ruby
iotouch has joined #ruby
panga has quit [Remote host closed the connection]
bruno- has joined #ruby
riotjones has quit [Ping timeout: 256 seconds]
bruno- is now known as Guest74468
terlar has joined #ruby
vdamewood has quit [Quit: Computer has gone to sleep.]
riotjones has joined #ruby
jenrzzz has joined #ruby
codecop has joined #ruby
psmolen has quit [Ping timeout: 245 seconds]
Guest74468 has quit [Ping timeout: 245 seconds]
Renich has joined #ruby
roshanavand has quit [Read error: Connection reset by peer]
avgerinos has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
tubuliferous has joined #ruby
jenrzzz has joined #ruby
tubuliferous has quit [Ping timeout: 240 seconds]
edwinvdgraaf has quit [Remote host closed the connection]
niKeITA has quit [Ping timeout: 252 seconds]
balazs has joined #ruby
giuseppesolinas has joined #ruby
edwinvdgraaf has joined #ruby
doodlehaus has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
workmad3 has joined #ruby
balazs has quit [Ping timeout: 246 seconds]
doodlehaus has quit [Remote host closed the connection]
edwinvdgraaf has quit [Remote host closed the connection]
riotjones has quit [Ping timeout: 245 seconds]
chthon has quit [Ping timeout: 244 seconds]
Soda has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
piotrj has quit [Read error: Connection reset by peer]
msgodf has joined #ruby
piotrj has joined #ruby
Zai00 has quit [Quit: Zai00]
nettoweb has joined #ruby
_blizzy_ has joined #ruby
psy_ has quit [Ping timeout: 256 seconds]
ta_ has quit [Remote host closed the connection]
startupality has joined #ruby
juanpablo__ has joined #ruby
psmolen has joined #ruby
sdothum has joined #ruby
doertedev has quit [Quit: Lost terminal]
mostlybadfly has joined #ruby
AlphaAtom has joined #ruby
joonty has quit [Quit: joonty]
chthon has joined #ruby
riotjones has joined #ruby
juanpablo__ has quit [Ping timeout: 272 seconds]
User458764 has joined #ruby
psmolen has quit [Ping timeout: 245 seconds]
RegulationD has joined #ruby
plutonic has joined #ruby
piotrj has quit [Read error: Connection reset by peer]
piotrj_ has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
RegulationD has quit [Ping timeout: 250 seconds]
fgo has joined #ruby
ndrei has joined #ruby
Morkel has joined #ruby
niKeITA has joined #ruby
sigurding has quit [Quit: sigurding]
Renich has quit [Quit: leaving]
Skelz0r has quit [Ping timeout: 256 seconds]
last_staff has joined #ruby
gfawcettpq has joined #ruby
w1xz has joined #ruby
Skelz0r has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
sdothum has joined #ruby
Narzew has quit [Read error: Connection reset by peer]
fgo has quit [Ping timeout: 245 seconds]
Narzew has joined #ruby
rodfersou has joined #ruby
Lap64 has quit [Quit: Leaving]
bruno- has joined #ruby
piotrj_ has quit [Remote host closed the connection]
bruno- is now known as Guest43111
simonewestphal has joined #ruby
r3dk1ng has joined #ruby
piotrj has joined #ruby
vasilakisfil_ has joined #ruby
lolmaus has quit [Ping timeout: 256 seconds]
vasilakisfil has quit [Ping timeout: 265 seconds]
Guest43111 has quit [Ping timeout: 276 seconds]
riotingpacifist has joined #ruby
Brozo has joined #ruby
rocknrollmarc has joined #ruby
Squarepy has joined #ruby
ponga has joined #ruby
metalic has joined #ruby
doertedev has joined #ruby
mdw has joined #ruby
Brozo has quit [Ping timeout: 276 seconds]
philip1 has joined #ruby
platzhirsch has joined #ruby
duncannz has quit [Ping timeout: 255 seconds]
piotrj_ has joined #ruby
ponga has quit [Ping timeout: 245 seconds]
jgoyon has joined #ruby
platzhirsch has left #ruby [#ruby]
yqt has joined #ruby
Rollabunna has quit [Remote host closed the connection]
Rollabunna has joined #ruby
piotrj has quit [Ping timeout: 256 seconds]
scripore has joined #ruby
lolmaus has joined #ruby
Narzew has quit [Quit: Leaving]
lidenskap has joined #ruby
vdamewood has joined #ruby
niKeITA has quit [Quit: ZZZzzz…]
scripore has quit [Client Quit]
barkerd427 is now known as zz_barkerd427
Lloyd is now known as lloyd
scripore has joined #ruby
segfalt has joined #ruby
<riotingpacifist> is there a good guide on how ruby scripts output, e.g not just the code itself but how it interacts with readline,etc
oo_ has quit [Remote host closed the connection]
marius has joined #ruby
<riotingpacifist> my issue is when i run code locally I get output immediatly, but when i run it on the build system the output all gets cached and output at once, however other scripts on the buildbox output immediatly, so this only seems to affect ruby
oo_ has joined #ruby
lidenskap has quit [Ping timeout: 240 seconds]
<wasamasa> that's buffering
<wasamasa> and it's hardly language-specific
bruno- has joined #ruby
bruno- is now known as Guest35395
<jhass> $stdout.sync = true might be a quick try, but also may slow down your script
Spami has joined #ruby
<wasamasa> line buffering is an ok compromise
<wasamasa> I've enabled it manually for things that did logging I've hooked up to systemd's journal
Mon_Ouie has joined #ruby
escapement has joined #ruby
plutonic has quit [Quit: plutonic]
piotrj_ has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 255 seconds]
niKeITA has joined #ruby
piotrj has joined #ruby
escapement has quit [Client Quit]
icarus has quit [Ping timeout: 245 seconds]
<riotingpacifist> thanks jhass & wasamasa, $stdout is what I needed
icarus has joined #ruby
edwinvdgraaf has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
platzhirsch has joined #ruby
sigurding has joined #ruby
shoutsid06 has quit [Remote host closed the connection]
shoutsid has joined #ruby
sinkensabe has joined #ruby
ponga has joined #ruby
mengu has quit [Remote host closed the connection]
icarus has quit [Ping timeout: 255 seconds]
ldnunes has joined #ruby
rvchangue has left #ruby [#ruby]
icarus has joined #ruby
_honning_ has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
withnale_ has quit [Ping timeout: 255 seconds]
basiclaser has joined #ruby
sinkensabe has quit [Ping timeout: 245 seconds]
mengu has joined #ruby
psy__ has joined #ruby
narcan has joined #ruby
icarus has quit [Ping timeout: 248 seconds]
slava_dp has joined #ruby
<slava_dp> hi, how to replace '/' with '\/'?
<apeiros> >> "/".gsub(/\//, '\\/')
<ruboto> apeiros # => "\\/" (https://eval.in/317726)
<apeiros> slava_dp: ^
piotrj has quit [Remote host closed the connection]
<havenwood> >> puts "/".gsub(/\//, '\\o/')
<ruboto> havenwood # => \o/ ...check link for more (https://eval.in/317728)
jottr_ has joined #ruby
<apeiros> what's wrong with me? for a second I pondered writing a short ascii animation and pasting the code here…
piotrj has joined #ruby
* havenwood tries to resist the urge to ascii animate
icarus has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
allcentury has quit [Ping timeout: 256 seconds]
User458764 has joined #ruby
dumdedum has quit [Read error: Connection reset by peer]
pwattste has joined #ruby
piotrj has quit [Remote host closed the connection]
Narzew has joined #ruby
last_staff has quit [Quit: last_staff]
Zai00 has joined #ruby
davedev24_ has quit [Remote host closed the connection]
<Igorshp> Hi guys, i'm having fun time trying to fix 'Assignment Branch Condition' check in rubocop. Looking for some help identifying exactly what triggers it
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
simonewestphal has left #ruby [#ruby]
vt102 has joined #ruby
mengu has quit [Remote host closed the connection]
ndrei has joined #ruby
niKeITA has quit [Quit: ZZZzzz…]
RegulationD has joined #ruby
wottam has joined #ruby
tubuliferous has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
NodeBoy has joined #ruby
<NodeBoy> hello all
b4tm4n has joined #ruby
<b4tm4n> any rbenv users around?
rocknrollmarc has quit [Quit: BitchX-1.2.1 -- just do it.]
AlphaAtom has quit [Ping timeout: 272 seconds]
<jhass> ?anyone
<ruboto> Just ask your question, if anyone has, they will respond.
jenrzzz has joined #ruby
n008f4g_ has quit [Ping timeout: 245 seconds]
yqt has quit [Ping timeout: 250 seconds]
RegulationD has quit [Ping timeout: 252 seconds]
<apeiros> slava_dp: and you're welcome to the free help. glad you enjoy the answer…
tubuliferous has quit [Ping timeout: 240 seconds]
fred1807 has joined #ruby
<b4tm4n> I'm having issues using rbenv with an init script (/etc/init.d). I believe it's a sudo issue as my start command works fine when executed without sudo. However, to start a service I need sudo.
musashi1 has quit [Ping timeout: 265 seconds]
<b4tm4n> I think it's a path issue as I get an error with certain gems not being found when i use sudo. Any thoughts?
<toretore> just use the full path
<NodeBoy> yo guys
<NodeBoy> what would happen if you died because of a java program?
<NodeBoy> you'd die a slow and painful death
fred1807 has quit [Client Quit]
<NodeBoy> get it?
<b4tm4n> toretore, that seems like a hack and not a fix
<apeiros> !kick NodeBoy you're still banned
NodeBoy was kicked from #ruby by ruboto [you're still banned]
NodeBoy has joined #ruby
<NodeBoy> wait what?
<jhass> !mute NodeBoy
<NodeBoy> i'm not the old troll
jenrzzz has quit [Ping timeout: 244 seconds]
<hanmac1> Igorshp: yeah i had the same problem with rubocop ... imo its a whiny little girl ;P ... you might try pass = options[:passfile] ? File.open(options[:passfile]).readline : options[:password] to make it shorter
NodeBoy has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<apeiros> behold, it's not the old troll, it's a new one…
<jhass> !unmute NodeBoy
krz has quit [Ping timeout: 248 seconds]
<jhass> no need to clutter up the list...
<apeiros> and it now even returns after a kick, how annoying…
workmad3 has joined #ruby
<toretore> b4tm4n: no, it's quite the opposite
pacMakaveli has joined #ruby
MyGreenPickle has joined #ruby
<wasamasa> lol, "i'm not the old troll"
<b4tm4n> toretore, keep in mind i'm a noob, but trying to learn - none of the guide I see use the full path. They set the path in the script and then expect something like bin/unicorn (using binstubs) to work.
iotouch has quit [Quit: This computer has gone to sleep]
<wasamasa> "It wasn't me, it was the one-armed man!"
<toretore> b4tm4n: deploying on production shouldn't depend on having its state set first
<toretore> b4tm4n: you shouldn't be using rbenv on the server in the first place
zz_barkerd427 is now known as barkerd427
<b4tm4n> really?
<toretore> no, i'm joking
krz has joined #ruby
<b4tm4n> ok, now i'm confused
pika_pika has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
philip1 is now known as phutchins
kblake has joined #ruby
<Igorshp> hanmac1: thanks, will give it a try,but according to the docs, the 'else' does not get counted towards branch complecity as it is not a decision making point
<Igorshp> if,unless (and &&,|| etc) are 1 point
workmad3 has quit [Ping timeout: 265 seconds]
<Igorshp> function calls should be 1 point
<hanmac1> imo i hate rupocop ... good thing is that it cant parse my bindings ;P
<Igorshp> i'm writing it out on paper, i can't figure out how it gets the value
<b4tm4n> toretore, so what is your recommendation to fix this issue?
<Igorshp> *the abc value
<hanmac1> hm when i am at home i will check the source of rubocop i am interested what values it throw itself ;P
BoywithStripedCo has joined #ruby
<BoywithStripedCo> you guys are such fuckin jews lol
<BoywithStripedCo> idk what jhass is even good for lol
<havenwood> !ban BoywithStripedCo -P
<BoywithStripedCo> jhass is a little cunt bitch
mengu has joined #ruby
mengu has joined #ruby
<jhass> !mute BoywithStripedCo
<BoywithStripedCo> lol
<havenwood> Boring trolls.
BoywithStripedCo has left #ruby [#ruby]
droidburgundy was banned on #ruby by apeiros [*!*@gateway/web/cgi-irc/kiwiirc.com*]
<jhass> !unmute BoywithStripedCo
balazs has joined #ruby
<havenwood> b4tm4n: rbenv devs do recommend not using it in production. it's your call though.
<jhass> still should write a ruboto plugin that mutes unauthed users matching a mask and unmutes on auth...
<b4tm4n> ok, thanks!
<Igorshp> so for that function, my value of abc comes to 14.7 instead of 23.96 that rubocop outputs :S
rodferso1 has joined #ruby
lkba has joined #ruby
MyGreenPickle has quit [Ping timeout: 264 seconds]
<hanmac1> hm kiwiirc ... is that for the fruits or for the birds? or both? ;P
jenrzzz has joined #ruby
<mdw> is it generally Ruby practice to limit methods to 10 lines?
<mdw> I don't really think it's a good idea?
<mdw> seems like a bit more (like 20) would be better
<wasamasa> look at the average size of methods in gems to get an idea
<Igorshp> jhass: yeah, seen that. i'm trying to understand how it comes up with those values. I need to dig deeper into the code
<Igorshp> jhass: doing manual count gives me massively different value
<mdw> wasamasa I'm just going by my own programming experience, 10 doesn't seem a lot to work with
<wasamasa> the stuff I've seen does adhere to that limit
<jhass> Igorshp: tbh I think >80% if Rubocop users at least double the defaults for these or turn them off completely
balazs has quit [Ping timeout: 245 seconds]
<toretore> mdw: it's good practice to not have to count the number of lines in a method to know if it's too large or not
rodfersou has quit [Ping timeout: 276 seconds]
<mdw> toretore haha good point :-)
<toretore> but generally, the smaller the better
<hanmac1> hihi good that my code are mostly C++ templates crossed with C Macros and rubocop cant parse that ;P
chthon has quit [Ping timeout: 244 seconds]
bluOxigen has quit [Ping timeout: 256 seconds]
<wasamasa> I find it annoying that it fails determining whether it's code or data
<toretore> it's not only a question of readability, it's a question of composability
niKeITA has joined #ruby
chinmay_dd has joined #ruby
juanpablo__ has joined #ruby
<Igorshp> jhass: hmm. it looks like it counts a call to 'options' in the cop. Is it bad practice to have options method like this: https://gist.github.com/anonymous/edc6d3cfcc87868b9fce
ndrei has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
<hanmac1> how rubocop works on my projects: "lines to long" > "to complex" > "to many lines" > "to many methods"
<toretore> it's also good practice to not need a program to tell you what good practice is
bluOxigen has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> Igorshp: that does look quite a bit like a constant
<jhass> at least with the context provided
<Igorshp> it sets it up, then behaves like a constant
<jhass> there's no dynamic content in it
piotrj has joined #ruby
<jhass> I also don't like that it sets @required_options as a side effect
juanpaucar has joined #ruby
juanpablo__ has quit [Ping timeout: 250 seconds]
niKeITA has quit [Ping timeout: 246 seconds]
<b4tm4n> so, if i'm not supposed to use rbenv, what would be the replacement for this: https://github.com/Netflix/Scumblr/wiki#install-rbenvruby
MasterPiece has joined #ruby
<havenwood> b4tm4n: If you're not switching Rubies it's nice to system install to /usr/local/.
milesmatthias has joined #ruby
<b4tm4n> do I use a manager?
<b4tm4n> or ruby-install?
edwinvdgraaf has quit [Remote host closed the connection]
<shevy> the source!
MyGreenPickle has joined #ruby
<shevy> ftp://ftp.ruby-lang.org/pub/ruby/2.2/ruby-2.2.2.tar.xz
<havenwood> b4tm4n: Yeah, `ruby-install --system ruby` installs to /usr/local/ or you can compile from source with: ./configure --prefix=/usr/local
piotrj has quit [Read error: Connection reset by peer]
icarus has quit [Ping timeout: 244 seconds]
ndrei has joined #ruby
<b4tm4n> what if I need a specific version?
segfalt has quit [Quit: segfalt]
<hanmac1> b4tm4n: checkout the link from shevy
edwinvdgraaf has joined #ruby
<havenwood> b4tm4n: ruby-install --system ruby 2.0.0-p645
<shevy> hanmac1 how do you update your ruby version by the way?
<havenwood> b4tm4n: sudo ^
shock_one has quit []
<havenwood> b4tm4n: If your package manager doesn't have the version you need.
chthon has joined #ruby
tpimtts_away has left #ruby ["Leaving"]
sankaber has joined #ruby
nettoweb has joined #ruby
nettoweb has quit [Client Quit]
sigurding has quit [Quit: sigurding]
<hanmac1> shevy using "rvm install ruby-head" ... with that i follow ruby-trunk
<havenwood> b4tm4n: What version of Ruby are you targeting on which distro?
<b4tm4n> Ubuntu, 2.0.0-p481
vivekananda has joined #ruby
<jhass> b4tm4n: update your stuff to -p645 and https://www.brightbox.com/docs/ruby/ubuntu/
<shevy> hanmac1 I see
<b4tm4n> havenwood, i'm essentially tyring to get this rolling in production without rbenv, now
psy__ has quit [Ping timeout: 256 seconds]
MyGreenPickle has quit [Ping timeout: 256 seconds]
<hanmac1> b4tm4n: why that special version and not a newer one?
<havenwood> b4tm4n: The BrightBox packages jhass linked to are probably what I'd use in that circumstance. Update to latest 2.0.
Guest35395 has quit [Ping timeout: 256 seconds]
<b4tm4n> hanmac1, because the guide calls for it https://github.com/Netflix/Scumblr/wiki#setup
<havenwood> b4tm4n: Maybe give the BrightBox instructions a try for setting up 2.0 and see how you like it.
revoohc has joined #ruby
<jhass> b4tm4n: that guide is simply outdated
<jhass> they simply didn't update it for -p645
<jhass> and rbenv is too stupid to allow for writing future proof guides and demands a specific version there too, I guess
<b4tm4n> jhass, they seemed deliberate in their installation of a very particular version of ruby
<jhass> no, they simply didn't update after -p645 was released
spyderman4g63 has joined #ruby
<b4tm4n> jhass, i have the app running, the issue is with a unicorn startup script (/etc/init.d/unicorn) and rbenv
<b4tm4n> jhass, it sounds like the solution is to not use rbenv?
<jhass> yes
<jhass> use the latest 2.0 brightbox package and bundle install --deployment
TheHodge has joined #ruby
<shevy> for webpages, when you have both small images, but also large images (like wallpapers, or backgrounds; right now I am looking at backgrounds for "hardware"), which format would be best? .jpg, .png or .gif? according to your opinion
endash has joined #ruby
<havenwood> b4tm4n: rbenv devs recommend not using it production. the non-rbenv devs recommend not using it in development. :P
<b4tm4n> jhass, so wht is the preferred method to install ruby, if i search for that I get a 100 different answers
<jhass> shevy: .jpg if it's a photograph, .png for anything with huge blocks of the same color
<shevy> hmm and no .gif?
granthatcher has quit [Ping timeout: 245 seconds]
<jhass> .gif shouldn't give you any win these days
endash has quit [Client Quit]
<havenwood> b4tm4n: A nice package manager package, install to /usr/local, ruby-install/chruby or RVM.
ndrei has quit [Quit: Lost terminal]
<jhass> b4tm4n: it depends on the situation, I already said what I recommend in your situation
rodferso1 has quit [Quit: leaving]
rodfersou has joined #ruby
<b4tm4n> yes you did, sorry, it wasn't red so i missed it
endash has joined #ruby
Feyn has quit [Quit: Leaving]
<hanmac1> shevy and svg for anything other possible ;P
oo_ has quit [Remote host closed the connection]
granthatcher has joined #ruby
decoponio has joined #ruby
<jhass> svg if you need the scaling, rendering it is more expensive I think
allcentury has joined #ruby
scripore has joined #ruby
puppeh has joined #ruby
<puppeh> on ruby 1.9, isn't doing a `$ RUBY_HEAP_MIN_SLOTS=1000 time bundle exec rspec spec/` a valid way of tuning the GC?
<puppeh> I mean the way I'm passing the ENV variable
<jhass> spend the time porting to 2.2 instead of trying to tune the GC
<havenwood> puppeh: Very nice GC improvements in 2.0, 2.1 and 2.2.
dstarh has joined #ruby
<jhass> yes, upgrading will give you a better gain than tuning the GC on 1.9
<puppeh> oh my
<puppeh> I know
<havenwood> We've gotten spoiled with GC improvements every MINOR release lately!
<puppeh> can someone please answer my question?
<jhass> I'd only have a GC tuning reference for 2.1+ at hand
psy__ has joined #ruby
johnsmith has joined #ruby
<johnsmith> hey guys I'm using ubuntu, and I have ruby 1.8.7 as default. I tried getting 1.9, and it seems to work, but as I check it still says I'm using 1.8.7.
Akuma has joined #ruby
<johnsmith> I check by typing ruby --version, any help?
<havenwood> johnsmith: sudo update-alternatives --config ruby
<johnsmith> yes, I did that, but it says that only ruby 1.9 is installed
<havenwood> johnsmith: which ruby
<jhass> ugh, which supported Ubuntu version still ships 1.8 as default?
<johnsmith> There is only one alternative in link group ruby: /usr/bin/ruby1.9.1
sgambino has joined #ruby
<havenwood> johnsmith: What do you get for?: which ruby
Boondox has joined #ruby
Boondox has left #ruby [#ruby]
<johnsmith> jhass: I'm using a VM which I cannot update, it's ubuntu precise,
<johnsmith> havenwood: /usr/bin/ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<johnsmith> this is the output of "ruby --version": ruby 1.8.7 (2012-02-08 patchlevel 358) [i686-linux]
<havenwood> johnsmith: I'm surprised it's not listed under update-alternatives. Hrm.
tus has joined #ruby
freerobby has joined #ruby
Boondox has joined #ruby
<havenwood> johnsmith: I'd say try ruby-switch but I'm not sure what versions it's available for.
kblake has quit [Remote host closed the connection]
<jhass> johnsmith: if you're updating anyway, how about getting something with official security maintenance? https://www.brightbox.com/docs/ruby/ubuntu/
psmolen has joined #ruby
<hanmac1> johnsmith: did you do sudo update-alternatives --config gem too?
<havenwood> johnsmith: +1 Brightbox packages.
B1n4r10 has joined #ruby
<havenwood> hanmac1: oh the joys of 1.8, rabble rabble!
<johnsmith> hanmac: yes I get the same output: There is only one alternative in link group gem: /usr/bin/gem1.9.1 Nothing to configure.
<havenwood> johnsmith: It's... supposed to be ther.
<jhass> well, what's ls -l /usr/bin/ruby actually ?
riotjone_ has joined #ruby
<hanmac1> johnsmith: an idea would be to remove the 1.8 package and install the newer (1.9) again
<johnsmith> jhass: /usr/bin/ruby
riotjones has quit [Ping timeout: 256 seconds]
<jhass> it's not actually a symlink?
<johnsmith> hanmac: I tried but it says that the package isn't installed
lavros has joined #ruby
<johnsmith> jhass: it is.
<jhass> to... ?
failshell has joined #ruby
<havenwood> /usr/bin/ruby -> ?
vsh_ has quit [Ping timeout: 256 seconds]
<johnsmith> jhass: /usr/bin/ruby1.9.1
thiagovsk has joined #ruby
Pharaoh2 has quit [Disconnected by services]
Pharaoh2_ has joined #ruby
<jhass> /usr/bin/ruby1.9.1 -v is reporting 1.8 then or what?
Pharaoh2 has joined #ruby
<jhass> johnsmith: execute directly after each other in the same terminal/shell: ruby -v && whereis ruby
Pharaoh2 has quit [Disconnected by services]
lessless has quit [Quit: Textual IRC Client: www.textualapp.com]
Pharaoh2_ has quit [Client Quit]
<johnsmith> jhass: ruby 1.8.7 (2012-02-08 patchlevel 358) [i686-linux] ruby: /usr/bin/ruby /usr/lib/ruby /usr/bin/X11/ruby /opt/vagrant_ruby/bin/ruby /usr/share/man/man1/ruby.1.gz
Pharaoh2 has joined #ruby
<adaedra> oh
<jhass> johnsmith: echo $PATH ?
Mon_Ouie has quit [Ping timeout: 240 seconds]
<johnsmith> jhass:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/vagrant_ruby/bin
OrbitalKitten has joined #ruby
shenxuhui has joined #ruby
<jhass> weird
<shenxuhui> why
<jhass> why would it pick up /opt/vagrant_ruby/bin/ruby
shenxuhui has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
<adaedra> because there is no ruby before?
<jhass> /usr/bin/ruby is there
quimrstorres has quit [Remote host closed the connection]
<adaedra> ah yes
<adaedra> but whereis says it uses it
<adaedra> johnsmith: what does `which ruby` says
<johnsmith> adaedra: /usr/bin/ruby
<adaedra> here
sinkensabe has joined #ruby
<jhass> johnsmith: /usr/bin/ruby -v says what?
<jhass> johnsmith: also command -v ruby
a346 has joined #ruby
<johnsmith> ruby 1.9.3p0 (2011-10-30 revision 33570) [i686-linux]
<adaedra> wat
<johnsmith> jhass: /opt/vagrant_ruby/bin/ruby
<havenwood> so /usr/bin/ruby is right and /opt/vagrant_ruby/bin is somehow cutting in line
<jhass> what the...
<jhass> type -a ruby ?
<johnsmith> ruby is /usr/bin/ruby ruby is /opt/vagrant_ruby/bin/ruby
<havenwood> ruby is patient; ruby is kind
<adaedra> [wat intensifies]
<jhass> I have exhausted my knowledge of shells there...
livathinos has joined #ruby
<jhass> no idea why it's picking up the vagrant ruby
<adaedra> johnsmith: echo $0
spyderman4g63 has quit [Read error: Connection reset by peer]
spyderman4g63 has joined #ruby
<johnsmith> -bash
ixti has joined #ruby
danzilio has joined #ruby
<johnsmith> jhass: dont worry, thanks anyways,
<jhass> maybe the #vagrant people ran across this before
<johnsmith> I guess I'll just blow up the data center
<adaedra> :D
<johnsmith> ok I'll go and ask them
<jhass> that's another good idea
<havenwood> johnsmith: let us know if they know
bruno-_ has joined #ruby
<havenwood> johnsmith: it's a mystery...
<johnsmith> havenwood: will do.
workmad3 has joined #ruby
shoutsid has quit [Remote host closed the connection]
griffindy has joined #ruby
vivekananda has quit [Quit: Leaving]
vivekananda has joined #ruby
_ixti_ has quit [Ping timeout: 250 seconds]
vivekananda has quit [Remote host closed the connection]
vivekananda has joined #ruby
kp666 has quit [Remote host closed the connection]
vivekananda has quit [Remote host closed the connection]
vivekananda has joined #ruby
vivekananda has quit [Client Quit]
vivekananda has joined #ruby
piotrj has joined #ruby
shoutsid has joined #ruby
vivekananda has quit [Remote host closed the connection]
<Igorshp> jhass: sigh. ended up disabling all those ABC checks :(
DaniG2k has quit [Ping timeout: 276 seconds]
fgo has joined #ruby
milesmatthias has quit []
vtunka has quit [Quit: Leaving]
johnsmith has quit [Ping timeout: 246 seconds]
Mezjin has joined #ruby
cocotton has joined #ruby
iotouch has joined #ruby
doodlehaus has joined #ruby
fgo has quit [Ping timeout: 252 seconds]
Mezjin has quit [Remote host closed the connection]
vivekananda has joined #ruby
freerobby has quit [Quit: Leaving.]
Pupeno has joined #ruby
krz has quit [Ping timeout: 256 seconds]
bean has joined #ruby
cocotton has quit [Remote host closed the connection]
ponga has quit [Remote host closed the connection]
piotrj has quit [Remote host closed the connection]
CloCkWeRX has quit [Ping timeout: 265 seconds]
jottr_ has quit [Ping timeout: 245 seconds]
vdamewood has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Mezjin has joined #ruby
_axx has left #ruby [#ruby]
jerius has joined #ruby
krz has joined #ruby
chipotle has quit [Ping timeout: 244 seconds]
vivekananda has quit [Quit: Leaving]
vivekananda has joined #ruby
marr has quit [Ping timeout: 256 seconds]
danzilio has quit [Quit: My computer has fallen asleep!]
cocotton has joined #ruby
RegulationD has joined #ruby
kblake has joined #ruby
mrmargolis has joined #ruby
paulcsmith has joined #ruby
thatslifeson has joined #ruby
sinkensabe has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
piotrj has joined #ruby
tubuliferous has joined #ruby
sankaber has quit [Read error: Connection reset by peer]
cocotton has quit [Remote host closed the connection]
sigurding has joined #ruby
allcentury has quit [Ping timeout: 250 seconds]
RegulationD has quit [Ping timeout: 264 seconds]
quimrstorres has joined #ruby
sinkensabe has joined #ruby
andikr has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
Technodrome has quit [Quit: Technodrome]
piotrj has quit [Remote host closed the connection]
mdw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
alex88 has joined #ruby
banister has joined #ruby
tubuliferous has quit [Ping timeout: 272 seconds]
chinmay_dd has quit [Quit: See ya!]
CloCkWeRX has joined #ruby
<b4tm4n> jhass, i'm switching to rvm, but wont' i still have the same issues? There's no ruby in the sudo environment
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
segfalt has joined #ruby
juanpablo__ has joined #ruby
plribeiro3000 has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
Spami has joined #ruby
kblake has quit [Remote host closed the connection]
kblake has joined #ruby
mjuszczak has joined #ruby
evanjs has joined #ruby
vim_shimm has joined #ruby
vivekananda has quit [Quit: Leaving]
niKeITA has joined #ruby
vivekananda has joined #ruby
Brozo has joined #ruby
djdb has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
juanpablo__ has quit [Ping timeout: 276 seconds]
ponga has joined #ruby
LJT has joined #ruby
ylluminarious has joined #ruby
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
mitchellhenke has joined #ruby
a5i has joined #ruby
DaniG2k has joined #ruby
<adaedra> time to test opal
relix has joined #ruby
LJT has quit [Max SendQ exceeded]
Brozo has quit [Ping timeout: 250 seconds]
LJT has joined #ruby
<a5i> >> "<li class="repo"> blah </li>".scan(/<li class="repo">(.*?)<\/li>
<ruboto> a5i # => /tmp/execpad-459ae2c846d4/source-459ae2c846d4:2: syntax error, unexpected tIDENTIFIER, expecting key ...check link for more (https://eval.in/317745)
<a5i> >> "<li class="repo"> blah </li>".scan(/<li class="repo">(.*?)<\/li/>
<ruboto> a5i # => /tmp/execpad-bc29bfe1fce9/source-bc29bfe1fce9:2: syntax error, unexpected tIDENTIFIER, expecting key ...check link for more (https://eval.in/317746)
<a5i> >> "<li class="repo"> blah </li>".scan(/<li class="repo">(.*?)<\/li>/)
<ruboto> a5i # => /tmp/execpad-9d9f6c2add05/source-9d9f6c2add05:2: syntax error, unexpected tIDENTIFIER, expecting key ...check link for more (https://eval.in/317747)
<a5i> hmm
<hanmac1> a5i: use nokogiri
<adaedra> can you use your own irb/pry for your not-question related tests?
vtunka has joined #ruby
thatslifeson has quit [Remote host closed the connection]
<adaedra> and yes, don't use regex to parse HTML, it's not really suitable
freerobby has joined #ruby
<adaedra> your problem here is the quotes inside the quotes
Pupeno has quit [Remote host closed the connection]
thatslifeson has joined #ruby
Zamerick has joined #ruby
<hanmac1> yeah! lets put quotes inside quotes inside quotes inside ... *stack error*
Zamerick_ has joined #ruby
MasterPiece has quit [Quit: Leaving]
Pupeno has joined #ruby
AlphaAtom has joined #ruby
sinkensabe has quit [Remote host closed the connection]
mtakkman has joined #ruby
revoohc has quit [Remote host closed the connection]
kblake has quit [Remote host closed the connection]
giuseppesolinas has joined #ruby
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
thatslif_ has joined #ruby
griffindy has joined #ruby
thatslifeson has quit [Read error: Connection reset by peer]
<a5i> I can't :(
<shevy> wimp
<a5i> I'm using crystal, so it doesnt have that lib yet
<shevy> ACK
<shevy> AN INFIDEL!
<a5i> D:
<shevy> if (defined(__clang__)
<shevy> mruby now got clang support?
jobewan has joined #ruby
iotouch has quit [Quit: 离开]
thatslif_ is now known as thatslifeson
<hanmac1> a5i: your regexp was right, only your input string was wrong:
<hanmac1> >> "<li class=\"repo\"> blah </li>".scan(/<li class="repo">(.*?)<\/li>/)
nettoweb has joined #ruby
<ruboto> hanmac1 # => [[" blah "]] (https://eval.in/317749)
nyuszika7h has left #ruby ["WeeChat 1.1.1"]
<a5i> yeah I just realized
predator217 has quit [Ping timeout: 245 seconds]
predator117 has joined #ruby
Oka has joined #ruby
livathinos has quit [Ping timeout: 256 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
icebourg has joined #ruby
<doppler> ive just started to learn about lambda and could need some input on the code. the challenge was to generate the alphabet in a random order, and then sort a couple of names in that alphabetical order. so at last i learned that you could make a customized sort. are there any other ways to do this? maybe simpler ways?
<shevy> lambda is scary
allcentury has joined #ruby
<shevy> I am not sure why you use a lambda there
<shevy> can't you just use .sort_by {} ?
sinkensabe has joined #ruby
<doppler> im not sure how to do that
<ninjs> Would this iterate through all .ub4 and .npi files in the directory of the script, plus all sub directories?
<ninjs> dir = Dir.glob(__dir__ + "/**/*.{ub4,npi}")
aufi has joined #ruby
mtakkman has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
lkba has quit [Ping timeout: 250 seconds]
<ninjs> and then just dir.each do |file| or what not
aufi has left #ruby ["Konversation terminated!"]
<jhass> ninjs: it should, did you try?
<jhass> slight style note: prefer "string #{interpolation}" over "string" + concatenation
<shevy> doppler have you used .sort_by yet?
vtunka has quit [Quit: Leaving]
<ninjs> My problem is that I have limited ability to test on these, since they are working files and recreating blanks are hard haha
<jhass> shevy: I don't see how sort_by helps here
juanpablo__ has joined #ruby
<jhass> ninjs: cp -a work test
<shevy> why not?
jobewan has quit [Ping timeout: 245 seconds]
<ninjs> jhass: I can do "#{__dir__}/**/*.{ub4,npi}" ?
<jhass> ninjs: yes
<a5i> Okay, can isnt working for some reason
<ninjs> oh nice
<a5i> I have this document to parse: view-source:http://crystalshards.herokuapp.com/
<jhass> ninjs: any ruby code goes into #{ }
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vivekananda has quit [Quit: Leaving]
<ninjs> Oh sweet I thought it was just variables
<a5i> and this ruby code:
<jhass> a5i: why not hit the Github API directly?
<ruboto> a5i, we in #ruby do not like irccloud.com, I reposted your paste to gist for you: https://gist.github.com/096753bf7c568c275148
<ruboto> irccloud.com has no syntax highlighting, distracting formatting and loads slowly for most.
vivekananda has joined #ruby
fryguy9 has joined #ruby
<a5i> jhass, err, never thought of it
<doppler> shevy yes, but not so much. but i couldnt figure out how to sort_by an alphabetical order which is random and decided by an array
davedev24_ has joined #ruby
puppeh has quit [Quit: Leaving...]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
jimms has joined #ruby
Lubbed has quit [Remote host closed the connection]
<jhass> doppler: don't think there's much room for improvement in the general algorithm, so just a few style notes
shellfu_afk is now known as shellfu
<jhass> .shuffle! is the self-modifying variant, yet you assign it's return value
<jhass> use .shuffle
<jhass> .split('') -> .chars
thatslifeson has quit [Remote host closed the connection]
<jhass> if a != b -> unless a == b
tagrudev has quit [Remote host closed the connection]
<doppler> oh, great thanks. i wasnt sure if i wanted to use shuffle! or shuffle.
<jhass> and personally I do .last instead of [-1]
<doppler> but its the same thing right
<jhass> yeah
Zamerick has quit [Quit: Leaving]
<jhass> >> [1, 2, 3].last
<ruboto> jhass # => 3 (https://eval.in/317751)
<a5i> hmm
<havenwood> doppler: just a single method instead of a method with parameter
piotrj has joined #ruby
d00n has joined #ruby
aganov has quit [Remote host closed the connection]
davedev24_ has quit [Read error: Connection reset by peer]
piotrj has quit [Remote host closed the connection]
gregf has joined #ruby
davedev24_ has joined #ruby
vickleton has quit [Read error: Connection reset by peer]
<hanmac1> jhass: "if a != b -> unless a == b" are not 100% the same, but close enough ,P
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
mjuszczak has quit []
vivekananda has quit [Quit: Leaving]
riotjone_ has quit [Ping timeout: 265 seconds]
sevenseacat has joined #ruby
piotrj has joined #ruby
vivekananda has joined #ruby
vickleton has joined #ruby
<doppler> jhass you ment this right? x.split('') -> .chars
piotrj has quit [Remote host closed the connection]
<jhass> yup
vivekananda has quit [Remote host closed the connection]
giuseppesolinas has joined #ruby
<jhass> mh, actually, taking a second look, the whole .each_with_index loop seems pointless
riotjones has joined #ruby
<jhass> you never do anything with the result of the <=> calls
<jhass> only the <=> in the last line ofthe lambda has an effect since its result is the lambda's return value
vivekananda has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<doppler> jhass you are right
riotjones has quit [Remote host closed the connection]
<doppler> that was interesting
riotjones has joined #ruby
<shevy> hanmac1 lol
jobewan has joined #ruby
User458764 has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
<doppler> haha i got a super compact code
<doppler> never tought that could be an one liner
<doppler> :D
<jhass> doppler: I think it's just x.chars.map {|char| alpha.index(char) } <=> y.chars.map {|char| alpha.index(char) }, didn't check though
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jottr_ has joined #ruby
<doppler> hmm i will try
kaspernj has joined #ruby
pika_pika has quit [Ping timeout: 245 seconds]
sinkensabe has quit [Remote host closed the connection]
niKeITA has quit [Ping timeout: 256 seconds]
w1xz has quit [Quit: .. lightyears a head but just a message away ..]
sinkensabe has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jottr_ has quit [Ping timeout: 255 seconds]
<doppler> jhass: that works also
<doppler> jhass
<doppler> ops
riotjone_ has joined #ruby
Squarepy has quit [Quit: Leaving]
riotjones has quit [Ping timeout: 256 seconds]
<doppler> that was super fun anyway
terlar has quit [Read error: Connection reset by peer]
odin22 has joined #ruby
dudedudeman has quit [Changing host]
dudedudeman has joined #ruby
sinkensabe has quit [Ping timeout: 256 seconds]
niKeITA has joined #ruby
mary5030 has joined #ruby
User458764 has joined #ruby
kedare has quit [Quit: WeeChat 1.0.1]
Dreamer3 has quit [Quit: Computer has gone to sleep.]
piotrj has joined #ruby
tvw has quit [Ping timeout: 256 seconds]
Matachines has joined #ruby
lordkryss has joined #ruby
ta has quit [Read error: Connection reset by peer]
CloCkWeRX has quit [Ping timeout: 265 seconds]
r3dk1ng has left #ruby [#ruby]
cocotton has joined #ruby
Pupeno has quit [Remote host closed the connection]
riotingpacifist has quit [Ping timeout: 256 seconds]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
gaboesquivel has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cocotton has quit [Ping timeout: 252 seconds]
LJT has quit [Quit: Sleeping...]
jobewan has quit [Ping timeout: 245 seconds]
pika_pika has joined #ruby
kedare` has joined #ruby
_honning_ has quit [Ping timeout: 252 seconds]
rhllor has joined #ruby
sinkensabe has joined #ruby
kedare` is now known as k3dare
niKeITA has quit [Ping timeout: 264 seconds]
baroquebobcat_ has joined #ruby
vasilakisfil_ has quit [Ping timeout: 265 seconds]
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
loremipsumdolors has joined #ruby
Morkel has quit [Quit: Morkel]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
_honning_ has joined #ruby
thatslifeson has joined #ruby
giuseppesolinas has joined #ruby
SouL_|_ has joined #ruby
User458764 has joined #ruby
kyrylo_ has joined #ruby
livathinos has joined #ruby
sinkensabe has quit [Remote host closed the connection]
granthatcher has quit []
banister has joined #ruby
giuseppesolinas has quit [Client Quit]
k3dare has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
giuseppesolinas has joined #ruby
startupality has quit [Quit: startupality]
kyrylo has quit [Ping timeout: 245 seconds]
arturaz has quit [Ping timeout: 245 seconds]
bal has quit [Quit: bal]
kaspernj has quit [Remote host closed the connection]
kedare` has joined #ruby
danzilio has joined #ruby
spicerack has joined #ruby
freerobby has quit [Quit: Leaving.]
piotrj has quit [Remote host closed the connection]
jottr_ has joined #ruby
f3lp has joined #ruby
blizzy has quit [Quit: Leaving]
GaryOak_ has joined #ruby
piotrj has joined #ruby
piotrj has quit [Remote host closed the connection]
Technodrome has joined #ruby
dfinninger has joined #ruby
MyGreenPickle has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
claw_ has joined #ruby
claw has quit [Ping timeout: 272 seconds]
nettoweb has joined #ruby
<ninjs> Okay, something is very wrong here: https://gist.github.com/ninjs/11b0f909dd6f7e93b75d
MyGreenPickle has quit [Client Quit]
livathinos has quit []
<ninjs> Specifically, it's appending "\r\n" 7 times in any of the positions in the array mentioned in lines 45-51
kyrylo_ is now known as kyrylo
Narzew has quit [Remote host closed the connection]
rbennacer has joined #ruby
<ninjs> And twice in the positions mentioned in lined 36-37
CloCkWeRX has joined #ruby
plribeiro3000 has quit [Quit: Leaving.]
jobewan has joined #ruby
<GaryOak_> ninjs: line 70-72
<IceDragon> nin.js :D
<ninjs> IceDragon: That's what I was originally going for with the handle haha
<IceDragon> hahaha
claw_ has quit [Ping timeout: 272 seconds]
<ninjs> GaryOak_: Yeah what about that line?
claw has joined #ruby
<ninjs> IceDragon: but then I realized how nonsensical JS really is and swapped back to ruby. :P
Matachines has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<GaryOak_> that's the only place \r\n is getting added
<IceDragon> I don't even JS, but it has a few nicities, like uggggh
<ninjs> right. But it's adding it perfectly fine anywhere but those lines that I mentioned
* IceDragon thinks hard about the nice things
<IceDragon> Ok, I got nothing, JS sucks.
sinkensabe has joined #ruby
<jhass> IceDragon: it's not PHP is a bonus point
<IceDragon> jhass: That's just a side effect
Mezjin has quit [Remote host closed the connection]
<jhass> I'm generous
<IceDragon> jhass: A lil too generous ;3
sevenseacat has quit [Quit: Me dun like you no more.]
_honning_ has quit [Ping timeout: 250 seconds]
<jhass> ninjs: why not just claim.claim_array.join("\r\n") ?
<IceDragon> you could just parse it line by line :O?
<IceDragon> and write them back out the same way, or just do a huge gsub
<IceDragon> ┐( ̄ヮ ̄)┌
<ninjs> jhass: That doesn't leave it as an array
<ninjs> it just makes a giant string
<jhass> yeah
<jhass> textfile, aka giant string
<ninjs> oh I can write that back? I thought it had to be an array to write back
<jhass> File.write file, claim.claim_array.join("\r\n")
sinkensabe has quit [Remote host closed the connection]
<hanmac1> ninjs: why do you join with \r\n when you use file.puts ? puts already does make new lines
granthatcher has joined #ruby
granthatcher has quit [Max SendQ exceeded]
msgodf has quit [Ping timeout: 250 seconds]
<jhass> hanmac1: not if there are new ones, and maybe they're on non windows and it would do \n instead of \r\n
<ninjs> Yeah I'm on mac
claw has quit [Ping timeout: 256 seconds]
metalic has quit [Ping timeout: 246 seconds]
<hanmac1> ninjs: " new_claim_array = claim.claim_array" IMPORTANT that does still change the strings in the original array!!1
<jhass> hanmac1: and no, let's not set $, or whatever it was
granthatcher has joined #ruby
granthatcher has quit [Max SendQ exceeded]
LJT has joined #ruby
snockerton has joined #ruby
granthatcher has joined #ruby
<hanmac1> jhass IO#puts: " Writes a record separator (typically a newline) after any that do not already end with a newline sequence."
<ninjs> hanmac1: What? no it shouldn't.. it doesn't call change_claim yet
granthatcher has quit [Max SendQ exceeded]
d00n has quit [Quit: leaving]
joonty has joined #ruby
<jhass> ninjs: he's referring to << modifying the string in place
sinkensabe has joined #ruby
granthatcher has joined #ruby
<jhass> >> a = ["foo"]; b = a; b.first << "blub"; a
<ruboto> jhass # => ["fooblub"] (https://eval.in/317787)
deuterium has joined #ruby
DerisiveLogic has joined #ruby
<ninjs> jhass: File.write file, claim.claim_array.join("\r\n") worked. Thanks! :) much easier
<jhass> ninjs: side note: Dir.glob takes a block directly
marr has joined #ruby
basiclaser has quit [Quit: Connection closed for inactivity]
<ninjs> I'm not sure what you're getting at
AlphaAtom has quit [Ping timeout: 265 seconds]
<jhass> Dir.glob(...) do |file|
chinmay_dd has joined #ruby
<ninjs> Oh you're just saying I could condense a bit
<jhass> and avoid an array allocation as a slight bonus ;)
RegulationD has joined #ruby
fryguy9 has quit [Quit: Leaving.]
<jhass> also I'd rename claim_array to claims, describing the datastructure in variable names is not so nice
claw has joined #ruby
<jhass> (or @claim_fields? @claim_entries? something like that)
Mezjin has joined #ruby
_honning_ has joined #ruby
metalic has joined #ruby
<toretore> aryClaims
pacMakaveli has quit [Remote host closed the connection]
NoNMaDDeN has joined #ruby
NoNMaDDeN has quit [Client Quit]
robbyoconnor has quit [Ping timeout: 256 seconds]
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
juanpaucar has quit [Remote host closed the connection]
workmad3 has joined #ruby
wottam has joined #ruby
`sicks has quit [Quit: Leaving]
RegulationD has quit [Ping timeout: 272 seconds]
wottam has quit [Client Quit]
<shevy> array_claim
<shevy> then you know it's an Array!
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tubuliferous has joined #ruby
<shevy> do you guys keep track of hardware stuff you bought?
<apeiros> Person.string_first_name, .string_last_name, .integer_age, .date_date_of_birth, …
St1gma has quit [Read error: Connection reset by peer]
<apeiros> it's amazingly difficult to teach people not to name AR associations after the associated class
Asher has quit [Quit: Leaving.]
jenrzzz has joined #ruby
nobitanobi has joined #ruby
<toretore> 3276800000 bytes transferred in 1314.608860 secs (2492605 bytes/sec)
<toretore> sd cards :(
loremipsumdolors has quit []
Eiam_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
evanjs has quit [Remote host closed the connection]
<toretore> apeiros: date_date_of_birth is my favorite
workmad3 has quit [Ping timeout: 276 seconds]
hanmac1 has quit [Quit: Leaving.]
<IceDragon> apeiros: Hungarian Notation ;_;
<IceDragon> toretore O:
tubuliferous has quit [Ping timeout: 264 seconds]
<IceDragon> interesting name
blueOxigen has joined #ruby
<IceDragon> but based on this converstion, tore is a tore type :3
deuterium has quit [Read error: Connection reset by peer]
<mikecmpbll> who's feeling smart today
krz has quit [Ping timeout: 256 seconds]
<havenwood> mikecmpbll: cats
stef204 has quit [Ping timeout: 244 seconds]
centrx has joined #ruby
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bluOxigen has quit [Ping timeout: 264 seconds]
<cats> I'm not
<cats> I'm feeling rather dumb today tbh
fabrice31 has quit [Remote host closed the connection]
jottr_ has quit [Ping timeout: 244 seconds]
Kurisu has left #ruby ["Textual IRC Client: www.textualapp.com"]
<mikecmpbll> i want to convert an array ["a", "b", "c"] into this: { "a" => { "b" => "c" } }
<mikecmpbll> if the array has one element it should just return that element.
<mikecmpbll> it can be any length
B1n4r10 has joined #ruby
<shellfu> cats, Well,, you are a cat, so.... Considering you're typing in IRC. I think your a brilliant cat
<mikecmpbll> ^
<cats> haha
<mikecmpbll> he is not a cat, he is cats.
kblake has joined #ruby
<mikecmpbll> (/she)
LJT has quit [Quit: Sleeping...]
<havenwood> they
<cats> he :p
<mikecmpbll> :)
<cats> or they
<havenwood> they are cats, plural
<shellfu> THey are legion, they are .......CATS!
<mikecmpbll> anyway, my problem please gents.
<mikecmpbll> :<
momomomomo has joined #ruby
startupality has joined #ruby
<shellfu> lol sorry sorry :) I am very easily distracted
* shellfu shuts up
SouL_|__ has joined #ruby
psy__ has quit [Ping timeout: 272 seconds]
<apeiros> mikecmpbll: not sure I understand the logic - how'd the result look with ["a"] and ["a", ..., "d"]
<mikecmpbll> ["a"] => "a"
<ckrailo> mikecmpbll: so just making each value a key to its next value.... so D would be { 'a' => { 'b' => { 'c' => 'd' }}} ?
psy__ has joined #ruby
<mikecmpbll> ^
<apeiros> reverse + inject probably
<mikecmpbll> ah, there's a thought
spyderman4g63 has quit [Read error: Connection reset by peer]
<apeiros> and special case .length <= 1
<mikecmpbll> i didn't think of approaching it backwards
spyderman4g63 has joined #ruby
krz has joined #ruby
kedare` is now known as kedare
<apeiros> >> ary = [*"a".."e"]; ary.reverse.inject { |v, key| {key => v} }
<ruboto> apeiros # => {"a"=>{"b"=>{"c"=>{"d"=>"e"}}}} (https://eval.in/317800)
<apeiros> actually doesn't even need a special case
jenrzzz has quit [Ping timeout: 244 seconds]
<apeiros> >> ["a"].reverse.inject { |v, key| {key => v} }
<ruboto> apeiros # => "a" (https://eval.in/317801)
<mikecmpbll> :D
SouL_|___ has joined #ruby
SouL_|_ has quit [Ping timeout: 244 seconds]
* mikecmpbll kisses apeiros
<apeiros> OO
<mikecmpbll> i don't get why that works for ["a"], that's cool.
SouL_|__ has quit [Ping timeout: 245 seconds]
<doppler> i dont get this. the order of the names should be different every time i run the script. except they are not. https://gist.github.com/d0ppler/27be43de8573c7f0b3ff
mistermocha has joined #ruby
<apeiros> doppler: chars.index('') ?
<apeiros> since you only have A-Z in chars, that will always return nil
<apeiros> I'm surprised this doesn't raise…
fryguy9 has joined #ruby
jimms has quit [Remote host closed the connection]
<doppler> mm ok
michaeldeol has joined #ruby
Guest90783 has quit [Read error: No route to host]
<apeiros> doppler: also a tip for asking questions - provide code which the helpers can run themselves
<apeiros> your current gist can't be run, since we're missing that names.txt file.
realname_ has joined #ruby
mistermo_ has joined #ruby
stef204 has joined #ruby
realname_ is now known as Guest61734
<doppler> aperios yes, should have thought about that sorry
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros> and another pro-tip: use tab completion for nicks.
<apeiros> aperios isn't mine.
<doppler> apeiros =)
segfalt has quit [Quit: segfalt]
nobitanobi has quit [Remote host closed the connection]
mistermocha has quit [Ping timeout: 255 seconds]
shredding has joined #ruby
nobitanobi has joined #ruby
_honning_ has quit [Ping timeout: 264 seconds]
fryguy9 has quit [Quit: Leaving.]
predator117 has quit [Ping timeout: 240 seconds]
danzilio has quit [Quit: My computer has fallen asleep!]
chishiki has quit [Quit: WeeChat 1.1.1]
dfinninger has quit [Remote host closed the connection]
<b4tm4n> can anyone help with an init script? I need to start services with the sudo command, but when using sudo i get the error "Could not locate Gemfile or .bundle/ directory"
mleung has joined #ruby
<apeiros> b4tm4n: sudo usually drops the env
<shevy> guess what this may be an abbreviation of: ASN.1
predator117 has joined #ruby
ReK2GnULinuX has quit [Quit: Konversation terminated!]
<b4tm4n> apeiros, right, so how do i fix that - services must be started with sudo
dfinninger has joined #ruby
danzilio has joined #ruby
<havenwood> b4tm4n: You said RVM, so use rvmsudo or a wrapper.
scripore has quit [Quit: This computer has gone to sleep]
f0ster has joined #ruby
nobitanobi has quit [Ping timeout: 255 seconds]
<b4tm4n> I was trying rvmsudo, but getting the same error
scripore has joined #ruby
<b4tm4n> even then, rvmsudo will only help when manually trying to start/stop the service, not on boot, correct?
vim_shimm has quit [Ping timeout: 265 seconds]
allenn has quit [Remote host closed the connection]
<havenwood> b4tm4n: conference call - back in 10 if I'm lucky but others know how to setup wrappers or ask in #rvm
stef204 has quit [Ping timeout: 240 seconds]
bricker has joined #ruby
Channel6 has joined #ruby
mistermo_ has quit [Remote host closed the connection]
tonyhb has joined #ruby
<vickleton> Hi guys, am I going down the right path of installing Apache on my Ubuntu system if I want to see how an app works from files from GitHub, or am I going down completely the wrong path?
bjmllr has quit [Ping timeout: 252 seconds]
<GaryOak_> vickleton: what is your app?
fryguy9 has joined #ruby
willharrison has joined #ruby
<b4tm4n> do i even need to use rvm if i just need one version of ruby?
devlop has joined #ruby
<avril14th> b4tm4n: you will soon need more, so better install it now
paulcsmith has quit [Quit: Be back later ...]
<thatslifeson> You don't need RVM if you are using just one version of ruby, but that is likely not the case if you are going to use other projects in the future, in which case you should learn RVM
mistermocha has joined #ruby
Mohan has joined #ruby
<thatslifeson> It's also good to have around even if you assume you are going to use one version of ruby
spyderma_ has joined #ruby
hiyosi has joined #ruby
<GaryOak_> vickleton: #rubyonrails should be able to help you get that setup :)
<vickleton> Thanks GaryOak
<vickleton> Thanks GaryOak_ **
devlop has quit [Quit: Leaving]
_honning_ has joined #ruby
ReK2WiLdS has joined #ruby
ramfjord has joined #ruby
vire has quit [Ping timeout: 276 seconds]
spyderman4g63 has quit [Ping timeout: 246 seconds]
scripore has quit [Quit: This computer has gone to sleep]
kedare has quit [Remote host closed the connection]
Caius has quit [Quit: ""]
sinkensabe has quit [Remote host closed the connection]
workmad3 has joined #ruby
josephleon has joined #ruby
Caius has joined #ruby
xmaddness has joined #ruby
jottr_ has joined #ruby
<xmaddness> When changing a database, do I need to update the schema.rb for activeRecord to work correctly?
<xmaddness> We added three columns to an existing field
shredding has quit [Remote host closed the connection]
Filete has joined #ruby
<izzol> b4tm4n: you can always use rbenv instead of the RVM if you don't like it ;-)
<xmaddness> erm rto an existing table
<havenwood> izzol: then when shims bite you switch to chruby. then just install to /usr/local/. then use a distro with a modern Ruby package.
chipotle has joined #ruby
<adaedra> I'm happy with rbenv.
iamninja_ has quit [Read error: Connection reset by peer]
sibchcoder has joined #ruby
iamninja_ has joined #ruby
sinkensabe has joined #ruby
fryguy9 has quit [Quit: Leaving.]
metalic has quit [Ping timeout: 255 seconds]
alex88 has quit []
AlphaAtom has joined #ruby
sinkensabe has quit [Remote host closed the connection]
kblake has quit [Remote host closed the connection]
<havenwood> I'm not happy with how they introduced the project. These days though my biggest objection would be ruby-build shipping it's own openssl instead of using the package managers and how few people realize that. I've seen folk unwittingly compiling against old openssl because of it.
ramfjord has quit [Ping timeout: 252 seconds]
A205B064 has joined #ruby
BigRonnieRon has joined #ruby
metalic has joined #ruby
<havenwood> adaedra: Though you don't have to use ruby-build with rbenv at least. ;)
Technodrome has quit [Quit: Technodrome]
<adaedra> I actually do that :|
nettoweb has joined #ruby
plribeiro3000 has joined #ruby
<havenwood> especially when folk install ruby-build through a package manager they tend to expect that it will use the package manager openssl
Matachines has joined #ruby
<havenwood> which it doesn't, chaos ensues
B1n4r10 has quit [Quit: Textual IRC Client: www.textualapp.com]
Technodrome has joined #ruby
scripore has joined #ruby
slava_dp has quit [Quit: Bye]
sinkensabe has joined #ruby
mary5030_ has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
nobitanobi has joined #ruby
sinkensabe has quit [Remote host closed the connection]
Soda has quit [Remote host closed the connection]
rejerson69 has joined #ruby
Stalkr_ has joined #ruby
metalic has quit [Ping timeout: 264 seconds]
<havenwood> i guess it'd be easy enough to pull request rbenv to use ruby-install instead of ruby-build or fork it for an option that direction
avril14th has quit [Remote host closed the connection]
hollywood has joined #ruby
<mwlang> xmaddness: if you added the columns using an activerecord migration script, the schema.rb file should be updated automatically, esp. if this is a Rails project you’re referring to.
<adaedra> ah, I never remember if it's ruby-install or ruby-build that I use
<havenwood> or some flag to swap the installer backend
<havenwood> adaedra: yeah, the naming is.. unfortunate
moted has joined #ruby
ag4ve_ has quit [Ping timeout: 245 seconds]
<mwlang> havenwood: ruby via package managers? :-o Is there even one distro out there that’s staying relatively current with Ruby?
<centrx> Debian unstable!
<adaedra> no
robbyoconnor has joined #ruby
<adaedra> arch and gentoo, maybe
DaniG2k has quit [Quit: leaving]
josephleon has quit [Quit: Leaving...]
sinkensabe has joined #ruby
<mwlang> I could see arch or gentoo tracking since they build from source…but then I don’t use those distros any more.
<adaedra> er
<adaedra> gentoo, you build yourself from sources, but not arch
<adaedra> FreeBSD has a 2.1.6
dvlwrk has joined #ruby
cocotton has joined #ruby
Matachines has quit [Ping timeout: 250 seconds]
<mwlang> hmmm…I should go check out arch again…I must not be remembering what it is.
<centrx> Debian unstable has 2.2.1
<adaedra> Oh
<adaedra> My rbenv provided ruby is older than the system provided one :x
granthatcher has quit []
<mwlang> adaedra: …and chaos now ensues….
<gregf_> mwlang: you mean PHP? *runs*
willharrison has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> jhass: Aren't you the Arch package maintainer for Ruby? Anyways, Arch stays up to date. Fedora doesn't lag much these days. Brightbox packages for Ubuntu.
<havenwood> mwlang: ^
<shevy> jhass owns Arch these days
fryguy9 has joined #ruby
<adaedra> and Arch owns you
<shevy> better than opensuse!!!
CloCkWeRX has left #ruby [#ruby]
<adaedra> NOT DIFFICULT.
<mwlang> havenwood: better than the last time I surveyed…which was probably ~2009ish
<shevy> :)
mikecmpbll has quit [Ping timeout: 248 seconds]
segfalt has joined #ruby
chishiki has joined #ruby
<havenwood> adaedra: ruby-install --install-dir ~/.rbenv/versions/2.2.2 ruby 2.2.2 --sha256 f3b8ffa6089820ee5bdc289567d365e5748d4170e8aa246d2ea6576f24796535
<adaedra> wat
cocotton has quit [Ping timeout: 255 seconds]
<havenwood> adaedra: from any version of ruby-install that'd install Ruby 2.2.2, checking against the manually provided checksum in case there's none known
doritostains has quit [Ping timeout: 265 seconds]
josephleon has joined #ruby
<adaedra> I won't install a new ruby right now
<adaedra> I leave in 10' and am already on something else
<havenwood> adaedra: in an upcoming version of ruby-install the checksums will be autosynced from a common metadata repository so you just specify the Ruby and it'll fetch the correct MD5, SHA1, SHA256 and SHA512 and check them all.
<adaedra> k
Technodrome has quit [Quit: Technodrome]
_honning_ has quit [Ping timeout: 255 seconds]
sinkensabe has quit [Remote host closed the connection]
<havenwood> shevy: i always hear good things about opensuse
Cust0sL1men has quit [Ping timeout: 256 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<havenwood> shevy: but don't use it
lxsameer has joined #ruby
c0m0 has quit [Ping timeout: 264 seconds]
iasoon has quit [Ping timeout: 252 seconds]
RegulationD has joined #ruby
OrbitalKitten has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> :D
josephleon has quit [Quit: Leaving...]
BigRonnieRon has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> havenwood: ruby1.9, ruby2.0 and ruby2.1 are mine in AUR, I'm no TU so ruby in community is somebody else ;)
josephleon has joined #ruby
User458764 has joined #ruby
<jhass> havenwood: https://gist.github.com/jhass/8839655bb038e829fba1 maybe something for your collection ;)
chthon has quit [Ping timeout: 244 seconds]
sinkensabe has joined #ruby
lkba has joined #ruby
RegulationD has quit [Ping timeout: 264 seconds]
metalic has joined #ruby
freerobby has joined #ruby
paulcsmith has joined #ruby
sigurding has quit [Quit: sigurding]
doritostains has joined #ruby
constantinexvi has joined #ruby
dfinninger has quit [Remote host closed the connection]
Xiti has quit [Quit: Xiti]
jerryberry has joined #ruby
fryguy9 has quit [Quit: Leaving.]
fgo has joined #ruby
<crowell> is chruby the new cool thing
<crowell> am i obsolete for using rvm?
<havenwood> crowell: rvm supports using chruby out of the box, via mrvm - or you can use chruby to switch to rvm-installed rubies
<jhass> the advantage of chruby is that you can read how it works in < half an hour
<jhass> by reading the source
Zai00 has quit [Quit: Zai00]
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
<jerryberry> Hey, I'm installing Ruby 2.1.2 on a fedora core 3 system (yes, I know it's old, no I can't upgrade) and rubygems 2.2.2. They install just fine. However when I try to install gem it fails because the gem packages are signed with SHA512. The openssl version I have available to me doesn't support SHA2 or higher. Is there a way to tell the gem installation process to install a gem using an unsigned source? Or an sha1 signed source?
<havenwood> jhass: nice, dig the gist
Contigi has joined #ruby
<jhass> havenwood: I realized you can do pretty much the same thing with the brightbox stuff on ubuntu
<momomomomo> jerryberry: you have more issues than installing ruby if you’re stuck with an old openssl version
<jerryberry> Ruby installs file, the problem is with gem installation.
MatthewsFace has joined #ruby
thumpba has joined #ruby
<jerryberry> For example: gem install bundler fails
thumpba_ has joined #ruby
sinkensabe has quit [Remote host closed the connection]
<jerryberry> s/file/fine/
fgo has quit [Ping timeout: 246 seconds]
mikecmpbll has joined #ruby
metalic has quit [Ping timeout: 244 seconds]
<momomomomo> jerryberry: http://guides.rubygems.org/security/
Anwar__ has joined #ruby
<momomomomo> might help
CloCkWeRX has joined #ruby
AlphaAtom has quit [Ping timeout: 264 seconds]
Omilun has joined #ruby
Omilun has left #ruby [#ruby]
thumpba has quit [Ping timeout: 245 seconds]
krz has quit [Quit: WeeChat 1.0.1]
Omilun has joined #ruby
shoutsid has quit [Remote host closed the connection]
josephleon has quit [Quit: Leaving...]
josephleon has joined #ruby
tcrypt has joined #ruby
Morkel has joined #ruby
Anwar__ has quit [Quit: Page closed]
Omilun has left #ruby [#ruby]
tubuliferous has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
danzilio has quit [Quit: My computer has fallen asleep!]
josephleon has quit [Client Quit]
Rollabunna has quit [Remote host closed the connection]
Hijiri has quit [Quit: WeeChat 1.0.1]
<lxsameer> guys , this server blocks my requests for installing a gem "http://rubygems.global.ssl.fastly.net"
wallerdev has joined #ruby
<lxsameer> with 403 response, why is that?
scripore has quit [Quit: This computer has gone to sleep]
msgodf has joined #ruby
<centrx> is that a private gem repository or something?
joonty has quit [Quit: joonty]
<centrx> broken website?
<centrx> wrong URL?
<shevy> $tools = Dir.entries('DirectoryTools/').select{|d| d[0,1] != '.'}.sort_nocase
<shevy> .sort_nocase is non-standard right?
<centrx> it's not anything, it doesn't exist
<shevy> yeah that is so weird
<shevy> I love being able to modify core behaviour... but when I see it in other people's code, it sort of trips me up
vsh_ has joined #ruby
<shevy> $config[:sortIgnore].each
<shevy> well!
lidenskap has joined #ruby
Aswebb_ has joined #ruby
SouL_|___ has quit [Ping timeout: 255 seconds]
timonv has quit [Ping timeout: 265 seconds]
lidenskap has quit [Read error: Connection reset by peer]
danzilio has joined #ruby
lidenskap has joined #ruby
lidenskap has quit [Remote host closed the connection]
lidenskap has joined #ruby
danzilio has quit [Client Quit]
SouL_|__ has joined #ruby
Iniesta8 has joined #ruby
Iniesta8 has quit [Client Quit]
scripore has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
jerius has quit [Quit: /quit]
jerius has joined #ruby
SouL_|_ has joined #ruby
fryguy9 has joined #ruby
danzilio has joined #ruby
jenrzzz has joined #ruby
spyderman4g63 has joined #ruby
danzilio has quit [Max SendQ exceeded]
droidburgundy has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
dfinninger has joined #ruby
juanpaucar has joined #ruby
SouL_|__ has quit [Ping timeout: 276 seconds]
danzilio has joined #ruby
Pupeno has joined #ruby
ponga has quit [Quit: Leaving...]
mary5030_ has quit [Remote host closed the connection]
spyderma_ has quit [Ping timeout: 264 seconds]
ReK2WiLdS has quit [Ping timeout: 265 seconds]
CloCkWeRX has left #ruby [#ruby]
quimrstorres has quit [Remote host closed the connection]
shazaum has joined #ruby
shadoi has joined #ruby
ramfjord has joined #ruby
joonty has joined #ruby
JDiPierro has joined #ruby
juanpaucar has quit [Ping timeout: 276 seconds]
charliesome has joined #ruby
Dreamer3 has joined #ruby
orionstein has quit [Quit: ZNC - http://znc.in]
x1337807x has joined #ruby
n008f4g_ has joined #ruby
mengu has quit [Remote host closed the connection]
quimrstorres has joined #ruby
cocotton has joined #ruby
orionstein has joined #ruby
Akuma has quit [Quit: So long sukkas!]
towski_ has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
Mohan has quit [Ping timeout: 245 seconds]
Spami has joined #ruby
lidenskap has quit [Remote host closed the connection]
metalic has joined #ruby
robbyoconnor has quit [Quit: Konversation terminated!]
Mohan has joined #ruby
mrmargol_ has joined #ruby
Mohan is now known as Guest19518
davedev2_ has joined #ruby
noobQ has quit [Quit: WeeChat 0.4.2]
freerobby has quit [Quit: Leaving.]
davedev24_ has quit [Ping timeout: 276 seconds]
piotrj has joined #ruby
m3t4l1c_s0ul has joined #ruby
StephenOTT has joined #ruby
joonty has quit [Quit: joonty]
freerobby has joined #ruby
digitalextremist has quit [Ping timeout: 264 seconds]
zachrab has quit [Remote host closed the connection]
zachrab has joined #ruby
icarus has joined #ruby
mrmargolis has quit [Ping timeout: 256 seconds]
zz_Outlastsheep is now known as Outlastsheep
metalic has quit [Ping timeout: 252 seconds]
teddyp1cker has quit [Remote host closed the connection]
juanpablo__ has quit [Ping timeout: 250 seconds]
rajeshchawla has joined #ruby
superscott[8] has joined #ruby
rajeshchawla has quit [Client Quit]
juanpablo__ has joined #ruby
yqt has joined #ruby
fryguy9 has quit [Quit: Leaving.]
morholt has left #ruby [#ruby]
Guest19518 has quit [Ping timeout: 250 seconds]
a346 has quit [Quit: a346]
nobitanobi has quit [Remote host closed the connection]
lidenskap has joined #ruby
nobitanobi has joined #ruby
Mohan_ has joined #ruby
iamninja_ has quit [Read error: Connection reset by peer]
Eiam_ has joined #ruby
Technodrome has joined #ruby
iamninja_ has joined #ruby
Cloudhand has joined #ruby
lidenskap has quit [Remote host closed the connection]
thatslifeson has quit [Remote host closed the connection]
lidenskap has joined #ruby
digitalextremist has joined #ruby
fryguy9 has joined #ruby
simonewestphal has joined #ruby
fryguy9 has quit [Read error: Connection reset by peer]
fryguy91 has joined #ruby
icarus has quit [Ping timeout: 256 seconds]
vsh_ has quit [Read error: Connection reset by peer]
rajeshchawla has joined #ruby
freerobby has quit [Quit: Leaving.]
rhllor has quit [Quit: rhllor]
nobitanobi has quit [Ping timeout: 250 seconds]
segfalt has quit [Quit: segfalt]
dfinninger has quit [Remote host closed the connection]
rbennacer has quit [Remote host closed the connection]
mary5030 has joined #ruby
badhatter has quit [Ping timeout: 250 seconds]
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
rbennacer has joined #ruby
dseitz has joined #ruby
sankaber has joined #ruby
Nahra has quit [Remote host closed the connection]
icarus has joined #ruby
yqt has quit [Ping timeout: 244 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
simonewestphal has left #ruby [#ruby]
AxonetBE has joined #ruby
<AxonetBE> I have a hstore object in my postgresql database but when saving the hash he stores it as {"voltage"=>"{\"voltage_alim_2\"=>0, \"voltage_alim_1\"=>27.11016, \"battery_alim_1\"=>118, \"battery_alim_2\"=>-333}"}
jenrzzz has quit [Ping timeout: 256 seconds]
<AxonetBE> why he is escaping the " ?
momomomomo has quit [Quit: momomomomo]
Mon_Ouie has joined #ruby
jeffreylevesque has joined #ruby
mjuszczak has joined #ruby
<jeffreylevesque> which do you guys prefer: chef vs puppet?
<shellfu> that is all opinion. As a unix engineer, speaking only for myself. I prefer puppet, but I am bias as I have been using since version 0.23
mrmargolis has joined #ruby
<shellfu> chef is good so is ansible and salt. just a means to manage your machines
<shellfu> think less about the tools and what YOU need to accomplish
nobitanobi has joined #ruby
<jeffreylevesque> i like python, and use lots of linux, but want it to b e deployable on windows
<shellfu> in my home lab I use salt, and ansible. @ work I use puppet.
<jeffreylevesque> i am using vagrant
<jeffreylevesque> both are compatible with vagrant
<shellfu> if you want windows support. My personal opinion is to use puppet as it now fully supports windows. However, I have zero experience with it as I am not a windows admin.
<jeffreylevesque> yea, i like to spin up primarily linux machines
<jeffreylevesque> i guess i will just choose puppet for now. It seems like more support (even on IRC)
mrmargol_ has quit [Ping timeout: 250 seconds]
<shellfu> If its a small scale environment you wouldnt even need a master.
lolmaus has quit [Ping timeout: 256 seconds]
<havenwood> jeffreylevesque: like you're deploying to a windows server?
nobitanobi has quit [Remote host closed the connection]
<shellfu> You can hit me up in #puppet for puppet help. This room is for ruby
<jeffreylevesque> right now just ubuntu
segfalt has joined #ruby
<superscott[8]> You might want to look at ansible as well if you're not doing anything too crazy.
Technodrome has quit [Ping timeout: 246 seconds]
<shellfu> These fine gentlemen do not care to be bothered with such trivial topics :)
jheg has joined #ruby
icarus has quit [Ping timeout: 256 seconds]
nobitanobi has joined #ruby
icarus has joined #ruby
baweaver has joined #ruby
djbkd has joined #ruby
ghostmoth has joined #ruby
josephleon has joined #ruby
Mohan_ has quit [Ping timeout: 250 seconds]
shoutsid has joined #ruby
tonyhb has quit [Quit: peace]
edwinvdgraaf has quit [Remote host closed the connection]
freerobby has joined #ruby
quimrstorres has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
Mohan_ has joined #ruby
Eiam_ has quit [Read error: Connection reset by peer]
LJT has joined #ruby
baweaver has quit [Remote host closed the connection]
mjuszczak has quit []
mjuszczak has joined #ruby
nux443 has joined #ruby
josephleon has quit [Quit: Leaving...]
aspiers_ has joined #ruby
LJT has quit [Client Quit]
rikai has joined #ruby
<shevy> bastards
<shevy> let's kill them
<pipework> Bastards are great.
relix has joined #ruby
teddyp1cker has joined #ruby
nobitanobi has quit [Remote host closed the connection]
a346 has joined #ruby
nobitanobi has joined #ruby
a346 has quit [Client Quit]
edwinvdg_ has joined #ruby
m8 has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ascarter has joined #ruby
LJT has joined #ruby
x1337807x has joined #ruby
zcreative has joined #ruby
icarus has quit [Ping timeout: 252 seconds]
vim_shimm has joined #ruby
Dopagod has joined #ruby
nobitano_ has joined #ruby
StephenOTT has quit [Quit: StephenOTT]
icarus has joined #ruby
fryguy91 has quit [Quit: Leaving.]
kblake has joined #ruby
StephenOTT has joined #ruby
LJT has quit [Client Quit]
nobitanobi has quit [Read error: Connection reset by peer]
ascarter has quit [Client Quit]
edwinvdgraaf has quit [Ping timeout: 272 seconds]
ascarter has joined #ruby
Mohan_ has quit [Ping timeout: 255 seconds]
yfeldblum has joined #ruby
LJT has joined #ruby
LJT has quit [Max SendQ exceeded]
fryguy9 has joined #ruby
Mohan_ has joined #ruby
Filete has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
icarus has quit [Ping timeout: 255 seconds]
lavros has quit [Quit: leaving]
balazs_ has joined #ruby
jgoyon has quit [Remote host closed the connection]
Xiti has joined #ruby
baweaver has joined #ruby
centrx has quit [Ping timeout: 256 seconds]
yfeldblum has quit [Read error: Connection reset by peer]
kaleido has joined #ruby
yfeldblum has joined #ruby
* shellfu shut his eyes and is not invisible
<shellfu> s/not/now
<pipework> shellfu: Pretty sure you were more correct the first time, but less adorable.
chishiki has quit [Ping timeout: 256 seconds]
Mark-6ma has joined #ruby
<shellfu> I KNEW i was adorable. My wife is WRONG.... Finally!
<shellfu> I got her now!
* shellfu prints page
<wasamasa> lol
<baweaver> >> ('a'..'z').each_with_index.zip
<ruboto> baweaver # => [[["a", 0]], [["b", 1]], [["c", 2]], [["d", 3]], [["e", 4]], [["f", 5]], [["g", 6]], [["h", 7]], [[" ...check link for more (https://eval.in/317828)
<wasamasa> what have you done
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<baweaver> >> ('a'..'z').each_with_index.zip.flatten(1).to_h
<ruboto> baweaver # => {"a"=>0, "b"=>1, "c"=>2, "d"=>3, "e"=>4, "f"=>5, "g"=>6, "h"=>7, "i"=>8, "j"=>9, "k"=>10, "l"=>11, " ...check link for more (https://eval.in/317829)
balazs_ has quit [Ping timeout: 265 seconds]
lolmaus has joined #ruby
towski__ has joined #ruby
kblake has quit [Read error: Connection reset by peer]
kblake has joined #ruby
<baweaver> >> ('a'..'z').each_with_index.to_h
<ruboto> baweaver # => {"a"=>0, "b"=>1, "c"=>2, "d"=>3, "e"=>4, "f"=>5, "g"=>6, "h"=>7, "i"=>8, "j"=>9, "k"=>10, "l"=>11, " ...check link for more (https://eval.in/317830)
kyrylo has quit [Quit: Konversation terminated!]
<havenwood> >> ?a.upto(?z).with_index.to_h
<ruboto> havenwood # => {"a"=>0, "b"=>1, "c"=>2, "d"=>3, "e"=>4, "f"=>5, "g"=>6, "h"=>7, "i"=>8, "j"=>9, "k"=>10, "l"=>11, " ...check link for more (https://eval.in/317831)
nobitano_ has quit [Remote host closed the connection]
kyrylo has joined #ruby
<baweaver> with_index is a thing now?
towski_ has quit [Ping timeout: 264 seconds]
<baweaver> huh, noted.
<havenwood> baweaver: ya, and it takes an optional `offet` param
<havenwood> offset*
allcentury has quit [Ping timeout: 265 seconds]
nobitanobi has joined #ruby
<baweaver> was that recent?
kblake has quit [Remote host closed the connection]
<havenwood> not really
doertedev has quit [Ping timeout: 272 seconds]
<havenwood> >> ?a.upto(?c).with_index(1).to_h
<ruboto> havenwood # => {"a"=>1, "b"=>2, "c"=>3} (https://eval.in/317832)
jottr_ has quit [Ping timeout: 245 seconds]
sohrab has joined #ruby
badhatter has joined #ruby
badhatter has joined #ruby
<baweaver> go figure. I just kept using each_with_index.
<havenwood> baweaver: a 1.9 thing it looks like
<baweaver> yeah, just saw that
<havenwood> for the offset
<baweaver> I tend to use reduce instead of with_object.
AlphaAtom has joined #ruby
<baweaver> then again that's more of using it like inject I suppose.
fryguy9 has quit [Quit: Leaving.]
jottr_ has joined #ruby
Mohan_ has quit [Ping timeout: 245 seconds]
baweaver has quit [Remote host closed the connection]
teddyp1cker has left #ruby [#ruby]
dfinninger has joined #ruby
nobitano_ has joined #ruby
nobitanobi has quit [Ping timeout: 256 seconds]
Brozo has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
Mohan has joined #ruby
Mezjin has quit [Remote host closed the connection]
Mohan is now known as Guest18747
michaeldeol has joined #ruby
Outlastsheep is now known as zz_Outlastsheep
RegulationD has joined #ruby
platzhirsch has left #ruby [#ruby]
nobitano_ has quit [Client Quit]
jobewan has quit [Ping timeout: 250 seconds]
StephenOTT has quit [Quit: StephenOTT]
sibchcoder has quit [Ping timeout: 250 seconds]
lucashungaro has joined #ruby
StephenOTT has joined #ruby
ReK2WiLdS has joined #ruby
kblake has joined #ruby
RegulationD has quit [Ping timeout: 240 seconds]
Eiam_ has joined #ruby
doertedev has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
scripore has joined #ruby
sohrab has quit [Ping timeout: 256 seconds]
paulcsmith has quit [Quit: Be back later ...]
kblake has quit [Read error: Connection reset by peer]
kblake_ has joined #ruby
badhatter has quit [Ping timeout: 240 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fryguy9 has joined #ruby
paulcsmith has joined #ruby
gaboesquivel has quit []
scripore has quit [Read error: Connection reset by peer]
piotrj has quit [Remote host closed the connection]
evanjs has joined #ruby
StephenOTT has quit [Quit: StephenOTT]
edwinvdg_ has quit [Remote host closed the connection]
Guest18747 has quit [Ping timeout: 252 seconds]
badhatter has joined #ruby
badhatter has quit [Changing host]
badhatter has joined #ruby
xmaddness has quit [Quit: Leaving]
piotrj has joined #ruby
scripore has joined #ruby
Mohan_ has joined #ruby
rbennacer has quit [Remote host closed the connection]
SouL_|_ has quit [Ping timeout: 276 seconds]
SouL_|_ has joined #ruby
fryguy9 has quit [Quit: Leaving.]
<Eiam_> having some odd issue with my app structure; https://gist.github.com/anonymous/dc3e773bf93b5ddeb17e I forked out my config.ru to load two different Sinatra::Base classes, and it seems my /public/ can no longer be found for any of those Sinatra::Applications which is a bit..confusing
Mark-6ma has quit [Quit: -]
sibchcoder has joined #ruby
kirun has joined #ruby
<Eiam_> any suggestions on where I should look next?
rbennacer has joined #ruby
fryguy9 has joined #ruby
jobewan has joined #ruby
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
allcentury has joined #ruby
stef204 has joined #ruby
thatslifeson has joined #ruby
Mohan_ has quit [Ping timeout: 264 seconds]
sibchcoder has quit [Ping timeout: 272 seconds]
Guest61734 has quit [Ping timeout: 244 seconds]
Mohan_ has joined #ruby
<havenwood> Eiam_: What version of Ruby are you on?
Cloudhand has quit [Ping timeout: 272 seconds]
<Eiam_> 2.0
realname_ has joined #ruby
fryguy9 has quit [Quit: Leaving.]
realname_ is now known as Guest93813
chishiki has joined #ruby
willharrison has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
treehug88 has joined #ruby
<havenwood> Eiam_: Your `File.dirname(__FILE__)` returns a relative path, unlike `File.dirname(File.realpath(__FILE__))` or the shorthand for it `__dir__`'s absolute path.
<treehug88> What ruby books do people recommend?
<havenwood> treehug88: For someone just learning a first language or a polyglot looking to pickup Ruby?
<treehug88> polyglot
failshell has quit [Remote host closed the connection]
<havenwood> treehug88: The Well-Grounded Rubyist, Second Edition or The Ruby Programming Language are good books.
<Eiam_> havenwood: hmm
<havenwood> Eiam_: Try?: __dir__
<treehug88> thanks havenwood
<Eiam_> no need to join the ../public then either?
<Eiam_> lemme try it out
towski__ has quit [Ping timeout: 248 seconds]
lucashungaro has quit [Quit: lucashungaro]
<havenwood> Eiam_: Yeah, you'd still need to point to public/
<Eiam_> yeah, tried set :public_folder, File.join(__dir__,"../public/")
<Eiam_> same error though
lucashungaro has joined #ruby
spyderman4g63 has quit [Read error: Connection reset by peer]
spyderman4g63 has joined #ruby
hollywood has quit [Quit: Leaving]
nszceta has joined #ruby
treehug88 has quit [Quit: Textual IRC Client: www.textualapp.com]
Mohan_ has quit [Ping timeout: 264 seconds]
bruno-_ has quit [Ping timeout: 245 seconds]
Mohan_ has joined #ruby
Eiam has joined #ruby
<havenwood> Eiam_: Don't: require 'rubygems'
<havenwood> Eiam_: You might consider using `require_relative` where you're using relative path, or setup $LOAD_PATH.
odin23 has joined #ruby
juanpaucar has joined #ruby
odin22 has quit [Read error: Connection reset by peer]
towski_ has joined #ruby
<havenwood> Eiam_: Check the string you're setting :public_folder to, what is it?
mjuszczak has quit []
sohrab has joined #ruby
Flowrhent has joined #ruby
yqt has joined #ruby
Soda has joined #ruby
vim_shimm has quit [Ping timeout: 265 seconds]
sibchcoder has joined #ruby
baroquebobcat_ has quit [Quit: baroquebobcat_]
pullphinger has joined #ruby
AlexRussia has quit [Ping timeout: 276 seconds]
tercenya has quit []
<Eiam_> /Users/Eiam/Documents/dev/test_proj/app/../public/
workmad3 has joined #ruby
mikecmpbll has quit [Quit: ciao.]
juanpaucar has quit [Ping timeout: 256 seconds]
<Eiam_> so "where I'd expect it to be"
paulcsmith has quit [Quit: Lingo: www.lingoirc.com]
Hirzu has quit [Quit: Leaving...]
mrsolo has joined #ruby
<Eiam_> I can cd to /Users/Eiam/Documents/dev/test_proj/app/../public/vendor/bootstrap/css/ and bootstrap.min.css is right there
ta has joined #ruby
tercenya has joined #ruby
paulcsmith has joined #ruby
pullphinger has quit [Client Quit]
lidenskap has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
pullphinger has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
mjuszczak has joined #ruby
kblake_ has quit [Remote host closed the connection]
Mohan_ has quit [Ping timeout: 250 seconds]
lolmaus has joined #ruby
dopie has joined #ruby
Mohan_ has joined #ruby
baroquebobcat_ has joined #ruby
jenrzzz has joined #ruby
c355E3B has joined #ruby
superscott[8] has quit [Remote host closed the connection]
Brozo has quit [Remote host closed the connection]
tonyhb has joined #ruby
MyGreenPickle has joined #ruby
tonyhb_ has joined #ruby
Brozo has joined #ruby
MyGreenPickle has quit [Client Quit]
xploshioon has joined #ruby
mjuszczak has quit []
baroquebobcat_ has quit [Quit: baroquebobcat_]
<havenwood> Eiam_: same if you prefix a "/" to the :href?
thiagovsk has quit [Quit: Connection closed for inactivity]
tonyhb has quit [Ping timeout: 276 seconds]
c355E3B has quit [Quit: Leaving]
c355E3B has joined #ruby
phutchins has quit [Ping timeout: 246 seconds]
f3lp has quit [Ping timeout: 256 seconds]
nszceta has quit [Remote host closed the connection]
<Eiam_> heh same (tried that one too already, kind of what brought me here, was at a total loss)
Soda has quit [Ping timeout: 240 seconds]
<Eiam_> in theory that would give me a public//vendor
xploshioon has quit [Quit: Leaving]
lucashungaro has quit [Quit: lucashungaro]
<havenwood> Eiam_: set :public, 'public'
gfawcettpq has quit [Ping timeout: 246 seconds]
<Eiam_> :public_folder or actually :public?
Soda has joined #ruby
baweaver has joined #ruby
ta has quit [Remote host closed the connection]
<Eiam_> no matter. both stll have th same error as always
tmoor has quit [Quit: Leaving]
rvchangue has joined #ruby
<Eiam> i just change the code, quit foreman, relaunch foreman, open a new browser window & try it on each iteration
<havenwood> Eiam_: yeah, my bad - :public is deprecated - i dunno why :public_folder isn't working
plribeiro3000 has quit [Quit: Leaving.]
<havenwood> says to use :public_folder or :public_dir instead
diegoviola has joined #ruby
ta has joined #ruby
lucashungaro has joined #ruby
jlast has joined #ruby
<Eiam> when i remove the config.ru stuff
<Eiam> it works fine
<Eiam> like if i swap it to just "run Sinatra::Application"
<Eiam> and no other changes, it all works
<Eiam> but as soon as I set it back to how its shown, it stops working (can't find the css)
a5i has quit [Quit: Connection closed for inactivity]
lkba has joined #ruby
sinkensabe has joined #ruby
Owuf has joined #ruby
yfeldblum has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
danzilio has quit [Quit: Baiii!]
<Owuf> Hi, I have got an object but at compile time it says undefined method. This is strange because it knows what kind of object it is and my attributes are set with attr_accessor
rvchangue has left #ruby ["WeeChat 0.3.8"]
Soda has quit [Remote host closed the connection]
longfeet has joined #ruby
<Eiam_> Owuf: code?
bruno- has joined #ruby
a346 has joined #ruby
f3lp has joined #ruby
doertedev has quit [Ping timeout: 276 seconds]
bruno- is now known as Guest91492
RegulationD has joined #ruby
pullphinger has quit []
CorySimmons has joined #ruby
pwattste has quit [Quit: Textual IRC Client: www.textualapp.com]
AxonetBE_ has joined #ruby
<CorySimmons> What is a block? Can it be outside of curly braces?
AxonetBE has quit [Read error: Connection reset by peer]
AxonetBE_ is now known as AxonetBE
Guest91492 has quit [Ping timeout: 250 seconds]
<Eiam> curly braces are syntax
<yxhuvud> (. you can use do .. end as well .)
<Eiam> blocks are not syntax
<Eiam> CorySimmons: blocks are closures
<CorySimmons> Thanks peeps
<CorySimmons> Appreciate the clarification
RegulationD has quit [Ping timeout: 264 seconds]
Owuf has quit [Ping timeout: 246 seconds]
<CorySimmons> Can you make a proc out of a multiline block?
<c355E3B> yes
<CorySimmons> Awesome thanks
User458764 has joined #ruby
<CorySimmons> Bye guys
CorySimmons has quit [Client Quit]
rvchangue has joined #ruby
<Eiam_> havenwood: tried use Rack::Static, :urls => ["/vendor"], :root => "public"
<Eiam_> no luck
AxonetBE_ has joined #ruby
<Eiam_> havenwood: this seemed to be the same problem I have; http://stackoverflow.com/questions/6496433/multiple-sinatra-apps-using-rack-mount
<Eiam_> but the solution doesn't work
AxonetBE has quit [Read error: No route to host]
AxonetBE_ is now known as AxonetBE
Owuf has joined #ruby
doppler has quit [Ping timeout: 246 seconds]
<Owuf> Eiam: sorry dc
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Owuf> Eiam: I think my code is correct and comes from the way Chef handle my variables
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pengin has quit [Remote host closed the connection]
plribeiro3000 has joined #ruby
failshell has joined #ruby
pengin__ has joined #ruby
piotrj has quit [Remote host closed the connection]
piotrj has joined #ruby
towski__ has joined #ruby
towski_ has quit [Read error: No route to host]
sinkensabe has quit [Remote host closed the connection]
<Eiam_> havenwood: got it =)
freerobby has quit [Quit: Leaving.]
<Eiam_> havenwood: when you move to defining a class Blah > Sinatra::Base, you have to move your set inside of the class
workmad3 has joined #ruby
<havenwood> Eiam_: ahhh
banister has joined #ruby
banister has quit [Max SendQ exceeded]
superscott[8] has joined #ruby
<Eiam_> whew =) lol
<Eiam_> so on that note, part of what WOULD have cuaght this
<Eiam_> is logging the public dir.. we were calling puts File.join(__dir__,"../public/")
<Eiam_> but if I could actually GET the object its set on, the value wouldn't have made sense
<Eiam_> unfortunately I couldnt' find where set puts its values
<Eiam_> supposedly on Sinatra::Application, but when I do settings.inspect, its empty
Cloudhand has joined #ruby
pdoherty has joined #ruby
sankaber has joined #ruby
<ytti> File.join(__dir__,"../public/")
<ytti> this kind of defeats the purpose of File.join
<ytti> because you're using literal /
evanjs has quit [Remote host closed the connection]
<dudedudeman> weaksauce: if you're around, the regex stuff you showed me yesterday was ON POINT
<weaksauce> glad to hear that dudedudeman
evanjs has joined #ruby
<wallerdev> it doesnt really defeat the purpose
<wallerdev> it handles the case of __dir__ ending or not ending with a slash
<dudedudeman> slapped it alongside my validations in activerecord and off to the races we go
jottr_ has quit [Ping timeout: 252 seconds]
lidenskap has joined #ruby
icarus has joined #ruby
Morkel has quit [Quit: Morkel]
segfalt has quit [Quit: segfalt]
iasoon has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
<havenwood> Eiam_: ^ as pointed out: File.join __dir__, "..", "public"
timonv has joined #ruby
Flowrhent has quit [Ping timeout: 250 seconds]
evanjs has quit [Ping timeout: 244 seconds]
<Eiam_> ok
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<pipework> Long live Pathname!
beneggett has joined #ruby
<Eiam_> indeed, seems to work tsill
<Eiam_> still
bruno-_ has joined #ruby
aspiers has quit [Quit: WeeChat 0.4.1]
elaptics is now known as elaptics_away
<Eiam_> okay. so foreman is fucking up my buffer or something whenever i use binding.pry . can't see anything until after its typed
cocotton has quit [Remote host closed the connection]
<Eiam_> even with $stdout.sync = true
quimrstorres has joined #ruby
mjuszczak has joined #ruby
<Eiam_> like after I press return, then i see it =)
aspiers_ is now known as aspiers
willharrison has quit [Quit: Textual IRC Client: www.textualapp.com]
<bricker> Eiam_: you may need to update readline
<Eiam_> $ brew info readline
<Eiam_> readline: stable 6.3.8 (bottled)
<havenwood> Eiam_: how'd you install Ruby?
<Eiam_> rvm
x1337807x has joined #ruby
<havenwood> should be linked against the proper readline
<Eiam_> .rvm/rubies/ruby-2.0.0-p481/bin/ruby
vim_shimm has joined #ruby
balazs_ has joined #ruby
Guest93813 has quit [Ping timeout: 250 seconds]
Boondox has quit []
timonv has quit [Ping timeout: 245 seconds]
<Eiam_> hmm. otool -l says its not
<Eiam_> guess thats the problem
platzhirsch has joined #ruby
uri has joined #ruby
ruby861 has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
Brozo has quit [Remote host closed the connection]
mjuszczak has quit []
<havenwood> Eiam_: Does `rvm requirements` work?
<Eiam_> its doing something now
shazaum has quit [Quit: This computer has gone to sleep]
nateberkopec has joined #ruby
zachrab has quit [Remote host closed the connection]
ghostmoth has quit [Quit: ghostmoth]
jheg has quit [Quit: jheg]
duderonomy has joined #ruby
f3lp has quit [Ping timeout: 240 seconds]
zachrab has joined #ruby
balazs_ has quit [Ping timeout: 245 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ruby861 has quit [Ping timeout: 246 seconds]
failshell has quit [Remote host closed the connection]
failshell has joined #ruby
Dopagod has quit [Ping timeout: 256 seconds]
quimrstorres has quit [Remote host closed the connection]
jaequery has joined #ruby
longfeet has quit [Ping timeout: 256 seconds]
edwinvdgraaf has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
phutchins has joined #ruby
wallerdev has quit [Quit: wallerdev]
mjuszczak has joined #ruby
devans has joined #ruby
Pupeno_ has joined #ruby
Pupeno has quit [Ping timeout: 256 seconds]
jeffreylevesque has quit [Ping timeout: 256 seconds]
pdoherty has quit [Ping timeout: 255 seconds]
kyrylo has quit [Ping timeout: 256 seconds]
towski_ has joined #ruby
cocotton has joined #ruby
michaeldeol has joined #ruby
fryguy9 has joined #ruby
scripore has joined #ruby
baweaver has quit [Remote host closed the connection]
towski__ has quit [Ping timeout: 245 seconds]
evanjs has joined #ruby
lidenskap has quit [Remote host closed the connection]
f3lp has joined #ruby
Mohan_ has quit [Ping timeout: 265 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
Mohan has joined #ruby
<lxsameer> Gem::Specification.find_by_name "ABC" does not work with gems which uses the `path` to specify the source directory
Mohan is now known as Guest39872
ylluminarious has quit [Ping timeout: 265 seconds]
<lxsameer> any Idea how to fix it
lidenskap has joined #ruby
ylluminarious has joined #ruby
growlove has joined #ruby
blueOxigen has quit [Ping timeout: 265 seconds]
nfk|laptop has joined #ruby
sigurding has joined #ruby
geggam has joined #ruby
<geggam> `included': undefined method `alias_method_chain' for CGI:Class (NoMethodError) ... anyone ever seen this ?
evanjs has quit [Ping timeout: 244 seconds]
spider-mario has joined #ruby
Owuf has quit [Ping timeout: 246 seconds]
<geggam> google is less than helpful
Cloudzy has joined #ruby
zcreative has quit [Quit: (null)]
longfeet has joined #ruby
mengu has joined #ruby
Cloudhand has quit [Ping timeout: 245 seconds]
sufyan has joined #ruby
Nahra has joined #ruby
<dudedudeman> would someone be up for taking a look at my regex? I am trying to restrict a field input to something that looks like, .1234 only. A decimal, followed by 4 digits only, any of 0-9
<dudedudeman> this is my regex: /\.\d{4}/
<adaedra> and what is the problem?
<dudedudeman> in rubulator, it shows that this would restrict it as i expected, but in my code it allows for more than 4 digits
Billias has quit [Read error: Connection reset by peer]
<havenwood> dudedudeman: /\A\.\d{4}\z/
iasoon has quit [Ping timeout: 256 seconds]
ascarter has joined #ruby
<adaedra> ^
baweaver has joined #ruby
devans has quit [Remote host closed the connection]
<adaedra> regex can be partial match
<dudedudeman> ah! i didn't even think of that
<adaedra> rubular should have shown the same behavior
allcentury has quit [Ping timeout: 245 seconds]
<dudedudeman> i typed in something like, .312562266 in to rubulator, with the regex that i originally had, and it displayed what i wanted. only the first four were highlighted
blackmesa has joined #ruby
<adaedra> yes
<adaedra> the highlighted part is what matched
banister has joined #ruby
<adaedra> try the same thing with havenwood’s sample, now
allcentury has joined #ruby
<dudedudeman> hmm, nothing matches now
<adaedra> exactly
Billias has joined #ruby
<ytti> my crystal ball says your input contains other data as well
<dudedudeman> wait, we want nothing to match?
maletor has joined #ruby
<ytti> and what you really want is to cherry-pick this specific pattern out
scripore has quit [Quit: This computer has gone to sleep]
<adaedra> what do you want, dudedudeman
<dudedudeman> ytti: go on
<ytti> that's all
<adaedra> to check that your string is exactly .#### ?
<havenwood> dudedudeman: expected input and desired output!
<dudedudeman> yes, precisely
<adaedra> so it’s ok
lolmaus has quit [Ping timeout: 256 seconds]
cocotton has quit [Remote host closed the connection]
<adaedra> .1234 matches, .12345 doesn't
<dudedudeman> i did just throw it in my code and it works like a charm
<adaedra> if rubular highlights something, it means =~ will return true
<adaedra> if it says ”No match”, it means =~ will return false
<dudedudeman> i must have been typing like an idiot in rubulator... because i just tried it again without changing anything and it passes
<adaedra> happens
rajeshchawla has quit []
<dudedudeman> havenwood: expected verses desired?
juanpaucar has joined #ruby
sigurding has quit [Quit: sigurding]
Igorshp has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 240 seconds]
scripore has joined #ruby
yfeldblu_ has joined #ruby
Cloudzy has quit [Ping timeout: 240 seconds]
<riceandbeans> is this valid ruby?
<riceandbeans> raise Exception("Unable to handle object of type <%s>" % obj.class.to_s)
dopiee has joined #ruby
<adaedra> you may want a RuntimeError
<adaedra> Why don’t you just use interpolation?
<riceandbeans> what?
<adaedra> raise Excaption(”Unable to ... of type #{obj.class}”)
<riceandbeans> "Unable to handle object of type <#{obj.class.to_s}>"
<riceandbeans> is that right?
<adaedra> remove the .to_s, interpolation does that automatically
rdark has quit [Quit: leaving]
m8 has quit [Quit: Sto andando via]
jottr_ has joined #ruby
juanpaucar has quit [Ping timeout: 245 seconds]
<dudedudeman> adaedra: to piggy back off of that, interpolation does that with to_s because it inherits from Object class?
<adaedra> dunno
greenbagels has joined #ruby
dopie has quit [Ping timeout: 256 seconds]
<dudedudeman> :(
<dudedudeman> lol
xnr is now known as RealJesusChrist
benegget_ has joined #ruby
Cust0sL1men has joined #ruby
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Pupeno_ is now known as Pupeno
Pupeno has quit [Changing host]
Pupeno has joined #ruby
mengu__ has joined #ruby
decoponio has quit [Quit: Leaving...]
beneggett has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
ghostmoth has joined #ruby
mengu has quit [Ping timeout: 245 seconds]
segfalt has joined #ruby
unreal_ has joined #ruby
nettoweb has quit [Quit: BasicLanguage[1021]]
nettoweb has joined #ruby
unreal has quit [Ping timeout: 252 seconds]
rodfersou has quit [Quit: leaving]
turtil has joined #ruby
Ellis has joined #ruby
freerobby has joined #ruby
piotrj has quit []
<Ellis> i’m trying to understand blocks, in my example i yield to a block but why wouldn’t people just include blocks in their code instead of yielding to it? https://gist.github.com/ellismarte/d8df58b0cf6a57bb663c
Dreamer3 has quit [Quit: Computer has gone to sleep.]
toretore has quit [Quit: Leaving]
<havenwood> Ellis: Why might you not include an argument in the code and instead be passed it by the caller?
<apeiros> Ellis: take e.g. sort
<apeiros> you can sort using different strategies
<apeiros> always using the same method
ldnunes has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 244 seconds]
<Ellis> huh?
<apeiros> if you couldn't pass a block to it, you'd have to write a sort for every different way to sort
codecop has quit [Remote host closed the connection]
<Ellis> ahhh
RealJesusChrist is now known as xnr
<Ellis> so sort yeilds to a block?
<adaedra> if one is passed, yes
baroquebobcat_ has joined #ruby
shoutsid has quit [Remote host closed the connection]
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
beneggett has joined #ruby
dvlwrk has quit [Ping timeout: 255 seconds]
failshell has quit [Remote host closed the connection]
<Ellis> oh shit i just got it!!!
Spleeze has joined #ruby
benegget_ has quit [Read error: Connection reset by peer]
Filete has joined #ruby
<Ellis> thanks havenwood, apeiros, and adaedra
Pupeno_ has joined #ruby
baweaver has quit [Remote host closed the connection]
postmodern has joined #ruby
Cap has joined #ruby
<Cap> hey guys
<Cap> started using ruby this week
<Cap> I have a question
<havenwood> Cap: welcome!
<Cap> is it a pratical language to use for physical simulations?
Pupeno has quit [Disconnected by services]
Pupeno_ is now known as Pupeno
Pupeno has quit [Changing host]
Pupeno has joined #ruby
<Cap> as in, statistical models and such
<pipework> Cap: Not as practical as R.
B1n4r10 has joined #ruby
jottr_ has quit [Ping timeout: 246 seconds]
tonyhb_ has quit [Quit: peace]
QualityAddict has quit []
Cap has quit [Client Quit]
mjuszczak has quit []
SouL_|_ has quit [Remote host closed the connection]
lxsameer has quit [Quit: Leaving]
shoutsid has joined #ruby
aridere_ has joined #ruby
aridere has joined #ruby
acarpe has joined #ruby
ghr has quit [Ping timeout: 246 seconds]
maciejczyzewski has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rafalski has joined #ruby
<Rafalski> hey guys, how can i get 65 out of 65-resource-twenty with regex?
jlast has quit [Remote host closed the connection]
<adaedra> \A(\d+)
djmittens has joined #ruby
<Rafalski> thanks adaedra
<Rafalski> what about getting resource-twenty?
<djmittens> hi guys i was wondering if anyone could explain to me what the new items line doing at the end of this function http://pastebin.com/7WRbKRYB
<ruboto> djmittens, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/5e64e75391d5b9023861
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<adaedra> do you always have something with three tokens separated by dashes, Rafalski ?
<Senjai> Rafalski: www.rubular.com
<Senjai> or see another regex resource
<adaedra> because if that case, just using .split(’-’) may be more efficient
uri has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Rafalski> adaedra: no, could be many.. so anything after the first digits.. 65-(everything after this)
nfk|laptop has quit [Quit: yawn]
<Senjai> adaedra: Make him work for it :P, dont just give him the answer
<Senjai> that doesnt help anyone
superscott[8] has quit [Remote host closed the connection]
<pipework> Rafalski: Why do you care about regex? You just want the first two characters, right?
<pipework> string[0..1]
<pipework> string.take(2)
<Rafalski> pipework: first two, or three, or whatever plus everything after the first -
<Senjai> Rafalski: go to www.rubular.com
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra> Rafalski: look at String#split, it’s what you want
<pipework> Rafalski: I don't understand. You want to split?
<Senjai> split is not what he wants
<Rafalski> pipework: yes i want to split that string into two variables
<Senjai> everything doesnt mean everything until the next -
<adaedra> Senjai: it is
doodlehaus has quit [Remote host closed the connection]
<Senjai> adaedra: Splitting "65-resource-twenty" gives you three strings
Pupeno_ has joined #ruby
<Senjai> not two
<adaedra> >> %(65-resource-twenty).split(%(-), 2)
<ruboto> adaedra # => ["65", "resource-twenty"] (https://eval.in/317974)
<Senjai> I guess you could do that
<adaedra> Senjai: split has two arguments, you know?
<Senjai> I didn't
<adaedra> :)
<Senjai> Still, should point teach him how to use regex's, not just provide them on demand
<Senjai> Even though this can be solved without regex's
<pipework> adaedra: well done.
<Senjai> Otherwise we're going to get all sorts of people demanding solutions without trying to learn.
<adaedra> And I prefer to show a working example and explain if not clear or let him search by himself if he prefers
aridere has quit [Quit: Leaving]
aridere_ has quit [Quit: Leaving]
<adaedra> I don’t think the #split example is /too/ complex
<Senjai> No, its not
<djmittens> i want to learn! thats why i was asking for explanation ....
vudew has joined #ruby
Pupeno has quit [Ping timeout: 245 seconds]
<pipework> adaedra: My solution was a bit complicated and I didn't think about the second argument at all to split. :D
<Rafalski> adaedra: thanks didn’t know you could do that :)
<adaedra> pipework: your solution was ok for this sample, so I guess it’s ok :)
<adaedra> Rafalski: yw
<pipework> I was getting the index of the first dash and then just getting [0..(index - 1)] and then [(index + 1)..-1] for the rest.
nfk|laptop has joined #ruby
<adaedra> djmittens: i’ll take a look
MasterPiece has joined #ruby
<adaedra> pipework: and it would have worked
wallerdev has joined #ruby
<pipework> adaedra: But not have been as pretty!
Pupeno_ is now known as Pupeno
Pupeno has quit [Changing host]
Pupeno has joined #ruby
Hijiri has joined #ruby
RegulationD has joined #ruby
<adaedra> pipework: you know, first time I tried Ruby, I recoded String#* because I didn’t know it existed.
<adaedra> everyone learns.
badhatter has quit [Ping timeout: 265 seconds]
<pipework> Sometimes I just forget to peruse docs a bit more and I just solve it with the tools I have. I've read about the limit option before, it just didn't occur to me to use it. :s
paulcsmith has quit [Quit: Be back later ...]
Brozo has joined #ruby
<adaedra> It’s not always easy, if you don’t know what to look for
kirun has quit [Remote host closed the connection]
AlphaAtom has quit [Ping timeout: 246 seconds]
<adaedra> Senjai: anyway, regexes are a complex domain not only tied to ruby, I prefer not trying to expand too much on it in there.
jerius has quit [Quit: /quit]
dvlwrk has joined #ruby
<pipework> Plus, regex engines aren't always known to be the fastest things.
<Senjai> adaedra: Thats fine, I just prefer telling them the medium of solving a problem, and have them ask additional questions as required
<adaedra> Yeah, I usually do that, but not for regexes
<adaedra> Let’s do it then
<adaedra> djmittens: you know what new does, right?
<pipework> Ruby has had a poor history with regular expression engines.
JDiPierro has quit [Remote host closed the connection]
lidenskap has quit [Remote host closed the connection]
<Senjai> pipework: Its pretty decent now I think.
<Senjai> I mean, for ruby
Ellis has quit [Quit: Ellis]
<pipework> djmittens: new is the class method .new, like for that class your code is in.
Guest58359 has quit [Remote host closed the connection]
<pipework> Senjai: I don't think it supports everything modern regex engines do.
Pupeno_ has joined #ruby
Pupeno has quit [Read error: Connection reset by peer]
RegulationD has quit [Ping timeout: 244 seconds]
<Senjai> pipework: Possibly, I dont ever have to do serious serious regex's
<Senjai> And I avoid them at all cost
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Senjai> Everytime someone tries to use them with html.. UGH
<djmittens> pipework: ah gotcha so its literally calling the new method on the class
<adaedra> ahah
<djmittens> i feel dumb now lol
<pipework> djmittens: Yup. :D
<adaedra> djmittens: don’t.
<djmittens> trying to get used to the syntax
Pupeno_ is now known as Pupeno
<adaedra> It took me some time, too.
Pupeno has quit [Changing host]
Pupeno has joined #ruby
mitchellhenke has quit [Quit: Computer has gone to sleep.]
<pipework> I wish it was more normal for people to write parsers for things.
pdoherty has joined #ruby
<dudedudeman> oh... i shouldn't throw in a regex with my html form? :(
beneggett has joined #ruby
m3t4l1c_s0ul has quit [Ping timeout: 245 seconds]
<adaedra> no, what you’re saying, is that you can’t use regex to parse HTML
<adaedra> Your form data is OK
<dudedudeman> ah, so a regex to say, hey, you didn't input the required value
<adaedra> Depends on what you want to check
<dudedudeman> verses, a regex to go, hey go look over all this html code and ignore all of the H1s
ebbflowgo has left #ruby [#ruby]
balazs_ has joined #ruby
lidenskap has joined #ruby
toretore has joined #ruby
<adaedra> A postal code is OK to check though regex
bim has joined #ruby
<adaedra> Parsing HTML is not, because HTML is complex
bim is now known as Guest46562
<adaedra> There are some use cases, but it’s simple to put a big NO
<adaedra> And use Nokogiri for this kind of things
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dudedudeman> word word
<dudedudeman> that makes sense
rrichardsr3 has quit [Ping timeout: 250 seconds]
<dudedudeman> and that means that all the work i've done in the last couple hours isn't wasted lol
gfawcettpq has joined #ruby
ItSANgo__ has joined #ruby
freerobby has quit [Quit: Leaving.]
djbkd has quit [Remote host closed the connection]
<adaedra> ahah
dopiee has quit [Quit: This computer has gone to sleep]
<Senjai> pipework: Parsing is both hard, and extremely boring
ItSANg___ has quit [Ping timeout: 256 seconds]
<Senjai> pipework: Two things 90% of people typically choose to avoid
beneggett has quit [Client Quit]
djbkd has joined #ruby
<pipework> Senjai: Well, if you have something complex to parse, sure. But SMTP isn't hard, it depends on what you're doing.
<adaedra> They prefer something hardly boring, you see.
<wallerdev> is SMTP really that easy to parse?
asmodlol has quit [Ping timeout: 250 seconds]
<wallerdev> i thought email was one of the worst protocols for parsing and everyone breaks rules with it
<Senjai> wallerdev: it is
<adaedra> I’m not even sure I’d use regex to parse SMTP...
<Senjai> I have a friend that works on groupserver or whatever
<Senjai> and the encodings of things are INSANE
Guest46562 has quit [Ping timeout: 256 seconds]
f3lp has quit [Quit: Leaving]
<pipework> racc and ragel are cool.
B1n4r10 has quit [Quit: Textual IRC Client: www.textualapp.com]
<toretore> parsing smtp doesn't mean parsing emails though
<pipework> You don't have to, no.
mary5030 has quit [Remote host closed the connection]
<pipework> Without a lot of experience, my exposure has been that the parser is as hard as the problem, but no more so.
<Senjai> toretore: Right, but you probably still have to deal with encoding
sevvie has joined #ruby
<toretore> the smtp protocol could be easily parsed even if the content being sent isn't
<Senjai> pipework: Eh, text processing on its own is hard, without a problem at all, for some people.
blazes816 has joined #ruby
<Senjai> I'm terrible at it, I also have no interest in it
<Senjai> so
<adaedra> That’s ’90 technology...
<pipework> Well, an SMTP message includes the body, but it's easy to detect depending on whether there are any boundaries.
jottr_ has joined #ruby
<pipework> Senjai: I've had to implement really fast message parsing stuff before. It's not a hobby for me, but it was entirely doable.
<toretore> (i don't actually know much about smtp though tbh)
tcrypt has quit [Ping timeout: 240 seconds]
<pipework> toretore: It's a plaintext protocol. Simple as can be.
Brozo has quit [Remote host closed the connection]
<adaedra> EHLO
dopiee has joined #ruby
Brozo has joined #ruby
<toretore> yeah, i've had tangential experience with it
<Senjai> pipework: Ive never had to learn it, so I'm not too familiar with it. Once I have to use it, I'll be a pro with the rest of yall, but no sooner
<pipework> Senjai: What was itneresting about groupserver/
<Senjai> pipework: Just pointing out the project a friend is working on. You could take a look at all the cases for email encoding
Hijiri has quit [Quit: WeeChat 1.0.1]
<Senjai> if you were interested
Rickmasta has joined #ruby
Rafalski has quit [Quit: Rafalski]
jordanm has quit [Remote host closed the connection]
<pipework> Yeah, luckily, as the sender, I only had to handle a couple encodings, but boundaries make it really easy when you're the sender.
gregf has quit [Quit: WeeChat 1.0.1]
blazes816 is now known as tcrypt
<pipework> But any well-formed smtp message declares the encodings.
FernandoBasso has joined #ruby
Cloudzy has joined #ruby
baweaver has joined #ruby
<Senjai> Yeah, but the problem is: A lot of clients are bad about following standards
vim_shimm has quit [Ping timeout: 256 seconds]
<Senjai> Some ignore them completely
metalic has joined #ruby
<Senjai> There was some sort of Apple email client that was used pretty widespread
<Senjai> that just said fuck you to the standards
<Senjai> and people just had to "deal" with it
balazs_ has quit [Remote host closed the connection]
<pipework> Yeah, fortunately I only had to worry about matching spec, not dealing with shit people (apple, microsoft)
mrmargolis has quit [Remote host closed the connection]
jheg has joined #ruby
<pipework> We had technical customers though, so that kind of 'fuck you' was acceptable.
jheg has quit [Client Quit]
odin23 has quit [Read error: Connection reset by peer]
AxonetBE has quit [Quit: AxonetBE]
<Eiam_> Senjai: lol..
Ellis has joined #ruby
<Eiam_> Senjai: see also "Google's 'fuck you' to IMAP"
<Eiam_> in fact, most mail servers "fuck you" to IMAP standards. #1 reason people ignore standards? because those standards aren't meeting their needs.
dfinninger has quit [Remote host closed the connection]
<Eiam_> either real or imagined needs.
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Pupeno_ has joined #ruby
Pupeno has quit [Ping timeout: 272 seconds]
metalic has quit [Quit: Leaving]
<Senjai> Eiam_: Yeah, Im just glad I dont have to deal with it
<Eiam_> open gl. opengl es, metal, direct x 12, GLNext
<Eiam_> on and on we go.
<Senjai> I would charge major moneys to have to touch any of that shit
djbkd has quit [Read error: Connection reset by peer]
<Eiam_> Senjai: I suggest staying away from Time & timezones then too ;) and dates!
djbkd has joined #ruby
<Senjai> Yep, fuck all of it
<Senjai> Dates arent bad
<Senjai> actually
<Eiam_> ethnically correct colored emjoi..
<Eiam_> on and on we go. =)
superscott[8] has joined #ruby
dudedudeman has quit [Quit: Leaving.]
sibchcoder has quit [Remote host closed the connection]
<pipework> Dates are good for you.
Brozo has quit [Quit: Leaving...]
Naypalm has left #ruby ["WeeChat 1.1.1"]
Brozo has joined #ruby
<sweeper> keep you regular
Brozo has quit [Client Quit]
Brozo has joined #ruby
x1337807x has joined #ruby
pdoherty has quit [Quit: Leaving]
DavidDudson has joined #ruby
gaboesquivel has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shellfu has quit [Ping timeout: 250 seconds]
scripore has quit [Quit: This computer has gone to sleep]
zorak8 has joined #ruby
yqt has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
Guest39872 has quit [Ping timeout: 264 seconds]
barkerd427 is now known as zz_barkerd427
dopiee has quit [Quit: This computer has gone to sleep]
Mohan has joined #ruby
Mohan is now known as Guest39938
jlast has joined #ruby
diegoviola has quit [Changing host]
diegoviola has joined #ruby
dudedudeman has joined #ruby
badhatter has joined #ruby
badhatter has joined #ruby
plribeiro3000 has quit [Ping timeout: 256 seconds]
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
riotjones has joined #ruby
jeffreylevesque has joined #ruby
riotjone_ has quit [Ping timeout: 264 seconds]
centrx has joined #ruby
<Radar> How do I find out what require would require if I ran require 'action_dispatch'? How do I find that location exactly?
Igorshp has joined #ruby
<pipework> Radar: Um, I think you'd want to look at $LOADED_FEATURES before and after, maybe.
workmad3 has joined #ruby
<Senjai> Its a member of action pack
<Radar> Senjai: I know where it is, but I want to explain to other people how to find it.
<Senjai> Oh
plribeiro3000 has joined #ruby
<centrx> Radar, The rubygems logic for require is actually a Ruby function that calls the native require
<Senjai> Radar: Given that action pack is a gem, and action_dispatch is defined in that gem, I would expect it to be in GEM_ROOT/lib/action_dispatch.rb
<pipework> s/function/method/
platzhirsch has left #ruby [#ruby]
<centrx> s/pipework/pipedouche
<pipework> I think my way is one of the only ones proposed that doesn't make an assumption about how things are laid out or what the LOAD_PATH will load.
<Senjai> The only hard part is knowing action_dispatch is part of action_patch
<pipework> centrx: s/work/douche/ thx
tmoor has joined #ruby
<Senjai> pipework: I am of course talking about conventions :P
<Radar> Still not quite the answer I'm looking for.
dvlwrk has quit [Quit: Leaving]
dvlwrk has joined #ruby
<Senjai> Radar: when I require 'gemname', gemname.rb should be in GEM_ROOT/lib/gemname.rb
<pipework> >> old_features = $LOADED_FEATURES.dup; require 'json'; $LOADED_FEATURES - old_features
<ruboto> pipework # => ["/execpad/interpreters/ruby-2.2.0/lib/ruby/2.2.0/rubygems/dependency.rb", "/execpad/interpreters/ru ...check link for more (https://eval.in/317987)
<Senjai> Are you looking for a programmatic way of doing it?
<Radar> Senjai: Way off path.
<Radar> Senjai: Yes, a programmatic way.
<Radar> $:.detect { |p| Dir[p + "**/*"].detect { |p2| p2.include?("action_dispatch.rb") } }
<Radar> That's the best I can come up with.
<Senjai> Radar: I would start with $LOAD_PATH probably.
<pipework> My suggestion isn't reasonable?
<Radar> pipework: I would rather do it without requiring it.
workmad3 has quit [Ping timeout: 255 seconds]
riskish has joined #ruby
<pipework> Radar: Ah darn. Cause there's some wonky shit you can do that you'd have a hell of a time reasonably detecting.
<Radar> Such as?
<Senjai> Radar: [14] pry(main)> $LOAD_PATH.detect { |path| Dir[path + "**/*"].detect {|subpath| subpath.include?("action_dispatch.rb") } }
<Senjai> => "/home/richard/projects/sticker-mule/vendor/bundle/ruby/2.1.0/gems/actionpack-3.2.21/lib"
<pipework> Like what I did above with a gem that ships with ruby.
<Radar> Senjai: that's exactly as I came up with :)
<Senjai> Oh
<Senjai> One of dem magic globals
<Senjai> :/
<Senjai> sorry
<Senjai> Thats probably the best way of doing it.
<pipework> $: is $LOAD_PATH btw.
<Senjai> I didnt know :/
<pipework> If your constraint is to not actually load anything, maybe $: is fine. If it's acceptable to you, I don't care.
beneggett has joined #ruby
<Senjai> If you know that the file will be in this directory, you could just use find
davedev2_ has quit [Ping timeout: 256 seconds]
<Radar> Assume that I don't know the directory yet.
<Senjai> But that assumes you do something like, bundle install --path vendor
Aswebb_ has quit [Remote host closed the connection]
<Senjai> You could also shell out by passing in the load paths. do it in ruby like we already have.
<Senjai> Or just do a find on /
<Senjai> if you really really wanted
<Senjai> Radar: Have you looked at $GEM_HOME ?
Aswebb_ has joined #ruby
<Senjai> Sorry
<Senjai> ENV['GEM_HOME']
Igorshp has quit [Remote host closed the connection]
Ellis has quit [Quit: Ellis]
diegoviola has quit [Quit: WeeChat 1.1.1]
Cloudzy has quit [Ping timeout: 272 seconds]
<Senjai> Dir[ENV['GEM_HOME'] + "/**/*"].detect {|subpath| subpath.include?("action_dispatch.rb")}
Ellis has joined #ruby
davedev24_ has joined #ruby
<pipework> What about things that aren't a gem but are in the load path?
<Senjai> Then you use $LOAD_PATH... iuno man
<Senjai> Its all about the context
davedev24_ has quit [Read error: Connection reset by peer]
shellfu has joined #ruby
robbyoconnor has joined #ruby
davedev24_ has joined #ruby
shellfu is now known as shellfu_afk
<pipework> >> old_features = $LOADED_FEATURES.dup.reverse; require 'json'; ($LOADED_FEATURES.reverse - old_features).first
vim_shimm has joined #ruby
<ruboto> pipework # => "/execpad/interpreters/ruby-2.2.0/lib/ruby/2.2.0/json.rb" (https://eval.in/317989)
<pipework> Radar: ^
Aswebb_ has quit [Ping timeout: 250 seconds]
<pipework> I know, requires being required.
<pipework> Ruby is dynamagical, subshell or whatever.
<weaksauce> what's the preferred way of managing requires? require_relative or mucking with the load path and doing a normal require?
sevvie has quit [Ping timeout: 248 seconds]
<weaksauce> is there any practical difference?
Ellis has quit [Client Quit]
sevvie has joined #ruby
<Radar> Depends on the context.
<pipework> weaksauce: Not mucking with $: and doing requires, for non-development
<Senjai> Never use require_relative :P, just don't. You'll save yourself tons of headache down the line.
<pipework> In development, I just muck with $: to add my project to the head of $: with unshift
davedev24_ has quit [Read error: Connection reset by peer]
<Senjai> For gem development, I run the gem including the lib directory in the load path
Pupeno_ is now known as Pupeno
Pupeno has quit [Changing host]
Pupeno has joined #ruby
<Senjai> when you use the gem in other projects, the load path is automatically added
davedev24_ has joined #ruby
<pipework> When I run tests though, I tend to just use -I with `ruby`, passing in lib/
<Senjai> ^
<pipework> minitest makes me a better person.
<weaksauce> pipework can you explain a little more on the first statment?
<weaksauce> statement*
<pipework> weaksauce: Which is that?
<pipework> The one about not mucking with $:?
<Senjai> You generally dont need to do it in code
<weaksauce> > doing requires, for non-development
<weaksauce> require relative or just a plain require or?
<pipework> weaksauce: Oh, yeah so basically I use plain require. I never use require_relative.
<Senjai> never use require_relative
<pipework> I might while hacking out a script.
<pipework> But then I usually switch to require with a relative path.
<pipework> Rather than require_relative
MasterPiece has quit [Quit: Leaving]
robbyoconnor has quit [Ping timeout: 256 seconds]
<weaksauce> ah. curious that require_relative is even a thing then if you can use relative paths.
<weaksauce> what's the point of it?
icebourg has quit []
<pipework> It was added in 1.9 because, iirc, require didn't support the relative path stuff.
<weaksauce> Senjai can you explain why require relative causes headaches?
<pipework> You might consider it if you don't want to use the load_path at all.
Stalkr_ has quit [Quit: Leaving...]
<pipework> Like if you have a file called 'activerecord.rb' in your project.
juanpaucar has joined #ruby
Aswebb_ has joined #ruby
robbyoconnor has joined #ruby
<Brozo> what's wrong with require_relative?
<weaksauce> if you used a relative path like require './lib/activerecord.rb' would it still locate the one for rails?
<pipework> It's a bitch if you move files? :D
scripore has joined #ruby
<pipework> weaksauce: Well, require_relative would prevent any kind of $: lookup, for whatever reason.
acarpe has quit [Quit: acarpe]
doodlehaus has joined #ruby
a346 has quit [Quit: a346]
<bricker> Brozo: activerecord.rb won't be in the same place on every platform.
Sembei has quit [Excess Flood]
maciejczyzewski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Brozo> so require_relative is bad in this context, but useful in other places, correct?
<weaksauce> the context of my original question is not for gems it's for your own code that may or may not be in gems
<weaksauce> and not in a rails project
<pipework> Brozo: In few places, sure.
juanpaucar has quit [Ping timeout: 272 seconds]
<pipework> Basically it comes down to one question, "Should this ever look in the $LOAD_PATH?"
Sembei has joined #ruby
djmittens has quit [Ping timeout: 252 seconds]
<pipework> If it shouldn't under any circumstances, then by all means use it.
<weaksauce> that makes it pretty clear, thanks
workmad3 has joined #ruby
Deele has quit [Ping timeout: 256 seconds]
acarpe has joined #ruby
<jeffreylevesque> anyone know how to install puppet in vagrant?
<jeffreylevesque> or is there a more concise, elegant way?
<pipework> I'd suggest looking for a vagrant box that ships with puppet.
bricker has quit [Quit: leaving]
griffindy has joined #ruby
acarpe has quit [Client Quit]
doodlehaus has quit [Remote host closed the connection]
davedev24_ has quit [Ping timeout: 246 seconds]
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
jlast has quit [Remote host closed the connection]
ascarter has quit [Ping timeout: 256 seconds]
bezhermoso has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
startupality has quit [Quit: startupality]
predator217 has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mistermocha has quit [Read error: Connection reset by peer]
thatslifeson has quit [Remote host closed the connection]
Aswebb_ has quit [Remote host closed the connection]
mistermocha has joined #ruby
geggam has quit [Ping timeout: 245 seconds]
<bezhermoso> Anyone who has experience using Rspec, Capybara, and Saucelabs? Having trouble integrating them together.. I'm getting this error: "[DEPRECATED] Using the #page method is deprecated for RSpec tests without Capybara. Please use the #s or #selenium method instead.". I *am* using Capybara, and including it via RSpec.configure block. What am I missing?
a5i has joined #ruby
nfk|laptop has quit [Remote host closed the connection]
davedev24_ has joined #ruby
GaryOak_ has quit [Remote host closed the connection]
predator117 has quit [Ping timeout: 272 seconds]
nfk|laptop has joined #ruby
bricker has joined #ruby
<wallerdev> do you have the latest version of each
baweaver has quit [Remote host closed the connection]
mistermo_ has joined #ruby
mistermo_ has quit [Read error: Connection reset by peer]
failshell has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
mistermocha has joined #ruby
jerematic has quit [Ping timeout: 256 seconds]
Ellis has joined #ruby
thumpba_ has quit [Ping timeout: 245 seconds]
zachrab has quit [Ping timeout: 256 seconds]
egw has joined #ruby
danman has joined #ruby
nfk|laptop has quit [Remote host closed the connection]
mistermocha has quit [Ping timeout: 245 seconds]
Zai00 has joined #ruby
rodfersou has joined #ruby
DavidDudson has joined #ruby
DavidDud_ has joined #ruby
DavidDud_ has quit [Max SendQ exceeded]
baweaver has joined #ruby
DavidDud_ has joined #ruby
DavidDudson has quit [Ping timeout: 240 seconds]
DavidDud_ has quit [Max SendQ exceeded]
DavidDudson has joined #ruby
baroquebobcat_ has quit [Quit: baroquebobcat_]
jimms has joined #ruby
plribeiro3000 has quit [Quit: Leaving.]
Pupeno has quit [Ping timeout: 244 seconds]
DavidDudson has quit [Max SendQ exceeded]
jottr_ has quit [Ping timeout: 245 seconds]
<bezhermoso> wallerdev: That was it >_< Thanks!
RegulationD has joined #ruby
DavidDudson has joined #ruby
Ellis has quit [Quit: Ellis]
<wallerdev> np
Juanchito has quit [Quit: Connection closed for inactivity]
DavidDudson has quit [Max SendQ exceeded]
davedev24_ has quit [Read error: Connection reset by peer]
jeffreylevesque has quit [Remote host closed the connection]
x1337807x has joined #ruby
davedev24_ has joined #ruby
DavidDudson has joined #ruby
shoutsid has quit [Remote host closed the connection]
jmosco has quit [Read error: Connection reset by peer]
Ellis has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
FernandoBasso has quit [Quit: leaving]
superscott[8] has quit []
zachrab has joined #ruby
hiyosi has joined #ruby
giuseppesolinas has joined #ruby
zachrab has quit [Remote host closed the connection]
sevvie has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 246 seconds]
RegulationD has quit [Ping timeout: 265 seconds]
sevvie has joined #ruby
_lovehan1le_ has joined #ruby
kaleido has quit [Quit: Textual IRC Client: www.textualapp.com]
zachrab has joined #ruby
DavidDudson has quit [Client Quit]
DavidDudson has joined #ruby
DEA7TH has joined #ruby
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
davedev2_ has joined #ruby
zachrab has quit [Ping timeout: 246 seconds]
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
robbyoconnor has quit [Quit: Konversation terminated!]
thatslifeson has joined #ruby
zz_barkerd427 is now known as barkerd427
fgo has joined #ruby
<havenwood> Radar: certainly doesn't meet the 'no requires' requirement, but just for fun: https://gist.github.com/havenwood/3db3a8eefacfa8df68d4
<Radar> hax
<Radar> TIL that ActiveSupport overrides require too
_lovehan2le_ has joined #ruby
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
jimms has quit [Remote host closed the connection]
duderonomy has quit [Ping timeout: 276 seconds]
_lovehan1le_ has left #ruby [#ruby]
mengu__ has quit [Remote host closed the connection]
_lovehan2le_ has quit [Client Quit]
_lovehandle_ has joined #ruby
fgo has quit [Ping timeout: 256 seconds]
<Eiam_> Learned Paifully years ago -> Rails things fuck over my ruby things
davedev24_ has joined #ruby
Dreamer3 has joined #ruby
davedev2_ has quit [Ping timeout: 264 seconds]
MatthewsFace has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
DavidDudson has joined #ruby
zorak8 has quit [Quit: Leaving]
DavidDudson has quit [Client Quit]
Ellis has quit [Quit: Ellis]
doodlehaus has joined #ruby
arescorpio has joined #ruby
jobewan has quit [Quit: Leaving]
sevenseacat has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nettoweb has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
<pipework> havenwood: that doesn't show where on disk the file came form though, but maybe I misread his question.
bezhermoso has quit [Ping timeout: 246 seconds]
<havenwood> pipework: yeah, i'd have done what you did. just thought it was fancy. ;)
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
marr has quit [Read error: Connection reset by peer]
scripore has joined #ruby
_lovehandle_ has quit [Quit: leaving]
Eiam_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
juanpablo__ has quit [Quit: (null)]
willharrison has joined #ruby
nettoweb has quit [Ping timeout: 264 seconds]
Ellis has joined #ruby
_lovehandle_ has joined #ruby
<havenwood> pipework: i couldn't remember $LOADED_FEATURES though so i had $". i like the long form just couldn't remember quite what it was and of course could only find the cryptic one.
giuseppesolinas has quit [Quit: Leaving]
<pipework> havenwood: I did the same thing earlier with String#split.
<pipework> Forgot the limit second arg.
<pipework> I know about it, just didn't think about it.
djmittens has joined #ruby
<pipework> So it was me finding the index of the first instance of - and then using [] with ranges to get everything before that dash and then everything after that dash, not including that dash.
P1RATEZ has joined #ruby