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/ruby/
lrcezimbra has quit [Client Quit]
ismaelga has quit [Ping timeout: 246 seconds]
MatthewsFace has joined #ruby
juanpaucar has quit [Ping timeout: 272 seconds]
wolfleemeta has quit [Ping timeout: 252 seconds]
C1V0 has joined #ruby
wolfleemeta has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
gregf has quit [Remote host closed the connection]
<Aeyrix> jhass: What plugin syntax?
<Aeyrix> Do you have any form of dox?
<shevy> hmm how to best check for "if this target date is within the next coming +10 days"
<jhass> Aeyrix: currently it's a cinch bot
<Aeyrix> shevy: Convert to unix time
<Aeyrix> I mean I'm sure there's probably some syntactical sugar around it, but
<jhass> shevy: (Date.today..Date.today+10).cover? x
<Aeyrix> ...
<Aeyrix> wow
<Aeyrix> Okay yeah completely disregard me.
marr has quit [Ping timeout: 256 seconds]
<shevy> hmm .cover? is a special method somewhere?
<Aeyrix> ActiveSupport, probably.
<jhass> no, Range
<Aeyrix> o
freerobby has quit [Quit: Leaving.]
gregf has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
growlove has joined #ruby
<Aeyrix> jhass: Three join/leaves = ban or?
<jhass> it's essentially x >= range.start && x <= range.end
<jhass> nah
<Aeyrix> How many?
sevenseacat has joined #ruby
<Aeyrix> x in y seconds, i guess.
<Aeyrix> 3 in 120
<jhass> I'd say about 5-10 in 5-10 minutes, depending on how it feels
<jhass> also what kind, MaxSendQ get earlier
<Aeyrix> variable hell here we come.
<jhass> it's a "looks bad"/"somebody is annoyed by it" thing for me really
<jhass> no strict rules
doc|work has quit [Ping timeout: 272 seconds]
charliesome has joined #ruby
superscott[8] has quit []
mikecmpbll has quit [Quit: i've nodded off.]
mikecmpbll has joined #ruby
<Aeyrix> jhass: Yeah I get ya.
wildroman2 has joined #ruby
<Aeyrix> Also is cinch uh
<Aeyrix> can it dynamically reload plugins?
CloCkWeRX has quit [Ping timeout: 250 seconds]
lovecraft has joined #ruby
<Aeyrix> I've been trying to find functionality for that in Ruby for like a year now.
<Aeyrix> It's so easy in Python, but Ruby has a small cow every time you try.
<jhass> nope
lovecraft is now known as Guest38312
<zenspider> just warnings... which you can squelch
charliesome has quit [Read error: Connection reset by peer]
<jhass> I wrote https://github.com/jhass/DeBot/blob/ruby/lib/plugin_manager.rb a long time ago, never worked really well
<Aeyrix> zenspider: ?
<Aeyrix> jhass: Yeah it seems to be real difficult.
<Aeyrix> I can understand why - the functionality just kind of isn't there, but I really wish it was.
<jhass> Aeyrix: http://rkh.im/code-reloading good read
<zenspider> load "blah.rb"; load "blah.rb" will warn about redefined methods and the like... but you can shut that up by turning off $-w and/or redirecting $stderr temporarily
<zenspider> see Minitest::Assertions#capture_io for an example
<vikaton> >> ["KALA","POP","BLERP"],map &:capitalize
<ruboto> vikaton # => /tmp/execpad-0a92ea4e4fde/source-0a92ea4e4fde:2: syntax error, unexpected ',', expecting keyword_end ...check link for more (https://eval.in/367434)
<vikaton> >> ["KALA","POP","BLERP"].map &:capitalize
<ruboto> vikaton # => ["Kala", "Pop", "Blerp"] (https://eval.in/367435)
<vikaton> why is that so e-z !
<sevenseacat> because Ruby.
tjbiddle has quit [Quit: tjbiddle]
<zenspider> easy until the last name starts with "mc"
<Aeyrix> zenspider: Yeah but will that work in the way I'm thinking?
<zenspider> or... any other number of human oddities.
<Aeyrix> Like, plugins for IRC bots?
tcrypt has joined #ruby
DerisiveLogic has quit [Ping timeout: 240 seconds]
<Aeyrix> If you instantiate the classes, and then reload and re-instantiate, will that work?
tcrypt has quit [Remote host closed the connection]
<vikaton> dont ya think C++ programmers would think thats fai?
<zenspider> reload. you shouldn't have to reinstantiate because it still has the same class
<vikaton> fair*
<zenspider> just with new methods
<Aeyrix> zenspider: ... wow
<Aeyrix> And it's taken me this damn long.
<Aeyrix> Thank you. :)
<Aeyrix> I'll save this for later.
<Aeyrix> I had to put a project on hold due to this. <_<
<zenspider> it's also just noise. you can always start the bot with 2> /dev/null
<jhass> Aeyrix: they are some more cavehats, read the article I linked, it's good
<Aeyrix> That feels like a hack though.
<zenspider> that might shut up legit problems tho
<Aeyrix> jhass: rkh.im?
<zenspider> tho, that's what tests are for
<jhass> yeah
<Aeyrix> >cavehats
<Aeyrix> What like mining lights or? ;)
<Aeyrix> zenspider: 2>&1 > /dev/null
<Aeyrix> Everyone's favourite silencer.
<Aeyrix> But it makes me so upset. ;-;
<zenspider> I have an alias `stfu`
<zenspider> stfu () {eval $* 2> /dev/null}
<Aeyrix> I genuinely have trouble getting into the testing habit,.
<zenspider> how sad
<Aeyrix> wow rude
<Aeyrix> jhass: this person is being rude
<Aeyrix> not conducive to conversation
wallerdev has quit [Quit: wallerdev]
<jhass> stop trolling
droidburgundy has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<zenspider> rude? fine. we're done.
droidburgundy has joined #ruby
baweaver has quit [Remote host closed the connection]
f3lp has quit [Ping timeout: 276 seconds]
<Aeyrix> But seriously though, idk why I can't get into the whole TDD jam.
<Aeyrix> Probably because I read DHH's essay on it.
<Aeyrix> IIRC he likened it to abstinence-only sex education.
reinaldob has joined #ruby
<bootstrappm> send link if you have it, i'm curious
malcolmva has quit [Ping timeout: 246 seconds]
<bootstrappm> i've never been good w/ consistently writing tests either, usually starts happening when too many preventable bugs are popping up on my team
charliesome has joined #ruby
<Aeyrix> zenspider: Have you read that? ^
<Aeyrix> Also jhass
<zenspider> bootstrappm: that's certainly a good time to start if you haven't already... add a test per regression so they can't come back
<Aeyrix> this is an IRC channel about an open source programming language
<Aeyrix> not about the Dow Jones
<Aeyrix> jokes are okay.
x1337807x has quit [Ping timeout: 246 seconds]
<bootstrappm> you speak truth zenspider
<zenspider> bootstrappm: but I find that my designs are stronger if I start with tests and figure out from there how I want the code to work
creakybones has quit [Remote host closed the connection]
thatslifeson has joined #ruby
<Aeyrix> zenspider: What do you use for projects not involving Rails?
ortuna has joined #ruby
<zenspider> not just more testable, but more solid in general, because I've isolated each piece and worked on the edge cases until the thing is done.
aspiers has quit [Ping timeout: 256 seconds]
rodfersou has joined #ruby
Joufflu has quit [Read error: Connection reset by peer]
<al2o3-cr> Aeyrix: bots ;p
<zenspider> al2o3... thermite?
mikecmpbll has quit [Quit: i've nodded off.]
GriffinHeart has joined #ruby
<al2o3-cr> ?
oo_ has joined #ruby
<Aeyrix> I think zs has ignored me or something for making a joke about general channel saltiness.
<Aeyrix> #rip
wildroman2 has quit [Remote host closed the connection]
<zenspider> ah. no. end of thermite: Fe2O3 + 2 Al → 2 Fe + Al2O3
<bootstrappm> <3 chemistry
<zenspider> I knew I recognized it, somewhat...
<bootstrappm> i miss hard sciences
mikecmpbll has joined #ruby
Guest38312 has quit [Quit: Leaving]
<zenspider> ok. study group for reasoned schemer... yay for computing backwards
shakes has joined #ruby
maletor has joined #ruby
Rollabunna has joined #ruby
<bootstrappm> lost me on that last comment zs
turtil has quit [Ping timeout: 246 seconds]
<Aeyrix> Yeah same.
Ropeney has quit [Max SendQ exceeded]
<zenspider> book called "reasoned schemer"... implementing a logic programming system on top of scheme. (depending on how you code in it) it allows you to give an answer, and it'll spit out the questions
<Aeyrix> Wait what
oo_ has quit [Ping timeout: 250 seconds]
shuber_ has joined #ruby
<Aeyrix> So like a programming language version of Jeapordy?
bayed has quit [Quit: Connection closed for inactivity]
<sevenseacat> i like jeopardy.
<Aeyrix> It's pretty good sometimes.
<Aeyrix> Can we get it on Foxtel?
<sevenseacat> yes. on arena.
<Aeyrix> I don't actually have a TV that I use for TV.
<shevy> youtube!
<sevenseacat> its on at like 7pm EST every day.
ortuna has quit [Quit: WeeChat 1.1.1]
<Aeyrix> shevy: Can't youtube.
<Aeyrix> I'm currently without Internet.
<Aeyrix> (At home)
oo_ has joined #ruby
<Verelia> How can I really understand blocks in Ruby, it seems a bit weird to me coming from another language.
jerius has quit [Quit: /quit]
Rollabunna has quit [Ping timeout: 258 seconds]
<eam> Verelia: what other language?
mistermocha has quit [Ping timeout: 255 seconds]
<shevy> Verelia think of them as (optional) extra arguments passed to the specific method at hand; they help run stuff automatically too, such as the block form of File.open {} <-- will close the file handle for you
<zenspider> Verelia: any language with a lambda?
<zenspider> (ie anonymous functions)
<Verelia> A C guru..no lambdas :/
shuber_ has quit [Ping timeout: 265 seconds]
<zenspider> well... you can think of it (sorta) like passing a function pointer to another function. that 2nd function can yield (dereference and call) data to the FP
freerobby has joined #ruby
robustus has quit [Ping timeout: 264 seconds]
<Aeyrix> It's a nice article explaining blocks and lambdas.
malcolmva has joined #ruby
<Aeyrix> Old, but the fundamental concepts haven't changed.
<Aeyrix> Unless someone can chime in and tell me I'm a moron, before you waste your time.
<zenspider> Verelia: the main difference is that an FP is _just_ an FP. a block has a closure attached to it as well. a closure is a copy of the variable scopes at the time the block was created that travels around with it.
<Verelia> For example, array.collect! do |n| I mean where did that n come from?
veduardo has joined #ruby
<al2o3-cr> Verelia: than n is each element in the array
<shevy> you gave it a name there
<Aeyrix> Verelia: for x in y
<Aeyrix> or
robustus has joined #ruby
<eam> Verelia: in the C world, it's just a parameter from the call stack stack
Lucky__ has joined #ruby
GaryOak_ has joined #ruby
<Aeyrix> for n in array
<zenspider> Verelia: that n gets yielded into the block by the calling method (collect)
laurentide has joined #ruby
<zenspider> think of (*fp)(42)
<eam> Verelia: you're familiar with the quicksort function from libc?
<Verelia> eam, Yes.
<zenspider> rough impl: module Enumerable; def collect; r = []; each do |obj| r << obj if yield obj; end; end; end
<zenspider> that's the non-bang version
<zenspider> oops. return r
<eam> Verelia: well, the {} block is like passing in a *compar pointer to a function
mjuszczak has quit []
<zenspider> module Enumerable; def collect; r = []; each do |obj| r << obj if yield obj; end; r; end; end
<eam> and the |args| are analagous to the calling convention of that function
Jandre has joined #ruby
That1Guy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Jandre is now known as Guest34607
<eam> so with qsort(int(*compar)(const void *, const void *)) it's very much like obj.qsort { |arg1, arg2| }
rahult has joined #ruby
<Verelia> I see, I will read more about it. Also, some say that {} should be avoided and go with do/end despite of the block size.
<Verelia> For not confusing {} with hashes.
ortuna has joined #ruby
<zenspider> Verelia: I like the weirich method. {} to be used for functional blocks, do/end to be used for imperative
mikecmpbll has quit [Quit: i've nodded off.]
<Aeyrix> I use {} for one liners.
DerisiveLogic has joined #ruby
nii236 has joined #ruby
DerisiveLogic has quit [Remote host closed the connection]
<Verelia> Yes I know, I said some say to avoid {} even if the block is one line.
GaryOak_ has quit [Ping timeout: 256 seconds]
mikecmpbll has joined #ruby
<zenspider> Verelia: the rationale for it is that you can look at the delimiters and know what sort of block it is... one where you're calculating a value vs running for side-effects
DerisiveLogic has joined #ruby
CloCkWeRX has joined #ruby
<zenspider> Verelia: meh. I'd discount that opinion. If you're getting confused with hashes, you're doing it wrong.
<Verelia> Is this similar to lambdas? Because I have an article on lambdas also.
Ropeney has joined #ruby
lidenskap has quit [Remote host closed the connection]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Verelia> zenspider, Doing it wrong? Professionals said that not me.
casadei has joined #ruby
<Verelia> I have this Eloquent Ruby book I'm reading, I can keep going but sometimes I stop and Google for things since it's not for beginners. Should I keep going or get another book?
<jhass> "professionals" is like "experts". You always have to ask "professional/export what for? What makes them one?"
<Aeyrix> Verelia: Nope.
<Aeyrix> Verelia: Oh, sorry, that was one or the other.
<Aeyrix> If you understand after Googling, keep going.
<Verelia> Yea I do, also asking here so I get the answers.
<Verelia> Alright, it's a nice book.
<Aeyrix> Yeah keep reading yo.
<Aeyrix> If you are understanding what you're reading after looking / asking, then you're doing it right.
<jhass> Verelia: when you say "like lambdas", talking about Ruby lambdas (the special type of proc) or anonymous functions?
tuelz has joined #ruby
<Verelia> jhass, Anonymous functions.
<jhass> then I'd say you can view blocks as lambdas that have access to the scope they were defined in. Often also called closures
<Aeyrix> Closures is the "proper name".
<Verelia> Yea, as in CS.
<Aeyrix> Yeah.
<Verelia> I will check it out more later.
<zenspider> Verelia: I've heard good things about that book... but yeah, you might want something to read alongside
<Verelia> zenspider, Yea.
<zenspider> jhass: I'm a bit confused by your statement... blocks and procs are both closures.
casadei has quit [Ping timeout: 276 seconds]
<jhass> zenspider: I asked whether we're talking about Ruby lambdas or the general thing (anonymous functions)
<jhass> they said the latter, so I based my statement on that
tuelz has quit [Ping timeout: 272 seconds]
Schwarzbaer__ has joined #ruby
doodlehaus has joined #ruby
greenbagels has joined #ruby
wallerdev has joined #ruby
<zenspider> gotcha
bruno-_ has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
Schwarzbaer_ has quit [Ping timeout: 264 seconds]
freerobby has quit [Quit: Leaving.]
bronson has quit [Remote host closed the connection]
Sawbones has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: i've nodded off.]
Lucky__ has joined #ruby
ValicekB has quit [Ping timeout: 258 seconds]
mikecmpbll has joined #ruby
airdisa has joined #ruby
MasterPiece has quit [Remote host closed the connection]
Verelia has quit [Remote host closed the connection]
jimms has quit [Read error: Connection reset by peer]
jimms has joined #ruby
doodlehaus has quit [Remote host closed the connection]
shakes has quit [Quit: Leaving]
echosystm has joined #ruby
doodlehaus has joined #ruby
<bootstrappm> just FYI formal closures bind the variables outside them as well, not sure if procs / lambda's do that
<bootstrappm> anonymous functions != closures
ismaelga has joined #ruby
doodlehaus has quit [Remote host closed the connection]
turtil has joined #ruby
ValicekB has joined #ruby
<echosystm> i have a threading question
<ruboto> echosystm, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/d94b16177eb14b93f3db
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<echosystm> why do the two runs not compelte in the same time, assuming a 4 core machine?
reinaldob has quit [Remote host closed the connection]
<echosystm> the threads seem to offer no benefit
<echosystm> it seems like openssl blocks the whole thread?
Guest34607 is now known as Jandre
Jandre has quit [Changing host]
Jandre has joined #ruby
reinaldo_ has joined #ruby
<echosystm> i get that there is GVL/GIL in ruby, but i would have thought the openssl library would effectively sleep the thread
<echosystm> can someone explain this to me?
airdisa has quit [Ping timeout: 276 seconds]
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Lucky__ has quit [Quit: Textual IRC Client: www.textualapp.com]
Lucky__ has joined #ruby
<bootstrappm> echosystm we're here but I have no experience w/ threading
<bootstrappm> hopefully somebody else can help ya
reinaldo_ has quit [Remote host closed the connection]
mistermocha has joined #ruby
<echosystm> thanks
reinaldo_ has joined #ruby
reinaldo_ has quit [Remote host closed the connection]
sankaber has joined #ruby
<echosystm> apeiros: are you around?
reinaldo_ has joined #ruby
zenguy_pc has quit [Ping timeout: 244 seconds]
reinaldo_ has quit [Remote host closed the connection]
That1Guy has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
mikecmpbll has quit [Quit: i've nodded off.]
RegulationD has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
pontiki has joined #ruby
bigsky has joined #ruby
<bigsky> it's really painful to use ror on win7 x64
<pontiki> hi
<shevy> it's pontiki! \o/
nabn has joined #ruby
<pontiki> hi shevy
gilmour is now known as chrisarcand
tkuchiki has joined #ruby
mase-chatter has joined #ruby
sankaber has quit [Ping timeout: 258 seconds]
<diegoviola> I still don't understand the differences between lambda and Proc, I know a lambda is a special Proc
<diegoviola> :|
cosmicfires has quit [Quit: bye...]
Channel6 has joined #ruby
That1Guy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dorei has quit []
bronson has joined #ruby
maletor has quit [Read error: Connection reset by peer]
bigsky has quit [Ping timeout: 246 seconds]
<zenspider> bootstrappm: ruby procs/lambdas/blocks are all closures. they capture the outer scopes where they were defined.
bigsky has joined #ruby
<zenspider> sorry... still in study group, so I'm behind
<bootstrappm> cool, just checking (y)
terlar has quit [Ping timeout: 245 seconds]
<bootstrappm> no need to be glued to IRC zs haha, enjoy your study group
rahult has joined #ruby
vikaton has quit []
tubuliferous_ has joined #ruby
bronson has quit [Ping timeout: 264 seconds]
That1Guy has joined #ruby
beamed_down is now known as Beamed
bruno-_ has quit [Ping timeout: 245 seconds]
jbomo has joined #ruby
lidenskap has joined #ruby
robertozimek has joined #ruby
Sawbones has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
tuelz has joined #ruby
mikecmpbll has joined #ruby
shuber_ has joined #ruby
ravenreborn has joined #ruby
deric_skibotn has quit [Ping timeout: 256 seconds]
iliketurtles has joined #ruby
Pisuke has quit [Read error: Connection reset by peer]
ballpointcarrot has joined #ruby
Jarboe has quit []
gsd has joined #ruby
ravenreborn_ has joined #ruby
shuber_ has quit [Ping timeout: 256 seconds]
duderonomy has quit [Ping timeout: 272 seconds]
ravenreborn has quit [Ping timeout: 258 seconds]
mistermocha has quit [Ping timeout: 252 seconds]
juanpaucar has joined #ruby
jimms has quit []
rbennacer has quit [Ping timeout: 246 seconds]
zenguy_pc2 has joined #ruby
Xiti has joined #ruby
zenguy_pc has joined #ruby
vikaton has joined #ruby
juanpaucar has quit [Ping timeout: 240 seconds]
lidenskap has quit [Remote host closed the connection]
towski_ has quit [Remote host closed the connection]
casadei has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
Sawbones has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
wallerdev has quit [Ping timeout: 258 seconds]
Sawbones has joined #ruby
Papierkorb_ has joined #ruby
Papierkorb has quit [Ping timeout: 272 seconds]
casadei has quit [Ping timeout: 265 seconds]
Sawbones has quit [Ping timeout: 265 seconds]
Spami has quit [Quit: This computer has gone to sleep]
mary5030 has quit [Remote host closed the connection]
lkba_ has quit [Ping timeout: 258 seconds]
mary5030 has joined #ruby
woodruffw has quit [Remote host closed the connection]
iliketurtles has joined #ruby
bootstrappm has quit [Quit: bootstrappm]
robertozimek has quit [Quit: Linkinus - http://linkinus.com]
lidenskap has joined #ruby
aspiers has joined #ruby
_blizzy_ has quit [Ping timeout: 265 seconds]
swgillespie has quit [Read error: Connection reset by peer]
mary5030 has quit [Ping timeout: 265 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
lidenskap has quit [Remote host closed the connection]
swgillespie has joined #ruby
mikecmpbll has joined #ruby
lidenskap has joined #ruby
Papierkorb_ has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
baweaver has joined #ruby
rbennacer has joined #ruby
shuber_ has joined #ruby
shuber_ has quit [Remote host closed the connection]
swgillespie has quit [Client Quit]
shuber_ has joined #ruby
nateberkopec has quit [Ping timeout: 265 seconds]
That1Guy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
GriffinHeart has quit [Remote host closed the connection]
duderonomy has joined #ruby
RegulationD has joined #ruby
Sawbones has joined #ruby
GriffinHeart has joined #ruby
Sawbones has quit [Remote host closed the connection]
tjohnson has quit [Quit: Connection closed for inactivity]
RegulationD has quit [Ping timeout: 258 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
lidenska_ has joined #ruby
rbennacer has quit [Remote host closed the connection]
MatthewsFace has joined #ruby
lidenskap has quit [Ping timeout: 256 seconds]
neohunter has joined #ruby
bronson has joined #ruby
rahult is now known as rahult_
Musashi007 has joined #ruby
Rollabunna has joined #ruby
ismael has joined #ruby
ismael is now known as Guest914
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
Spami has joined #ruby
dseitz has joined #ruby
gusrub has joined #ruby
ismaelga has quit [Ping timeout: 240 seconds]
keen______ has joined #ruby
baroquebobcat has joined #ruby
Rollabunna has quit [Ping timeout: 255 seconds]
keen_____ has quit [Ping timeout: 255 seconds]
iamninja_ has quit [Read error: Connection reset by peer]
bb010g has quit [Quit: Connection closed for inactivity]
Sawbones has joined #ruby
claptor has joined #ruby
macmartine has joined #ruby
wolfleemeta_ has joined #ruby
iamninja_ has joined #ruby
kappy has quit [Quit: leaving]
Hijiri has quit [Quit: WeeChat 1.0.1]
wolfleemeta has quit [Ping timeout: 255 seconds]
claptor has quit [Client Quit]
n008f4g_ has quit [Ping timeout: 255 seconds]
xaxisx has quit [Quit: xaxisx]
DerisiveLogic has quit [Remote host closed the connection]
airdisa has joined #ruby
DerisiveLogic has joined #ruby
Musashi007 has quit [Quit: Musashi007]
Guest914 has quit [Remote host closed the connection]
ciopte7 has joined #ruby
ciopte7 has quit [Client Quit]
idafyaid has joined #ruby
idafyaid has joined #ruby
idafyaid has quit [Max SendQ exceeded]
_seanc_ has joined #ruby
idafyaid has joined #ruby
idafyaid has quit [Changing host]
idafyaid has joined #ruby
airdisa has quit [Ping timeout: 256 seconds]
ciopte7 has joined #ruby
rahult_ is now known as rahult
ramfjord has quit [Ping timeout: 276 seconds]
avahey has joined #ruby
reinaldob has joined #ruby
wallerdev has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
Sawbones has quit [Remote host closed the connection]
reinaldob has quit [Remote host closed the connection]
braincrash has quit [Quit: bye bye]
konsolebox has joined #ruby
casadei has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
xjstin has joined #ruby
casadei has quit [Ping timeout: 245 seconds]
justinxr- has quit [Ping timeout: 252 seconds]
nabn has quit [Ping timeout: 256 seconds]
tubuliferous has quit [Ping timeout: 246 seconds]
<xxneolithicxx> echosystm: timing like that is absolutely useless because the time it takes that to finish does not take into account context switching between threads and delays for when they were blocked from
<xxneolithicxx> running by other processes
_seanc_ has quit [Quit: _seanc_]
braincrash has joined #ruby
taiansu has joined #ruby
yh has quit [Ping timeout: 264 seconds]
lidenska_ has quit [Remote host closed the connection]
lidenskap has joined #ruby
yh has joined #ruby
sn0wb1rd has quit [Ping timeout: 256 seconds]
sn0wb1rd has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
ebbflowgo has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
yh has quit [Ping timeout: 272 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
cyberarm has joined #ruby
rrichardsr3 has joined #ruby
ebbflowgo has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
oo_ has quit [Remote host closed the connection]
neohunter has quit [Quit: Textual IRC Client: www.textualapp.com]
Xiti has quit [Read error: Connection reset by peer]
Eli_ has joined #ruby
Eiam_ has joined #ruby
Eli_ has quit [Client Quit]
reinaldob has joined #ruby
juanpaucar has quit [Ping timeout: 256 seconds]
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
mallu has joined #ruby
A205B064 has quit [Ping timeout: 264 seconds]
<mallu> can someone please tell me what I am doing wrong? https://dpaste.de/GcpD
justinxr- has joined #ruby
<zenspider> coding on a tuesday night?
reinaldob has quit [Remote host closed the connection]
<zenspider> ew. worse. devopsing on a tuesday night.
shuber_ has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<zenspider> mallu: node['emailbridgebubscriber'] is nil
<zenspider> typo
<zenspider> bubscriber
<sevenseacat> lol
<xxneolithicxx> mallu: node probably doesnt have the key 'emailbridgebubscriber'
<xxneolithicxx> lol and zenspider caught the duhh
<zenspider> reminds me of homestarrunner
slucx has joined #ruby
xjstin has quit [Ping timeout: 252 seconds]
tuelz has quit [Quit: WeeChat 1.1.1]
nii236 has left #ruby ["WeeChat 1.1.1"]
macmartine has quit [Remote host closed the connection]
konsolebox has quit [Ping timeout: 264 seconds]
keen_______ has joined #ruby
keen______ has quit [Ping timeout: 264 seconds]
arescorpio has quit [Excess Flood]
macmartine has joined #ruby
<mallu> zenspider: thanks that was it
neohunter has joined #ruby
icebourg has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
Jandre has quit [Ping timeout: 272 seconds]
veduardo has quit [Ping timeout: 252 seconds]
nabn has joined #ruby
<Radar> mallu: If you want to make sure the keys are actually present at the same time as retrieving their values, use .fetch('key')
reinaldob has joined #ruby
<Radar> That'll help protect against typos like that one.
reinaldob has quit [Remote host closed the connection]
konsolebox has joined #ruby
ponga has joined #ruby
chipotle has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
shuber_ has joined #ruby
<echosystm> xxneolithicxx: i dont see the problem
<echosystm> given 4 cpu cores, i thought they would run at the same speed
Hijiri has joined #ruby
<echosystm> unless the actual ruby code itself is the part that is taking most of the time
cosmicexplorer has joined #ruby
<echosystm> basically what i wanted to know is... when openssl is doing the actual cipher operations, do the threads sleep?
<echosystm> eg. does a thread sleep on "cipher.final" or "cipher.update"?
C1V0 has quit []
bronson has quit [Remote host closed the connection]
zotherstupidguy has quit [Ping timeout: 264 seconds]
bronson has joined #ruby
<xxneolithicxx> i have no idea if those calls sleep
ravenreborn_ has quit [Ping timeout: 246 seconds]
zotherstupidguy has joined #ruby
RegulationD has joined #ruby
joshbamboo1 has quit [Quit: Leaving]
RegulationD has quit [Ping timeout: 276 seconds]
<baweaver> Look up green threading
cryptarium has joined #ruby
mallu has quit [Ping timeout: 246 seconds]
cyberarm has quit [Quit: left.]
slucx has quit [Ping timeout: 264 seconds]
bruno- has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
anaeem1 has joined #ruby
taiansu has quit [Remote host closed the connection]
agent_white has joined #ruby
doc|work has joined #ruby
taiansu has joined #ruby
djbkd has quit [Remote host closed the connection]
funburn has joined #ruby
anaeem1 has quit [Remote host closed the connection]
ciopte7 has quit [Quit: ciopte7]
RegulationD has joined #ruby
anaeem1_ has joined #ruby
bruno- has quit [Ping timeout: 244 seconds]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
taiansu has quit [Ping timeout: 265 seconds]
taiansu has joined #ruby
ciopte7 has joined #ruby
yh has joined #ruby
RegulationD has quit [Ping timeout: 245 seconds]
Contigi has joined #ruby
User458764 has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
jenrzzz has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
doc|work has quit [Remote host closed the connection]
Joufflu has joined #ruby
macmartine has quit [Remote host closed the connection]
agent_white has quit [Read error: Connection reset by peer]
Rollabunna has joined #ruby
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
ramfjord has joined #ruby
oo_ has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
Rollabunna has quit [Ping timeout: 258 seconds]
rodfersou has quit [Quit: leaving]
iamninja_ has quit [Read error: Connection reset by peer]
oo_ has quit [Ping timeout: 272 seconds]
nabn has left #ruby [#ruby]
scuey has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
jenrzzz has joined #ruby
chipotle has quit [Remote host closed the connection]
oo_ has joined #ruby
chipotle has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
airdisa has joined #ruby
Channel6 has quit [Quit: Leaving]
iamninja_ has joined #ruby
airdisa has quit [Ping timeout: 250 seconds]
shuber_ has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
Feyn has joined #ruby
Musashi007 has joined #ruby
zenguy_pc2 has quit [Quit: Leaving]
haxrbyte has joined #ruby
tubuliferous has joined #ruby
gaboesquivel has quit []
tautvydas has joined #ruby
reinaldob has joined #ruby
haxrbyte has quit [Ping timeout: 244 seconds]
mistermocha has joined #ruby
_blizzy_ has joined #ruby
lidenskap has quit [Remote host closed the connection]
ravenreborn has joined #ruby
greenbagels has quit [Read error: Connection reset by peer]
xybr_ is now known as xybre
djbkd has joined #ruby
Musashi007 has quit [Quit: Musashi007]
tubuliferous has quit [Ping timeout: 252 seconds]
shuber_ has joined #ruby
xybre has joined #ruby
xybre has quit [Changing host]
Musashi007 has joined #ruby
lidenskap has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
P1RATEZ has quit []
reinaldob has quit [Ping timeout: 272 seconds]
bronson has quit [Remote host closed the connection]
djbkd has quit [Ping timeout: 246 seconds]
bb010g has joined #ruby
_blizzy_ has quit [Ping timeout: 256 seconds]
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
avahey has quit [Quit: Connection closed for inactivity]
duncannz has joined #ruby
chinmay_dd has joined #ruby
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
xybre has quit [Quit: oh shit its the fbi]
duncannz has quit [Max SendQ exceeded]
xybre has joined #ruby
duncannz has joined #ruby
neohunter has quit [Quit: Textual IRC Client: www.textualapp.com]
krz has joined #ruby
lidenskap has quit [Remote host closed the connection]
rotcetorptekcop has quit [Remote host closed the connection]
<echosystm> can anyone tell me what happens if you .run a thread that is already running?
jbomo has left #ruby [#ruby]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mistermocha has quit [Ping timeout: 256 seconds]
jamesfordummies has joined #ruby
RegulationD has joined #ruby
Brozo has joined #ruby
<Brozo> hi all
<jamesfordummies> hi
sent1nel has quit [Remote host closed the connection]
<zotherstupidguy> hi Brozo
aganov has joined #ruby
<Radar> hello
<Brozo> how do yall use rake?
juanpaucar has joined #ruby
<jamesfordummies> can you be more specific?
RegulationD has quit [Ping timeout: 255 seconds]
<Aeyrix> Generally from the terminal.
<Aeyrix> `rake db:migrate`.
Musashi007 has quit [Quit: Musashi007]
xybre has quit [Quit: oh shit its the fbi]
<Brozo> are there any good sources for learning how to use rake? I've only been able to finde very basic tutorials that either don't explain basic components or tutorials that go over my head?
juanpaucar has quit [Ping timeout: 258 seconds]
<jamesfordummies> Brozo: what would you like to use rake for, specifically? rails? or to create your own rake tasks?
<sevenseacat> rake field manual?
wallerdev has joined #ruby
tubuliferous_ has quit [Ping timeout: 256 seconds]
<Brozo> I'm building a project in ruby and want to simplify running it to a single rake command
sonOfRa has quit [Quit: Bye!]
sonOfRa has joined #ruby
jamesfordummies has quit [Quit: jamesfordummies]
tagrudev has joined #ruby
sandelius has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
tkuchiki has quit [Ping timeout: 240 seconds]
rahult is now known as rahult_
rotcetorptekcop has joined #ruby
ballpointcarrot has quit [Remote host closed the connection]
jenrzzz has joined #ruby
ebonics has quit [Ping timeout: 264 seconds]
GriffinHeart has joined #ruby
nii236 has joined #ruby
reinaldob has joined #ruby
arietis has joined #ruby
reinaldob has quit [Remote host closed the connection]
hanmac1 has joined #ruby
rahult_ is now known as rahult
funburn has quit [Quit: funburn]
nii236 has quit [Client Quit]
arietis has quit [Client Quit]
wookiehangover has quit [Ping timeout: 265 seconds]
sdrew has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sdrew has joined #ruby
devoldmx has joined #ruby
ravenreborn has quit [Ping timeout: 256 seconds]
krz has quit [Quit: WeeChat 1.0.1]
chinmay_dd has quit [Remote host closed the connection]
reinaldob has joined #ruby
joonty has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
P1RATEZ has joined #ruby
SouL_|_ has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
A205B064 has joined #ruby
sdrew has quit [Ping timeout: 264 seconds]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
airdisa has joined #ruby
wookiehangover has joined #ruby
yaw has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
joonty has quit [Ping timeout: 246 seconds]
Musashi007 has joined #ruby
joonty has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
airdisa has quit [Ping timeout: 265 seconds]
reinaldob has quit [Remote host closed the connection]
SouL_|_ has quit [Ping timeout: 272 seconds]
<flughafen> morning
<ScriptGeek> hi there
neanderslob has joined #ruby
SpicyMagpie has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
Musashi007 has quit [Quit: Musashi007]
BlackGear has joined #ruby
reinaldob has quit [Remote host closed the connection]
Sirilia has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<Sirilia> Can someone confirm if this is a good read for ruby blocks? http://robsobers.com/struggle-ruby-blocks/
reinaldob has joined #ruby
taiansu has quit [Remote host closed the connection]
taiansu has joined #ruby
<SpicyMagpie> Sirilia: reading
reinaldob has quit [Remote host closed the connection]
bluOxigen has joined #ruby
reinaldob has joined #ruby
oo_ has joined #ruby
reinaldob has quit [Remote host closed the connection]
<Radar> Brozo:https://gist.github.com/radar/7fe9be28037c0ce56df7
djbkd has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
tkuchiki has joined #ruby
reinaldob has quit [Remote host closed the connection]
<Sirilia> spicymagpie, Aight.
<SpicyMagpie> what are you doing, trying to understand blocks?
reinaldob has joined #ruby
<SpicyMagpie> or a more advanced thing about it?
<Sirilia> Both
<SpicyMagpie> for the first one, it's good.
taiansu has quit [Ping timeout: 255 seconds]
bruno- has joined #ruby
Sawbones has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
<Sirilia> I see, btw the & operator is for passing blocks?
reinaldob has quit [Remote host closed the connection]
<SpicyMagpie> yup
<Sirilia> Oh
reinaldob has joined #ruby
<Radar> Sirilia: block arguments are yielded from inside the method, which is something I don't think you cover: https://gist.github.com/radar/43ca3497548dafefab0a
<Radar> You have some mentions of yield without any arguments
<SpicyMagpie> Sirilia: once you understand blocks, I recommend you to read this one: http://awaxman11.github.io/blog/2013/08/05/what-is-the-difference-between-a-block/
<Sirilia> Radar, So in your example, moo takes a block and sets a to 1. What does the yield a do after?
<Sirilia> spicymagpie, Yea thank you :)
<SpicyMagpie> but not for *now*, because things may get confusing.
<Radar> Sirilia: It yields the variable to the block
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
<Sirilia> Radar, What does that mean?
bronson has joined #ruby
reinaldob has quit [Remote host closed the connection]
<Radar> Sirilia: I'll show you with a non-contrived example.
reinaldob has joined #ruby
loadhigh has joined #ruby
<Sirilia> Alright.
taiansu has joined #ruby
loadhigh has quit [Client Quit]
<Radar> Sirilia: So I'm calling configure on the Rails module there, which yields an instance of the Configuration class.
reinaldob has quit [Remote host closed the connection]
<Radar> That instance is then available inside the block
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<Radar> That config object is the same config object as what's yielded here: https://gist.github.com/radar/43ca3497548dafefab0a#file-config-rb-L10-L12
Sawbones has quit [Ping timeout: 264 seconds]
<Radar> And Rails.config is also the same object
loadhigh has joined #ruby
loadhigh has quit [Client Quit]
reinaldob has joined #ruby
bruno- has quit [Ping timeout: 256 seconds]
<hanmac1> Radar: you dont need &block when you are using yield
reinaldob has quit [Remote host closed the connection]
<Radar> hanmac1: oh nice :)
<Radar> old habit
<SpicyMagpie> yep, I don't get used to not use &block either.
reinaldob has joined #ruby
codecop has joined #ruby
mase-chatter has quit [Quit: Leaving]
<Sirilia> Radar, And what about |config|, why can you do that really and what is it really in-depth? is it possible to pass more such as |config, settings| ?
arietis has joined #ruby
<echosystm> def x(y); puts y; end; x { a: 1, b: { c: 3 }};
<echosystm> why does this not run?
<echosystm> it runs if i put the call to x in parentheses x({ a: 1, b: { c: 3}})
<echosystm> but i get a syntax error if i dont do that
<echosystm> why?
JoshGlzBrk has joined #ruby
<Radar> Sirilia: Yes you can do that ^
<Radar> the do |config, settings|... the things in the "pipes" are called block arguments
<Radar> You can think of them the same as method arguments.
<Radar> or at least, I do :)
<SpicyMagpie> echosystm: what is the error it gives to you?
SouL_|_ has joined #ruby
timonv has joined #ruby
lidenskap has joined #ruby
loadhigh has joined #ruby
loadhigh has quit [Client Quit]
<echosystm> sorry i've figured it out
MasterPiece has joined #ruby
<Aeyrix> SyntaxError: (irb):10: syntax error, unexpected ':', expecting '}'
<echosystm> its the nested hash that causes problem
<Aeyrix> That'd have been the error.
loadhigh has joined #ruby
loadhigh has quit [Client Quit]
sinkensabe has joined #ruby
<echosystm> it should be "x a: 1, b: { c: 3 }"
<echosystm> not "x { a: 1, b: { c: 3 }}"
<Aeyrix> That's really unreadable.
<Aeyrix> The former, that is.
<Sirilia> Radar, Ok so when you do yield , you also say how many block arguments are accepted? For example, yield a,b,c then I can do ... do |foo, boo, roo| .. end ?
<Aeyrix> The latter, with braces, is far cleaner.
<Aeyrix> You should use parentheses imo.
<Radar> echosystm: Ruby is interpreting you're passing a block to the method, not an argument
<echosystm> yeah
<echosystm> i got that
<Radar> Sirilia: yes htat's right
<echosystm> thanks
fabrice31 has joined #ruby
reinaldob has quit [Ping timeout: 276 seconds]
taiansu has quit [Remote host closed the connection]
unshadow has quit [Quit: leaving]
<Sirilia> Radar, Oh I see :), so the .each method yields one argument?
<Radar> Sirilia: one object, yes
taiansu has joined #ruby
<Sirilia> Radar, Ahh I see thank you :D
lidenskap has quit [Ping timeout: 258 seconds]
anisha has joined #ruby
<Sirilia> Radar, We will have a long talk when I get your book and start reading it :)
arturaz has joined #ruby
<Radar> :)
<Sirilia> Radar, I hope it's suited for beginners?
MatthewsFace has quit [Remote host closed the connection]
<Radar> Rails 4 in Action? yes.
<hanmac1> Sirilia: i dont think you can say that ... Hash#each for sample has two block arguments
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<Sirilia> hanmac1, I guess it then yields something like *args ?
<Sirilia> hanmac1, Or at least checks how many block arguments are passed and yields it/them?
<Sirilia> Radar, Great!
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
taiansu has quit [Ping timeout: 256 seconds]
<Sirilia> Radar, Is the book aimed to give the reader the fundamentals only or does it go more in-depth also?
<Radar> Sirilia: Mainly the fundamentals with Rails, but there are some parts in the later chapters we go more in-depth.
arietis has quit [Quit: Leaving.]
taiansu has joined #ruby
<Sirilia> Radar, Great I can't wait :D
lidenskap has joined #ruby
bronson has quit [Remote host closed the connection]
icebourg has quit []
bronson has joined #ruby
lidenskap has quit [Remote host closed the connection]
clauswitt has joined #ruby
sigurding has joined #ruby
charliesome has quit [Quit: zzz]
baroquebobcat has quit [Quit: baroquebobcat]
rrichardsr3 has quit [Quit: The road to hell is paved with good intentions...]
andikr has joined #ruby
kaspernj has joined #ruby
Rollabunna has joined #ruby
sinkensabe has quit [Remote host closed the connection]
swgillespie has joined #ruby
sinkensabe has joined #ruby
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
loadhigh has joined #ruby
loadhigh has quit [Client Quit]
xybre has joined #ruby
<Sirilia> What file includes the method each?
ChampS_ has joined #ruby
Rollabunna has quit [Ping timeout: 244 seconds]
djellemah_ has quit [Ping timeout: 272 seconds]
clauswitt has quit [Ping timeout: 256 seconds]
<hanmac1> Sirilia: depends on the class, Array and Hash have their own each methods, also checkout the Enumerable module which does depend on the each method
tubuliferous has joined #ruby
reinaldob has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
reinaldob has quit [Remote host closed the connection]
<Sirilia> hanmac1, Alright I will thank you.
lidenskap has joined #ruby
reinaldob has joined #ruby
ta has quit [Remote host closed the connection]
zotherstupidguy has quit [Ping timeout: 272 seconds]
krz has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
chinmay_dd has joined #ruby
reinaldob has joined #ruby
zotherstupidguy has joined #ruby
MasterPiece has quit [Quit: Leaving]
chinmay_dd has quit [Client Quit]
<Sirilia> hanmac1, I guess those classes are built-in so we can't access them?
<Radar> Access them how?
gagrio has joined #ruby
<Sirilia> As I can open and read the set.rb file
charliesome has joined #ruby
<sevenseacat> if its part of the stdlib, you can
<sevenseacat> core is written in c, so not as nice
<Radar> They're written in C.
rahult is now known as rahult_
reinaldob has quit [Remote host closed the connection]
<Sirilia> Great where can I find it? :D
<hanmac1> Sirilia: http://ruby-doc.org/core-2.2.2/Array.html#method-i-each there is the source but like said its in C
reinaldob has joined #ruby
<Radar> Turns out Set is in Ruby: https://github.com/ruby/ruby/blob/trunk/lib/set.rb
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
reinaldob has quit [Remote host closed the connection]
mistermocha has joined #ruby
<Radar> Almost 6,000 lines.
<sevenseacat> lolno
<Nilium> You can also just use arrays as sets, if you feel like it.
dain` has joined #ruby
reinaldob has joined #ruby
tubuliferous_ has joined #ruby
<Radar> Sirilia: Are you sure Set is the thing you want?
reinaldob has quit [Remote host closed the connection]
<Sirilia> Radar, No, Array was. But I thought Array was a file like set.rb is.
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
djellemah has joined #ruby
cosmicexplorer has quit [Ping timeout: 256 seconds]
Tux_007__ has joined #ruby
ciopte7 has quit [Quit: ciopte7]
tubuliferous_ has quit [Ping timeout: 264 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
michael_mbp has quit [Excess Flood]
unshadow has joined #ruby
scuey has quit [Ping timeout: 252 seconds]
michael_mbp has joined #ruby
arup_r has joined #ruby
User458764 has joined #ruby
joonty has quit [Quit: joonty]
<Sirilia> Is the pickaxe book relevant anymore? For Ruby 1.9 and 2.0
loadhigh has joined #ruby
<pontiki> do you mean the free online version?
<Sirilia> No, the book.
GriffinHeart has quit [Remote host closed the connection]
thatslifeson has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
oo_ has quit [Remote host closed the connection]
<sevenseacat> hanmac1: lol
j416 has joined #ruby
bluOxigen has quit [Ping timeout: 265 seconds]
<hanmac1> sevenseacat: imo the most interesting part is that printer ink cost more than human blood ;P
<sevenseacat> yeah I've heard that printer ink is the most expensive fluid on the planet
<pontiki> Sirilia: opinions vary. i still find it useful, but not as useful as the online documentation
oo_ has joined #ruby
jottr has joined #ruby
<Radar> Solution: print using human blood
<Radar> Would be hard to stop it coagulating.
<Sirilia> How come Eloquent Ruby is still relevant it's from 2011.
<mozzarella> how print using water
<mozzarella> or* print
<Radar> Sirilia: because Ruby hasn't changed that much since thne.
<pontiki> Sirilia: because eloquent ruby is not about the specifics of language syntax and much much more about the idea of proper coding
rahult_ is now known as rahult
<pontiki> you can take the concepts presented in Eloquent Ruby and apply them to other languages as well, though not as well, and with having to dig more out of that other language
<hanmac1> there are new features in syntax like key arguments in ruby 2.0+ but the core stuff of ruby might be ok in the books
<pontiki> i don't believe there's been any breaking syntax in 2.1 and beyond, has there?
Guest24 is now known as lele
<sevenseacat> i think 2.1 was mostly optimizations and new features
<Radar> when were kwargs added?
<sevenseacat> like refinements or whatever theyre called
<Radar> I thought refinements were in ruby 2.2.
<sevenseacat> oh.
<Radar> Ruby 2.0 was kwargs
loadhigh1 has joined #ruby
loadhigh1 has quit [Client Quit]
St1gma has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
* sevenseacat has never used kwargs
<hanmac1> Radar: and 2.1 was non-optional kwargs
asmodlol has quit [Ping timeout: 250 seconds]
yaw has quit [Ping timeout: 244 seconds]
jottr has quit [Ping timeout: 258 seconds]
RegulationD has joined #ruby
Hirzu_ has joined #ruby
bronson has quit [Remote host closed the connection]
gusrub has quit [Quit: Leaving]
<hanmac1> there is the list of all possible argument types i know:
<hanmac1> >> method(def abc(a, b = 1, *c, d:, e: 2, **f, &g); end).parameters
<ruboto> hanmac1 # => [[:req, :a], [:opt, :b], [:rest, :c], [:keyreq, :d], [:key, :e], [:keyrest, :f], [:block, :g]] (https://eval.in/367497)
loadhigh1 has joined #ruby
loadhigh1 has quit [Client Quit]
juanpaucar has joined #ruby
<sevenseacat> i've used a, b, c and g :)
loadhigh1 has joined #ruby
loadhigh1 has quit [Client Quit]
<pontiki> i started using keyword args in one project based on sandi metz's recommendation
Hirzu has quit [Ping timeout: 245 seconds]
d1n has quit [Ping timeout: 264 seconds]
<pontiki> later on, someone changed everything back to positional args
<sevenseacat> lol
Joufflu has quit [Read error: Connection reset by peer]
Hirzu has joined #ruby
RegulationD has quit [Ping timeout: 258 seconds]
<pontiki> naturally, no documentation was changed
<sevenseacat> naturally.
haxrbyte has joined #ruby
baweaver has quit [Remote host closed the connection]
Brozo has quit [Ping timeout: 265 seconds]
BlackGear has joined #ruby
loadhigh1 has joined #ruby
loadhigh1 has quit [Client Quit]
loadhigh1 has joined #ruby
juanpaucar has quit [Ping timeout: 264 seconds]
<hanmac1> i also uses f as keyrest, even when i am not using key arguments to catch the option hash
loadhigh1 has quit [Client Quit]
timonv has quit [Ping timeout: 264 seconds]
Hirzu_ has quit [Ping timeout: 244 seconds]
Beamed is now known as beamed_down
rahult is now known as rahult_
TigerWolf has quit [Ping timeout: 256 seconds]
hanmac has quit [Ping timeout: 265 seconds]
jenrzzz_ has joined #ruby
reinaldob has joined #ruby
AxonetBE has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
asmodlol has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
arup_r has quit [Remote host closed the connection]
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has joined #ruby
Mia has quit [Read error: Connection reset by peer]
neanderslob has quit [Read error: Connection reset by peer]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
reinaldob has quit [Remote host closed the connection]
<hanmac1> shevy checkout what i did with wxwidgets ... (its not for rwx itself yet, but might added later): http://i.imgur.com/C1OsdEu.png
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
neanderslob has joined #ruby
reinaldob has joined #ruby
d1n has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
nfk|laptop has joined #ruby
reinaldob has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 256 seconds]
reinaldob has joined #ruby
vdamewood has joined #ruby
jenrzzz_ has quit [Ping timeout: 272 seconds]
reinaldob has quit [Remote host closed the connection]
antgel has joined #ruby
reinaldob has joined #ruby
sigurding has quit [Quit: sigurding]
reinaldob has quit [Remote host closed the connection]
Schwarzbaer__ has quit [Ping timeout: 272 seconds]
User458764 has joined #ruby
ta has joined #ruby
hanmac has joined #ruby
dumdedum has joined #ruby
haxrbyte has quit [Remote host closed the connection]
Hirzu_ has joined #ruby
haxrbyte has joined #ruby
dain` has quit [Remote host closed the connection]
sigurding has joined #ruby
Hirzu has quit [Ping timeout: 264 seconds]
sent1nel has joined #ruby
echosystm has quit [Ping timeout: 252 seconds]
arietis has joined #ruby
jenrzzz has joined #ruby
6JTAA5O5S has joined #ruby
haxrbyte has quit [Ping timeout: 252 seconds]
6JTAA5O5S has quit [Client Quit]
jenrzzz has quit [Client Quit]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mtakkman has joined #ruby
arietis has quit [Client Quit]
sent1nel has quit [Ping timeout: 255 seconds]
rahult_ is now known as rahult
echosystm has joined #ruby
arup_r has joined #ruby
AxonetBE has quit [Quit: AxonetBE]
livathinos has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
exons has joined #ruby
charliesome has quit [Quit: zzz]
reinaldob has joined #ruby
jenrzzz has joined #ruby
avril14th has joined #ruby
yh has quit [Ping timeout: 264 seconds]
arup_r has quit [Ping timeout: 272 seconds]
Pathfinder has joined #ruby
c0m0 has joined #ruby
mengu has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
lkba has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
crack_user has quit [Quit: Leaving.]
baweaver has joined #ruby
lkb has joined #ruby
Hounddog has joined #ruby
rdark has joined #ruby
P1RATEZ has quit []
nfk|laptop has quit [Ping timeout: 256 seconds]
Papipo has joined #ruby
abuzze has joined #ruby
Papipo has left #ruby [#ruby]
mtakkman has quit [Read error: No route to host]
yh has joined #ruby
aep has joined #ruby
monod has joined #ruby
edwinvdgraaf has joined #ruby
CloCkWeRX has quit [Ping timeout: 276 seconds]
GriffinHeart has joined #ruby
yh has quit [Ping timeout: 240 seconds]
jokke has quit [Quit: ninja vanish]
terlar has joined #ruby
djbkd has quit [Remote host closed the connection]
AlphaAtom has joined #ruby
jokke has joined #ruby
joonty has joined #ruby
turtil has quit [Ping timeout: 244 seconds]
DerisiveLogic has quit [Ping timeout: 265 seconds]
iamninja_ has quit [Read error: Connection reset by peer]
nfk|laptop has joined #ruby
arietis has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
SpicyMagpie has quit [Quit: sleep!]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
CloCkWeRX has joined #ruby
Igorshp has joined #ruby
reinaldob has quit [Ping timeout: 255 seconds]
Schwarzbaer has joined #ruby
marr has joined #ruby
ahmetkapikiran has joined #ruby
baweaver has quit [Remote host closed the connection]
<shevy> hanmac1 cool, that is a special widget?
iamninja_ has joined #ruby
<hanmac1> shevy i made it myself the other diagram types will be added later
cryptarium has quit [Ping timeout: 272 seconds]
Zai00 has joined #ruby
lkb has quit [Quit: Wychodzi]
devoldmx_ has joined #ruby
shuber_ has quit [Remote host closed the connection]
monod has quit [Remote host closed the connection]
bronson has joined #ruby
devoldmx has quit [Ping timeout: 245 seconds]
edwinvdgraaf has quit [Remote host closed the connection]
senayar has joined #ruby
Guest91529 has quit [Ping timeout: 245 seconds]
lidenskap has quit [Remote host closed the connection]
quimrstorres has joined #ruby
towski_ has joined #ruby
lkba has quit [Ping timeout: 265 seconds]
DEA7TH has joined #ruby
idafyaid has quit [Ping timeout: 272 seconds]
ton31337 has joined #ruby
<ton31337> hi, anyone is using rbenv and systemtap?
towski_ has quit [Remote host closed the connection]
Igorshp has quit [Ping timeout: 252 seconds]
edwinvdgraaf has joined #ruby
Rollabunna has joined #ruby
tubuliferous_ has joined #ruby
tkuchiki_ has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
edwinvdgraaf has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
* wasamasa gasps as ton31337 leetness
sigurding has quit [Quit: sigurding]
pontiki has quit [Quit: Textual IRC Client: www.textualapp.com]
poguez_ has quit [Quit: Connection closed for inactivity]
tubuliferous_ has quit [Ping timeout: 252 seconds]
wildroman2 has joined #ruby
Rollabunna has quit [Ping timeout: 255 seconds]
ton31337 has left #ruby [#ruby]
mikecmpbll has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
trips has joined #ruby
yeticry has quit [Read error: Connection reset by peer]
postmodern has quit [Quit: Leaving]
thatslifeson has joined #ruby
bruno- has joined #ruby
wallerdev has quit [Quit: wallerdev]
devoldmx_ has quit [Remote host closed the connection]
yeticry has joined #ruby
Pumukel has joined #ruby
thatslifeson has quit [Ping timeout: 244 seconds]
leafybasil has quit [Remote host closed the connection]
chthon has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
nso95 has joined #ruby
bruno- has quit [Ping timeout: 276 seconds]
Igorshp has joined #ruby
rahult has quit [Ping timeout: 264 seconds]
RegulationD has joined #ruby
juanpaucar has joined #ruby
msgodf has joined #ruby
RegulationD has quit [Ping timeout: 258 seconds]
djbkd has joined #ruby
yh has joined #ruby
negev has joined #ruby
agent_white has joined #ruby
sinkensabe has quit []
<negev> how do you reference global variables with the name of the variable in another variable? eg a = "foo" ; b = get_global[a] === $foo
juanpaucar has quit [Ping timeout: 272 seconds]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mengu has quit [Remote host closed the connection]
<apeiros> negev: I think at the moment there's only eval for that.
djbkd has quit [Ping timeout: 252 seconds]
edwinvdg_ has joined #ruby
<apeiros> negev: sounds like you're having a strong smell in your code there, though.
edwinvdg_ has quit [Remote host closed the connection]
<apeiros> a) using globals is a smell on its own, b) variable variables is a smell too
edwinvdgraaf has quit [Read error: Connection reset by peer]
negev has quit [Quit: leaving]
edwinvdgraaf has joined #ruby
sgambino has joined #ruby
timonv has joined #ruby
n008f4g_ has joined #ruby
edwinvdg_ has joined #ruby
nikosBob has joined #ruby
chrissonar has joined #ruby
<shevy> awww negev got scared away
jenrzzz has quit [Ping timeout: 264 seconds]
bluOxigen has joined #ruby
<adaedra> stop scaring people away, shevy
* zotherstupidguy goes down the rabbit hole . . .
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
edwinvdgraaf has quit [Ping timeout: 258 seconds]
edwinvdg_ has quit [Remote host closed the connection]
<shevy> adaedra it was you
<adaedra> you lie
reinaldob has joined #ruby
<flughafen> shevy: who stole the cookie from the cookie jar?
nikosBob has quit [Quit: Leaving...]
roshanavand has joined #ruby
reinaldob has quit [Remote host closed the connection]
anisha has quit [Ping timeout: 252 seconds]
reinaldob has joined #ruby
Ropeney has joined #ruby
<zotherstupidguy> i think global variables got their place
bigsky_ has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<shevy> sort of moot to argue because ruby uses them a lot
<zotherstupidguy> shevy you mean stdlib?
reinaldob has joined #ruby
A205B064 has quit [Ping timeout: 265 seconds]
reinaldob has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
reinaldob has joined #ruby
<apeiros> shevy: almost all uses of globals in ruby could easily be replaced by non-globals.
<apeiros> also many global variables in ruby are not really variables
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
airdisa has joined #ruby
<zotherstupidguy> apeiros ya, i use global constants not variables
reinaldob has joined #ruby
<apeiros> zotherstupidguy: please, don't confound terminology
bigsky has quit [Ping timeout: 272 seconds]
<apeiros> a constant is a constant, a global is a global. there's no such thing as a global constant.
diegoviola has quit [Remote host closed the connection]
nso95 has quit [Quit: nso95]
sent1nel has joined #ruby
shuber_ has joined #ruby
<shevy> as the name applies, a constant is unchangable :)
<zotherstupidguy> apeiros showed me that i am an idiot, true
<apeiros> o0
<apeiros> not my words…
<zotherstupidguy> :)
<zotherstupidguy> yeah, but i think i did a mistake in the past :)
<shevy> huh
<shevy> this is the second time that I now noticed someone changing from http to https
helpa has quit [Remote host closed the connection]
airdisa has quit [Ping timeout: 265 seconds]
<shevy> pretty minor version bump, to +0.0.1.3 ;)
<adaedra> he may have done all updates (site and tls) at the same time
helpa has joined #ruby
helpa has quit [Remote host closed the connection]
reinaldob has quit [Ping timeout: 272 seconds]
helpa has joined #ruby
<shevy> well it was not just that guy, I think 2 days ago I also noticed a http-to-https change, and before that, I read this... let me fetch the blog post...
<zotherstupidguy> the heartbleed fix was for what?
havenwood has quit [Ping timeout: 246 seconds]
platzhirsch has joined #ruby
sent1nel has quit [Ping timeout: 258 seconds]
leafybasil has joined #ruby
<shevy> zotherstupidguy to show how awesome openssl and https is?
<shevy> "Today we are announcing our intent to phase out non-secure HTTP."
<shevy> I feel much more secure now
lidenskap has joined #ruby
leafybasil has quit [Read error: Connection reset by peer]
leafybasil has joined #ruby
<zotherstupidguy> shevy security is like buyin expensive stuff to your wife so that you "think" she wouldnt cheat on you. don't bother :P
djbkd has joined #ruby
<shevy> well there is still a difference
<adaedra> Forcing people to move to HTTPS is a bit hard imo
ki0 has joined #ruby
<shevy> in your case I'd make a decision (to buy something); in the second case, someone else (developers) decide onto me how I should use something
stoffus has joined #ruby
mtakkman has joined #ruby
<zotherstupidguy> whats the diff between http and https?
lidenskap has quit [Ping timeout: 250 seconds]
<flughafen> zotherstupidguy: google ssl
<exons> talking about https -> https://weakdh.org/
nfk|laptop has quit [Ping timeout: 265 seconds]
leafybasil has quit [Remote host closed the connection]
joast has quit [Ping timeout: 252 seconds]
leafybasil has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<zotherstupidguy> ok, so man-in-the-middle doesnt work with ssl?
djbkd has quit [Ping timeout: 240 seconds]
<zotherstupidguy> i think it does
<adaedra> you get encrypted data in that case
<shevy> zotherstupidguy to me it seems a lot as if the firefox team got completely stunned by the chrome browser; it's as if their "innovation" is largerly driven to look at what chrome has got, and adjust to that as a default. For example, the menu bar on top is hidden by default when I download a new firefox version; I have to specifically click on enabling this hidden widget. In the past, it was always there. I a
<shevy> m scared to see that the menu bar will be removed altogether one day, in which case I will dump firefox altogether (but I have no other browser, so that sucks too)
Spami has joined #ruby
<adaedra> I don't think the menu bar will disappear soon
<rdark> zotherstupidguy: you can decrypt the data if you have access to the keys, or can control DNS and present a 'valid' certificate to clients
<zotherstupidguy> i think chrome google account is the killer feature, as it stores your history and passes and provide it back to you after a new installation, talkin about hacking stuff, right?
<shevy> adaedra I just anticipate the worst to come ;)
<zotherstupidguy> rdark i think if the attacker captures the session or rest it to get the first handshak, it is all the same
Igorshp has quit [Remote host closed the connection]
<adaedra> they have to keep the menu bar for OS X anyway, so removing it doesn't seems smart...
<shevy> zotherstupidguy dunno. the less I depend on google, the better
<exons> zotherstupidguy: it's a trust issue in this case (regarding google)
<zotherstupidguy> privacy is dead, lets move on
guardianx has joined #ruby
<rdark> I use vimperator/pentadactyl anyway so no menu bars for me
<adaedra> no.
<shevy> nah
<shevy> you can move on though :)
Ropeney has joined #ruby
<shevy> vimperator is that vim-keybindings thingy?
<adaedra> yep
<zotherstupidguy> all our data is stored today to be analyzed by young digital anthropology researchers in the future :)
<rdark> yup
Spami has quit [Client Quit]
<zotherstupidguy> its kinda cool!
echosystm has quit [Ping timeout: 276 seconds]
<shevy> zotherstupidguy not cool when others make money with my data without paying me!
<exons> zotherstupidguy: I don't think than the next generation will be interested in the past
<zotherstupidguy> we all be dead, our data will not
<zotherstupidguy> i think as always the past is important
<exons> but people care less and less about the past
n008f4g_ has quit [Ping timeout: 244 seconds]
Igorshp has joined #ruby
<zotherstupidguy> exons thats saying we don't care who enisten discovered emc2, we just gonna use it anyway
<zotherstupidguy> the story matters dude
<shevy> exons your nick is a strange one
jimms has joined #ruby
<zotherstupidguy> or gal :P
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
michael_mbp has quit [Excess Flood]
lordkryss has joined #ruby
<exons> shevy: yeah I joined #ruby this morning
<shevy> reminds me of molecular biology
michael_mbp has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<exons> It's the goal :)
senayar has quit [Remote host closed the connection]
doertedev has joined #ruby
fabrice31 has quit [Remote host closed the connection]
User458764 has joined #ruby
taiansu has quit [Remote host closed the connection]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
sdothum has joined #ruby
<platzhirsch> Is this Latin or what
* platzhirsch pokes exons
bigsky_ has quit [Read error: Connection reset by peer]
taiansu has joined #ruby
helpa has quit [Remote host closed the connection]
bigsky has joined #ruby
helpa has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
helpa has quit [Remote host closed the connection]
reinaldob has quit [Remote host closed the connection]
devoldmx has joined #ruby
reinaldob has joined #ruby
helpa has joined #ruby
reinaldob has quit [Remote host closed the connection]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
reinaldob has joined #ruby
helpa has quit [Remote host closed the connection]
<platzhirsch> oh don't rub that in my face
<exons> ;)
helpa has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
<exons> What's the difference between #ruby and #ruby-lang ?
reinaldob has quit [Remote host closed the connection]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
<platzhirsch> one is inferior, one isn't
taiansu has quit [Ping timeout: 258 seconds]
reinaldob has joined #ruby
toretore has quit [Quit: Leaving]
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
jimms has quit [Ping timeout: 272 seconds]
reinaldob has joined #ruby
anisha has joined #ruby
devoldmx has quit [Ping timeout: 250 seconds]
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
alex88 has joined #ruby
reinaldob has quit [Remote host closed the connection]
mtakkman has quit [Ping timeout: 272 seconds]
neanderslob has quit [Remote host closed the connection]
<ChampS_> Could not find json-1.8.2 in any of the sources (Bundler::GemNotFound)
<ChampS_> anyone an idea?
<ChampS_> ive installe json 1.8.2
<ChampS_> its in the gems list
reinaldob has joined #ruby
<gregf_> >> ("ruby-lang".split(//) - "ruby".split(//)).join()
<ruboto> gregf_ # => "-lang" (https://eval.in/367629)
reinaldob has quit [Remote host closed the connection]
<adaedra> you did bundle install, ChampS_ ?
<adaedra> no wait
<ChampS_> yes
reinaldob has joined #ruby
<ChampS_> all dependencies were installed, json 1.8.2 too
<adaedra> how did you require the gem in your Gemfile?
<ChampS_> I dont know, its a redmine 3 I try to install
<ChampS_> It's not my own application
<adaedra> because the way it's written seems weird
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
<ChampS_> one moment i take a look
Pathfinder has quit [Ping timeout: 256 seconds]
<shevy> exons historically #ruby was here first; the guy who registered it or something, vanished, and so people started #ruby-lang
<ChampS_> there is no json dependency in Gemfile but maybe another dependency needs json to worok
<ChampS_> *work
brandon has joined #ruby
jimms has joined #ruby
taiansu has joined #ruby
brandon is now known as Guest46050
<ChampS_> adaedra
<adaedra> no other guess
_blizzy_ has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra> the way bunder responds seems to indicate you required 'json-1.8.2' gem
<adaedra> but I'm not sure where this could come from
<ChampS_> but if I use "gem list" there is json 1.8.1 and 1.8.2 listed
<adaedra> yes, so 'json' gem
<ChampS_> yes but when load the redmine page there will be this error "Could not find json-1.8.2 in any of the sources (Bundler::GemNotFound)"
taiansu has quit [Ping timeout: 264 seconds]
<adaedra> What did you change in your redmine install? What did you do exactly?
<ChampS_> I copied the redmine folder to /usr/share/
<ChampS_> and typed "bundle install"
<adaedra> and it's where the error happens?
<ChampS_> noo the error happens when I go to localhost to get the redmine mainpage
mhib has joined #ruby
helpa has quit [Remote host closed the connection]
<ChampS_> in my browser
<adaedra> so you started the server too?
<ChampS_> yes
<ChampS_> its running by default
<adaedra> by default?
<adaedra> ah, it may be a passenger?
<ChampS_> yes its passenger
<ChampS_> ive no skill in using ruby
<adaedra> did you try restarting it after running bundle install?
<ChampS_> I rebooted several times
helpa has joined #ruby
helpa has quit [Remote host closed the connection]
ChoiKyuSang_ has joined #ruby
<ChampS_> so I think that restarts the server too
helpa has joined #ruby
<ChampS_> first i thought its a problem with permissions
<adaedra> Is the use you run `bundle install` with the same user you run passenger?
Igorshp has quit [Remote host closed the connection]
<ChampS_> sigh I dont know xD
<adaedra> *+r
<ChampS_> how can I check which user started passenger
<adaedra> look with ps
ChoiKyuSang has quit [Ping timeout: 252 seconds]
dc has joined #ruby
dc has quit [Client Quit]
bluOxigen has quit [Ping timeout: 265 seconds]
ChoiKyuSang_ has left #ruby [#ruby]
ChoiKyuSang has joined #ruby
sandelius has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ChampS_> so yes its the same user
Zai00 has quit [Quit: Zai00]
<ChampS_> passenger is running under "Ben" and as Ben I used "bundle install" in my /usr/share/redmine
bluOxigen has joined #ruby
<ChampS_> another idea adaedra?
<adaedra> I'm not used to passenger
airdisa has joined #ruby
tubuliferous_ has joined #ruby
<adaedra> bundle install runs without errors?
Guest46050 has quit [Ping timeout: 264 seconds]
<ChampS_> bundle show json show me this "/usr/share/redmine/vendor/bundle/ruby/2.2.0/gems/json-1.8.2"
TheHodge has quit [Quit: Connection closed for inactivity]
<ChampS_> but now i can try to find the problem using google searching for passenger cant find json, thx!
Igorshp has joined #ruby
avril14th has quit [Remote host closed the connection]
Igorshp has quit [Remote host closed the connection]
Criztian has joined #ruby
Sirilia has quit [Ping timeout: 264 seconds]
airdisa has quit [Ping timeout: 272 seconds]
tubuliferous_ has quit [Ping timeout: 264 seconds]
Igorshp has joined #ruby
SouL_|_ has quit [Ping timeout: 256 seconds]
yaw has joined #ruby
fabrice31 has joined #ruby
<jhass> ChampS_: what ruby version is the PassengerRuby directive pointing at?
yaw has quit [Read error: Connection reset by peer]
duncannz has quit [Read error: Connection reset by peer]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
reinaldob has left #ruby [#ruby]
Rollabunna has joined #ruby
fabrice31 has quit [Ping timeout: 272 seconds]
thatslifeson has joined #ruby
fabrice31 has joined #ruby
shuber_ has quit [Ping timeout: 246 seconds]
Rollabunna has quit [Ping timeout: 244 seconds]
stoffus has quit [Ping timeout: 245 seconds]
brandon has joined #ruby
thatslifeson has quit [Ping timeout: 240 seconds]
brandon is now known as Guest46133
charliesome has joined #ruby
phizzbuzz has quit [Ping timeout: 265 seconds]
clauswitt has joined #ruby
zotherstupidguy has quit [Ping timeout: 258 seconds]
echosystm has joined #ruby
RegulationD has joined #ruby
blueOxigen has joined #ruby
cajone has joined #ruby
zotherstupidguy has joined #ruby
juanpaucar has joined #ruby
charliesome has quit [Quit: zzz]
bluOxigen has quit [Ping timeout: 276 seconds]
<surs> what parameter to String.unpack decodes a binary string holding UTF 16 encoded text?
haxrbyte has joined #ruby
leafybas_ has joined #ruby
echosystm has quit [Ping timeout: 246 seconds]
doodlehaus has joined #ruby
stoffus has joined #ruby
bruno- has joined #ruby
RegulationD has quit [Ping timeout: 258 seconds]
<surs> and how could I tell from the documentation at http://ruby-doc.org/core-1.9.3/String.html#method-i-unpack ?
mathie has quit [Quit: Quitting...]
mathie has joined #ruby
<jhass> surs: .force_encoding('UTF-16LE') (BE) ?
juanpaucar has quit [Ping timeout: 265 seconds]
arup_r has joined #ruby
leafybasil has quit [Ping timeout: 246 seconds]
einarj has joined #ruby
rippa has joined #ruby
oo_ has joined #ruby
phizzbuzz has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
Igorshp has quit [Remote host closed the connection]
Igorshp has joined #ruby
cajone has quit [Quit: Leaving.]
cajone has joined #ruby
taiansu has joined #ruby
Papierkorb has joined #ruby
senayar has quit [Remote host closed the connection]
<flughafen> can i call features or scenarios from steps or just other steps
<flughafen> with cucumber
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sgambino has joined #ruby
cajone has quit [Client Quit]
taiansu has quit [Ping timeout: 252 seconds]
livathinos has quit [Ping timeout: 264 seconds]
jespada has joined #ruby
charliesome has joined #ruby
sent1nel has joined #ruby
sgambino has quit [Ping timeout: 264 seconds]
leafybas_ has quit [Remote host closed the connection]
leafybasil has joined #ruby
haxrbyte has quit [Remote host closed the connection]
arup_r has quit [Remote host closed the connection]
haxrbyte has joined #ruby
yh has quit [Ping timeout: 246 seconds]
DaniG2k has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
sent1nel has quit [Ping timeout: 272 seconds]
krz has quit [Quit: WeeChat 1.0.1]
haxrbyte has quit [Ping timeout: 264 seconds]
tkuchiki_ has quit [Ping timeout: 250 seconds]
arup_r has joined #ruby
nfk|laptop has joined #ruby
gizless has quit [Ping timeout: 264 seconds]
maasha has joined #ruby
gizless has joined #ruby
mikecmpb_ has joined #ruby
<maasha> Is there a more clever way to do this?: value = value.to_sym if value.is_a? String
<adaedra> >> :symbol.to_sym
<ruboto> adaedra # => :symbol (https://eval.in/367662)
mikecmpbll has quit [Read error: Connection reset by peer]
<adaedra> so, if your data can only be Symbol or String, you can just do .to_sym
abuzze has quit [Remote host closed the connection]
abuzze has joined #ruby
ldnunes has joined #ruby
DaniG2k has quit [Quit: leaving]
<shevy> we should write a pseudo language
<shevy> that generates ruby code
<Darkwater> call it sapphire
fabrice31 has quit [Remote host closed the connection]
kedare has joined #ruby
<Darkwater> but how about a preprocessor for sapphire
<adaedra> this is getting too meta
jmignault has joined #ruby
<adaedra> sometimes, you don't need to go deeper
<shevy> well we have all sort of language generators
<shevy> coffeescript!
Criztian has quit []
<adaedra> I don't like coffee
<adaedra> I'll make teascript
<Darkwater> IcedCoffeeScript
<adaedra> That's cold
shuber_ has joined #ruby
Zai00 has joined #ruby
CamonZ has joined #ruby
rodfersou has joined #ruby
DigitalDayTrader has joined #ruby
<maasha> adaedra: but if the value is nil or Fixnum ...
<adaedra> In that case no.
abuzze has quit [Remote host closed the connection]
einarj_ has joined #ruby
einarj has quit [Ping timeout: 276 seconds]
chinmay_dd has joined #ruby
ravenreborn has joined #ruby
<shevy> well
edwinvdgraaf has quit [Remote host closed the connection]
<shevy> something where you can omit "end" :)
doodlehaus has quit [Remote host closed the connection]
<ponga> shevy: is your first language german
edwinvdgraaf has joined #ruby
<shevy> ponga yeah
<shevy> ponga your first language is korean?
<ponga> are you more confident with english?
<ponga> yop
<ponga> iirc you said somthing like that
<shevy> nah, I am more confident with german... my brain has it easier to "think" in german, just as I guess matz has it easier to think in japanese as he is talking in english
<shevy> english sort of has more words though
<ponga> but i don't think you would have any delay thinking in English to use it
<shevy> Like you know, when you try to express something, and you have a similar word in your native tongue, but it is not 100% the same as in english (or another language)
shazaum has joined #ruby
<shevy> I dunno... take the japanese word kaizen
hoov has joined #ruby
<ponga> what, improve?
<shevy> yeah precisely
<shevy> continuous improvement
shazaum has joined #ruby
shazaum has quit [Changing host]
<shevy> it's like a different philosophy... take the samurai. they would want to perfect the drawing of the sword alone... nobody in europe could have had such a high dedication towards optimizing that (I dunno the word... iaiutsu or what was the name...)
ita-ness has joined #ruby
hectortrope has quit [Quit: WeeChat 0.4.2]
<ponga> shevy: just to add, kaizen is preferred to be used onto non material improvement, and kairyou is used for materialistic one
<ponga> just to add
<ponga> teaching you japanese!
hectortrope has joined #ruby
sigurding has joined #ruby
guardianx has quit [Remote host closed the connection]
gizmore has joined #ruby
gizless has quit [Ping timeout: 276 seconds]
chinmay_dd has quit [Remote host closed the connection]
trampi has joined #ruby
chinmay_dd has joined #ruby
Xoro has quit [Read error: Connection reset by peer]
keen________ has joined #ruby
keen_______ has quit [Ping timeout: 245 seconds]
einarj has joined #ruby
kaspernj has quit [Quit: Leaving]
mengu has quit [Read error: Connection reset by peer]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
einarj_ has quit [Ping timeout: 272 seconds]
roshanavand has quit [Ping timeout: 240 seconds]
thatslifeson has joined #ruby
<shevy> ponga cool
<shevy> so they even have separate words for rather similar concepts :)
streaxy has quit [Quit: Connection closed for inactivity]
senayar has joined #ruby
<shevy> kaizen as word is known here but kairyou ... never heard that one before
<ponga> shevy: its because kor/jap rely heavily on chinese characters for nouns
michaelreid has quit [Ping timeout: 252 seconds]
<ponga> nearly every one of them is compound word
HotCoder has joined #ruby
michaelreid has joined #ruby
qwertme has joined #ruby
einarj_ has joined #ruby
bruno- has quit [Ping timeout: 276 seconds]
einarj has quit [Ping timeout: 245 seconds]
senayar has quit [Remote host closed the connection]
<ponga> btw, for example, kairyou is more likely to be used for stuff like electronics, car, etc where kaizen its more about 'he is better treated now'
Xoro has joined #ruby
<ponga> however even japanese public don't often use two words distinctively
<ponga> ;p
chinmay_dd has quit [Remote host closed the connection]
airdisa has joined #ruby
gizless has joined #ruby
rahult has joined #ruby
thatslifeson has quit [Ping timeout: 244 seconds]
tubuliferous_ has joined #ruby
rahult is now known as rahult_
gizmore has quit [Ping timeout: 250 seconds]
rahult_ is now known as rahult
but3k4 has joined #ruby
<shevy> hmm
<shevy> there is some chinese word... molue or so
<shevy> it means something like "super-strategeme"... like to not just have a longer strategy, but a strategy of strategies
chinmay_dd has joined #ruby
senayar has joined #ruby
<shevy> hard to describe a symbol with characters :\
ramfjord has quit [Ping timeout: 264 seconds]
<ponga> i'd have no idea of chinese word until i see the actual words.. the reading is different among chn/kor/jap
<flughafen> an ya ha se yo
<ponga> like euro has different readings of latin adopted words
<ponga> hi flughafen
<flughafen> hi ponga
<ponga> impressive korean btw
<flughafen> thanks!
SouL_|_ has joined #ruby
<flughafen> i did't know korean used chinese characters too?
<flughafen> i've never seen it
lordkryss has quit [Quit: Connection closed for inactivity]
<ponga> flughafen: its only got readings left
<ponga> they ditched it around 40 yrs ago
<flughafen> ponga: ok.
<ponga> chinese for korean is more of latin to English now
tubuliferous_ has quit [Ping timeout: 256 seconds]
<ponga> just adopted words of origin
<flughafen> i'm familiar with japanase and chinese and korean. http://www.koreatimes.co.kr/www/index_kr.asp i uess it looks like there are soe characters in there
einarj_ has quit [Ping timeout: 246 seconds]
<flughafen> i guess*
ahmetkapikiran has quit [Quit: ahmetkapikiran]
<ponga> flughafen: japanese can also throw away using chinese , but kana system is kinda fucked up for readability without chinese
<flughafen> yeah.
<flughafen> i've studied a little japanese
HotCoder has quit [Read error: Connection reset by peer]
lidenskap has joined #ruby
<ponga> whereas korean alphabet can handle it alone, hence removal of chinese in kor
einarj has joined #ruby
<ponga> flughafen: trust me ,japanese does not even use whitespace, japanese without chinese & whitespace is like reading java code
<flughafen> ha
<ponga> that's why japanese pokemon game only uses kana with whitespace(its very rare!) cos its for kids
* hanmac1 likes the korean alphabet because the letters does look so SYFY like, like from aliens ;P
mrdmi_ has joined #ruby
edwinvdg_ has joined #ruby
<ponga> really? does it look syfy to euros?
ebbflowgo has joined #ruby
<flughafen> "euros?"
<flughafen> haha
n008f4g_ has joined #ruby
<Papierkorb> It does look quite distinct
<hanmac1> hm or was it the thai one? hm i need to look at my charmap
<flughafen> ponga: do you live in korea?
metadave__ has joined #ruby
<ponga> flughafen: yeah at the moment, im returning to NZ next month
ebbflowgo has left #ruby [#ruby]
<shevy> ponga yeah that was cool that the korean managed to simplify; I suppose written chinese is the most complicated written language
<flughafen> ponga: why korea?
nfk|laptop has quit [Quit: yawn]
<ponga> flughafen: cos im korean ser
nfk|laptop has joined #ruby
<flughafen> i figured since it's your first language.
<Papierkorb> hanmac1: thai letters look like a rain forest with chimps hanging from trees
<ponga> shevy: i still believe that if japanese adopted using whitespace, they could ditch chinese too
mrdmi has quit [Ping timeout: 256 seconds]
<flughafen> ponga: have they said why thye don't want to?
<ponga> flughafen: i can't understand 'why korea?' did you mean 'why nz?'
rodferso1 has joined #ruby
ahmetkapikiran has joined #ruby
lidenskap has quit [Ping timeout: 258 seconds]
<ponga> flughafen: 1) consensus that teaching chinese is a root of being japanese and SOPHISTICATED
<flughafen> ponga: oh, i just mean, i thought you would have lived in korea, but since you are returning to nz, are but you live in korea now. it's weird.
<ponga> 2) even if with Kana system and whitespace, readability is fucked up
edwinvdgraaf has quit [Ping timeout: 252 seconds]
<ponga> flughafen: staying with family sir
<ponga> but i miss my friends in NZ too
<flughafen> ponga: so just a vacation?
HotCoder has joined #ruby
<ponga> dunno, a long one tho, i will get a job and stay for couple of years
fmcgeough has joined #ruby
<ponga> then i think i'd move to japan too
ahmetkapikiran has quit [Client Quit]
<hanmac1> ponga: i didnt know if i find them again, but i once found letters in my charmap that does look similar to that one: http://www.sos-brigade.de/wordpress/wp-content/uploads/2009/07/Haruhi-08-Signs-300x168.jpg ;ppp
<flughafen> i'd love to stay in japan for a little bit
airdisa_ has joined #ruby
rodfersou has quit [Ping timeout: 246 seconds]
<flughafen> i just looked at a trip to japan next january. i'd like to go to a car show
<ponga> hanmac1: but korean letters consist more of straight lines! haha i see what you see there too
<flughafen> ponga: it could have easily replaced the writing from the predator
metadave__ has quit []
clauswitt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
metadave_ has joined #ruby
livathinos has joined #ruby
lektrik has quit [Ping timeout: 255 seconds]
nfk|laptop has quit [Quit: yawn]
<ponga> speaking of japanese, i believe using chinese letters is what blocks many westerners to learn japanese
airdisa has quit [Ping timeout: 265 seconds]
<flughafen> ponga: it's not so bad.
fabrice31 has joined #ruby
<ponga> japanese language is too minor considering its nation's popularity
<flughafen> ponga: it's more of a mental block
<sandelius> is autoload deprecated, or will be, or not?
<ponga> flughafen:yes i agree
<ponga> i was only speaking of linguistic barrier
<ponga> autoload?
<flughafen> i thought it would be hard learning the writing just because it looks so weird, bu i elarned the hirigana and katakana in an hour or something, then it was easy.
<flughafen> i mean, kanji is more difficult
<flughafen> obviously but once you learn the radicals, ... have you seen that chineasy? thing
quimrstorres has quit [Remote host closed the connection]
nfk|laptop has joined #ruby
<flughafen> ponga: ^^
<tacotaco_> that's basically noobified "remembering the kanji"
<ponga> oh good
<ponga> i still hate kanji
<flughafen> tacotaco_: yeah, but it's cool
<flughafen> ponga: how many do you know?
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ponga> flughafen: as good as japanese adults do
<flughafen> 1998!
ahmetkapikiran has joined #ruby
<ponga> learning japanese for korean is like learning portugueses for spanish flughafen
<ponga> it took me 5 months to make subtitles for anime
<flughafen> i took tae kwon do for a little while so i learned some korean words.
<ponga> flughafen: ironically, kanji serves superbly well for NLP purposes
<ponga> if you think of homonym issues!
<flughafen> hehe, yeah
<ponga> korean NLP is nightmare for that
chinmay_dd has quit []
<ponga> and tell you what flughafen , nobody on earth is compelety sure about korean grammar anyway
<ponga> its too fucked up
Chicken_John1 has joined #ruby
ebbflowgo has joined #ruby
echosystm has joined #ruby
Squarepy has joined #ruby
RegulationD has joined #ruby
<ponga> chief headmaster of korean national language centre said in interview that even he's not confident of using korean 100% accurate
<ponga> me niether
<ponga> that's why my ruby chatbot is based on japanese, not korean ;p
<flughafen> ponga: which chat bot?
Chicken_John1 has left #ruby [#ruby]
Rollabunna has joined #ruby
<ponga> flughafen: its my personal project, a chatbot that could serve as waifu
<tacotaco_> I still struggle with kanji (readings) and I've been on/off studying Japanese for 10 years now
Squarepy_ has joined #ruby
<tacotaco_> but that's because I'm lazy..
<ponga> "occasionally giving consolation and comfort communication"
juanpaucar has joined #ruby
<ponga> what i said to shevy
<ponga> ;p
metadave_ is now known as metadave
jottr has joined #ruby
<flughafen> takotako!
sepp2k has joined #ruby
echosystm has quit [Ping timeout: 244 seconds]
Axy has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
lordkryss has joined #ruby
Squarepy has quit [Ping timeout: 272 seconds]
agent_white has quit [Read error: Connection reset by peer]
Rollabunna has quit [Ping timeout: 244 seconds]
juanpaucar has quit [Ping timeout: 265 seconds]
phutchins has joined #ruby
Mia has quit [Ping timeout: 258 seconds]
<shevy> ponga lol
<shevy> robots are cool, but I will never be able to understand the japanese fascination there
charliesome has quit [Quit: zzz]
<shevy> flughafen yeah I can count from 1 to 10 in korean too because of taekwondo... we had to do pushups, but strangely enough, we only counted from 1 to 10, then started at 1 again... we never counted to 20 :P
<ponga> shevy: to give you a hint, men are ravaged by feminism in japan
fabrice31 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
thatslifeson has joined #ruby
dstarh has joined #ruby
<hanmac1> ponga: apropos "waifu" checkout the cartoon: "GravityFalls" specially Season2 Episode: "a Girl for Soos" ;P
yh has joined #ruby
<ponga> hanmac1: im watching it
<ponga> thanks
krz has joined #ruby
bmurt has joined #ruby
oo_ has quit [Remote host closed the connection]
DigitalDayTrader has quit [Ping timeout: 250 seconds]
jottr has quit [Ping timeout: 255 seconds]
andrew-l has quit [Read error: Connection reset by peer]
andrew-l has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
quimrstorres has joined #ruby
lektrik has joined #ruby
<hanmac1> ponga: hm you can also watch the other episodes before it (so you might watch the season before to understand what the cartoon is about)
<ponga> hanmac1: omg im gonna destroy japan lol
<ponga> that's exactly what im creating!
<hanmac1> ;P
clauswitt has joined #ruby
<hanmac1> ponga: its a american cartoon, not a japanise anime ;P
<ponga> i know but they kinda nailed the point
AxonetBE has joined #ruby
anaeem1__ has joined #ruby
einarj_ has joined #ruby
anaeem1__ has quit [Remote host closed the connection]
<AxonetBE> How can I sort an array to specific order? I want to have NO always at the end https://gist.github.com/DriesS/ef0593d46a7fcfa827b2
CloCkWeRX has quit [Ping timeout: 252 seconds]
<ponga> hm
<ponga> let me try
griffindy has joined #ruby
einarj has quit [Ping timeout: 272 seconds]
<hoelzro> AxonetBE: you can provide a comparison block to sort
<ponga> AxonetBE: i did arr.sort
<ponga> and No came at the end
agent_white has joined #ruby
<AxonetBE> ponga: lucky then, because values are dynamic
agent_white has quit [Read error: Connection reset by peer]
shuber_ has quit [Ping timeout: 272 seconds]
anaeem1_ has quit [Ping timeout: 272 seconds]
<ponga> hanmac1: am i too japanese to have found this scene charming? lol http://i.imgur.com/C2im7bD.png
tvw has joined #ruby
sankaber has joined #ruby
<hanmac1> ponga yeah gifferny is cool ;P
pwattstbd has joined #ruby
<hoelzro> arra.sort { |a, b| if a == 'NO' 1 elsif b == 'NO' -1 else a <=> b end }
<hoelzro> AxonetBE: I *think* that should do it
lektrik has quit [Ping timeout: 272 seconds]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
beamed_down is now known as Beamed
downwithbender has joined #ruby
sent1nel has joined #ruby
<ponga> i can see that working
hoov has quit [Ping timeout: 256 seconds]
norc has joined #ruby
<flughafen> hanmac1: are you japanese?
blueOxigen has quit []
downwithbender is now known as hoov
bluOxigen has joined #ruby
<norc> Hi. Given the following string, what kind of encoding am I probably looking at? 9<255><225>P<13>\<21><133> .<206><239><162><133>Q<182>
bluOxigen has left #ruby [#ruby]
fabrice31 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
<ponga> i don't think so flughafen
jottr has joined #ruby
agent_white has joined #ruby
<flughafen> i think i'm turning germanese i'm turning germanese i really think so
agent_white has quit [Read error: Connection reset by peer]
clauswitt has quit [Ping timeout: 256 seconds]
<hanmac1> flughafen: nope
<flughafen> hanmac1: are you hanmacanese?
djbkd has joined #ruby
bruno- has joined #ruby
<hanmac1> AxonetBE: hm i did: that:
<hanmac1> >> data =["Metal", "NO", "lionel"]; data.sort; data << "NO" if data.delete("NO"); data
<ruboto> hanmac1 # => ["Metal", "lionel", "NO"] (https://eval.in/367753)
gaboesquivel has joined #ruby
fabrice31_ has joined #ruby
agent_white has joined #ruby
<hanmac1> norc hm looks like a binary string printed with less
agent_white has quit [Read error: Connection reset by peer]
sent1nel has quit [Ping timeout: 276 seconds]
haxrbyte has joined #ruby
[k- has joined #ruby
JDiPierro has joined #ruby
xxtjaxx has joined #ruby
fabrice31 has quit [Ping timeout: 276 seconds]
<xxtjaxx> Hi! I'm playing around with a local copy of discourse, however the javascript when fetched from the server by the browser is packed in eval()'s how can I disable this?
bruno- has quit [Ping timeout: 245 seconds]
djbkd has quit [Ping timeout: 265 seconds]
joast has joined #ruby
<hanmac1> xxtjaxx: are you sure you are in the right channel? this is #ruby and not javascript, or you might want #rubyonrails
dblessing has joined #ruby
jpstokes has joined #ruby
fabrice31_ has quit [Remote host closed the connection]
fabrice31 has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
arup_r has quit [Remote host closed the connection]
freerobby has joined #ruby
cosmicexplorer has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
idafyaid has joined #ruby
unshadow has quit [Quit: leaving]
<xxtjaxx> hanmac1: it's a ruby on rails application and the source scripts in the tree are not wrapped in eval(). Equally when I added a new script that got turned into an eval() call
allenn has joined #ruby
jerius has joined #ruby
<hanmac1> xxtjaxx: yes for ruby on rails please use this channel #rubyonrails we are mosty not qualified enough to answer rails questions
rodferso1 has quit [Quit: leaving]
<xxtjaxx> ah my bad then cheers!
rodfersou has joined #ruby
Rapier- has joined #ruby
Stalkr_ has joined #ruby
jerius has quit [Client Quit]
sgambino has joined #ruby
jimms has quit [Ping timeout: 258 seconds]
kaspernj has joined #ruby
unshadow has joined #ruby
allenn has quit [Remote host closed the connection]
allenn has joined #ruby
chrissonar has quit [Remote host closed the connection]
einarj_ has quit [Read error: Connection reset by peer]
abuzze has joined #ruby
tier has joined #ruby
norc has quit [Ping timeout: 246 seconds]
einarj has joined #ruby
User458764 has joined #ruby
freerobby has quit [Quit: Leaving.]
kies has quit [Ping timeout: 264 seconds]
gizmore has joined #ruby
gizless has quit [Ping timeout: 258 seconds]
mary5030 has joined #ruby
CloCkWeRX has joined #ruby
kies has joined #ruby
TinkerTyper has quit [Ping timeout: 258 seconds]
enebo has joined #ruby
doodlehaus has joined #ruby
mengu has quit [Remote host closed the connection]
diegoviola has joined #ruby
<hfp> Hi all, this is my Rakefile: https://gist.github.com/anonymous/82a1fdf94724cfd111f7. When I run `rake spec`, it says there are 0 tests to be run. But if I do `rspec spec/call_controllers/outbound_controller.rb` then it finds 2 tests to run. Why is my rake task not seeing them?
ismaelga has joined #ruby
TinkerTyper has joined #ruby
yh is now known as yh_
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
mikecmpb_ is now known as mikecmpbll
fabrice31 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
sent1nel has joined #ruby
RegulationD has joined #ruby
JDiPierro has quit [Remote host closed the connection]
<sevenseacat> hfp: because your spec file doesnt have the suffix _spec.rb
<hfp> sevenseacat: oh I see
fabrice31_ has joined #ruby
User458764 has joined #ruby
<hfp> that was it... Thanks!
<sevenseacat> np
shadeslayer has quit [Ping timeout: 240 seconds]
jottr has quit [Ping timeout: 246 seconds]
yh_ is now known as yh__
taiansu has joined #ruby
sent1nel has quit [Ping timeout: 255 seconds]
yh__ has quit [Quit: Reconnecting]
maasha has quit [Ping timeout: 246 seconds]
yh__ has joined #ruby
hectortrope has quit [Quit: WeeChat 0.4.2]
RegulationD has quit [Ping timeout: 255 seconds]
fabrice31 has quit [Ping timeout: 250 seconds]
arup_r has joined #ruby
umgrosscol has joined #ruby
shadeslayer has joined #ruby
unshadow has quit [Quit: leaving]
arup_r_ has joined #ruby
tier has quit [Remote host closed the connection]
<fmcgeough> new to Ruby. using Postgres pg gem. Is it possible to use parameter for IN criteria in SELECT? I can’t seem to get it to be happy with what I’m passing.
fella5s has quit [Ping timeout: 252 seconds]
tier has joined #ruby
qwertme has joined #ruby
platzhirsch has left #ruby [#ruby]
JDiPierro has joined #ruby
kies has quit [Ping timeout: 252 seconds]
arup_r has quit [Ping timeout: 252 seconds]
einarj has quit [Ping timeout: 264 seconds]
fella5s has joined #ruby
ita-ness has quit [Remote host closed the connection]
<fmcgeough> I was hoping it’d expand out what I pass… so in ($1) gets replaced by a first element of array that is also an array. but that obviously is wrong.
tautvydas has quit [Ping timeout: 256 seconds]
anisha has quit [Quit: Leaving]
einarj has joined #ruby
ahmetkapikiran has quit [Quit: ahmetkapikiran]
Ropeney has joined #ruby
psy_ has joined #ruby
fabrice31_ has quit [Remote host closed the connection]
fabrice31 has joined #ruby
mengu has joined #ruby
metadave has left #ruby [#ruby]
jerius has joined #ruby
<mikecmpbll> fmcgeough: your code, please?
werelivinginthef has joined #ruby
RegulationD has joined #ruby
shuber_ has joined #ruby
ta has quit [Remote host closed the connection]
ahmetkapikiran has joined #ruby
<fmcgeough> https://gist.github.com/fmcgeough/cbb777816d951bf46b45 here’s a couple of obviously wrong approaches
kies has joined #ruby
yh__ has quit [Ping timeout: 256 seconds]
gambl0re has joined #ruby
tubuliferous_ has joined #ruby
enebo has quit [Read error: Connection reset by peer]
enebo has joined #ruby
Squarepy_ has quit [Quit: Leaving]
anaeem1_ has joined #ruby
yh__ has joined #ruby
antgel has quit [Ping timeout: 256 seconds]
senayar has quit [Remote host closed the connection]
antgel has joined #ruby
<fmcgeough> it appears you just have to build the SQL dynamically so that it matches the number of params you want to use for the IN
havenwood has joined #ruby
paulcsmith has joined #ruby
haxrbyte has quit [Ping timeout: 264 seconds]
tubuliferous_ has quit [Ping timeout: 264 seconds]
haxrbyte has joined #ruby
tjbiddle has joined #ruby
bronson has quit [Remote host closed the connection]
bronson has joined #ruby
lavros has joined #ruby
B1n4r10 has joined #ruby
slash_nick has joined #ruby
slash_nick has joined #ruby
B1n4r10 has quit [Client Quit]
Tux_007__ has quit [Quit: Connection closed for inactivity]
senayar has joined #ruby
arup_r_ has quit [Remote host closed the connection]
yh__ has quit [Ping timeout: 255 seconds]
tier has quit []
<mikecmpbll> fmcgeough: probably you need to use params = ["1,2"]
tagrudev has quit [Remote host closed the connection]
aganov has quit [Remote host closed the connection]
gizless has joined #ruby
gizmore has quit [Ping timeout: 256 seconds]
antgel has quit [Ping timeout: 246 seconds]
einarj_ has joined #ruby
einarj has quit [Ping timeout: 256 seconds]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
antgel has joined #ruby
Schwarzbaer has quit [Ping timeout: 256 seconds]
Jagan has joined #ruby
kobain has joined #ruby
<Jagan> HI
<Jagan> how to select random values in drop down list using ruby automations using POM method
<Jagan> Can you help me
orionstein has quit [Quit: ZNC - http://znc.in]
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
orionstein has joined #ruby
<Jagan> I have 12 values in my drop down list
<Darkwater> pom method?
<Jagan> Randomly select one value every time
andikr has quit [Remote host closed the connection]
sweeper_ is now known as sweeper
<Jagan> Page object model
<Jagan> Using automation for web application
<Darkwater> don't know, sorry
tjbiddle has quit [Quit: tjbiddle]
<Jagan> Oh
<Jagan> Can you tel me, in Ruby
<Jagan> Generally
<wasamasa> is that selenium-related?
echosystm has joined #ruby
<Jagan> no
<adaedra> Jagan: what, pick a random value in a list?
<wasamasa> mechanize?
hectortrope has joined #ruby
<Jagan> yes exactly
<adaedra> >>> [1, 2, 3, 4, 5].sample
<mikecmpbll> Jagan: rand*11+1 :d
<ruboto> adaedra # => /tmp/execpad-49f37b27b34e/source-49f37b27b34e:2: syntax error, unexpected '>' ...check link for more (https://eval.in/367773)
<adaedra> >> [1, 2, 3, 4, 5].sample
<ruboto> adaedra # => 5 (https://eval.in/367774)
<adaedra> >> [1, 2, 3, 4, 5].sample
<ruboto> adaedra # => 4 (https://eval.in/367775)
<Jagan> okay i will try
<mikecmpbll> .to_i
<adaedra> ?
<Jagan> Actually I take xpath for this drop down list
Feyn has quit [Quit: Leaving]
einarj_ has quit [Ping timeout: 256 seconds]
<Jagan> list = sel_composite_type
juanpaucar has joined #ruby
bkxd has joined #ruby
<Jagan> random_pick = listItem[rand(listItem.length)]
<Jagan> this is correct one
gsd has joined #ruby
<mikecmpbll> looks good
<Jagan> but its not working
<adaedra> Jagan: #sample does the same thing
<mikecmpbll> indeed, if you already have the array just use sample
<mikecmpbll> i thought you might want to use nth-child selector or something
einarj has joined #ruby
<Jagan> list = [sel_composite_type].sample
echosystm has quit [Ping timeout: 264 seconds]
<Jagan> this is correct one
<adaedra> remove the []
<mikecmpbll> what class is sel_composite_type?
<Jagan> no class for this one
* mikecmpbll doesn't know what's going on anymore :d
<adaedra> sel_composite_type has a class.
<mikecmpbll> ruby class, not css
<Jagan> okay.
yh__ has joined #ruby
podman has joined #ruby
michael_mbp has quit [Excess Flood]
juanpaucar has quit [Ping timeout: 250 seconds]
michael_mbp has joined #ruby
bigmac has quit [Ping timeout: 246 seconds]
Jagan has quit [Ping timeout: 246 seconds]
einarj has quit [Ping timeout: 264 seconds]
ciopte7 has joined #ruby
_blizzy_ has quit [Ping timeout: 265 seconds]
pwattstbd has quit [Quit: Textual IRC Client: www.textualapp.com]
Rollabunna has joined #ruby
jottr has joined #ruby
hanmac1 has quit [Quit: Leaving.]
sigurding has quit [Quit: sigurding]
kinduff has joined #ruby
einarj has joined #ruby
tjbiddle has joined #ruby
klue has joined #ruby
Rollabunna has quit [Ping timeout: 256 seconds]
<apeiros> yay, just wasted half an hour to figure that I forgot to remove the "https://" in the host part of Net::HTTP#start(host, …)
macmartine has joined #ruby
klue has left #ruby [#ruby]
speakingcode has joined #ruby
justinxr- has quit [Quit: what a turn of events]
jimms has joined #ruby
sent1nel has joined #ruby
<shevy> aha
<shevy> secure http biting you in the butt as well!
macmartine has quit [Remote host closed the connection]
thatslifeson has quit [Remote host closed the connection]
<apeiros> shevy: no. same thing happens if you'd leave "http://" in
freerobby has joined #ruby
<apeiros> the host is supposed to be there without the protocol.
zotherstupidguy has quit [Quit: leaving]
<adaedra> time to find a bug seems to be proportional to how stupid it is.
livathinos has quit []
unshadow has joined #ruby
xjstin has joined #ruby
mistermo_ has joined #ruby
ta has joined #ruby
<shevy> very true
<shevy> def intialize took me also half an hour
<shevy> I think it also has to do with how inconspicuous some bugs appear
mistermo_ has quit [Remote host closed the connection]
Spami has joined #ruby
iamninja_ has quit [Ping timeout: 265 seconds]
elfuego has joined #ruby
<elfuego> is it possible to change memory allocated to ruby on windows?
mengu has quit [Remote host closed the connection]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
senayar has quit [Remote host closed the connection]
einarj has quit [Ping timeout: 272 seconds]
davedev24_ has joined #ruby
allenn has quit [Remote host closed the connection]
mengu has joined #ruby
momomomomo has joined #ruby
senayar has joined #ruby
bkxd has quit [Ping timeout: 264 seconds]
chinmay_dd has joined #ruby
allenn has joined #ruby
<ChampS_> mh "Could not start the spawn server: /home/Ben/.rvm/wrappers/ruby-2.2.1/: Permission denied (13)" <<< anyone an idea why passenger could not be started?
haxrbyte_ has joined #ruby
bkxd has joined #ruby
edwinvdg_ has quit [Remote host closed the connection]
<adaedra> check permissions on this folder and folders above.
davedev2_ has quit [Ping timeout: 246 seconds]
edwinvdgraaf has joined #ruby
terlar has quit [Ping timeout: 256 seconds]
allenn has quit [Remote host closed the connection]
leafybas_ has joined #ruby
allenn has joined #ruby
einarj has joined #ruby
tubuliferous has quit [Ping timeout: 256 seconds]
<shevy> folder? :D
<ChampS_> all folders have 755
mengu has quit [Remote host closed the connection]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
trips has quit []
__chris has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<__chris> howdy.
crack_user has joined #ruby
haxrbyte has quit [Ping timeout: 276 seconds]
<adaedra> shevy: ?
<__chris> Is it bad practice to use 'MethodNotImplemented' exceptions when creating a base class for duck typing?
poguez_ has joined #ruby
<shevy> adaedra directory!!!
<jhass> yes, you just duplicate NoMethodError
selu has joined #ruby
<adaedra> shevy: same f(beep)g thing
<__chris> so is a base class even needed? I mean, /something/ should define the methods right?
Schwarzbaer has joined #ruby
casadei has joined #ruby
Pumukel has quit [Ping timeout: 265 seconds]
<ChampS_> folder/directory all the same :P
andrew-l has quit [Remote host closed the connection]
BlackGear has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ChampS_> adaedra all dirs have 755 so i think apache could read
<Mon_Ouie> A base class (or a module to be included) is only needed if there are method implementations that need to be inherited
<adaedra> yeah I read that
leafybasil has quit [Ping timeout: 264 seconds]
ahmetkapikiran has joined #ruby
sevenseacat has quit [Quit: Me dun like you no more.]
jimms_ has joined #ruby
edwinvdg_ has joined #ruby
<shevy> ohhhh nobu is on github too https://github.com/nobu
jimms has quit [Ping timeout: 272 seconds]
<__chris> Mon_Ouie, that makes sense to me. However, I'm not sure if those method bodies should just be a "# implement this method" or if they should return expected types as reponses etc..
<[k-> there is a NotImplementedError i think
ahmetkapikiran has quit [Client Quit]
Kricir has joined #ruby
<Mon_Ouie> If there's no sensible default implementation for a method, just let the subclasses implement it (and if there is, just use that)
lidenskap has joined #ruby
rahult is now known as rahult_
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
edwinvdgraaf has quit [Ping timeout: 255 seconds]
rahult_ is now known as rahult
<__chris> Mon_Ouie, my situation is I'm writing an API wrapper using the strategy pattern. Whats best practice to define the required methods for a strategy?
rahult is now known as rahult_
alex88 has quit []
allenn has quit [Remote host closed the connection]
thatslifeson has joined #ruby
tubuliferous has joined #ruby
airdisa_ has quit [Remote host closed the connection]
That1Guy has joined #ruby
riotjones has quit [Remote host closed the connection]
<shevy> hidden = STDIN.noecho(&:gets)
<Mon_Ouie> Just document them where they can be used, just like Enumerable documents how #each should be implemented in a class where you want to include Enumerable
<shevy> hmm what is this wicked magic
IrishGringo has quit [Remote host closed the connection]
Soda has joined #ruby
lidenskap has quit [Ping timeout: 240 seconds]
<Mon_Ouie> shevy: noecho from io/console runs a block during which, as the name implies, you can't see what is being typed on the terminal
<shevy> oh
crack_user has quit [Quit: Leaving.]
stoffus has quit [Quit: leaving]
crack_user has joined #ruby
<shevy> now I see... STDIN.noecho is not there by default but added by io/console
konsolebox has quit [Read error: Connection reset by peer]
CloCkWeRX has quit [Quit: Leaving.]
ebonics has joined #ruby
User458764 has joined #ruby
LiquidInsect has quit [Quit: leaving]
icebourg has joined #ruby
Squarepy has joined #ruby
icebourg has quit [Max SendQ exceeded]
LiquidInsect has joined #ruby
ta has quit [Remote host closed the connection]
shuber_ has quit [Ping timeout: 276 seconds]
icebourg has joined #ruby
CorySimmons has joined #ruby
sankaber has quit [Ping timeout: 250 seconds]
bkxd has quit [Ping timeout: 255 seconds]
ortuna has quit [Ping timeout: 250 seconds]
fabrice31 has quit [Remote host closed the connection]
sigurding has joined #ruby
fabrice31 has joined #ruby
AlexRussia has quit [Ping timeout: 272 seconds]
fabrice31 has quit [Remote host closed the connection]
arietis has quit [Quit: Leaving.]
AxonetBE has quit [Quit: AxonetBE]
paulcsmith has quit [Quit: Lingo: www.lingoirc.com]
phutchins has quit [Ping timeout: 272 seconds]
aryaching has joined #ruby
paulcsmith has joined #ruby
f3lp has joined #ruby
pokui has joined #ruby
lemur has joined #ruby
wookiehangover has quit [Ping timeout: 256 seconds]
AlphaAtom has joined #ruby
Mon_Ouie has quit [Ping timeout: 264 seconds]
ravenreborn has quit [Ping timeout: 256 seconds]
AlphaAtom has quit [Max SendQ exceeded]
konsolebox has joined #ruby
AlphaAtom has joined #ruby
osieln has joined #ruby
konsolebox has quit [Read error: Connection reset by peer]
f3lp has quit [Client Quit]
phutchins has joined #ruby
antgel has quit [Ping timeout: 272 seconds]
aspiers has quit [Ping timeout: 258 seconds]
wookiehangover has joined #ruby
kaspernj has quit [Remote host closed the connection]
phutchins has quit [Client Quit]
mary5030 has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
diegoviola has quit [Quit: WeeChat 1.2]
taiansu has quit [Remote host closed the connection]
taiansu has joined #ruby
segfalt has joined #ruby
jespada has quit [Ping timeout: 264 seconds]
DerisiveLogic has joined #ruby
MatthewsFace has joined #ruby
taiansu has quit [Ping timeout: 245 seconds]
einarj has quit [Ping timeout: 264 seconds]
lemur has quit [Remote host closed the connection]
einarj has joined #ruby
AlexRussia has joined #ruby
failshell has joined #ruby
Eiam_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<failshell> how do i access all elements of an array after index n? i can't seem to figure this one out this morning
konsolebox has joined #ruby
ebbflowgo has left #ruby [#ruby]
konsolebox has quit [Read error: Connection reset by peer]
snockerton has joined #ruby
goodcodeguy has joined #ruby
MasterPiece has joined #ruby
<apeiros> failshell: ary[n..-1]
<apeiros> actually (n+1)..-1
airdisa has joined #ruby
MasterPiece has quit [Client Quit]
jackjackdripper has joined #ruby
crack_user has quit [Quit: Leaving.]
gagrio has quit [Ping timeout: 264 seconds]
<failshell> apeiros: thanks that works
wookiehangover has quit [Ping timeout: 256 seconds]
<apeiros> yw
freerobby has quit [Quit: Leaving.]
<shevy> that is quite uniform across Ruby; you can access String objects also the same way; Range objects also same/similar through []
<ponga> shevy: thanks
* ponga takes note
<ScriptGeek> how does that work?
<ScriptGeek> I mean, what range is that?
ravenreborn has joined #ruby
goodcodeguy has quit [Client Quit]
taiansu has joined #ruby
TheNet has joined #ruby
<shevy> actually I did not know that Range had [] hahaha :D
<shevy> oh no wait
<shevy> it does not :(
wookiehangover has joined #ruby
<shevy> I was using [11..22] rather than (11..22)
<apeiros> ScriptGeek: negative index in array access is interpreted as size+index
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> but you can convert into Array, and then it would work (11..22).to_a
<apeiros> i.e. ary[1..-1] is computed as ary[1..(ary.size-1)]
<ponga> i was gonna tell the same thing but apeiros was still active
<ScriptGeek> apeiros: that's a nice trick
<ponga> gud
<Darkwater> what's the most ruby way to get [1,2,3,4,5,6,7,8,9,0]?
<apeiros> Darkwater: put it into your code literally
<apeiros> if you want to be clever: [*1..9, 0]
<shevy> haha
<shevy> he wants to be clever
<havenwood> Or if you want to be silly.
<havenwood> >> 10.times.to_a.rotate
<ruboto> havenwood # => [1, 2, 3, 4, 5, 6, 7, 8, 9, 0] (https://eval.in/367796)
<shevy> I can see it
SouL_|_ has quit [Read error: No route to host]
<shevy> wow
<shevy> I have not seen .rotate before
<shevy> how do you know these things havenwood?
<ponga> wow what is .rotate
<havenwood> shevy: I read code!
<ponga> damn it havenwood the secret!
<St1gma> he is lonely?
<Darkwater> cool stuff
<St1gma> j/k
Lucky__ has joined #ruby
<ponga> i was gonna use 10.times too but didn't think of rotate
ravenreborn_ has joined #ruby
<havenwood> St1gma: That too!
Lucky__ has quit [Client Quit]
<shevy> [ "a", "b", "c", "d" ].rotate # => ["b", "c", "d", "a"]
<St1gma> heheh
ravenreborn has quit [Ping timeout: 258 seconds]
Lucky__ has joined #ruby
<shevy> is .rotate a new method though?
<havenwood> shevy: nope
Hijiri has quit [Quit: WeeChat 1.0.1]
Soda has quit [Remote host closed the connection]
djbkd has joined #ruby
<ScriptGeek> looks like a shift and then a push
<havenwood> shevy: well, relatively new i guess
<havenwood> shevy: introduced in 1.9 i guess
macmartine has joined #ruby
lemur has joined #ruby
tejasmanohar has joined #ruby
towski_ has joined #ruby
<shevy> ScriptGeek yeah
SouL_|_ has joined #ruby
<ponga> >> 10.times.to_a
<ruboto> ponga # => [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] (https://eval.in/367803)
<tejasmanohar> is HTTP.post("http://atol.to/rpc/setLink", :body => "originalURL=https://google.com/") the same as curl -d "originalURL=https://google.com" http://atol.to/rpc/setLink
<ponga> so .roate is .push(.shift) ?
<Darkwater> except it also takes an atg
<Darkwater> arg
Adran has quit [Remote host closed the connection]
<adaedra> no, it's a series a shuffles until it looks like it
timonv has quit [Ping timeout: 264 seconds]
<havenwood> >> 'ponga'.chars.rotate(-1).join
<ruboto> havenwood # => "apong" (https://eval.in/367804)
<havenwood> adaedra: hehe
<ponga> so its a.push(a.shift)
taiansu has quit [Remote host closed the connection]
<shevy> here is the .rotate() code: https://gist.github.com/shevegen/1714d12d173c9546ba49
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
taiansu has joined #ruby
JDiPierro has quit [Remote host closed the connection]
<tejasmanohar> anyone here use cloudflare and know how to turn this off?
konsolebox has joined #ruby
pandaant has joined #ruby
devoldmx has joined #ruby
wallerdev has joined #ruby
crack_user has joined #ruby
konsolebox has quit [Remote host closed the connection]
<tejasmanohar> got it
vikaton has quit []
<shevy> havenwood well that is much cleaner
<tejasmanohar> curl -d "originalURL=http://kishcom.com" http://atol.to/rpc/setLink is this sending plain body ?
<tejasmanohar> POOST
<tejasmanohar> trying to do it with https://github.com/httprb/http.rb#post-requests
<tejasmanohar> *POST
yh__ has quit [Ping timeout: 256 seconds]
<adaedra> Stop shouting
<shevy> adaedra do you have good weather
taiansu has quit [Ping timeout: 256 seconds]
<havenwood> Yeah, HTTP, quit yelling "verbs" at us!
casadei has quit []
<adaedra> shevy: not too bad currently.
<shevy> it's raining here right now :(
<adaedra> Know that somewhere in Australia, it's literally raining spiders.
<tejasmanohar> lol sorry
echosystm has joined #ruby
<shevy> raining spiders?
riotjones has joined #ruby
<shevy> shame that sevenseacat is not connected right now
xxtjaxx has quit [Remote host closed the connection]
xxtjaxx has joined #ruby
wookiehangover has quit [Ping timeout: 265 seconds]
<tejasmanohar> HTTP.post("http://atol.to/rpc/setLink", :body => "originalURL=https://google.com/") - anyhow this is not hitting the right endpoint but the curl -d request is . if anyone knows why please let me know thanks
<adaedra> We got hail yesterday, maybe it crossed germany and got to you, shevy
ravenreborn_ has quit [Ping timeout: 246 seconds]
mjmac has quit [Ping timeout: 256 seconds]
<shevy> then I should be safe since I am not in Germany \o/
<adaedra> no, you're at the other side of it.
haxrbyte_ has quit [Ping timeout: 256 seconds]
einarj has quit [Ping timeout: 250 seconds]
sigurding has quit [Quit: sigurding]
juanpaucar has joined #ruby
<shevy> to the west of here are the Alps, they are fairly big. I guess that influences bad weather to the west... but here in the east it's all superflat
einarj has joined #ruby
<adaedra> Actually, I don't know how weather works over Europe.
<adaedra> All I know is that radioactive clouds stops at the French boundaries. :x
cyrus_mc has left #ruby [#ruby]
mjmac has joined #ruby
rahult_ is now known as rahult
rahult is now known as rahult_
echosystm has quit [Ping timeout: 252 seconds]
riotjones has quit [Ping timeout: 272 seconds]
TheNet has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> that is very kind of you guys
<adaedra> ?
taiansu has joined #ruby
<shevy> that you don't send radioactive clouds over a border :)
<adaedra> no, the other way around.
<adaedra> let me provide context.
juanpaucar has quit [Ping timeout: 258 seconds]
<shevy> oh you mean officials that don't tell the truth
<shevy> I guess that happens in most countries anyway
<adaedra> Yeah
senayar has quit []
<shevy> austria is closer to the ukraine than france though, we got a higher dose :D
<adaedra> WE GOT NOTHING.
<adaedra> I SWEAR/
wookiehangover has joined #ruby
<shevy> Fukushima was pretty amazing too
anaeem1_ has quit [Remote host closed the connection]
<shevy> like first a tsunami hits, then a nuclear meltdown happens
<shevy> now I see why godzilla became famous there
<adaedra> I'm not even sure you got so much more, as the cloud went north to Sweden first
<shevy> because reality can be worse than godzilla!
<shevy> adaedra yeah probably
jimms has joined #ruby
<havenwood> tejasmanohar: Try?: HTTP.post 'http://atol.to/rpc/setLink', form: {originalURL: 'https://google.com'}
jimms_ has quit [Read error: Connection reset by peer]
antgel has joined #ruby
<havenwood> tejasmanohar: Or: HTTP.post 'http://atol.to/rpc/setLink', json: {originalURL: 'https://google.com'}
wookiehangover has quit [Ping timeout: 276 seconds]
Spami has quit [Quit: This computer has gone to sleep]
towski_ has quit [Remote host closed the connection]
The_Phoenix has joined #ruby
shuber_ has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
wildroman2 has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
crack_user has quit [Ping timeout: 264 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
Rarikon has joined #ruby
CorySimmons has quit [Quit: Bye!]
werelivi_ has joined #ruby
jottr has quit [Ping timeout: 256 seconds]
chthon has quit [Quit: Ex-Chat]
x1337807x has joined #ruby
SouL_|_ has quit [Remote host closed the connection]
Xoro has quit [Read error: Connection reset by peer]
paulcsmith has quit [Quit: Be back later ...]
werelivinginthef has quit [Read error: Connection reset by peer]
parduse has quit [Read error: Connection reset by peer]
parduse has joined #ruby
msgodf has quit [Ping timeout: 246 seconds]
pusewicz has quit []
pusewicz has joined #ruby
lemur has quit [Remote host closed the connection]
ghostmoth has joined #ruby
enebo has joined #ruby
sigurding has joined #ruby
alexherbo2 has joined #ruby
Rollabunna has joined #ruby
yaw has joined #ruby
SouL_|_ has joined #ruby
casadei has joined #ruby
CorySimmons has joined #ruby
Squarepy has quit [Quit: Leaving]
<shevy> this is kind of strange... programs such as zlib-1.2.8
wallerdev has quit [Quit: wallerdev]
<shevy> they come both with a cmake-based way to compile, but also with GNU configure
Spami has joined #ruby
bruno- has joined #ruby
Rollabunna has quit [Ping timeout: 264 seconds]
bronson has quit [Remote host closed the connection]
c0m0 has quit [Ping timeout: 256 seconds]
alnklkn has joined #ruby
yaw has quit [Ping timeout: 245 seconds]
<alnklkn> Is it possible to have two functions with the same name, but different args?
ki0_ has joined #ruby
<alnklkn> def foo(a) and def foo(a, b)?
einarj has quit [Ping timeout: 246 seconds]
cjim_ has joined #ruby
phutchins has joined #ruby
<alnklkn> I'm trying, but keep getting E, [2015-05-20T16:43:27.576683 #22533] ERROR -- : ArgumentError: wrong number of arguments (1 for 2)
_blizzy_ has joined #ruby
<kinduff> >> [{c: [1,2,3]},{a: [1,2,3]}, {c: [1,2,3]}].group_by{|r| r.keys}
<ruboto> kinduff # => {[:c]=>[{:c=>[1, 2, 3]}, {:c=>[1, 2, 3]}], [:a]=>[{:a=>[1, 2, 3]}]} (https://eval.in/367807)
bigsky_ has joined #ruby
<shevy> alnklkn didn't you ask this question before?
<kinduff> how can I sort alphabetically?
bootstrappm has joined #ruby
<alnklkn> shevy: no, but I imagine this is a commong question for people coming from the c/java world
einarj has joined #ruby
<[k-> alnklkn: no, but you can use optional args
<shevy> yeah, I think the last guy was from C++
<shevy> best you can do is make the arguments optional
michaeldeol has joined #ruby
<shevy> and then handle the way you called them inside the method
<bootstrappm> morning all
<shevy> e. g. def foo(first_arg, *all_other_args_go_in_here)
paulcsmith has joined #ruby
<shevy> or
<kinduff> >> [{c: [1,2,3]},{a: [1,2,3]}, {b: [1,2,3]}].group_by{|r| r.keys}.sort_by{|a,b| a.first <=> b.first }
<shevy> def foo(first_arg = 'some default', *all_other_args_go_in_here)
<ruboto> kinduff # => [[[:c], [{:c=>[1, 2, 3]}]], [[:a], [{:a=>[1, 2, 3]}]], [[:b], [{:b=>[1, 2, 3]}]]] (https://eval.in/367808)
<kinduff> craph
ki0 has quit [Ping timeout: 240 seconds]
bigsky has quit [Read error: Connection reset by peer]
bruno- has quit [Ping timeout: 252 seconds]
<alnklkn> shevy: ok, so foo(a, *b), and then check if *b was given inside the method?
ki0_ has quit [Ping timeout: 246 seconds]
GaryOak_ has joined #ruby
leafybas_ has quit [Remote host closed the connection]
<shevy> alnklkn yeah, b should be an Array by default
<shevy> so you can do b.empty?
bigsky has joined #ruby
<shevy> if it is empty, no arg was passed extra
<shevy> otherwise, you passed at least one argument
_blizzy_ has quit [Read error: Connection reset by peer]
leafybasil has joined #ruby
<shevy> you could also use a hash, for something similar
<alnklkn> shevy: perfect, that will do. Also seeing "if b" also can be used
<shevy> let me try with a hash example
bigsky_ has quit [Ping timeout: 245 seconds]
paulcsmith has quit [Quit: Lingo: www.lingoirc.com]
<alnklkn> shevy: oops, sorry that will only work if b is defaulted to true in the method definition
_blizzy_ has joined #ruby
<alnklkn> your way should work. trying it now.
Soda has joined #ruby
bigsky has quit [Read error: Connection reset by peer]
<shevy> >> def foo(i, hash = {}); puts "hi "+i; puts 'you feel well, yup' if hash[:feeling] == :feeling_well; end; foo('joe', feeling: :feeling_well)
<ruboto> shevy # => hi joe ...check link for more (https://eval.in/367809)
jbomo has joined #ruby
deric_skibotn has joined #ruby
lotherk has joined #ruby
<shevy> hmm
cirn0 has joined #ruby
<bootstrappm> is Aeyrix around? One of our AWS servers ran out of space this morning and we're running high on costs ... re-reconsidering DigitalOcean again :$
<shevy> ruboto's output is a bit confusing
hanmac has left #ruby [#ruby]
<shevy> I think the first part, hi joe, should instead become "hi joe"
lotherk has quit [Client Quit]
<shevy> that was the old way with eval-in, wasn't it?
harleypig has quit []
lotherk has joined #ruby
harleypig has joined #ruby
anaeem1_ has joined #ruby
<shevy> Aeyrix is sleeping like a baby!
<shevy> send a SWAT team over to wake him up
<bootstrappm> haha shame. I'll just read reviews online
bigsky has joined #ruby
tejasmanohar has quit [Quit: WeeChat 1.1.1]
* dudedudeman is awake
* dudedudeman knows that doesn't help
<shevy> dudedudeman you may be awake but what is this good for
<shevy> go back to sleep
* dudedudeman mumbles
[k- has quit [Quit: Lingo: www.lingoirc.com]
* dudedudeman goes back to attempting write test
Zai00 has quit [Quit: Zai00]
towski_ has joined #ruby
<eam> poll: raise on missing entry? or how else to communicate back record not found when querying a k/v store?
yh__ has joined #ruby
<eam> should I just emulate Hash with [] vs fetch()?
<bootstrappm> depends if mission critical or not. If mission critical and user facing output error message and exit immediately. If not user facing, raise error. If not mission critical, existence check in code and carry on
vickleton has joined #ruby
vcoinminer has quit []
vcoinminer has joined #ruby
<shevy> wow
<shevy> bootstrappm talks in working pseudo-code
<bootstrappm> hahaha
ravenreborn has joined #ruby
cosmicexplorer has quit [Ping timeout: 256 seconds]
RegulationD has quit [Remote host closed the connection]
konsolebox has joined #ruby
mikecmpbll has joined #ruby
<eam> pretty sure that's legal ruby syntax
baroquebobcat has joined #ruby
iliketurtles has joined #ruby
shuber_ has quit [Remote host closed the connection]
<eam> bootstrappm: this would be implementing the db interface
<eam> as in, I'm writing Hash
<eam> what I'm hearing is, supply both interfaces
einarj has quit [Ping timeout: 246 seconds]
<bootstrappm> ahh, I see. IMO then [] should raise, fetch should return false
<bootstrappm> [] to me implies get something thats there, fetch implies go see if its there
<eam> bootstrappm: that's opposite what Hash does, though?
tejasmanohar has joined #ruby
iliketurtles has quit [Client Quit]
bashusr has quit [Ping timeout: 256 seconds]
<bootstrappm> yeah?
<eam> >> {}[:missing]
<ruboto> eam # => nil (https://eval.in/367810)
iliketurtles has joined #ruby
arietis has joined #ruby
<eam> >> {}.fetch :missing
<ruboto> eam # => key not found: :missing (KeyError) ...check link for more (https://eval.in/367811)
wallerdev has joined #ruby
wildroman2 has joined #ruby
ravenreborn has quit [Ping timeout: 256 seconds]
<eam> the other complication is that this k/v store allows various behaviors for storing and fetching keys
<eam> like dup entries (allow, overwrite, fail)
yh__ has quit [Ping timeout: 258 seconds]
<bootstrappm> I see. Then it's your call. I think my opinions come from some other ORMS / db interfaces I've used. I'd compare it w/ other db interfaces instead of native hashes.
rdark has quit [Quit: leaving]
arietis has quit [Client Quit]
<bootstrappm> what does the k/v store do when you fetch something thats not there?
shuber_ has joined #ruby
sigurding has quit [Quit: sigurding]
<eam> it returns an indicator saying "nothing there"
<eam> C doesn't have exceptions so there's no design issue
<eam> everything is call, check returned value
<tejasmanohar> if i just want to separaate out some code thats going to be used in a bunch of parts of my project
<tejasmanohar> module is the best way?
<eam> I'm gonna just supply two methods, one for sloppy "nil on failure" and one that raises
ixti has joined #ruby
einarj has joined #ruby
paulcsmith has joined #ruby
Eiam_ has joined #ruby
hanmac has joined #ruby
DanKnox has quit [Quit: ZNC - http://znc.in]
DexterLB has quit [Read error: Connection reset by peer]
DanKnox has joined #ruby
rahult_ is now known as rahult
rahult is now known as rahult_
<bootstrappm> eam good plan. Is the whole thing in C or is this some native extension for ruby? if so the ! comes to mind as a way to differentiate nil on failure vs raise on failure
n008f4g_ has quit [Ping timeout: 272 seconds]
marr has quit [Ping timeout: 272 seconds]
<tejasmanohar> like if i want to shorten urls in my app in many places https://gist.github.com/tejasmanohar/9b8711ef1eb4958edaf5 this would be ideal
<tejasmanohar> and then load this module all over
<bootstrappm> yeah, a mixin tejasmanohar
Jackneill has joined #ruby
<tejasmanohar> :)
<bootstrappm> sounds like a good way to do it. Are you using a framework or just plain ruby?
Eiam_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<tejasmanohar> rails
<tejasmanohar> so its autoloaded since its in lib/
<tejasmanohar> but i asked here since its about modules itself not rails
<tejasmanohar> bootstrappm: now do i call Atol#shorten when i want it?
DexterLB has joined #ruby
<shevy> eam the difficulties of having to make a choice isn't it!
<bootstrappm> Yeah, I haven't used rails 4 extensively but they likely still have the helpers module right tejasmanohar?
<bootstrappm> Put shorten in there
taiansu has quit []
<bootstrappm> it'll be available in all your controllers and views I'm pretty sure
<tejasmanohar> Helpers module ? like app/helpers no thats a view helper
<tejasmanohar> thats for view helpers i thought
<tejasmanohar> i COULD but its for views
JDiPierro has joined #ruby
<tejasmanohar> i need it in models too, i need shorten everywhere hehe
elfuego has quit [Quit: elfuego]
<eam> bootstrappm: making a native extension for ruby
<eam> I'll link it in a bit, would love to avoid making idiomatic errors
<bootstrappm> IIRC in rails3 if it was loaded as a helper it was included by default in the controllers as well. Could be wrong about that though, its been years
<bootstrappm> tejasmanohar from your article " So basically you define a helper module (or let Rails generators define it for you) which will be auto-magically included in the controller and available to both the controller and the view."
<tejasmanohar> yeah but its for view helpers
<tejasmanohar> like im not going to ever use this in the view
<tejasmanohar> only controller...
alnklkn has quit [Quit: Page closed]
<bootstrappm> and model?
<tejasmanohar> also, i need it in the models so scratch that ;)
<tejasmanohar> yeah
<tejasmanohar> models + controllers
<tejasmanohar> i think this lib/atol.rb is my best bet. right bootstrappm ?
jeregrine has quit []
jeregrine has joined #ruby
<bootstrappm> one way to do it, sure. Going back to logistics, put "include Atol" in your model, making sure the file is required
<bootstrappm> that's how you have #shorten in your model
<tejasmanohar> in controller i dont need to tho?
<tejasmanohar> bootstrappm: does that go above or below class User < ActiveRecord::Base
kinduff has quit [Ping timeout: 264 seconds]
Beamed is now known as beamed_down
<bootstrappm> goes below but the require should go at the top of the file
<bootstrappm> in controller you wouldn't need to if you put that method in helpers.rb, but since you're putting it in lib you need to also
CorySimmons has quit [Quit: Bye!]
<tejasmanohar> ah ok
ciopte7 has quit [Quit: ciopte7]
arietis has joined #ruby
freerobby has joined #ruby
anaeem1_ has quit [Quit: Leaving...]
<tejasmanohar> bootstrappm: and then can i call shorten at the top level or is it Atol.shorten?
cosmicexplorer has joined #ruby
<bootstrappm> nope, if you use 'include' that method becomes a part of the class you've included it into
<bootstrappm> it would be Model#short
alol___ has quit []
shevy has quit [Ping timeout: 276 seconds]
<bootstrappm> shorten*
<tejasmanohar> ah
<tejasmanohar> :)
alol___ has joined #ruby
<tejasmanohar> wait, it becomes User.shorten weirdd
<tejasmanohar> i was gonna run shorten on this link - https://gist.github.com/tejasmanohar/463943e47f3db7507391#file-gistfile1-rb-L39
thomcom has joined #ruby
<tejasmanohar> ref_link
<tejasmanohar> can i import it in a way that its separate
<tejasmanohar> `import Atol` ?
<tejasmanohar> bootstrappm: ^
jespada has joined #ruby
<bootstrappm> separate how? and its not import its include
<bootstrappm> and it shouldn't become User.shorten unless you define the method as 'def self.shorten'
<tejasmanohar> oh ok
leafybasil has quit [Ping timeout: 258 seconds]
beamed_down is now known as Beamed
<bootstrappm> it should exist on an instance of user
<tejasmanohar> hm i dont understand.
<tejasmanohar> with self.shorten it'd be Atol.shorten right?
<tejasmanohar> or no it'd be User.shorten if i had def self.shorten as the method header
<tejasmanohar> right?
<tejasmanohar> what does it become in the controllre? UsersController.shorten ?
longfeet has joined #ruby
Kricir has quit [Remote host closed the connection]
ramfjord has joined #ruby
Kricir has joined #ruby
jottr has joined #ruby
jespada has quit [Ping timeout: 246 seconds]
<bootstrappm> correct
<bootstrappm> the last things you said, correct
Igorshp has quit [Remote host closed the connection]
shuber_ has quit [Remote host closed the connection]
bronson has joined #ruby
freerobby has quit [Quit: Leaving.]
Kricir has quit [Ping timeout: 250 seconds]
einarj has quit [Ping timeout: 272 seconds]
thatslifeson has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 272 seconds]
einarj has joined #ruby
imkmf has joined #ruby
enebo has quit [Quit: enebo]
antgel has quit [Ping timeout: 255 seconds]
MasterPiece has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
iliketurtles has quit [Quit: zzzzz…..]
kinduff has joined #ruby
DerisiveLogic has quit [Ping timeout: 246 seconds]
sandelius has joined #ruby
quimrstorres has quit [Remote host closed the connection]
shuber_ has joined #ruby
osieln has quit [Quit: leaving]
quimrstorres has joined #ruby
thatslifeson has joined #ruby
ponga has quit [Quit: Leaving...]
postmodern has joined #ruby
joonty has quit [Quit: joonty]
einarj has quit [Ping timeout: 244 seconds]
bruno- has joined #ruby
dorei has joined #ruby
ciopte7 has joined #ruby
quimrstorres has quit [Ping timeout: 264 seconds]
DanKnox_ has joined #ruby
ravenreborn has joined #ruby
Igorshp has joined #ruby
pardusf has joined #ruby
parduse has quit [Read error: Connection reset by peer]
iliketurtles has joined #ruby
DanKnox has quit [Excess Flood]
DanKnox_ is now known as DanKnox
choke has quit [Ping timeout: 256 seconds]
einarj has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
crack_user has joined #ruby
bruno- has quit [Ping timeout: 244 seconds]
<__chris> is it just overhead to make internal libraries for a single project into gems?
<__chris> * unnecessary overhead
<GaryOak_> __chris: if you are going to use them in multiple places or want to distribute them between servers easily it might be a good idea
tautvydas has joined #ruby
TheNet has joined #ruby
<GaryOak_> But then you have to reupload everything to rubygems when you make changes
dstarh has quit [Quit: Textual IRC Client: www.textualapp.com]
<__chris> Hmm. ok. thanks for your opinion,
_Tristan-Speccy_ is now known as Tristan-Speccy
vt102 has joined #ruby
konsolebox has quit [Quit: Leaving]
lavros has quit [Quit: leaving]
<GaryOak_> __chris: It might also encourage better dev practices since other people would have access to it
<__chris> true
inspiron has joined #ruby
<inspiron> i'm on a system that doesn't have a ~/.gemrc but the proxy settings are working. i'm not sure where they have it or what their doing. is there a way to find out where .gemrc is from the commandline ?
<inspiron> like ruby --get-config-path or something
einarj has quit [Ping timeout: 276 seconds]
yh__ has joined #ruby
A205B064 has joined #ruby
jimms has quit [Read error: Connection reset by peer]
jimms_ has joined #ruby
gusrub has joined #ruby
jimms_ is now known as jimms
mtakkman has joined #ruby
chipotle has quit [Quit: cheerio]
chinmay_dd has quit []
lxsameer has joined #ruby
tjbiddle has joined #ruby
choke has joined #ruby
thatslifeson has quit [Remote host closed the connection]
einarj has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
echosystm has joined #ruby
dumdedum has quit [Ping timeout: 245 seconds]
mary5030 has quit [Remote host closed the connection]
ciopte7 has quit [Quit: ciopte7]
thatslifeson has joined #ruby
mary5030 has joined #ruby
pokui has quit [Ping timeout: 240 seconds]
RegulationD has joined #ruby
juanpaucar has joined #ruby
djellemah has quit [Ping timeout: 256 seconds]
woodruffw has joined #ruby
wildroman2 has quit [Read error: Connection reset by peer]
echosystm has quit [Ping timeout: 250 seconds]
wildroman2 has joined #ruby
<adaedra> ~/.gemrc is user rc file, there may be one in /etc/gemrc
chrisja has joined #ruby
mary5030 has quit [Ping timeout: 255 seconds]
RegulationD has quit [Ping timeout: 256 seconds]
iliketurtles has joined #ruby
n008f4g_ has joined #ruby
macmartine has quit []
juanpaucar has quit [Ping timeout: 272 seconds]
mtakkman has quit [Ping timeout: 255 seconds]
zotherstupidguy has joined #ruby
<adaedra> proxy settings can also be set from environment for some programs
RegulationD has joined #ruby
lidenskap has joined #ruby
casadei_ has joined #ruby
lidenskap has quit [Remote host closed the connection]
commondream has joined #ruby
TheNet has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lidenskap has joined #ruby
arup_r has joined #ruby
ciopte7 has joined #ruby
Hounddog has quit [Read error: Connection reset by peer]
endash has joined #ruby
casadei has quit [Ping timeout: 272 seconds]
lidenskap has quit [Read error: Connection reset by peer]
ramfjord has joined #ruby
lidenskap has joined #ruby
irc2samus has joined #ruby
freerobby has joined #ruby
devoldmx has quit [Ping timeout: 272 seconds]
devoldmx has joined #ruby
<irc2samus> hello guys, I'm trying to run some tests for a gem but I'm getting `require': cannot load such file -- boss_struct (LoadError) and I don't know which gem has that file, I have boss 0.4 installed and `gem install boss_struct` does not find anything
<irc2samus> also tried `gem install boss-struct` same
bjeanes has quit []
doodlehaus has quit [Ping timeout: 258 seconds]
bjeanes has joined #ruby
kirun has joined #ruby
TheNet has joined #ruby
devoldmx has quit [Remote host closed the connection]
poguez_ has quit [Quit: Connection closed for inactivity]
mjuszczak has joined #ruby
<havenwood> irc2samus: That's an ancient gem... What are you doing to get that LoadError? There's no `require 'boss_struct'` in boss 0.4 so, something is amiss.
sent1nel has quit [Remote host closed the connection]
Soda has quit [Remote host closed the connection]
bigsky has quit [Read error: Connection reset by peer]
bigsky has joined #ruby
<irc2samus> yeahh everything is a bit out of date in this project at the moment, I'll check with some coworkers to see how they run these then, thought it might be some common error. thanks havenwood
droidburgundy has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
droidburgundy has joined #ruby
ramfjord has quit [Quit: Lost terminal]
<havenwood> irc2samus: It looks like there are newer gems that are maintained and have stuff like tests and ci. If you can swap it out I would.
kinduff has quit [Ping timeout: 272 seconds]
<havenwood> irc2samus: Using a gem with no updates since 2008 with no tests is generally irksome. Flee!
<irc2samus> I'll make the recommendation, they should update Rails and even Ruby as well
lordkryss has quit [Quit: Connection closed for inactivity]
<irc2samus> not bad people honestly just a bit understaffed atm
<havenwood> irc2samus: yboss or bossman-gem maybe, the former looks pretty good but i've not used it
qwertme has joined #ruby
pandaant has quit [Remote host closed the connection]
<havenwood> irc2samus: yeah, seems easier to keep rails updated incrementally than letting it fall behind. i don't know if the total time of incremental upgrade is actually less but it sure feels like it compared to having things get dated and having to upgrade multiple generations at once.
<havenwood> irc2samus: good luck!
<irc2samus> thanks!
featheryahn_ has quit []
featheryahn_ has joined #ruby
creakybones has joined #ruby
jottr has joined #ruby
cmckee has joined #ruby
ravenreborn has quit [Ping timeout: 255 seconds]
hellschreiber has quit []
xxneolithicxx has quit [Ping timeout: 255 seconds]
TheNet has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
endash has quit [Quit: endash]
hellschreiber has joined #ruby
joonty has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
cmckee has quit [Remote host closed the connection]
irc2samus has quit [Quit: Page closed]
doodlehaus has joined #ruby
Adran has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
Rollabunna has joined #ruby
livathinos has joined #ruby
dseitz has joined #ruby
mase-chatter has joined #ruby
Rollabunna has quit [Ping timeout: 252 seconds]
bruno- has joined #ruby
haxrbyte has joined #ruby
baweaver has joined #ruby
shuber_ has quit [Remote host closed the connection]
livathinos has quit []
ismaelga has quit [Remote host closed the connection]
ismaelga has joined #ruby
ismaelga has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 244 seconds]
yh__ has quit [Quit: Reconnecting]
momomomomo has quit [Quit: momomomomo]
yh__ has joined #ruby
baweaver has quit [Ping timeout: 246 seconds]
failshell has quit [Remote host closed the connection]
jokke has quit [Ping timeout: 265 seconds]
jerius has quit [Quit: /quit]
baweaver has joined #ruby
airdisa has quit [Remote host closed the connection]
tejasmanohar has quit [Ping timeout: 256 seconds]
Agoldfish has joined #ruby
shuber_ has joined #ruby
lidenskap has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
mase-chatter has quit [Quit: Leaving]
hoov has quit []
turtil has joined #ruby
jerius has joined #ruby
tejasmanohar has joined #ruby
phutchins has quit [Ping timeout: 244 seconds]
DerisiveLogic has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
airdisa has joined #ruby
haxrbyte_ has joined #ruby
einarj has quit [Ping timeout: 256 seconds]
debajit has joined #ruby
elfuego has joined #ruby
wildroman2 has quit [Read error: Connection reset by peer]
kenneth has joined #ruby
wildroman2 has joined #ruby
tejasmanohar has quit [Quit: WeeChat 1.1.1]
roshanavand has joined #ruby
haxrbyte has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
gigetoo has quit [Remote host closed the connection]
haxrbyte_ has quit [Client Quit]
juanpaucar has joined #ruby
einarj has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
woodruffw has quit [Quit: And then he took off.]
woodruffw has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
haxrbyte has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
haxrbyte_ has joined #ruby
Igorshp has quit [Remote host closed the connection]
doertedev has quit [Quit: Lost terminal]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
sigurding has joined #ruby
jespada has joined #ruby
Igorshp has joined #ruby
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 37.0.2/2015041600]]
Igorshp has quit [Remote host closed the connection]
tercenya has joined #ruby
Igorshp has joined #ruby
haxrbyte has quit [Ping timeout: 272 seconds]
adambeynon has quit []
adambeynon has joined #ruby
haxrbyte_ has quit [Remote host closed the connection]
haxrbyte has joined #ruby
cranq has quit [Ping timeout: 264 seconds]
michaeldeol has joined #ruby
jespada has quit [Ping timeout: 264 seconds]
cranq has joined #ruby
P1RATEZ has joined #ruby
einarj_ has joined #ruby
einarj has quit [Ping timeout: 276 seconds]
thiagovsk has joined #ruby
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aspiers has joined #ruby
cranq has quit [Remote host closed the connection]
ki0 has joined #ruby
<baweaver> Curious if anyone has a thought on this. How can you zip one set with a single element?
cranq has joined #ruby
<baweaver> such that
platzhirsch has joined #ruby
<baweaver> [1,2,3].zip(1) returns [[1,1],[2,1],[3,1]]
<havenwood> >> [1, 2, 3].zip [1].cycle
<ruboto> havenwood # => [[1, 1], [2, 1], [3, 1]] (https://eval.in/367848)
pokui has joined #ruby
<baweaver> ah so I had it backwards
vikaton has joined #ruby
<baweaver> that'd do it
<adaedra> I'd have gone with map :x
<havenwood> >> [1, 2, 3].each_with_object(1).to_a
<ruboto> havenwood # => [[1, 1], [2, 1], [3, 1]] (https://eval.in/367849)
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
<pokui> hi all, is there a way to tell attr_accessor :foo that it should raise an error if it's set to the wrong kind of value? (or doesn't have responds_to?)
<adaedra> havenwood: are u a wizard
ki0 has quit [Client Quit]
<adaedra> pokui: just implement foo= yourself
jottr has joined #ruby
<pokui> adaedra: ok. was being lazy :)
kappy has joined #ruby
<adaedra> Mh, general question
<adaedra> How do we protect e-mails on webpages from being crawled by evil bots in 2015?
<baweaver> images
<baweaver> gets most of them at least
<bootstrappm> in my experience doing something like email (at) domain (dot) com still works pretty well adaedra
<adaedra> images - 1, (at) (dot) - 1
<baweaver> Problem is that a clever bot is going to find both
aspiers has quit [Ping timeout: 250 seconds]
<adaedra> image of (at) (dot)?
<adaedra> :p
<baweaver> security through obscurity
einarj_ has quit [Ping timeout: 245 seconds]
<bootstrappm> def, image of (at) (dot) hahaha
xxtjaxx has quit [Remote host closed the connection]
xxtjaxx has joined #ruby
kyle____ is now known as kyle__
tjbiddle has quit [Quit: tjbiddle]
einarj has joined #ruby
kenneth has quit [Read error: Connection reset by peer]
michael_mbp has quit [Excess Flood]
mengu has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hostess has quit [Quit: No Ping reply in 180 seconds.]
devoldmx has joined #ruby
epochwolf has quit [Excess Flood]
hostess has joined #ruby
epochwolf has joined #ruby
towski_ has quit [Quit: Leaving...]
michael_mbp has joined #ruby
baweaver has quit [Remote host closed the connection]
iamninja_ has joined #ruby
sigurding has quit [Quit: sigurding]
shuber_ has quit [Remote host closed the connection]
Kricir has joined #ruby
kenneth has joined #ruby
sent1nel has joined #ruby
jottr has quit [Read error: Connection reset by peer]
lidenskap has joined #ruby
cirn0 has quit [Remote host closed the connection]
jottr has joined #ruby
lkb has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
cirn0 has joined #ruby
enebo has joined #ruby
bruno- has joined #ruby
jokke has joined #ruby
haxrbyte has quit [Read error: Connection reset by peer]
bb010g has joined #ruby
devoldmx has quit [Remote host closed the connection]
lidenskap has quit [Ping timeout: 250 seconds]
tvw has quit [Remote host closed the connection]
Beoran has joined #ruby
iamninja_ has quit [Quit: WeeChat 1.1.1]
iamninja has joined #ruby
bruno- has quit [Ping timeout: 244 seconds]
lkba has joined #ruby
echosystm has joined #ruby
lkb has quit [Quit: Wychodzi]
einarj has quit [Ping timeout: 240 seconds]
redondo has joined #ruby
einarj has joined #ruby
tautvydas has quit [Remote host closed the connection]
<redondo> hi all, what does mean when the irb shows '?' in the prompt?
xxneolithicxx has joined #ruby
echosystm has quit [Ping timeout: 252 seconds]
<bootstrappm> need to replace the hard drive redondo
<bootstrappm> (that's a joke ;) )
<redondo> :)
<bootstrappm> did you just start irb up or did you do something?
<redondo> I did something
<redondo> I tried to do a for loop
Beoran has quit [Ping timeout: 256 seconds]
wallerdev has quit [Quit: wallerdev]
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bootstrappm> put the code you tried in a gist and send it
mjuszczak has quit []
rocknrollmarc has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
platzhirsch has joined #ruby
Lucky__ has joined #ruby
<redondo> bootstrappm: ^^^
x1337807x has joined #ruby
<That1Guy> I'm a little lost on what's going on, I have an error bundler: command not found: rspec
<That1Guy> Install missing gem executables with `bundle install`
bashusr has joined #ruby
arietis has quit [Quit: Leaving.]
shuber_ has joined #ruby
yh__ has quit [Quit: Reconnecting]
<bootstrappm> yeah redondo so that looks to be happening because you have the syntax wrong
<bootstrappm> for isn't used much in ruby and its not used like that
yh__ has joined #ruby
<bootstrappm> That1Guy bundler is a gem manager. When you run `bundle install` it install the gems specified in your current directory's Gemfile
<bootstrappm> `bundle exec` executes a command using your current gemset
<bootstrappm> right there bundler is trying to execute the command 'rspec', a command that is installed with the rspec gem
<bootstrappm> but it doesn't exist because you haven't installed the rspec gem
<bootstrappm> so its telling you to run `bundle install` to install the gems that you're supposed to have
<redondo> bootstrappm: so what should be the right syntax in that case?
einarj has quit [Ping timeout: 272 seconds]
<bootstrappm> eliminate the for and put '.each' after the people_in_aspects method call redondo
<That1Guy> That fixed part of it, I think. Thanks bootstrap:
<bootstrappm> google ruby iterators
einarj has joined #ruby
<redondo> bootstrappm: thanks
<That1Guy> It's throwing so many other errors now, I've got to figure out what it means now.
<bootstrappm> That1Guy understand bundler and gems first or you're gonna get very frustrated very fast
codecop has quit [Remote host closed the connection]
wildroman2 has quit [Read error: Connection reset by peer]
wildroman2 has joined #ruby
yh__ has quit [Quit: Reconnecting]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yh__ has joined #ruby
Beoran has joined #ruby
Prysm has joined #ruby
<That1Guy> My understanding is that I shouldn't really have to know what those are yet for this part of the class. They said it should all be set up for me to download and I just need to make a method that follows their instructions and then paste their short thing into terminal to see if it worked.
<bootstrappm> yeah ... how's that working out for you?
<That1Guy> I just want to make sure that I'm not too in over my head.
<bootstrappm> that may have been good advice if, as they said, you copied and pasted and it worked
<bootstrappm> but it didn't
pokui has quit [Remote host closed the connection]
<bootstrappm> so now as the learner you have more to do :)
<bootstrappm> at the very least bundle install should have worked
<bootstrappm> what did it tell you?
jerius has quit [Quit: /quit]
<umgrosscol> That1Guy: Are you on a windows machine?
<That1Guy> bundle install said that it complete
<That1Guy> osx umgrosscoi:
<That1Guy> then I tried to run the thing they told me to paste again and I got
<That1Guy> ration.rb:896:in `load': cannot load such file -- /Users/TheMoores/Documents/Work/Ruby/Repos/prep-work-master/coding-test-2/practice-problems/spec/spec/00_nearest_larger_spec.rb (LoadError)
<That1Guy> from /Users/TheMoores/.rvm/gems/ruby-2.1.3/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:in `block in load_spec_files'
<That1Guy> from /Users/TheMoores/.rvm/gems/ruby-2.1.3/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:in `each'
Igorshp has quit [Remote host closed the connection]
<That1Guy> from /Users/TheMoores/.rvm/gems/ruby-2.1.3/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:in `load_spec_files'
<That1Guy> from /Users/TheMoores/.rvm/gems/ruby-2.1.3/gems/rspec-core-2.14.7/lib/rspec/core/command_line.rb:22:in `run'
<That1Guy> from /Users/TheMoores/.rvm/gems/ruby-2.1.3/gems/rspec-core-2.14.7/lib/rspec/core/runner.rb:80:in `run'
<That1Guy> from /Users/TheMoores/.rvm/gems/ruby-2.1.3/gems/rspec-core-2.14.7/lib/rspec/core/runner.rb:17:in `block in autorun'
<umgrosscol> bootstrappm: Odd that they threw the gemfile lock in there.
<That1Guy> ... sorry
<umgrosscol> That1Guy: Use a paste bin like service or gist if you want to copy in code or outputs
qwertme has joined #ruby
<bootstrappm> I always include my Gemfile.lock too :), IIRC Heroku makes you do it too
<That1Guy> Will do.
rotcetorptekcop has quit [Remote host closed the connection]
<umgrosscol> That1Guy: What directory are you in when you try to run the rspec command?
Spami has quit [Quit: Leaving]
turtil has quit [Ping timeout: 265 seconds]
<That1Guy> I've tried it from a few of them
<That1Guy> I tried lib
<That1Guy> spec
<umgrosscol> can you stat or ls that file? does it actually exist?
<umgrosscol> It's looking in spec/spec/ which is not right.
einarj has quit [Ping timeout: 272 seconds]
<umgrosscol> run the command from the practice-problems/ dir
<That1Guy> I've also tried it from the parent dir
<bootstrappm> do it from the root directory That1Guy
<That1Guy> I'm going to do that again
jerius has joined #ruby
<bootstrappm> the one above spec
treehug88 has joined #ruby
<umgrosscol> The project root directory. Should be coding-test-2/practice-problems/
<That1Guy> I got a different error this time
<umgrosscol> Gist your new error.
<That1Guy> This looks right
einarj has joined #ruby
Spami has joined #ruby
<umgrosscol> or it's rspec output about failed tests?
joonty has quit [Quit: joonty]
<That1Guy> I don't know how to gist yet,
<dudedudeman> gist.github.com
<That1Guy> I know how to just put it on github though. Just haven't done gist yet.
<umgrosscol> That1Guy: That looks like rspec output telling you tests failed.
<dudedudeman> do it anonymously if you don't want us all peeping your github profile. lol
lidenskap has joined #ruby
wallerdev has joined #ruby
<umgrosscol> That1Guy: As per instructions, you now have to fill in the function stubs to make the tests pass.
<That1Guy> Peep on my github profile all you want. :D I'm just a student learning.
<bootstrappm> ^ yep, looks like you're good to go
<That1Guy> I am good to go. Thanks guys!!
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<bootstrappm> your rspec tests are failing, the course is probably telling you to make them work to learn
<umgrosscol> That1Guy: Being a student is tough. Just getting hello world to work these days can be.... involved.
<bootstrappm> >> puts 'hello world'
<ruboto> bootstrappm # => hello world ...check link for more (https://eval.in/367856)
<bootstrappm> ;)
iliketurtles has joined #ruby
lidenskap has quit [Remote host closed the connection]
cirn0 has quit [Remote host closed the connection]
<That1Guy> I quit my job to study full time while my wife works. It's pretty tough.
lidenskap has joined #ruby
<bootstrappm> uff That1Guy! That IS tough
<That1Guy> IRC has been my best friend since I found out about that last week. :D
<bootstrappm> you have my help when you need it, just ping me
<That1Guy> Thank you all !!!
<dudedudeman> That1Guy: IRC has been great for me over the past couple weeks. asking the right questions is key
<dudedudeman> i'm still learning that part. :)
<bootstrappm> I go through phases where i'm really active or non-existent
<bootstrappm> this is one of the former
<umgrosscol> That1Guy: Well, keep at it. Just need to fill in the contents of the rb files in practice-problems/lib/ now.
vikaton has quit []
bashusr has quit [Ping timeout: 258 seconds]
failshell has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
michael_mbp has quit [Excess Flood]
einarj has quit [Ping timeout: 240 seconds]
einarj has joined #ruby
djellemah has joined #ruby
michael_mbp has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Kricir has quit [Remote host closed the connection]
failshell has quit [Ping timeout: 256 seconds]
Kricir has joined #ruby
DerisiveLogic_ has joined #ruby
jtdowney has joined #ruby
djbkd has quit [Remote host closed the connection]
sandelius has joined #ruby
DerisiveLogic has quit [Ping timeout: 255 seconds]
turtil has joined #ruby
TheHodge has joined #ruby
mwlang has joined #ruby
That1Guy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<mwlang> How can I rescue more than one kind of exception (but not all) in one rescue?
rocknrollmarc has quit [Read error: Connection reset by peer]
jespada has joined #ruby
<zotherstupidguy> /join #archlinux
<zotherstupidguy> sorry!
rocknrollmarc has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sumark has quit [Remote host closed the connection]
That1Guy has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<adaedra> mmh, code duplication
<apeiros> mwlang: rescue A, B, C => ex
kenneth has quit [Read error: Connection reset by peer]
sumark has joined #ruby
einarj_ has joined #ruby
<mozzarella> mwlang: did you know that you don't need the begin block in that case? it's implicit inside a function
<mwlang> aperios, and with that, all specs pass! thanks. I was doing A => ex, B => ex, C => ex
<mwlang> mozzarella: yeah, I know.
einarj has quit [Ping timeout: 272 seconds]
<mozzarella> ok
<apeiros> mwlang: tab completion for nicks
<mwlang> apeiros: heh, I thought the tab was broke, but I was just plain misspelling
<adaedra> It's ok, mlwang.
vdamewood has quit [Quit: Life beckons.]
lidenskap has quit [Remote host closed the connection]
<adaedra> mh, maybe I shouldn't have swapped these two :x
<mwlang> adaedra: :-) I’ve been programmin’ since 4am. about to wrap this thing up because I ain’t exactly thinking straight any more.
Zai00 has joined #ruby
<adaedra> get this man a bed
Rapier- has quit [Quit: (null)]
haxrbyte has joined #ruby
<mwlang> I agree!
aryaching has quit []
haxrbyte has quit [Remote host closed the connection]
devoldmx has joined #ruby
baroquebobcat has joined #ruby
lidenskap has joined #ruby
Rollabunna has joined #ruby
failshell has joined #ruby
<mwlang> if there’s one thing to be said about TDD…when you’re bone-frickin-tired and you complete a feature and get specs passing, you can *still* deploy with confidence that the whole website ain’t gonna stop workin’.
zotherstupidguy has quit [Quit: leaving]
WildBamboo-Josh has joined #ruby
tvw has joined #ruby
<xxneolithicxx> its pfchangs, what
<dudedudeman> mwlang: please teach me the ways of the test
pizzaops has quit []
<GaryOak_> mwlang: unless of course you don't have confidence in your tests
<dudedudeman> but not today. tomorrow, when you're not sleeping. :P
pizzaops has joined #ruby
bashusr has joined #ruby
<mwlang> dudedudeman: there’s already a nice website for all that: http://betterspecs.org/
<adaedra> mwlang: now that you broke everything, go to sleep, before you break yourself.
<dudedudeman> mwlang: ugh, spec style. :(
baweaver has joined #ruby
rocknrollmarc has quit []
<dudedudeman> is there something like this for test unit style?
<mwlang> dudedudeman: No idea. I left unit test behind years ago. I only do unit test when contributing on other people’s gems
Rollabunna has quit [Ping timeout: 258 seconds]
einarj_ has quit [Ping timeout: 276 seconds]
commondream has quit [Remote host closed the connection]
<mwlang> dudedudeman: even so, the principals should be roughly the same.
<mwlang> structure and naming and so on.
<dudedudeman> right
<mwlang> The best tests tell the user stories.
einarj has joined #ruby
<dudedudeman> i guess, since i"m just wading in to the realm of testing, and actually caring about it, i'm looking for rich guides or thought processes to go with it
imkmf has quit [Ping timeout: 264 seconds]
<mwlang> dudedudeman: Probably a good book on the Pragmatic bookshelf for that.
selu has quit [Quit: Textual IRC Client: www.textualapp.com]
<dudedudeman> i'm actually on the website now. lol
bruno- has joined #ruby
<eam> I stick with test/unit because it matches well with every other language environment I also use
<eam> I really don't understand spec
djbkd has joined #ruby
aspiers has joined #ruby
roshanavand has quit [Ping timeout: 246 seconds]
<mwlang> eam: I guess to be fair, it is more BDD than TDD.
<dudedudeman> i don't know if it's just me, but i kind of want ot start with unit testing before trying to grasp and effectively use spec style?
<eam> ruby's test/unit is just like python's unittest is just like perl's Test::More is just like ...
<mwlang> At the end of the day,there’s really no difference between the two other than vocabulary.
bruno- has quit [Ping timeout: 250 seconds]
JoshGlzBrk has joined #ruby
danman has joined #ruby
<adaedra> tests are for the weak who can't code right the first time. :x
<eam> adaedra: or the second time, or who share work with others who ... :D
<eam> how will you know which you are without tests? ;)
<mwlang> heh…problem is, those who can’t code right the first time often can’t code tests, either. :-)
<adaedra> :-)
<adaedra> is this why I don't do tests? :x
<eam> mwlang: but people who can code right and who get pull requests ...
einarj has quit [Ping timeout: 256 seconds]
kenneth has joined #ruby
multi_io has quit [Ping timeout: 256 seconds]
einarj has joined #ruby
kenneth has quit [Max SendQ exceeded]
Beamed is now known as beamed_down
kenneth has joined #ruby
multi_io has joined #ruby
black_ has joined #ruby
<mwlang> personally, I’m glad to see that the dogma has largely disappeared (I don’t see ppl running around yellin’ “TATFT”) and everyone collectively glaring down the newbies with “why aren’t you testing?” bullying glares.
baweaver has quit [Remote host closed the connection]
inspiron has quit [Ping timeout: 240 seconds]
kenneth has quit [Read error: Connection reset by peer]
jespada has quit [Ping timeout: 244 seconds]
mjuszczak has joined #ruby
<mwlang> its just another tool in the tool box of the well-balanced developer’s repertoire
<eam> absolutely
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
bmurt has quit []
io_syl has joined #ruby
bashusr has quit [Ping timeout: 272 seconds]
<adaedra> but it's sooo boring to do :'(
sdothum has joined #ruby
bashusr has joined #ruby
IrcDroidClient has joined #ruby
einarj has quit [Ping timeout: 258 seconds]
<bootstrappm> i like 'em
<bootstrappm> don't do 'em much
<bootstrappm> but like when i do them. its like a level of satisfaction and peace of mind that you don't get when you just write something
<dudedudeman> our office has about a 1:2 ratio of code to tests
<dudedudeman> 1 line of code for every 2 lines of testing
TheNet has joined #ruby
CaptainCibai has joined #ruby
einarj has joined #ruby
umgrosscol has quit [Quit: Quit]
<adaedra> that's good
<adaedra> I've been taught that it's coverage the metric to look at, though.
wildroman2 has quit [Read error: Connection reset by peer]
roshanavand has joined #ruby
wildroman2 has joined #ruby
RegulationD has quit [Remote host closed the connection]
<eam> there isn't really a meaningful metric
jenrzzz has quit [Ping timeout: 265 seconds]
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<eam> eg what's "coverage" on a method called add(i,j)
JDiPierro has quit [Remote host closed the connection]
n1ftyn8 has quit []
julieeharshaw has quit [Ping timeout: 255 seconds]
<eam> if I'm implementing an add method I'm going to need tests for all the tricky corner cases, there's no generic metric to tell me if I've enumerated them
n1ftyn8 has joined #ruby
<adaedra> yes, true
<adaedra> there's also rules for that, but not really measurable
<adaedra> At least coverage is measurable
Pumukel has joined #ruby
leafybasil has joined #ruby
<eam> yeah it's an ok minimal check "you didn't even try over here"
kenneth has joined #ruby
iliketurtles has quit [Read error: Connection reset by peer]
einarj has quit [Ping timeout: 276 seconds]
crack_user has quit [Quit: Leaving.]
iliketurtles has joined #ruby
einarj has joined #ruby
vikaton has joined #ruby
ldnunes has quit [Quit: Leaving]
Juanchito has quit [Quit: Connection closed for inactivity]
kobain has quit [Ping timeout: 265 seconds]
julieeharshaw has joined #ruby
kenneth has quit [Read error: Connection reset by peer]
CaptainCibai has quit [Remote host closed the connection]
failshell has quit []
CaptainCibai has joined #ruby
reprazent has quit [Quit: Bye]
<dudedudeman> meh. puma is freaking out on me when i try to start my app... tells me my connection_adapter isn't set? but... i'd like to argue with the computer and say that it is...
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iliketurtles has quit [Quit: zzzzz…..]
Jarboe has joined #ruby
julieeharshaw has quit [Ping timeout: 250 seconds]
ismaelga has joined #ruby
St1gma has quit [Quit: Leaving]
That1Guy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra> You can yell at it
<dudedudeman> done that
kirun has quit [Quit: Client exiting]
kobain has joined #ruby
einarj has quit [Ping timeout: 265 seconds]
aspiers has quit [K-Lined]
Jackneill has quit [Remote host closed the connection]
__chris has quit [Quit: This computer has gone to sleep]
<adaedra> Louder.
einarj has joined #ruby
julieeharshaw has joined #ruby
doodlehaus has quit [Remote host closed the connection]
crdpink has quit [Quit: q term]
__chris has joined #ruby
Pumukel has quit [Quit: ChatZilla 0.9.91.1 [Firefox 38.0.1/20150513174244]]
RegulationD has joined #ruby
kenneth has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ProLoser has joined #ruby
<dudedudeman> no, still not working
<ProLoser> any idea why i'm getting this error? http://hastebin.com/pevopesuki
crdpink has joined #ruby
HotCoder has quit [Ping timeout: 276 seconds]
duderonomy has quit [Ping timeout: 272 seconds]
EagleDelta has joined #ruby
jerius has quit [Quit: /quit]
baweaver has joined #ruby
__chris has quit [Client Quit]
droidburgundy has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
einarj has quit [Ping timeout: 246 seconds]
jordanm has quit [Ping timeout: 265 seconds]
<adaedra> because require() requires a simple symbol
einarj has joined #ruby
<adaedra> isn't what you want require(:conversation).permit(:users) ?
icebourg has quit [Ping timeout: 264 seconds]
kadoppe has quit [Ping timeout: 256 seconds]
<ProLoser> what about nested stuff?
<ProLoser> like i don't want an empty conversation object payload
<ProLoser> it MUST contain a users key
<ProLoser> is that not feasible
<adaedra> ah
inspiron has joined #ruby
banister has joined #ruby
__chris has joined #ruby
<adaedra> you should be able to require twice then, I think
black_ has quit [Ping timeout: 245 seconds]
<adaedra> but require doesn't seems to allow multiple keys
__chris has quit [Client Quit]
bruno- has joined #ruby
__chris has joined #ruby
<adaedra> go see with #RubyOnRails, they should know better
<ProLoser> when you do permit() is that fall inside of the key of require()?
__chris has quit [Client Quit]
<adaedra> yes
waseem_ has joined #ruby
kadoppe has joined #ruby
cjim_ has quit [Quit: (null)]
echosystm has joined #ruby
havenwood has quit []
icebourg has joined #ruby
icebourg has quit [Max SendQ exceeded]
ravenreborn has joined #ruby
bigsky has quit [Read error: Connection reset by peer]
devoldmx has quit [Ping timeout: 264 seconds]
rbennacer has joined #ruby
platzhirsch has left #ruby [#ruby]
icebourg has joined #ruby
icebourg has quit [Max SendQ exceeded]
einarj has quit [Ping timeout: 245 seconds]
icebourg has joined #ruby
einarj has joined #ruby
icebourg has quit [Max SendQ exceeded]
echosystm has quit [Ping timeout: 240 seconds]
enebo has quit [Quit: enebo]
icebourg has joined #ruby
vt102 has quit [Remote host closed the connection]
FernandoBasso has joined #ruby
That1Guy has joined #ruby
bigsky has joined #ruby
aswen has joined #ruby
decoponio has quit [Quit: Leaving...]
cirn0 has joined #ruby
vickleton has quit [Quit: Ex-Chat]
Azure has quit [Quit: Oops.]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SouL_|_ has quit [Ping timeout: 252 seconds]
Azure has joined #ruby
Igorshp has joined #ruby
ciopte7 has quit [Quit: ciopte7]
JoshGlzBrk has joined #ruby
Igorshp has quit [Remote host closed the connection]
einarj_ has joined #ruby
einarj has quit [Ping timeout: 272 seconds]
C1V0 has joined #ruby
lxsameer has quit [Quit: Leaving]
rbennacer has quit [Remote host closed the connection]
mengu has quit [Remote host closed the connection]
That1Guy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
x1337807x has joined #ruby
phutchins has joined #ruby
arietis has joined #ruby
rodferso1 has joined #ruby
shock_one has joined #ruby
blackmesa has joined #ruby
arietis has quit [Client Quit]
wildroman2 has quit [Remote host closed the connection]
tvw has quit [Remote host closed the connection]
IrcDroidClient has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
einarj_ has quit [Ping timeout: 244 seconds]
That1Guy has joined #ruby
yaw has joined #ruby
havenwood has joined #ruby
yaw has quit [Max SendQ exceeded]
paulcsmith has quit [Quit: Be back later ...]
einarj has joined #ruby
SouL_|_ has joined #ruby
fibbel has quit [Remote host closed the connection]
thiagovsk has quit [Quit: Connection closed for inactivity]
fibbel has joined #ruby
shock_one has quit [Remote host closed the connection]
rawrmonstar has joined #ruby
ereslibre has quit [Quit: No Ping reply in 180 seconds.]
shock_one has joined #ruby
ereslibre has joined #ruby
ereslibre has quit [Changing host]
ereslibre has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
EagleDelta has quit [Remote host closed the connection]
ciopte7 has joined #ruby
jenrzzz has joined #ruby
reinaldob has joined #ruby
roshanavand has quit [Remote host closed the connection]
reinaldob has quit [Remote host closed the connection]
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
bashusr has quit [Ping timeout: 276 seconds]
cirn0 has quit [Remote host closed the connection]
bashusr has joined #ruby
einarj has quit [Ping timeout: 258 seconds]
s2013 has joined #ruby
shock_one has quit [Ping timeout: 256 seconds]
einarj has joined #ruby
ravenreborn has quit [Ping timeout: 244 seconds]
werelivi_ has quit [Remote host closed the connection]
sent1nel has quit [Remote host closed the connection]
jimms has quit [Remote host closed the connection]
ravenreborn has joined #ruby
reinaldob has joined #ruby
sent1nel has joined #ruby
reinaldob has quit [Remote host closed the connection]
aswen has quit [Ping timeout: 240 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 244 seconds]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
matchaw has joined #ruby
<xxneolithicxx> does anyone use rbenv-usergems?
<xxneolithicxx> I followed the guide (am running it on Linux) and I get 'rbenv: no such command 'usergems-init''
jenrzzz has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: i've nodded off.]
bb010g has quit []
<xxneolithicxx> im good, looks like it didnt like ~ for home
bashusr has quit [Ping timeout: 264 seconds]
reinaldob has joined #ruby
bb010g has joined #ruby
reinaldob has quit [Remote host closed the connection]
sent1nel has quit [Ping timeout: 258 seconds]
baweaver has joined #ruby
Zai00 has quit [Quit: Zai00]
ravenreborn_ has joined #ruby
bashusr has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
bashusr has quit [Client Quit]
haroldwu has joined #ruby
haroldwu has quit [Changing host]
haroldwu has joined #ruby
bashusr has joined #ruby
cirn0 has joined #ruby
ravenreborn has quit [Ping timeout: 244 seconds]
<GaryOak_> does anyone know a good phonetic string matching/scoring gem?
Soda has joined #ruby
<havenwood> GaryOak_: Something along the lines of a Levenshtein distance or different?
TheNet has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<GaryOak_> Yeah, it would be nice if it had metaphone functions as well as Jaro distance, like the Python Jellyfish lib
cirn0 has quit [Remote host closed the connection]
dseitz has joined #ruby
<GaryOak_> havenwood: thanks :)
<havenwood> GaryOak_: no prob
That1Guy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
einarj has quit [Ping timeout: 255 seconds]
einarj has joined #ruby
Aww is now known as PrincessAww
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ravenreborn_ has quit [Ping timeout: 258 seconds]
<havenwood> xxneolithicxx: The whole of chruby is less code than the plugin. I'd use chruby with --user-install gems for what I consider a much simpler setup. But for your issue, have you tried $HOME instead of ~?
<havenwood> xxneolithicxx: oh, you were saying that fixed it, nevermind me. just reread and it clicked.
reinaldob has joined #ruby
baweaver has quit [Remote host closed the connection]
ravenreborn has joined #ruby
casadei_ has quit [Remote host closed the connection]
casadei has joined #ruby
speakingcode has quit [Ping timeout: 246 seconds]
fmcgeough has quit [Quit: fmcgeough]
khebbie has joined #ruby
qwertme has joined #ruby
Rollabunna has joined #ruby
bashusr has quit [Ping timeout: 246 seconds]
reinaldob has quit [Ping timeout: 252 seconds]
casadei has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
casadei has joined #ruby
bashusr has joined #ruby
treehug88 has quit [Quit: Textual IRC Client: www.textualapp.com]
freerobby has joined #ruby
einarj has quit [Ping timeout: 272 seconds]
ciopte7 has quit [Quit: ciopte7]
jespada has joined #ruby
einarj has joined #ruby
Prysm has quit [Quit: Leaving]
<weaksauce> ProLoser you do validation with validations not through strong_params
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
cmckee has joined #ruby
KasMage has joined #ruby
DigitalDayTrader has joined #ruby
djbkd has quit [Remote host closed the connection]
Rollabunna has quit [Ping timeout: 244 seconds]
cosmicexplorer has quit [Quit: ERC (IRC client for Emacs 25.0.50.1)]
bashusr has quit [Ping timeout: 264 seconds]
jespada has quit [Ping timeout: 246 seconds]
bashusr has joined #ruby
rodferso1 has quit [Remote host closed the connection]
ravenreborn has quit [Ping timeout: 255 seconds]
maZtah has quit []
rahult_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ravenreborn has joined #ruby
That1Guy has joined #ruby
elfuego has quit [Quit: elfuego]
maZtah has joined #ruby
mjuszczak has quit []
jenrzzz has quit [Ping timeout: 256 seconds]
ciopte7 has joined #ruby
cirn0 has joined #ruby
ciopte7 has quit [Client Quit]
<zenspider> xxneolithicxx: I use my 'ohmygems' lib for private gem repos (current: `omg bisectbug`), but it really is just a matter of setting GEM_HOME and extending your path.
bashusr has quit [Ping timeout: 245 seconds]
einarj has quit [Ping timeout: 240 seconds]
elfuego has joined #ruby
einarj has joined #ruby
cirn0 has quit [Remote host closed the connection]
gambl0re has quit [Ping timeout: 258 seconds]
bashusr has joined #ruby
chrisja has quit [Quit: leaving]
mhib has quit [Remote host closed the connection]
jenrzzz has joined #ruby
ravenreborn_ has joined #ruby
thatslifeson has quit [Remote host closed the connection]
shevy has joined #ruby
elfuego has quit [Client Quit]
shevy has quit [Client Quit]
creakybones has quit [Ping timeout: 240 seconds]
Rarikon has quit [Read error: Connection reset by peer]
shevy has joined #ruby
ravenreborn has quit [Ping timeout: 244 seconds]
ravenreborn has joined #ruby
casadei has quit [Remote host closed the connection]
Hijiri has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<xxneolithicxx> poor souls, this rbenv install is using stuff still managed in subversion
* xxneolithicxx forces self to install subversion for first time ever
havenwood has quit []
airdisa_ has joined #ruby
airdisa has quit [Ping timeout: 265 seconds]
ChampS_ has quit []
ravenreborn_ has quit [Ping timeout: 244 seconds]
baweaver has joined #ruby
creakybones has joined #ruby
creakybones has quit [Changing host]
creakybones has joined #ruby
renier has joined #ruby
x1337807x has joined #ruby
jtdowney has quit []
iliketurtles has joined #ruby
gizless has quit [Ping timeout: 245 seconds]
ravenreborn has quit [Ping timeout: 272 seconds]
einarj has quit [Ping timeout: 256 seconds]
einarj has joined #ruby
DerisiveLogic_ has quit [Ping timeout: 276 seconds]
kenneth__ has joined #ruby
renier has quit [Client Quit]
kenneth has quit [Read error: Connection reset by peer]
baroquebobcat has quit [Ping timeout: 252 seconds]
crack_user has joined #ruby
RegulationD has quit [Remote host closed the connection]
<Aeyrix> Gross, no.
<Aeyrix> Use Mercurial.
kenneth__ has quit [Read error: Connection reset by peer]
kenneth has joined #ruby
DigitalDayTrader has quit [Read error: Connection reset by peer]
cirn0 has joined #ruby
Lucky__ has joined #ruby
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bogdanteleaga has quit [Ping timeout: 250 seconds]
<shevy> Gross.
<xxneolithicxx> :-) i love my old git
kenneth has quit [Read error: Connection reset by peer]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
PrincessAww is now known as Aww
einarj has quit [Ping timeout: 252 seconds]
kenneth has joined #ruby
reinaldob has joined #ruby
<xxneolithicxx> so what he learned today folks
<xxneolithicxx> *have we
<Aeyrix> The fact that some of Git is in C, some in Python, some in Tcl irks me.
<xxneolithicxx> hit me wit some knowledges, johnny 5 needs input
x1337807x has quit [Ping timeout: 265 seconds]
<Aeyrix> I have no actual reasonable justification for being irked by it, but I am.
Vile` has joined #ruby
einarj has joined #ruby
<xxneolithicxx> christ that reminds me of a very particular airplane engine manufacturing company that used Tcl/Tk for just about all their tools
<xxneolithicxx> love motif anyone?
<shevy> I thought Git is in perl
<xxneolithicxx> no, i think its a mix of bash and C
ciopte7 has joined #ruby
ciopte7 has quit [Client Quit]
elfuego has joined #ruby
<xxneolithicxx> or at least gitweb was when i compiled it months ago
<shevy> man
<shevy> look at what I found just now:
psy_ has quit [Ping timeout: 265 seconds]
<shevy> git-2.3.5/t/gitweb-lib.sh:
<shevy> an innocent .sh script
<shevy> and here comes the big one
<shevy> t/gitweb-lib.sh:#!/usr/bin/perl
<shevy> IT GENERATES SOME PERL CODE!!!
<shevy> is this madness?
spider-mario has quit [Read error: Connection reset by peer]
<xxneolithicxx> why even call it .sh then
<xxneolithicxx> not that it matters
reinaldob has quit [Ping timeout: 252 seconds]
kenneth has quit [Max SendQ exceeded]
<xxneolithicxx> i distinctly remember compiling gitweb, did they change it
kenneth has joined #ruby
<shevy> it generates some perl code
<shevy> perhaps it bootstraps or something
<xxneolithicxx> kernel hacker level
<shevy> it's the linux tradition xxneolithicxx
<shevy> it's all shit
<shevy> but it works
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<xxneolithicxx> ill take that shit over Windows any day buddy
icebourg has quit []
bogdanteleaga has joined #ruby
<shevy> windows is just worse shit
<eam> shevy: at least it's not generating ruby eh
lkba has quit [Ping timeout: 256 seconds]
<shevy> eam oh but there is!
<eam> I know you think perl is ugly but everyone knows true beauty is on the inside
sepp2k has quit [Quit: Leaving.]
<shevy> git-instaweb.sh:#!/usr/bin/env ruby
<shevy> here is the line preceding that
<shevy> cat >"$fqgitdir/gitweb/$httpd.rb" <<EOF
airdisa_ has quit []
<shevy> Aeyrix so now you see, we also have perl and ruby there!
blackmesa has quit [Quit: WeeChat 1.1.1]
danman has quit [Quit: danman]
<xxneolithicxx> eam: is that the line you give your friend when talking about your fat girl Perl?
nso95 has joined #ruby
<xxneolithicxx> :-P
kenneth has quit [Read error: Connection reset by peer]
<eam> ok so it's a HEREDOC? ruby supports heredoc too
<eam> xxneolithicxx: more cushin' for the pushin'
kenneth has joined #ruby
thatslifeson has joined #ruby
TigerWolf has joined #ruby
Soda has quit [Remote host closed the connection]
<xxneolithicxx> i have to say its a hell of a creative mix
havenwood has joined #ruby
<eam> here's the same line in ruby, you tell me what's more ugly: print "#{$fqgitdir}/gitweb/#{$httpd}.rb" <<EOF
shazaum has quit [Quit: Leaving]
<shevy> this is ugly
<shevy> why don't you write beautiful ruby code eam
<eam> I do :(
<shevy> the wicked perl is still ingrained in your brain
<shevy> admit it
danman has joined #ruby
<eam> well, duh
<xxneolithicxx> its beautiful like Perl? lol
Ropeney has joined #ruby
<shevy> yeah
<shevy> that one lost his mind
<shevy> to Cthulhu
zzing has joined #ruby
<shevy> $foo = \@{ qw(hacker perl another just) };
echosystm has joined #ruby
<shevy> $bar = map { print $_, " "} reverse @$foo;
<shevy> well it reminds me of ruby
<shevy> with more line noise in between
<xxneolithicxx> i hate those perl special variables
<xxneolithicxx> pisses me off when they are used all over the place and u have to read someone elses code
<eam> well, he wrote it wrong it should just be $foo = [ qw(hacker perl another just) ]
<shevy> ruby got $_ too
<shevy> nobody can tell eam!!!!
<eam> which is the same syntax as in ruby, except ruby uses %w() instead of qw()
<shevy> that's the whole point of perl
<eam> shevy: it's the same syntax as ruby!
<shevy> the () part yeah
<shevy> that's the thing I recognize too :)
<eam> >> $foo = [ %w(hacker perl another just) ]
<ruboto> eam # => [["hacker", "perl", "another", "just"]] (https://eval.in/367880)
<shevy> and the "reverse"
<eam> shevy: the entire thing is
<shevy> you skipped the \@ !
<eam> like I said he wrote it wrong
<eam> \@{} is []
<eam> in perl and ruby both
<shevy> he lost knowledge to Yog-Sothoth
<eam> \@[] is like saying [*[%w(a b c)]]
<eam> (kinda, ruby lacks the same kind of reference semantics)
echosystm has quit [Ping timeout: 246 seconds]
arescorpio has joined #ruby
DerisiveLogic has joined #ruby
Xoro has joined #ruby
n_blownapart has joined #ruby
<shevy> what the
<shevy> [*[%w(a b c)]]
<shevy> what are you doing eam
<Aeyrix> their best.
<shevy> you add snoopy characters into ruby
<eam> it's silly right? that's what \@{} is though
<shevy> now I understand how people lose their mind with perl
<eam> but that's ruby
CamonZ has quit [Quit: Textual IRC Client: www.textualapp.com]
<eam> pretty sure ruby is even more crazy than perl
redondo has quit [Ping timeout: 265 seconds]
<eam> >> % %%%%%%% %%%% % %%%%% %%%% # ruby is crazy
<ruboto> eam # => "%" (https://eval.in/367881)
redondo has joined #ruby
<shevy> yeah
<shevy> underneath it's beauty
<shevy> it has some strange things
Lucky__ has joined #ruby
tubuliferous_ has joined #ruby
<eam> at least in perl, sprintf is actually sprintf, and there's a clear "q" around stringy quote with variable delimiters
Lucky__ has quit [Client Quit]
blizzy has joined #ruby
kenneth has quit [Read error: Connection reset by peer]
<eam> anyone here good with ruby c extensions? my extension isn't building
saadq has joined #ruby
<eam> works fine with `rake compile` but for some reason the gem "extensions" field is not actually driving a build at install time
<shevy> I realized that in order to write ruby c extensions
einarj has quit [Ping timeout: 246 seconds]
<shevy> one should first get to understand C
<ebonics> you know when you leave a codebase for a couple months then get back and expect your task to be the worst thing in your life
<saadq> hey guys, i just installed ruby and rails, and my terminal has become weird. It shows the current version of Ruby instead of my name and it switched to zsh I think it used to be bash before http://i.imgur.com/Y5ZzvpP.png
<ebonics> then you come back and realise past you accounted for the possibility of that happening and implemented code to ease the pain
<ebonics> i actually love past me
<saadq> any help would be appreciated
_blizzy_ has quit [Ping timeout: 244 seconds]
<shevy> ebonics I feel like that ALL the time
<shevy> my code has a life on its own
<ebonics> shevy, same lol
<ebonics> it feels so good
<ebonics> you're like FML
<shevy> I hate this
<ebonics> then you're like :))))))))))))))
<shevy> I am like :((((
crack_user has quit [Quit: Leaving.]
<ebonics> :o why
Agoldfish has quit [Ping timeout: 258 seconds]
einarj has joined #ruby
<shevy> because it's like stealing time
<shevy> I don't want to spend time creating things
<shevy> I want to create things
cirn0 has quit [Remote host closed the connection]
kenneth has joined #ruby
ismaelga has quit [Remote host closed the connection]
veduardo has joined #ruby
yh__ has quit [Ping timeout: 246 seconds]
kenneth has quit [Read error: Connection reset by peer]
Agoldfish has joined #ruby
Stalkr_ has quit [Quit: Leaving...]
kenneth has joined #ruby
einarj has quit [Ping timeout: 252 seconds]
cirn0 has joined #ruby
casadei has joined #ruby
jpstokes has quit [Ping timeout: 265 seconds]
TheHodge has quit [Quit: Connection closed for inactivity]
jespada has joined #ruby
ortuna has joined #ruby
<bootstrappm> ebonics past you sounds like a cool dude / dudette
kenneth has quit [Read error: Connection reset by peer]
Lucky__ has joined #ruby
<bootstrappm> I tend to leave behind comments like "You know this shouldn't work like this"
<bootstrappm> then I come back and re-read the code and I'm like oh yeah, whoa, definitely shouldn't work like that
jackjackdripper has quit [Quit: Leaving.]
einarj has joined #ruby
<havenwood> saadq: How would installing Rails switch your shell? Did you just have some shell plugin you were already using that changes your prompt when Rails is detected?
<saadq> havenwood: I'm not sure I just followed the instructions from here tbh http://railsapps.github.io/installrubyonrails-mac.html
<saadq> this is what my terminal looks like now http://i.imgur.com/MelkB7g.png
n_blownapart has quit []
kenneth has joined #ruby
<ebonics> lmfao bootstrappm
<ebonics> that's hilarious
<ebonics> like.. @todo: make this work
<bootstrappm> hahahah yep pretty much