apeiros changed the topic of #ruby to: Welcome new users migrating from #ruby-lang! || 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/
nonparfumee has joined #ruby
yh has quit [Ping timeout: 252 seconds]
badhatter has joined #ruby
mrsolo has joined #ruby
jfarmer has joined #ruby
senayar has quit []
workmad3 has quit [Ping timeout: 255 seconds]
txrx has quit [Ping timeout: 265 seconds]
baweaver has quit [Remote host closed the connection]
jpfuentes2 has joined #ruby
yaw has left #ruby ["Textual IRC Client: www.textualapp.com"]
yh has joined #ruby
AnoHito has joined #ruby
sevenseacat has joined #ruby
kenndel_ has quit [Quit: Leaving]
kenndel has joined #ruby
kstuart has joined #ruby
kstuart_ has quit [Ping timeout: 255 seconds]
pietr0 has quit [Ping timeout: 245 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
CloCkWeRX has joined #ruby
commondream has quit [Remote host closed the connection]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
CustosLimen has quit [Remote host closed the connection]
elia has joined #ruby
CustosLimen has joined #ruby
jpfuentes2 has joined #ruby
Channel6 has joined #ruby
imperator has joined #ruby
ur5us has joined #ruby
Hijiri has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
mustmodify has left #ruby [#ruby]
chris2 has joined #ruby
hector__ has joined #ruby
kinduff has quit [Ping timeout: 272 seconds]
BanzaiJoe has quit [Ping timeout: 272 seconds]
vdamewood has joined #ruby
leat4 has quit [Remote host closed the connection]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hijiri has quit [Client Quit]
hahuang65 has quit [Ping timeout: 272 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RickHull has joined #ruby
RickHull has quit [Changing host]
RickHull has joined #ruby
leat4 has joined #ruby
<shevy> "lib/mkmf.rb (pkg_config): split --libs if --libs-only-l option is not available. patch in [ruby-core:69428] by Hans Mackowiak."
iliketurtles has joined #ruby
<shevy> hey hanmac you become famous
kenndel has quit [Quit: Leaving]
keen___________3 has quit [Read error: Connection reset by peer]
elia has quit [Quit: Computer has gone to sleep.]
iliketurtles has quit [Client Quit]
roolo has quit [Remote host closed the connection]
keen___________3 has joined #ruby
jpfuentes2 has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
bricker has quit [Ping timeout: 258 seconds]
j4cknewt has quit [Remote host closed the connection]
redlegion has quit [Remote host closed the connection]
bricker has joined #ruby
DerisiveLogic has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 1.2]
mrmargolis has joined #ruby
Rickmasta has joined #ruby
rushed has quit [Quit: rushed]
atomical has joined #ruby
jgpawletko has quit [Quit: jgpawletko]
bruno- has joined #ruby
duderonomy has joined #ruby
SalexW has quit [Remote host closed the connection]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
snockerton has quit [Quit: Leaving.]
mistermocha has quit [Remote host closed the connection]
bertocode has quit [Quit: Nettalk6 - www.ntalk.de]
bruno- has quit [Ping timeout: 240 seconds]
zendrix has quit [Ping timeout: 272 seconds]
<eam> [Z/win 4
bkxd has joined #ruby
marr has quit []
GriffinHeart has joined #ruby
bmurt has joined #ruby
nateberkopec has quit [Quit: Leaving...]
bkxd has quit [Read error: Connection reset by peer]
lennae has quit [Ping timeout: 272 seconds]
baweaver has joined #ruby
Musashi007 has quit [Quit: Musashi007]
woodruffw has quit [Ping timeout: 244 seconds]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
mello has joined #ruby
mello has joined #ruby
jgpawletko has joined #ruby
fujimura has joined #ruby
failshell has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
mrmargolis has quit [Remote host closed the connection]
imperator has quit [Quit: Valete!]
mistermocha has joined #ruby
robustus|Off has quit [Ping timeout: 255 seconds]
mello has quit [Ping timeout: 264 seconds]
rushed has joined #ruby
robustus|Off has joined #ruby
robustus|Off is now known as robustus
mrsolo has quit [Quit: This computer has gone to sleep]
mrmargolis has joined #ruby
mistermocha has quit [Remote host closed the connection]
fujimura has quit [Ping timeout: 240 seconds]
stardiviner has joined #ruby
gix has quit [Ping timeout: 258 seconds]
failshell has quit [Ping timeout: 265 seconds]
dfockler has joined #ruby
dseitz has joined #ruby
GriffinHeart has joined #ruby
redlegion has joined #ruby
gix has joined #ruby
houhoulis has joined #ruby
dfockler has quit [Ping timeout: 272 seconds]
djbkd has quit [Remote host closed the connection]
pengin has quit [Remote host closed the connection]
joneshf-laptop has joined #ruby
woodruffw has joined #ruby
dopie has joined #ruby
nb_bez___ has joined #ruby
_seanc_ has quit [Quit: _seanc_]
choke has joined #ruby
fgo has joined #ruby
joaomdmoura has joined #ruby
mois3x has quit [Quit: mois3x]
charliesome has joined #ruby
bkxd has joined #ruby
djbkd has joined #ruby
baweaver has quit [Remote host closed the connection]
bogdanteleaga has quit [Ping timeout: 255 seconds]
rushed has quit [Quit: rushed]
nonparfumee has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
datanoise has quit [Ping timeout: 272 seconds]
joaomdmoura has quit [Ping timeout: 265 seconds]
wallerdev has quit [Ping timeout: 265 seconds]
<noethics> in a master-slave designed application, should the slave be in charge of its own rate limiting
starless has joined #ruby
bkxd has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 256 seconds]
<noethics> im leaning toward yes but i sorta like the idea of not having to block or poll or anything
rushed has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bootstrappm> noethics what do you mean by master slave? I only ever hear about that in terms of DBs
dorei has quit []
<bootstrappm> where the concept exists because of propagation of information and all that, write to one, read from another etc.
<noethics> bootstrappm, just any type of distributed architecture where the master is in charge of deploying and managing nodes
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bootstrappm> is this user facing noethics?
bogdanteleaga has joined #ruby
<havenwood> noethics: Like a supervision tree?
<noethics> bootstrappm, the master is
rubie has quit [Remote host closed the connection]
bmurt has quit []
bkxd has joined #ruby
<bootstrappm> what does it do? why does it need slaves?
<noethics> it needs slaved because that's the whole point of the application :P to distribute work
Rickmasta has joined #ruby
<bootstrappm> so the slaves are workers then? background jobs? and the master is just a way to manage them?
<noethics> thats right
<bootstrappm> yeah I wouldn't consider that master-slave at all. The slaves in that case don't depend on the master at all
davasaurous has quit []
<noethics> bootstrappm, thats sort of what i have to figure out though
mistermocha has joined #ruby
<noethics> whether they should be dependent or not
<bootstrappm> and in that case yes, the slave should be in charge of its rate of doing work with an external interface if the manager needs to modify them
<bootstrappm> although I'm not sure why you would ever rate limit the workers / slaves if they're not user facing, they should be doing the work as fast as possible no?
<noethics> what do you mean external interface
<noethics> bootstrappm, ? what does rate limiting have to do with user facing lol
<noethics> how are they mutually exclusive
<noethics> or mutually inclusive
caseypatrickdris has joined #ruby
<bootstrappm> well rate limiting refers to limiting the speed at which the slave / worker is doing something. That only makes sense to me if you want to limit the rate at which users are accessing your resources so as not to kill your server
<bootstrappm> without users in the picture ... I'm not sure why you would rate limit something
Agoldfish has quit [Quit: G'Bye]
bnagy has joined #ruby
<noethics> bootstrappm, the workers are using an api that is rate limited
jud^ is now known as jud
jud has quit [Changing host]
jud has joined #ruby
<bootstrappm> ahh, okay then you don't have to worry about rate limiting at all. Just have the workers try and if they get rejected, wait a while
<noethics> nah that's bad design imo
joneshf-laptop has quit [Ping timeout: 265 seconds]
<bootstrappm> as in, you're not rate limiting your workers, you're responding to an external rate limit. two different things
<noethics> plus if it rejects you you get some timeout penalty
<bootstrappm> why bad design?
<noethics> it takes longer to be able to do new requests
<noethics> and then id have to poll to find out if its allowed to request yet
<bootstrappm> I see I see
n008f4g_ has quit [Ping timeout: 240 seconds]
<bootstrappm> so you want to set a speed on the workers so they never hit the rate limit and you never get penalized?
<noethics> correct
<RickHull> all you can try to do is model the rate limiting on the remote end
<RickHull> they may still cut you off or whatever
<noethics> well i was thinking i could turn the master into a pull queue
<bootstrappm> cool, I'd share the state among all workers then. I don't think that a "master" is the best way to do that, I'd go for redis or something
<noethics> but i dont know the drawbacks of that
<noethics> possibly with longpolling
casadei has joined #ruby
<noethics> but that's sort of intensive? i don't know
mistermocha has quit [Remote host closed the connection]
bkxd has quit [Read error: Connection reset by peer]
<bootstrappm> then each worker can see if they'll put you over the rate-limit in aggregate when they're about to make the request
mistermocha has joined #ruby
<bootstrappm> keep it a bit under to be safe
<noethics> redis isn't an option per-worker
<noethics> the workers arent on the same box
<bootstrappm> what do you mean?
<bootstrappm> I figured, so yes, use redis
<bootstrappm> they all connect to the same instance
<bootstrappm> available over http
<noethics> i dont really get why that' necessary
caseypatrickdris has quit [Remote host closed the connection]
<noethics> what's your reason for recommending that?
<bootstrappm> its not absolutely necessary. You could just set a fixed request rate on each worker and then manually work out your math so that your workers never go over your rate limit
<noethics> if anything i'd say beanstalkd or something might be a good choice
<noethics> but i'm not understanding the whole redis thing, you mean to store a time or something?
<bootstrappm> but if you want them to just work as fast as possible and only stop when you're close to the rate limit then shared state is the best choice
<bootstrappm> yes, to store how many requests you've made that hour or minute
<bootstrappm> and use that information in each worker to decide if you're going to keep making requests
<noethics> the thing is the workers dont really need to do a whole lot of processing
<noethics> so i think i could get away with a push-queue
<noethics> damn i wish i had a background in devops
<bootstrappm> push work to the workers?
<noethics> yes
<bootstrappm> how would you plan on doing that?
iamninja has quit [Read error: Connection reset by peer]
dgutierrez1287 has joined #ruby
<noethics> the workers setup an open port waiting for jobs
<bootstrappm> i always put the work on queue like redis and pull it from the workers end
<noethics> master pushes jobs to them when it decides its time
<noethics> redis isn't a queue though
iamninja has joined #ruby
<bootstrappm> redis is data structure storage
<bootstrappm> a queue is a type of data structure
mistermocha has quit [Ping timeout: 276 seconds]
<noethics> not strictly
<noethics> "queue" is a blanket term
<havenwood> noethics: a la resque or sidekiq
<bootstrappm> it handles them very well, its what I've always used for the queue when I use pull based workers
victorko_ has quit []
<noethics> why not beanstalkd?
<noethics> ill check those out havenwood
bricker has quit [Ping timeout: 272 seconds]
<bootstrappm> use whatever floats your boat noethics, there's tons of options for queue based workers
c355E3B has quit [Quit: Connection closed for inactivity]
<RickHull> redis indeed provides a shared queue, as in data structure
<RickHull> it is not a full blown MQ
<noethics> bootstrappm, i know, i'm just having issues deciding the best strategy
<noethics> it's a common problem i guess
<noethics> i don't work much with deployment
<havenwood> noethics: There's nothing wrong with beanstalkd, but Ruby options like Resque and Sidekiq work well too. Many langs now support Resque's interface as well so you have non-Ruby options if you want to swap out.
symm- has quit [Ping timeout: 264 seconds]
<Nilium> beanstalkd rocks.
<havenwood> noethics: e.g.: http://www.goworker.org/
<havenwood> noethics: or: https://github.com/jsanders/rusque
joneshf-laptop has joined #ruby
ur5us has quit [Remote host closed the connection]
<havenwood> etc, etc
<RickHull> here's antirez (redis) going for more of a distributed MQ: https://github.com/antirez/disque
<Nilium> I am slightly biased in favor of beanstalkd though, since I like things written in C and beanstalkd is fantastically small and nice.
<noethics> yeah Nilium i just dont know whether i should even bother with a queueor not
<noethics> if i use a queue it will most likely be beanstalkd
amclain has joined #ruby
<Nilium> If you need to keep a queue of work to do in the background, you probably want some sort of queue.
<Nilium> I tend to focus more on whether persistence is necessary and for how lon
<Nilium> *long
<noethics> Nilium, right but i don't know if the workers need to deal with the queue
<noethics> the workers can just expire and get redeployed
<noethics> or they can request more work
<noethics> i don't know, ugh
<bootstrappm> where is that work stored noethics?
<bootstrappm> I think you're overcomplicating it
<noethics> with the master
<bootstrappm> there's a tried and true way of doing this
<bootstrappm> and its with something like resque
<bootstrappm> which is a job framework on top of redis
<Nilium> I do persistent workers that just receive more stuff when they're needed.
<Nilium> i.e., they don't die or expire or what have you.
<noethics> it seems like if you're confident in your software then that's the best way
<noethics> having them expire sorta mitigates memory leaks and stuff
<Nilium> I also write everything in Go, though, so I have slightly more confidence in what my code is doing.
<noethics> me too mostly
<noethics> my workers are going to be ruby but the master is in go
<Nilium> The only things that get periodic restarts are workers that're goroutine heavy, since goroutine stack memory is never released
kinduff has joined #ruby
<noethics> Nilium, i just recognized your name from go-nuts, you were hating on me
<noethics> ;)
<Nilium> And those ones just get the boot every six hours right now since they don't grow all that much.
<Nilium> Probably just your name.
<noethics> probably my old name
Musashi007 has joined #ruby
<noethics> that you wanted me to change yesterday
<bnagy> nah it's not just the name :)
<Nilium> I wanted you to change it so everyone would shut up about it.
<noethics> lol bnagy too
arescorpio has joined #ruby
<noethics> go-nuts reunion
<Nilium> The Ruby/Go crossover is a weird one.
<Nilium> Especially since I hopped on Go since it was a nice C replacement.
<noethics> mhmm
<noethics> im switching to rust as soon as i can find time to learn it though
fgo has quit [Ping timeout: 272 seconds]
yfeldblu_ has joined #ruby
<Nilium> I keep meaning to look at it, but it's in the category of languages that are more complicated than C++.
<noethics> it's complicated but clean
Exponential has joined #ruby
<Nilium> And while I like C++ and the stupid things I can do with it, I don't want to pick up something harder to understand.
<noethics> the hardest part is the concept of ownership
<noethics> andd the syntax
<noethics> i just havent been around it for a while so a lot has changed
<RickHull> i feel like Rust is easier to learn than C++, from scratch
<noethics> yeah i know what you mean Nilium
<Nilium> Maybe. Depends on whether you like using the word monad, I think.
yfeldblum has quit [Ping timeout: 265 seconds]
<noethics> lol
<RickHull> template programming, whether to use Boost, stdlib, etc
<Nilium> At any rate, I haven't touched Rust since it had a GC.
<noethics> i think knowing rust will be very rewarding soon though
<noethics> it really is the replacement for c/c++ imo
Lucky__ has joined #ruby
<noethics> righto guess im going with the ol' beanstalkd and pull queues
brb3 has quit [Read error: Connection reset by peer]
frankS2 has quit [Read error: Connection reset by peer]
andrewstewart has quit [Read error: Connection reset by peer]
AdamMeghji has quit [Read error: Connection reset by peer]
grubernaut has quit [Ping timeout: 272 seconds]
jrunning_ has quit [Ping timeout: 272 seconds]
whoojemaflip has quit [Ping timeout: 272 seconds]
bttf has quit [Ping timeout: 272 seconds]
Guest85414______ has quit [Ping timeout: 272 seconds]
ggherdov has quit [Ping timeout: 272 seconds]
neektza has quit [Write error: Connection reset by peer]
ramblinpeck_ has quit [Write error: Connection reset by peer]
petems has quit [Read error: Connection reset by peer]
amitchellbullard has quit [Write error: Connection reset by peer]
PhilK has quit [Read error: Connection reset by peer]
bove has quit [Write error: Connection reset by peer]
cardoni has quit [Write error: Connection reset by peer]
jxf has quit [Read error: Connection reset by peer]
jpinnix______ has quit [Read error: Connection reset by peer]
dmoe has quit [Read error: Connection reset by peer]
HashNuke has quit [Write error: Connection reset by peer]
holsee_ has quit [Write error: Connection reset by peer]
strmpnk has quit [Read error: Connection reset by peer]
benlakey has quit [Read error: Connection reset by peer]
im0b has quit [Read error: Connection reset by peer]
neersighted has quit [Read error: Connection reset by peer]
ec has quit [Read error: Connection reset by peer]
yo61 has quit [Read error: Connection reset by peer]
culturelabs has quit [Read error: Connection reset by peer]
ckrailo has quit [Write error: Connection reset by peer]
mroth has quit [Read error: Connection reset by peer]
troter___ has quit [Write error: Connection reset by peer]
merqlove has quit [Read error: Connection reset by peer]
akitada has quit [Read error: Connection reset by peer]
shelling__ has quit [Read error: Connection reset by peer]
zrl has quit [Read error: Connection reset by peer]
poikon has quit [Read error: Connection reset by peer]
jeregrine has quit [Read error: Connection reset by peer]
incomprehensibly has quit [Write error: Connection reset by peer]
jlyndon has quit [Read error: Connection reset by peer]
preyalone has quit [Read error: Connection reset by peer]
kapowaz has quit [Write error: Connection reset by peer]
pmarreck has quit [Write error: Connection reset by peer]
akahn has quit [Read error: Connection reset by peer]
zero7 has quit [Read error: Connection reset by peer]
Limix has quit [Quit: Limix]
rubie has joined #ruby
<bnagy> Rust has a GC?
<noethics> no
<sevenseacat> rust just hit 1.0 recently, didnt it
<noethics> ye it did
<noethics> it doesnt need one though
eggoez has quit [Ping timeout: 256 seconds]
<bnagy> Nilium: did it _used_ to have a GC?
<Nilium> Yes
opalraava has quit [Ping timeout: 272 seconds]
<bnagy> ahhh I see
opalraava has joined #ruby
<Nilium> The Rust that I used at one point is a very different language from what you'd use now.
<noethics> yeah, it changed so much
<Nilium> Hence why I don't know Rust now.
<Nilium> And also why I stopped trying to care.
<noethics> the code looks way cleaner than go code though
<noethics> noh8pls
crankharder has joined #ruby
AdamMeghji has joined #ruby
<RickHull> Nilium: shoulda waited for 1.0 ;)
* RickHull runs
<bnagy> I don't really care what the code looks like, tbh
<Nilium> Yeah, only had to wait.. how many years? >_>
<bnagy> or for random people's opinions about what's "clean"
<noethics> bnagy, dont you feel all clunky writing go code
amitchellbullard has joined #ruby
neektza has joined #ruby
petems has joined #ruby
ckrailo has joined #ruby
mroth has joined #ruby
troter___ has joined #ruby
ramblinpeck_ has joined #ruby
jrunning_ has joined #ruby
culturelabs has joined #ruby
akahn has joined #ruby
PhilK has joined #ruby
<bnagy> I do want a lot of rust stuff, I just can't use it yet for real software. They'll get there I guess, one day.
brb3 has joined #ruby
<noethics> i mean, i think java even feels nicer to program with than go. but go has the features i want for now
prereflect has joined #ruby
<bootstrappm> java feels nice to program? where am I? I thought this was #ruby
<noethics> jruby man
<noethics> do you use it
frankS2 has joined #ruby
zrl has joined #ruby
<noethics> bootstrappm, with vim macros java isnt even as bad as people make it out to be
<bootstrappm> nope, want to but for performance reasons / the added library. Wouldn't willingly program in java because it is most decidedly not nice to program in
<noethics> if you're rolling around on eclipse then yeah you're gonna have a bad time
grubernaut has joined #ruby
cardoni has joined #ruby
poikon has joined #ruby
blandflakes_ has joined #ruby
jeregrine has joined #ruby
blandflakes has quit [Disconnected by services]
blandflakes_ is now known as blandflakes
<bnagy> bootstrappm: jruby is the most performant ruby implementation
strmpnk has joined #ruby
HashNuke has joined #ruby
holsee_ has joined #ruby
whoojemaflip has joined #ruby
<bnagy> unless your only use case is ported 8 line bash scripts
dmoe has joined #ruby
<bnagy> oic.. I misread your 'but' there
<bootstrappm> mmm, no. vim since forever. java is this: http://www.developermemes.com/wp-content/uploads/2013/03/java-problem-factory.jpg
* bnagy drinks more coffee
<bootstrappm> yeah agreed bnagy, thats why i want to use it - haven't gotten around to it yet
<noethics> haha
andrewstewart has joined #ruby
<noethics> i think i may be the only person that likes using java
someword has joined #ruby
bttf has joined #ruby
jlyndon has joined #ruby
incomprehensibly has joined #ruby
jpinnix______ has joined #ruby
<bnagy> there's notch
jxf has joined #ruby
<noethics> what language can you use such a wide variety of design patterns
<existensil> I like java. I like ruby more so I made the switch, but Java is OK in my book. Verbose, but powerful. The JVM is pretty awesome.
<RickHull> like an AbstractFactoryImplFactoryFactory
<noethics> RickHull, autocomplete m8
fujimura has joined #ruby
<bnagy> oh, the JVM is awesome on skates
<bnagy> it's just Java that is a PITA :)
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
<noethics> i type abs down tab and that's good to go
<RickHull> autocomplete helps for writing code
<RickHull> java sucks for reading code
hahuang65 has joined #ruby
<noethics> nah
<bnagy> also the JVM profiling / debugging tools are excellent
<noethics> ruby is much harder to read
towski__ has quit [Ping timeout: 265 seconds]
eggoez has joined #ruby
<bnagy> which is a big win for jruby as well
<noethics> in java, every idiom is centered around clear and concise code basically
<noethics> that's why it's so verbose
<RickHull> concise, lol
<noethics> ok bad word to use there lmao
<bnagy> obvious troll is obvious
<RickHull> doublethink much?
bove has joined #ruby
benlakey has joined #ruby
shelling__ has joined #ruby
merqlove has joined #ruby
im0b has joined #ruby
<noethics> bnagy, for once i'm not trolling
akitada has joined #ruby
pmarreck has joined #ruby
Guest85414______ has joined #ruby
ec has joined #ruby
<noethics> by concise i mean it's very easy to see what is where
Killerkeksdose has quit [Read error: Connection reset by peer]
<RickHull> if all you have is an ale, it's time to get hammered
Killerkeksdose has joined #ruby
<noethics> it doesn't have a global namespace likr ruby
duderonomy has quit [Ping timeout: 246 seconds]
certainty has quit [Ping timeout: 272 seconds]
neersighted has joined #ruby
<bnagy> ok well I disagree
paulcsmith has joined #ruby
wookiehangover has quit [Quit: i'm out]
certainty has joined #ruby
lotherk has quit [Ping timeout: 256 seconds]
paulcsmith has quit [Client Quit]
lotherk has joined #ruby
<bnagy> the way they have to try and have OO get in bed with type safety means they end up with the nasty factory / impl patterns to do generics
<bnagy> so you end up with three layers of crap before you can find the code that does the work
<noethics> or, use generics to do generics
<noethics> :p
yo61 has joined #ruby
<bnagy> I can actually read ruby and know that it was written by someone that did Uni with Java
<bnagy> because their OO is just kooky
Musashi007 has quit [Quit: Musashi007]
<noethics> idk how factory pattern is nasty
<bnagy> go take a look at the AWS ruby code, for example :)
<existensil> Java helped me really understand design patterns
<RickHull> design patterns are really just workarounds for language shortcomings
<existensil> ruby lets me play and have more fun and more flexibility, but I'm glad I started with Java
kapowaz has joined #ruby
fujimura has quit [Ping timeout: 264 seconds]
<bootstrappm> okay all. gnight! hopefully the language wars end soon
<noethics> RickHull, how so?
* Aeyrix started with C# then moved to Java.
<existensil> you still end up with lots of design patterns no matter what language
<RickHull> ruby doesn't have nor need a factory pattern
<existensil> they are just clearer and don't involve metaprogramming magic in Java
<noethics> maybe if it did ruby would have some presence in EE lol
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Synthbread has quit [Ping timeout: 244 seconds]
ggherdov has joined #ruby
<existensil> I love the ruby magic, just saying... early on it was good to be exposed to very verbose methods of implementing a pattern
<Aeyrix> EternaLEnvY?
<noethics> nah c9 is trash
<noethics> enterprise m8
<Aeyrix> w o w o w o w o w
<Aeyrix> MODS
<noethics> :D
<Aeyrix> Alright m8 lay down your teams.
<Aeyrix> >inb4 tinker
<noethics> nah youll just call me a fanboy
<Aeyrix> >inb4 secret
<Aeyrix> >inb4 liquid
<noethics> liquid?
<Aeyrix> wait do liquid even have a team anymore?
<noethics> where you been m8
<Aeyrix> no they don't
<Aeyrix> soft jej
<noethics> secret is topmeta
<Aeyrix> ohboy.gif
<noethics> urmad.wav
<Aeyrix> >not being an avid mouse supporter
<noethics> mouz?
<Aeyrix> mousesports
<noethics> they didnt even qualify for ti5 man
<Aeyrix> yeah but
<noethics> they're knocked out
<Aeyrix> Bulba :<
<noethics> whats your mmr
wookiehangover has joined #ruby
<Aeyrix> Secret fans: http://i.imgur.com/EXRbR2Y.gif
* Aeyrix doesn't play D2 anymore.
<Aeyrix> Too busy with Diablo m8.
<noethics> ew
<noethics> i dont play at all anymore either
mois3x has joined #ruby
zero7 has joined #ruby
<Aeyrix> I was too garbage.
<noethics> i stopped at 4.5k
<bnagy> get a room
<noethics> i woulda made it to 5k spamming brood bt y'know
<noethics> bnagy, sry
Synthbread has joined #ruby
<Aeyrix> zzzz
<Aeyrix> Ursa / Bloodseeker all day every day.
<Aeyrix> Somehow.
<noethics> ya you were trench as hell for sure
<Aeyrix> Guaranteed trench.
<noethics> those heros are never in my games
<noethics> s/are/were/
caseypatrickdris has joined #ruby
oo_ has quit [Remote host closed the connection]
<noethics> ruby though
preyalone has joined #ruby
swgillespie has joined #ruby
fgo has joined #ruby
Synthbread has quit [Read error: Connection reset by peer]
nateberkopec has joined #ruby
nateberkopec has quit [Client Quit]
<jfarmer> existensil As the saying goes: "One language's design patterns are another language's syntax."
datanoise has joined #ruby
Synthbread has joined #ruby
prereflect has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mrsolo has joined #ruby
phutchins has quit [Ping timeout: 264 seconds]
jpfuentes2 has joined #ruby
<existensil> yeah, often true... but I don't know of any language where best practices don't involve some design patterns of some sort.
shadoi has quit [Quit: Leaving.]
<jfarmer> That's almost by definition what a design pattern _is_
<jfarmer> From the perspective of assembly, a function is a design pattern. From the perspective of C, objects and classes are design patterns. etc. etc.
<existensil> if they could all be done in syntax that would be a pretty complex grammer, and our jobs would be a lot easier
<jfarmer> At least that's how I see it
<noethics> that's clearly not what people mean when they refer to design patterns
<existensil> you are kind of correct, but you build abstractions on top other abstractions. at a certain point the syntax of a language won't be able to solve it for you.
<noethics> honestly the whole argument against design patterns seems to be only people who either are C gods (no one is in this argument), and people who have never managed a codebase over 1k lines of code
<jfarmer> noethics Who's arguing against design patterns?
dudedudeman has quit [Ping timeout: 252 seconds]
<eam> I don't think anyone argues against design patterns, most especially not people who use C
<noethics> sorry, arguing that a language sucks because it's idiomatic to use a multitude of design patterns
<jfarmer> People in C use design patterns all the time.
<eam> btw who said ruby doesn't have factories
merqlove has quit [Quit: Connection closed for inactivity]
<existensil> A language might obviate the need for a explicit factory patterns or singleton patterns or whatever, and make implementing a registry pattern easier or make flywheel patterns simple to write... but no matter how many concepts are included in the box we'll need to build new ones on top
<noethics> if you call those design patterns. like what? function pointers?
<noethics> those are just language features
<eam> noethics: a struct with a function pointer is as much of an object as any ruby object
<noethics> i don't understand what your point is though eam
<noethics> what does having objects or the equivalent of an object have to do with design patterns
jaequery has joined #ruby
<noethics> i'm not trying to say you're wrong i just really don't know what view you have
nuck has quit [Ping timeout: 276 seconds]
<existensil> to an assembly coder, I can see functions being a design pattern. I think jfarmer point is valid. I just don't think its valid that all patterns are potential language features or whatever else he was trying to say.
<jfarmer> The "abstract factory pattern" doesn't exist / is substantially different in a dynamic language like Ruby because types (i.e., classes) are run-time objects.
<eam> um, just responding to your comments about C
<jfarmer> There is no factory/product distinction in a language like Ruby
<eam> re: structs and function pointers
<noethics> eam, exactly, language features
<noethics> just like an object isn't a design pattern, that was my point
<jfarmer> Highly recommend this presentation by Peter Norvig: http://norvig.com/design-patterns/design-patterns.pdf
mmazing has joined #ruby
jaequery has quit [Client Quit]
jpfuentes2 has quit [Read error: Connection reset by peer]
<RickHull> i would say OOP is a design pattern
<eam> well, sure it is
yh has quit [Ping timeout: 250 seconds]
<eam> OOP is a pattern of associating data with methods
<eam> stack variables are a design pattern
<eam> these are all such fundamental patterns we don't tend to consider them as such, but there are languages which don't use them
<noethics> those are both ways of processing data
<eam> for example, bourne shell has no stack variables, no locals
oo_ has joined #ruby
womble has left #ruby ["Oooh! Shiny!"]
<noethics> a struct does not process data
Exponential has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<noethics> it's simply a container
davedev2_ has quit [Ping timeout: 256 seconds]
<RickHull> whether it processes data or not, is that an important distinction?
Synthbread has quit [Ping timeout: 244 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
darkf has joined #ruby
<eam> noethics: I don't see your distinction, but regardless it's incorrect - in a von neumann architecture code = data
<eam> very specific example: struct containing a trampoline
<noethics> ok i'm data, you're data
<noethics> everything is data
<noethics> i get it
<jfarmer> You can make structs do anything you can do with classes and objects, but it's enforced by human discipline and not the language.
<eam> ruby's method dispatch tables = struct
jpfuentes2 has joined #ruby
<noethics> you can't make structs _do_ anything
<shevy> guys
<shevy> this is how to discuss things:
<bnagy> shevy: o/
<eam> noethics: I can stash a method into a node in a linked list
<eam> then the node "does" the associated function
<eam> gotta afk, fun conversation :)
<noethics> eam, this is just going to come down to semantics
<jfarmer> noethics You know what I'm saying.
sdothum has joined #ruby
sdothum has quit [Remote host closed the connection]
<noethics> jfarmer, i do but i'm talking at a more pragmatic level. when someone says "hey use this design pattern", they are talking about a very known subset of techniques for handling containers of data
<noethics> not the containers themselves
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<jfarmer> And I'm saying, in other languages, those containers are themselves patterns (down the ladder of abstraction)
<jfarmer> Or up the ladder, the patterns become containers
<jfarmer> (to use your distinction)
commondream has joined #ruby
<noethics> fail to see how
<noethics> you can contain a pattern in an operator
vivekananda has joined #ruby
<noethics> but that is still effectively "doing" something
<noethics> a struct is not
blandflakes has joined #ruby
Synthbread has joined #ruby
<jfarmer> Not the struct itself, no, but the entirety of how your various structs are arranged and used and the (human) contract that says one is supposed to use them in a certain way.
sdothum has joined #ruby
<jfarmer> I'll re-link, because Peter Norvig makes a similar point (with examples!): http://norvig.com/design-patterns/design-patterns.pdf
blandflakes has quit [Client Quit]
Akagi201 has joined #ruby
blandflakes has joined #ruby
sdothum has quit [Client Quit]
Musashi007 has joined #ruby
cryptarium has joined #ruby
chipotle has quit [Quit: cheerio]
sdothum has joined #ruby
kinduff has quit [Quit: good night]
Limix has joined #ruby
commondream has quit [Ping timeout: 256 seconds]
bruno- has joined #ruby
rodferso1 has quit [Quit: leaving]
someword has quit [Quit: Leaving.]
<noethics> jfarmer, i guess you're right. i think my view of design patterns is heavily biased
<jfarmer> For example, in Ruby, you'd never need to implement the "abstract factory pattern" — you'd just pass the class in as an argument.
sevvie has quit [Ping timeout: 240 seconds]
<noethics> that's true, i can think of a bunch of different examples. but when i think of "design pattern" i think of GOF
eregon has quit [Read error: Connection reset by peer]
eregon has joined #ruby
<noethics> and i think i sort of try to implement those patterns in any language, even if i don't need to
<noethics> if i'm honest
<jfarmer> I agree, but the cracks show when you ask a question like "How do I implement the abstract factory pattern in Ruby?"
sevvie has joined #ruby
<jfarmer> not you specifically, but say, someone coming from Java
<jfarmer> It's a reasonable question, but misses the point.
bootstrappm has left #ruby [#ruby]
<noethics> yeah sort of just realized how shit i am
<noethics> ;)
<jfarmer> The "abstract factory pattern" is a contractual convention that relies on people implementing it correctly and the need for the "convention" might vanish in other languages.
<existensil> would be a good opportunity to demonstrate ruby's flexibility. start with the verbose example and whittle it down until the abstract factory is invisible/eliminated
joneshf-laptop has quit [Read error: Connection reset by peer]
<existensil> that PDF is a good explanation of what you were trying to say jfarmer
bruno- has quit [Ping timeout: 250 seconds]
<jfarmer> Peter Norvig is a smarter man than I am, no doubt. :D
<noethics> i think. it's fair to say some languages are objectively better than others
<noethics> based on this new revelation
<existensil> * > javascript
<existensil> :-P
<jfarmer> haha
pontiki has joined #ruby
mois3x has quit [Quit: mois3x]
<pontiki> hello/
<bnagy> soe languages are definitely objectively better, but then there's also a big layer on top
<noethics> i mean, if there were a language that accomplished all of what ruby did but faster, then it would be better than ruby
yqt has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
<bnagy> which is "how well does language X reflect the way I think about telling a computer what to do"
<bnagy> which is purely subjective
<noethics> but the fuzziness would come from tradeoffs, which seems to be a problem at the moment
GriffinHeart has quit [Remote host closed the connection]
<existensil> also "How well does language X solve problem Y" .. the answer will vary greatly depending on what Y is
<existensil> even in your example, bnagy, this ruby-killer would fail to be as good as ruby if it didn't also have the community/ecosystem of ruby
<bnagy> eh, wat?
<bnagy> nick mixup?
nedp has joined #ruby
<existensil> yes, meant noethics
dopie has quit [Quit: This computer has gone to sleep]
<noethics> existensil, that seems like more of the 'fuzziness' bit
<noethics> you can't say it would fail to be better just because of that
<existensil> ruby-killer might do everything ruby does faster, but if I can't use some random ruby gem with a C extension in it and I need to for a problem, then suddenly ruby looks good again
<noethics> well in that example the ruby killer wouldn't have accomplished everything ruby does
<noethics> or do you mean just the human element
<existensil> just pointing out that "objectively better" depends tremendously on context, and there is no context in which you get to make such an apples-to-apples comparison in a perfect "everything works the same" vaccum
<existensil> cause it never works that way
<noethics> going forward you mean
<noethics> i'm talking strictly languages
<pontiki> what is an objective measure of better?
<noethics> just because no one uses the ruby killer doesn't mean it's not better
<noethics> even if NO ONE uses it
<noethics> not one single person
<existensil> we generally, as humans, aren't smart enough to evaluate objectively whether one language is better than another, even for a narrow task, without going ahead and solving the task in both
<pontiki> is this the betamax argument?
<jfarmer> for some definition of better, sure
<noethics> i'm talking about if it could do everything ruby can, it eliminates all of the design problems that ruby does, syntactically, but it runs faster than ruby
<existensil> and even then, you wouldn't know for sure you took the best possible approach with both languages. maybe someone could have solved in better in the language you deemed lesser
<jfarmer> I don't really see that as related to what we were talking about. It's not as if there's some grand unified language where all design patterns vanish and become pure syntax.
<noethics> sure
casadei has quit [Remote host closed the connection]
<noethics> jfarmer, isn't that the point of "the new c/c++"
<noethics> or the "new" anything
<jfarmer> Most new languages take some ideas from previous languages or language communities and run with them.
araujo has joined #ruby
<noethics> so you think that there's no "perfect" language
DarthGandalf has quit [Ping timeout: 264 seconds]
<jfarmer> I don't even know what that means, honestly.
<noethics> me neither
<noethics> haha
<existensil> definitely not, and we'll never live to see one
towski_ has joined #ruby
<pontiki> what defines perfect in this case?
micmus has quit [Quit: Leaving]
<existensil> we don't even have the faintest notion of what perfect looks like, much less a roadmap to it
<pontiki> i mean, you're tossing out evalutive remarks, but not defining the valuation system
<existensil> this industry is still crude and infantile
mello has joined #ruby
<noethics> i mean if it could encapsulate every known design pattern succinctly into its syntax, it might be perfect for that time
DarthGandalf has joined #ruby
Musashi007 has quit [Quit: Musashi007]
<RickHull> says nothing about performance or readability
<pontiki> what's actually the point of this discussion?
<RickHull> language flamefest
jaequery has joined #ruby
<existensil> don't know. just enjoying reading/typing on the new laptop
<jfarmer> pontiki We were talking about the nature of design patterns
<jfarmer> not sure how we got here
pwnz0r_ has joined #ruby
djbkd has quit [Remote host closed the connection]
<existensil> new lappy has "developer" in the name, so I know I got the right one
<existensil> :-P
<pontiki> wadja get? wadja get?
djbkd has joined #ruby
<existensil> XPS 13 Developer Edition
<RickHull> it's going to meet a cute hipster in a coffee shop and run away from you. it's a dev-eloper
<sevenseacat> ooh i was looking at those existensil
<existensil> I'm enjoying it
Musashi007 has joined #ruby
<existensil> put 15.04 on it immediately. Pretty solid with zero Dell PPAs. Suspend is a little buggy at times but has gotten better. Battery life, screen, and build, are amazing
mello has quit [Ping timeout: 256 seconds]
<pontiki> looks nice
<pontiki> how's the fit and finish?
<noethics> existensil, you dont format immediately after you get a new computer?
<noethics> oh
<noethics> nvm
<noethics> i thought you said it came with it
<existensil> noethics: in this case I did, after backing up the dell installed 14.04
<sevenseacat> 15.04 is pretty solid
<noethics> yeah i'm on15.04 atm
<sevenseacat> had many problems with 14.10, all fixed in 15.04
<noethics> too bad i broke mine
<noethics> i'm too lazy to reinstall
<existensil> trackpad works well. intertial two finger scrolling is flawless
<sevenseacat> but now im on a macbook, so eh
<noethics> i basically did
mrsolo has quit [Quit: This computer has gone to sleep]
<noethics> sudo apt-get purge *unity*
<pontiki> i just received a kirabook, if i ever get some time it will have 15.04 on it
Limix has quit [Quit: Limix]
<existensil> works so much like my macbook i keep trying to use other trackpad gestures with it
<sevenseacat> i like unity, i miss it
<noethics> what do you miss about it
<sevenseacat> about the only thing l like more about this mbp is the screen
<sevenseacat> like more than my old samsung series 9 laptop
djbkd has quit [Ping timeout: 258 seconds]
<existensil> XPS 13 is a definite step up from the macbook air I had
<existensil> screen-wise
<pontiki> did you get the 3200 display?
<sevenseacat> ah i have a rMBP :)
<existensil> no, I went 1080P
olistik has joined #ruby
<existensil> still pretty high PPI really, and much much better battery life and cheaper
<existensil> nice matte finish, amazing colors and viewing angles
<pontiki> what's the case material?
<sevenseacat> i find it odd that theyre only 8GB RAM
amystephen has quit [Quit: amystephen]
<existensil> outside is solid peice of anodized aluminum on both halves. inside is a soft-touch carbon fiber
jpfuentes2 has quit [Read error: Connection reset by peer]
<existensil> feels much nicer to rest my palms on than the aluminum unibody of the macbook air
<existensil> kind of feels like the back of a Motorola X if you've held one
jpfuentes2 has joined #ruby
<sevenseacat> oh i love my moto x
<pontiki> i've had two droids, i think its the same stuff
<sevenseacat> the back is awesome, but that means it will attract grease and fingerprints like a mofo
<existensil> it does do that a little
<existensil> i throw a microfibre in my bag now
<existensil> I don't perspire as much as most, but it still shows smudges a bit sometimes
<existensil> had it about 3 weeks
<sevenseacat> i would have huge palm prints ingrained on the laptop in like a week
olistik has quit [Ping timeout: 256 seconds]
watchtheblur has quit [Ping timeout: 252 seconds]
<existensil> the tiny bezel is definitely a sight worth seeing
<existensil> looks fantastic
Musashi007 has quit [Read error: Connection reset by peer]
<existensil> its like they took a macbook air and cut the crusts off of it all the way round
<RickHull> i read reports that the super hi res screen is problematic for a lot of the app ecosystem
<sevenseacat> haha nice
caseypatrickdris has quit [Remote host closed the connection]
Xoro has quit [Ping timeout: 265 seconds]
Hijiri has joined #ruby
Musashi007 has joined #ruby
<existensil> yeah, I was worried about the high DPi scaling. once i saw diminished battery life I knew the 1080P was for me
nuck has joined #ruby
<existensil> its still a gorgeous display and 13" @ 1080P is still very sharp
WildBamboo-Josh has quit [Quit: Leaving]
<existensil> I have to zoom in on websites occasionally
<existensil> runs ruby nicely :-P
jfarmer has quit [Quit: Textual IRC Client: www.textualapp.com]
Musashi007 has quit [Client Quit]
Elboerea has joined #ruby
<Elboerea> alias in Ruby is similar to typedef/using in C++?
merqlove has joined #ruby
jpfuentes2 has quit [Read error: Connection reset by peer]
WildBamboo-Josh has joined #ruby
pontiki has quit [Quit: Textual IRC Client: www.textualapp.com]
Hijiri has quit [Quit: WeeChat 1.0.1]
jpfuentes2 has joined #ruby
Hijiri has joined #ruby
mrsolo has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
Xoro has joined #ruby
mois3x has joined #ruby
jpfuentes2 has quit [Ping timeout: 264 seconds]
Ox0dea has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
blandflakes has joined #ruby
casadei has joined #ruby
<Ox0dea> Elboerea: alias creates a copy of a method under another name.
Exponential has joined #ruby
<Elboerea> Differences from C
<Elboerea> "There’s no macros or preprocessor. No casts. No pointers (nor pointer arithmetic). No typedefs, sizeof, nor enums."
<Elboerea> I think that needs to change then.
<Ox0dea> ...
braincras has quit [Quit: bye bye]
jpfuentes2 has joined #ruby
<Ox0dea> You don't *need* any of those things to write quality Ruby code, so why would you want them?
<Elboerea> Your argument is invalid.
<Elboerea> You don't know what I need or not.
<Ox0dea> You would have asked for faster horses.
dopie has joined #ruby
<noethics> Elboerea, if you want those things yer in the wrong place m8
<miah> i want faster cyborg horses
<Elboerea> I'm referring to typedefs aka alias
<RickHull> Elboerea: what's the question again?
<Ox0dea> noethics: For what it's worth, Ruby basically does have all of those things.
<Elboerea> <Elboerea> alias in Ruby is similar to typedef/using in C++?
<RickHull> Elboerea: did you get an answer to that?
nb_bez___ has quit [Quit: Connection closed for inactivity]
jmhmccr has quit [Quit: Connection closed for inactivity]
<RickHull> or is there still something unclear for you?
<Elboerea> alias is used only for methods?
<noethics> i heard of types once
<noethics> didnt really understand them so i went back to nodejs
<Elboerea> noethics, That doesn't work.
<noethics> ?
<Elboerea> So I guess they are for methods only, yes.
<bnagy> Elboerea: yes, alias is for methods
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bnagy> but classes are first class variables
<Elboerea> what do you mean?
<bnagy> that the class of an object can be stored as a variable
<Elboerea> Node.js .. just give Elixir few months and see Node dying out :))
<Ox0dea> Class names are just regular-ol' constants.
<RickHull> Elboerea: i'd love to see that, but not holding my breath
braincrash has joined #ruby
<bnagy> Elboerea: idiomatic ruby tends to use duck-typing though, so the whole type safety / checking angle isn't really a Thing
<Elboerea> bnagy, Yea I did read that :)
<Elboerea> RickHull, Heh. They doing a great job really.
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<bnagy> so most of the reason I'd use typedef in C doesn't really apply to ruby
<RickHull> imho, Elixir has all of my favorite things from ruby, adds a bunch of cool shit, and leaves some crap behind
<noethics> how much does it bench tho
<Ox0dea> Does it even liftM2?
<RickHull> 185 furlongs per hogshead
<Elboerea> bnagy, Yea that's right.
Limix has joined #ruby
Rickmasta has joined #ruby
<Elboerea> It seems like many rubyists favor Elixir.
<sevenseacat> i'm learning elixir.
<Elboerea> holy ..
towski_ has quit [Remote host closed the connection]
<Elboerea> sevenseacat, Any feedback?
<noethics> is there a good reason for learning it
<sevenseacat> functional programming does my head in, so far.
<RickHull> best reasons are functional programming and Erlang/BEAM
<Elboerea> noethics, Concurrency and functional programming seems to be the future :)
<Elboerea> Time to see Erlang shine.
<noethics> why do you think functional programming is the future
<RickHull> millions of threads can't be wrong
<noethics> i've heard some other people say that
<RickHull> side effects and mutation are the mindkillers
frem has quit [Quit: Connection closed for inactivity]
fujimura has joined #ruby
<Elboerea> sevenseacat, From what I know, it's a small language right?
<sevenseacat> its a very different way of thinking. still strugging to wrap my mind around it.
<noethics> sevenseacat, don't you spam blocks all day in ruby
<sevenseacat> don't know. just learning.
<Elboerea> Yea you will definitely become a better programming learning Elixir/Erlang.
<Elboerea> programmer*
<RickHull> here is the same project originally implemented in ruby, and reimplemented in elixir https://github.com/rickhull/conway_deathmatch
<sevenseacat> noethics: yes, but I also call methods on objects, and use getters and setters, and store data, and other such things :P
<RickHull> (see the elixir branch)
delianides has joined #ruby
<noethics> you might do well to learn a more err developed functional language first, which has a lot of resources
<noethics> and is less focused
<RickHull> btw, it doesn't show that elixir uses less code or machine resources. but it gives you a feel for the two language differences
<sevenseacat> eh, i'm having fun.
tkuchiki has joined #ruby
<RickHull> in elixir you pay a little more startup cost for the BEAM VM
<Elboerea> noethics, Erlang is old enough and Elixir benefits from the EVM.
<noethics> like haskell or something
<sevenseacat> learning phoenix as well
<noethics> erlang is pretty dope
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<noethics> i like the instathreads, but i have that with go too
<noethics> and i dont need to be all interpreted and stuff
<Elboerea> sevenseacat, Do you know if there are any books coming out for Phoenix?
ghr has joined #ruby
<sevenseacat> Elboerea: I'm toying with the idea of writing one, does that count
<Elboerea> Elixir books launched really fast compared to the first serious Erlang book.
<Elboerea> sevenseacat, Yea of course :)
<sevenseacat> i dont think you'll see any phoenix books until 1.0 at least.
michael_mbp has quit [Excess Flood]
ewnd9 has joined #ruby
michael_mbp has joined #ruby
<Elboerea> I guess so.
<Elboerea> sevenseacat, Did you have any previous functional programming experience before Elixir?
<sevenseacat> Elboerea: very little. a semester at uni, ten years ago.
<Elboerea> Ah
<sevenseacat> https://github.com/sevenseacat/ticketee-phoenix see me trying to learn phoenix
ttilley has quit [Quit: Leaving...]
M-Technic has quit [Ping timeout: 244 seconds]
<Elboerea> sevenseacat, Woot, that split up between views and templates :)
duderonomy has joined #ruby
lorn has quit [Ping timeout: 245 seconds]
<Elboerea> The power of Erlang, the joy of Ruby - Dave
ghr has quit [Ping timeout: 272 seconds]
M-Technic has joined #ruby
northfurr has quit [Quit: northfurr]
<noethics> serious question, do people actually use erlang
leat4 has quit [Ping timeout: 265 seconds]
<RickHull> serious answer: yes
<noethics> where
<RickHull> CouchDB, Ericsson
<Elboerea> Of course
<noethics> have you ever seen a job posting asking for erlang programmers
<Elboerea> Facebook chat is in Erlang
<havenwood> sevenseacat: Nice.
<noethics> ic
<RickHull> facebook chat -- is that whatsapp?
<yorickpeterse> meh
<havenwood> RabbitMQ
<RickHull> ejabberd
<Elboerea> Facebook chat app started as a hackathon project.
joneshf-laptop has joined #ruby
<havenwood> sevenseacat: I've been having fun playing with OTP: https://gist.github.com/havenwood/2a983703bd154b7e239a
<Elboerea> sevenseacat, I heard that you almost put your code in modules so you can somehow change parts of your program at runtime.
<alxndr> noethics: Amazon, Yahoo, Facebook, Whatsapp, T-Mobile, Ericsson, and many more http://stackoverflow.com/a/1637137/303896
<RickHull> erlang supports hot code reloading, yes
<sevenseacat> havenwood: looks like magic to me lol
oo_ has quit [Remote host closed the connection]
<sevenseacat> also `:timer.sleep 1000 # Hard work this is ...` lol
fedexo has joined #ruby
<noethics> ic thanks for the link alxndr
<noethics> it seems like it's not used much though
<noethics> like as if it were just the engineer's preference
<RickHull> it is not ubiquitous like jabba
<Elboerea> noethics, How do you know that_
casadei has quit [Remote host closed the connection]
<Elboerea> ?
<noethics> i don't Elboerea that's why i said _it seems_
casadei has joined #ruby
Vile` has quit [Ping timeout: 246 seconds]
<noethics> because i have never seen a single job posting asking for erlang developers
aaeron has quit [Quit: aaeron]
<havenwood> RickHull: I still need to add hot code swapping to my FizzBuzz GenServer... mmm, code_change/3
<noethics> or know anyone that actively uses it
<noethics> or talks about it
<noethics> or anything
M-Technic has quit [Ping timeout: 264 seconds]
northfurr has joined #ruby
<RickHull> noethics: you've found us!
ramfjord has quit [Ping timeout: 250 seconds]
<RickHull> havenwood: haven't messed with it myself, yet
<Elboerea> noethics, They are not as many as Python developers or Ruby developers. But if you master Erlang, you can land a very, very good job.
* sevenseacat walks into a conversation about erlang "NOBODY EVER TALKS ABOUT ERLANG"
<noethics> lol
jpfuente_ has joined #ruby
<noethics> i mean i've heard elixir dropped in this channel a few times
failshell has joined #ruby
<noethics> but that's loosely relevant :p
<RickHull> elixir is the bridge from ruby to erlang
<bnagy> FLY YOU FOOLS
workmad3 has joined #ruby
<Elboerea> noethics, Elixir - The power of Erlang, the joy of Ruby.
<RickHull> elixir comes up, and then erlang comes up, and then lots of erlang questions
casadei has quit [Remote host closed the connection]
<noethics> in #ruby
swgillespie has joined #ruby
jpfuentes2 has quit [Ping timeout: 272 seconds]
<Elboerea> and in #erlang
iliketurtles has joined #ruby
<noethics> no one's ever like HEY MAN IF YOU NEED THAT KIND OF CONCURRENCY GO USE ERLANG
CamonZ has quit [Quit: Textual IRC Client: www.textualapp.com]
<noethics> idk, just seems either underused or not relevant
Vile` has joined #ruby
<existensil> I've heard almost exactly that before (if you need that kind of concurrency, go use erlang)
<noethics> haha
<existensil> also seen erlang replaced with Go
<noethics> yeah that's all i can think about
<noethics> go offers the same solution for concurrency atleast
<Elboerea> No, it does not.
<noethics> how not
<Elboerea> Nothing beats Erlang when it comes down to specific tasks such as concurrency.
<noethics> how not
<RickHull> supervisors are baked in
<RickHull> it's a design pattern yo
<noethics> you mean like channels that go has
<RickHull> also millions of lightweight threads. i'm not sure how go stacks up, but i doubt it
<noethics> go has exactly that
<noethics> they're called go routines
<Elboerea> noethics, And btw, ruby-lang.org uses Erlang :)
<RickHull> i don't think they reach the same scale, but i'm happy to learn
<havenwood> sevenseacat: Your Phoenix app looks like magic to me. I've been meaning to study up on Phoenix but haven't gotten to it yet.
<noethics> idk, does erlang compile to machine code?
<noethics> it does, right?
<RickHull> BEAM bytecode
<noethics> so it's interpreted
failshell has quit [Ping timeout: 264 seconds]
<RickHull> just like the JVM
<sevenseacat> so far (basic crud), its very similar to rails, excepting changesets for dealing with changes to a record
<noethics> yeah
delianides has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 276 seconds]
mdz_ has joined #ruby
<bnagy> I can't think of any modern languages for which a binary / interpreted dichotomy makes any sense these days
<bnagy> I mean your cpu is basically a bytecode VM anyway
<noethics> really
<RickHull> bash is pretty much interpreted right?
<RickHull> (not modern)
<bnagy> what you think of as machine code, CPU engineers think is a HLL
<RickHull> you can pry my registers from my cold dead hands
crankharder has quit [Ping timeout: 256 seconds]
rubie has quit [Remote host closed the connection]
<bnagy> so it doesn't really make much sense to use it as a broad-brush "this will / will not perform" metric
<bnagy> a bad C compiler will emit code that's slower for many things than java on latest jvm
rubie has joined #ruby
crankharder has joined #ruby
<Ox0dea> bnagy: Who uses bad C compilers?
<bnagy> some people would argue that even a good C compiler is close enough that it's not worth bothering :P
<Elboerea> sevenseacat, Do you see Phoenix being an all around web development framework as Rails or having a specific niche?
charliesome has quit [Quit: zzz]
<RickHull> Elboerea: i think Phoenix wants to out-Rails Rails, in the best possible way
<existensil> even a good C compiler may have trouble exceeding the performance of similar java code running on a warmed JVM
<RickHull> namely avoiding bloat and too wide of a scope, but also being very general purpose
<Elboerea> RickHull, Do you see it happening?
<sevenseacat> Elboerea: all-round web development.
<noethics> existensil, i thought that too but nah. you may be thinking of c++
<bnagy> see, I predicted that some people might argue that ;)
<noethics> C still smashes java basically, even when factoring in JIT
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<Ox0dea> "Smashes" is hyperbolic.
<Elboerea> existensil, It's not about performance, it's about performance control which you get with C++.
<noethics> if i say "30x faster" for some specific operations would you say it's hyperbolic lol
<RickHull> Elboerea: imho that depends less on Phoenix proper and more on the Ruby vs Elixir platform and ecosystem
<RickHull> noethics: so long as you name the specifics :)
<noethics> heh
someword has joined #ruby
<havenwood> Exciting work is being done on interpreting C. Love this paper: http://www.chrisseaton.com/rubytruffle/modularity15/rubyextensions.pdf
<Elboerea> The thing here is that people wont invest in functional programming languages for a reason and that might slow Elixir down when it comes to popularity.
Spami_ has quit [Quit: This computer has gone to sleep]
<noethics> if it's the future then you would presume new programmers will use it
<Elboerea> So it will be something like, only the geeks will be doing Elixir/Phoenix.
<Aeyrix> ITC: People who have "read things" about languages making assumptions.
<noethics> for X reasons why it's better than procedural
<bnagy> anyway, just saying, people romanticise C sometimes when it's not always warranted EVEN FOR performance
<Aeyrix> Please stop chatting garbage in my IRC window.
<RickHull> Elboerea: i think it will be like most of the FP world
<bnagy> which is the one and only reason to use C ever
<Elboerea> noethics, That's not true.
<noethics> Elboerea, how not
gambl0re has quit [Ping timeout: 272 seconds]
<Elboerea> <--- bnagy, C developer for 17 years. Don't make me start :)
<Aeyrix> MODS
<Aeyrix> EPENISES HAVE ENTERED THE CHANNEL
<RickHull> TRIBES ARE FORMING
<Aeyrix> RUH ROH
towski_ has joined #ruby
<Ox0dea> >> [defined?(1.class), defined?(Fixnum)]
<ruboto> Ox0dea # => ["method", "constant"] (https://eval.in/374037)
<Elboerea> xD
<havenwood> Ox0dea: The neat thing about the Truffle/Graal work is you don't sacrifice performance and you can do stuff like compose the Ruby interpreter with the C interpreter to optimize across the language boundary. The numbers are dazzling.
<Elboerea> sevenseacat, You on Daves book about Elixir?
<sevenseacat> Elboerea: yeah, ive worked through the first section of it
joast has quit [Quit: Leaving.]
mmazing has quit [Ping timeout: 256 seconds]
<havenwood> Elboerea: I read and really enjoyed the free bits from each chapter. I need to buy a copy.
choke has joined #ruby
<Elboerea> What the...
<Elboerea> everyone is into Elixir?
vdamewood has quit [Ping timeout: 264 seconds]
<Elboerea> you make me feel bad, I just bought Eloquent Ruby..
<sevenseacat> its something new and interesting, and syntactically similar to ruby.
vdamewood has joined #ruby
<sevenseacat> eloquent ruby is a good book.
<havenwood> Elboerea: We're really into Ruby too. ;)
<Aeyrix> I dislike Elixir.
greenbagels has quit [Quit: Leaving]
<Elboerea> havenwood, :)
<RickHull> I found Dave's Elixir book to be about epsilon value above the official docs. very disappointed
<Elboerea> RickHull, Heard Elixir in Action teach you really great stuff.
<bnagy> havenwood: I thought truffle was a jruby magic unicorn thing
postmodern has joined #ruby
<bnagy> how does elixir fit in?
<RickHull> what interests me most at this point is leveraging OTP and OTP patterns in elixir
<bnagy> imagine I have been writing ~0 ruby for 2 years :)
mcclurmc has quit [Ping timeout: 244 seconds]
<RickHull> Elboerea: yeah, at my $new_job, there are lots of fans of the "... in Action" series, and I haven't been disappointed yet
<Elboerea> bnagy, I didn't even write anything serious 4 years after learning C. Became a language lawyer instead..
<RickHull> what's a language lawyer exactly?
<yorickpeterse> C
<Elboerea> RickHull, Yea it was recommended by Jose in #elixir-lang
<yorickpeterse> :>
mcclurmc_ has joined #ruby
charliesome has joined #ruby
arescorpio has quit [Quit: Leaving.]
<bnagy> Elboerea: oh I've written 10s of kloc of ruby, just not written any for a couple of years
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bnagy> so I'm out of date with hotnesses
<Elboerea> RickHull, Start by raw reading the C standard and pretty much try to understand the language itself, rules, whys and hows etc.
<RickHull> without actually writing it or putting it to use?!!?!?!?
<RickHull> i could never
gix has quit [Ping timeout: 240 seconds]
Killerkeksdose has quit [Read error: Connection reset by peer]
<Elboerea> Of course you have to write, I said I didn't write anything serious.
lotherk has quit [Ping timeout: 256 seconds]
Killerkeksdose has joined #ruby
<havenwood> bnagy: Elixir isn't particularly related to Truffle/Graal, through there is Erjang and conceivably it could get Truffle/Graal support.
<RickHull> well that's a reasonable approach then
<bnagy> havenwood: what's a Graal?
<havenwood> bnagy: A VM.
jenrzzz has joined #ruby
iliketur_ has joined #ruby
hector__ has quit [Quit: Leaving]
<bnagy> ok.
<Ox0dea> Elboerea: You've read all of ISO 9899, back to front?
<bnagy> so truffle compiles to graal?
lotherk has joined #ruby
<Elboerea> Ox0dea, No lol. Just the C99 standard.
fujimura has quit [Remote host closed the connection]
<havenwood> bnagy: Truffle is the AST framework and Graal is the VM.
tkuchiki has quit [Remote host closed the connection]
<Ox0dea> Elboerea: What is the C99 standard if not ISO 9899
<Ox0dea> ?
Spami has joined #ruby
<havenwood> bnagy: They've implemented a handful of languages already. The paper I linked above is a great read and is totally accessible.
Aeyrix has quit [Quit: ZNC - http://znc.in]
Aeyrix has joined #ruby
iliketurtles has quit [Ping timeout: 265 seconds]
<bnagy> oic graal is also the compiler. Google saved me. :)
<Elboerea> Ox0dea, Skimmed thought you said "all ISO standards". But yea, ISO 9899 or C9X.
<bnagy> is jruby 9 truffle on by default?
<havenwood> bnagy: nope
<bnagy> and if not is it likely to mostly-work if I turn it on?
<havenwood> bnagy: It doesn't work with RubyGems yet.
mois3x has quit [Quit: mois3x]
<bnagy> uh
jaequery has joined #ruby
gix has joined #ruby
<havenwood> bnagy: Most of Ruby core is implemented but not much of the stdlib.
<bnagy> ie you can't use any gems at all?
<bnagy> ah ok
jefus has quit [Quit: Leaving]
<Elboerea> sevenseacat, Holy, already authentication for Phoenix???
<Elboerea> Or am I lost.
ewnd9 has quit [Quit: WeeChat 0.4.2]
jefus has joined #ruby
jefus_ has joined #ruby
fujimur__ has joined #ruby
doritostains has quit [Quit: WeeChat 1.0.1]
tkuchiki has joined #ruby
Aeyrix has quit [Client Quit]
Brozo has joined #ruby
greenbagels has joined #ruby
<bnagy> holy crap
Aeyrix has joined #ruby
<havenwood> bnagy: And it can optimize across language boundaries. Just damned impressive stuff.
The_Phoenix has joined #ruby
<bnagy> why is jruby1.7 < jruby9?
lorn has joined #ruby
<havenwood> bnagy: You mean why's 1.7 faster?
momomomomo has joined #ruby
<bnagy> yes, sry, typo
nahtnam has joined #ruby
jefus_ has quit [Client Quit]
<havenwood> bnagy: Many more efforts already spent on tuning performance.
<RickHull> i'm guessing it's not at least 9000 efforts
mrsolo has quit [Quit: This computer has gone to sleep]
<havenwood> bnagy: They're catching it up and plan to surpass I believe.
<momomomomo> who and what is this we're talking about?
<RickHull> momomomomo: too late, you missed it already
<momomomomo> damn internets
<Aeyrix> momomomomo: JRuby.
<momomomomo> dope love me some jruby
ramfjord has joined #ruby
<RickHull> is there a way to keep a hot JVM on standby (or similar) in order to achieve < 100ms CLI startup?
<RickHull> i.e. how would you implement `ls` in java, if you had to
<havenwood> RickHull: Drip
<RickHull> cool, thx
<momomomomo> since when is ruby-lang invite only?
<RickHull> ruby-lang is kaput
watchtheblur has joined #ruby
<RickHull> merged with #ruby
<RickHull> the great enmergening
scripore has quit [Quit: This computer has gone to sleep]
Musashi007 has joined #ruby
<momomomomo> bout tim
<momomomomo> e
<havenwood> momomomomo: Consolidated.
<Aeyrix> What was wrong with #ruby-lang
<RickHull> June 1 2015 never forget
<Aeyrix> Matches the long domain name we have. :^)
<RickHull> Aeyrix: ruby-lang best lang
<RickHull> but #ruby was previously embiggened
mrsolo has joined #ruby
<RickHull> and so absorbed the smaller entity
<Aeyrix> ruby.org is garbage
<Aeyrix> ruby.com is also garbage
<Brozo> :c
blandflakes has joined #ruby
<RickHull> ruby.com, still blue here
<Aeyrix> Tucows are assholes for pointlessly holding ruby.org for some trench-tier email service.
<havenwood> bnagy: I very much look forward to a fully functional Rack and RubyGems. :)
iliketurtles has joined #ruby
Rickmasta has joined #ruby
ur5us has joined #ruby
jmhmccr has joined #ruby
blandflakes has quit [Client Quit]
iliketur_ has quit [Ping timeout: 252 seconds]
houhoulis has quit [Remote host closed the connection]
<RickHull> havenwood: nice links, thx
<RickHull> something like drip is what I've had in mind for a while, asked around before, got funny looks
ScriptGeek has quit [Quit: Leaving.]
mello has joined #ruby
djbkd has joined #ruby
mdz_ has quit [Remote host closed the connection]
ghr has joined #ruby
mello has quit [Ping timeout: 264 seconds]
pepperbreath has joined #ruby
ghr has quit [Ping timeout: 265 seconds]
finisherr has joined #ruby
<finisherr> Looking at docs for ruby 2.2.2. What happened to the test package?
<RickHull> what do you mean? got a link?
someword has quit [Quit: Leaving.]
<finisherr> Usually there is a test package
<finisherr> for unit testing
<RickHull> ah, like for Test::Unit
<finisherr> yeah
<RickHull> i'm not sure in this case, but Minitest is the new impl of Test::Unit for 2.0
<finisherr> not in the stdlib?
<RickHull> it may be in core rather than stdlib
<RickHull> and generally, i think things are moving towards core / gems rather than core / stdlib / gems
<finisherr> hmm
baweaver has joined #ruby
momomomomo has quit [Quit: momomomomo]
<finisherr> crazy, it’s not there i dont’ think
<RickHull> Test::Unit may be in core, and minitest may be purely a gem. But i'm pretty sure minitest provides Test::Unit for ruby >= 2.0
harlen has joined #ruby
<RickHull> yeah i don't see it in core
<finisherr> so much change ha
<finisherr> I’m new to ruby
<RickHull> try require 'minitest'
fgo has quit [Ping timeout: 272 seconds]
DANtheBEASTman has joined #ruby
<RickHull> (after `gem install minitest`)
lessless has joined #ruby
<RickHull> should provide Test::Unit
<RickHull> (note: i'm totally fumbling here, someone else has better info surely)
<RickHull> plus ça change, plus c'est la même chose
<Ox0dea> MiniTest is part of the standard library in 2.0+.
<finisherr> ok, i just didn’t see it in the docs
<havenwood> finisherr: MiniTest was renamed Minitest and is now shipped as a bundled gem.
failshell has joined #ruby
<RickHull> is Test::Unit still a thing?
<RickHull> what provides that constant, if so?
<havenwood> RickHull: It's also shipped as a bundled gem but is just backed by Minitest.
<RickHull> it's not in 2.2.2 stdlib
Ox0dea has quit [Read error: Connection reset by peer]
<RickHull> nor 2.2.2 core
<havenwood> RickHull: Bundled gem.
<havenwood> RickHull: They extracted it to a gem but ship it along with Ruby.
<RickHull> if i were new to ruby, how would you explain it to me?
<havenwood> RickHull: Some gems ship with Ruby. Minitest is one of those gems.
<RickHull> what is a bundled gem? using bundler?
<havenwood> Nothing to do with bundler.
<RickHull> :wink:
<finisherr> haha, i was JUST researching bundler
<havenwood> hehe
<RickHull> so, if Minitest is bundled with ruby, where do i find the docs for it?
<RickHull> for the version shipped with my ruby?
<finisherr> that is a good question
<finisherr> at least it’s one i have ha
<havenwood> RickHull: Well, it's a gem so the gem docks.
<RickHull> finisherr: no worries i got your back
<havenwood> docs*
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<RickHull> havenwood: let me rephrase
<RickHull> where are the docs for Test::Unit?
<havenwood> RickHull: https://test-unit.github.io/
<RickHull> literally never seen this before xD
<havenwood> RickHull: Or alternatively: http://www.rubydoc.info/gems/test-unit/3.1.1
<havenwood> RickHull: But use Minitest. :)
Musashi007 has quit [Quit: Musashi007]
<RickHull> havenwood: hmmm
bluOxigen has joined #ruby
<RickHull> seem pretty confusing as a ruby noob here
<RickHull> do I `gem install test-unit`
<RickHull> where is the part that explains how to unit test with ruby 2.2?
<RickHull> havenwood: not picking on you particularly, you have brownie points so far
failshell has quit [Ping timeout: 265 seconds]
<havenwood> RickHull: So when you install 2.2.2 you already have the Minitest gem installed. If you `gem update minitest` it will update to the latest Minitest if there's a newer one than the one Ruby shipped with.
CustosLimen has quit [Read error: Connection timed out]
<RickHull> finisherr: does that help?
<finisherr> Yep
<DANtheBEASTman> i'm not much of a rubyist, but i'm trying to install sass.. and I get this error trying to run it /usr/lib/ruby/2.1.0/rubygems/dependency.rb:298:in `to_specs': Could not find 'sass' (>= 0) among 11 total gem(s) (Gem::LoadError) and this is by directly calling sass
CustosLimen has joined #ruby
Musashi007 has joined #ruby
oo_ has joined #ruby
whitequark has joined #ruby
whitequark has left #ruby [#ruby]
ur5us has quit [Remote host closed the connection]
revath has joined #ruby
<RickHull> DANtheBEASTman: looks like the gem is not actually installed
<RickHull> what's the output, use gist/pastie/pastbin if nec, of `gem list sass`
<RickHull> are you using bundler / Gemfile / Gemfile.lock ?
choke has joined #ruby
<DANtheBEASTman> RickHull: it's in there, only gem I have... sass (3.4.14)
ur5us has joined #ruby
<baweaver> What's the exact line in the gemfile?
Hijiri has quit [Ping timeout: 265 seconds]
pepperbreath has left #ruby [#ruby]
<RickHull> and what CLI command are you executing to get the error?
<baweaver> Also, you might update to Ruby 2.2 to be safe.
<DANtheBEASTman> i'm on sid and I don't have root to this machine
Elboerea has quit [Quit: Leaving]
<havenwood> DANtheBEASTman: What's the exact command you're running?
greenbagels_ has joined #ruby
<RickHull> DANtheBEASTman: neither should be a problem
<baweaver> DANtheBEASTman: That's what RVM and Rbenv are for
<baweaver> but that's more of an aside concern
<RickHull> baweaver: you mean chruby ;)
<havenwood> DANtheBEASTman: Are you prefixing `bundle exec` to your command to run "in the context of your bundle?"
<DANtheBEASTman> i'm not even writing a ruby script, I just wanted to be able to call sass from the cli
<finisherr> So, I’m looking at the documentation for URI. I’m seeing here that when you create a URI object there are all of these availble getters, like scheme and host. Where in the documentation would I find that those are available outside of the little example?
<baweaver> gem install sass
<havenwood> DANtheBEASTman: So why do you have a Gemfile?
<baweaver> done
<DANtheBEASTman> so I could locally install gems
_ht has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
<RickHull> havenwood: in beastman's defense, this shit is super confusing
<baweaver> bingo
<havenwood> DANtheBEASTman: gem install sass --user-install
<baweaver> It can be
Elboerea has joined #ruby
<DANtheBEASTman> havenwood: that's what my gemrc does.. i'm pretty sure
<RickHull> DANtheBEASTman: please make a series of pastes -- no joke. use gist.github.com your gemrc, and anything bundler or rubygems related
<DANtheBEASTman> sets gempath and gemhome env variables, and I have .gems/bin/sass in my PATH
rippa has joined #ruby
<RickHull> DANtheBEASTman: are you using bundler?
greenbagels has quit [Ping timeout: 250 seconds]
<DANtheBEASTman> no what's that
<RickHull> do you have a Gemfile?
<DANtheBEASTman> no
<DANtheBEASTman> just a gemrc
<RickHull> ok cool
<havenwood> DANtheBEASTman: How'd you install sass?
ur5us has quit [Ping timeout: 276 seconds]
dopie has joined #ruby
<DANtheBEASTman> gem install sass
<havenwood> DANtheBEASTman: gem which sass
Hijiri has joined #ruby
<DANtheBEASTman> it seemed to install successfully
<RickHull> `gem which sass` # do it
mistermocha has joined #ruby
finisherr has quit [Quit: finisherr]
<havenwood> DANtheBEASTman: When you say `.gems/bin/sass in my PATH` do you mean `.gems/bin in my PATH`?
<DANtheBEASTman> RickHull: /home/dan/.gems/gems/sass-3.4.14/lib/sass.rb
<DANtheBEASTman> havenwood: yes, sorry
<DANtheBEASTman> specifically I have $HOME/.gems/bin in my path
merqlove has quit [Quit: Connection closed for inactivity]
<RickHull> what's the command you're running?
LMity has joined #ruby
<DANtheBEASTman> $HOME/.gems/bin/sass
<DANtheBEASTman> because... i'm lying and my ~/.profile isn't loading .gems/bin.. that's weird
<RickHull> hehe
aaeron has joined #ruby
MVPhelp has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
dionysus69 has joined #ruby
<DANtheBEASTman> but calling the command directly is what gives me that error
<RickHull> what is the cmd exactly? (broken record?)
<RickHull> $HOME/.gems/bin/sass i guess
btrick has joined #ruby
aaeron_ has joined #ruby
btrick has left #ruby [#ruby]
btrick has joined #ruby
rocknrollmarc has joined #ruby
aaeron has quit [Ping timeout: 255 seconds]
aaeron_ is now known as aaeron
<RickHull> ok, good info
LMity has quit [Ping timeout: 246 seconds]
<RickHull> this is not my particular area of expertise
<RickHull> shouldn't you have something specifying `--user-install` ?
<havenwood> Seems to be some mixup between 1.9.1 and 2.1.0.
mcclurmc has joined #ruby
<RickHull> oh yeah, and btw 1.9.1 is the official lib version, even if ruby is v1.9.3
<havenwood> /usr/lib/ruby/gems/1.9.1
bhrgunatha has joined #ruby
<havenwood> DANtheBEASTman: sudo update-alternatives --config gem
jgt has joined #ruby
<RickHull> isn't that debian specific? how do you know havenwood?
<havenwood> DANtheBEASTman: You have both 1.9 and 2.1 installed?
nonparfumee has joined #ruby
<havenwood> RickHull: Hmm? I don't follow.
<RickHull> `update-alternatives` is that distro-specific?
<shevy> will debian ever be painless
<havenwood> RickHull: nope
<havenwood> RickHull: Well, some don't have it but it's multi-distro.
<RickHull> cool TIL
ledestin has joined #ruby
<RickHull> shevy: debian will be painless when life is painless
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<baweaver> RickHull: But they have SystemD now!
rocknrollmarc has quit []
<shevy> they intensify on the pain
<RickHull> i just take substance d and it makes the systemd pain go away
dgutierrez1287 has joined #ruby
mcclurmc_ has quit [Ping timeout: 265 seconds]
chrissonar has joined #ruby
unshadow has quit [Quit: leaving]
mrsolo has quit [Quit: This computer has gone to sleep]
<DANtheBEASTman> havenwood: no sudo
<havenwood> DANtheBEASTman: which gem
<DANtheBEASTman> /usr/bin/gem
<havenwood> DANtheBEASTman: gem which rubygems
<DANtheBEASTman> /usr/lib/ruby/2.1.0/rubygems.rb
psy_ has joined #ruby
dgutierrez1287 has quit [Ping timeout: 256 seconds]
btrick has left #ruby [#ruby]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
choke has joined #ruby
<havenwood> DANtheBEASTman: Just to sanity check?: ruby -v
tkuchiki has quit [Remote host closed the connection]
CloCkWeRX has quit [Quit: Leaving.]
<DANtheBEASTman> ruby 2.1.5p273 (2014-11-13) [i386-linux-gnu]
tkuchiki has joined #ruby
<havenwood> DANtheBEASTman: ruby -rubygems -e 'puts Gem.default_bindir'
<DANtheBEASTman> /usr/local/bin
<havenwood> DANtheBEASTman: echo $PATH
<DANtheBEASTman> do you want ssh access? lol
<havenwood> DANtheBEASTman: /usr/local/bin/sass
<DANtheBEASTman> /home/dan/.local/bin:/home/dan/.npm/bin:/usr/games:/usr/local/sbin:/usr/bin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/games
Blaguvest has quit []
<DANtheBEASTman> doesn't exist
<havenwood> DANtheBEASTman: Just checking that /usr/local/bin is indeed in your path.
<DANtheBEASTman> sass is in $HOME/.gems/bin/
GnuYawk has quit [Quit: WeeChat 1.0]
GnuYawk has joined #ruby
<havenwood> DANtheBEASTman: Not sure I followed how you set that up? In your gemrc?
<DANtheBEASTman> yeah, it works at home
<havenwood> Contents of gemrc?
choke has quit [Ping timeout: 256 seconds]
<havenwood> Ah, right, you linked.
<havenwood> DANtheBEASTman: What's that 1.9.1 doing there?
<DANtheBEASTman> idk, i already fixed it
Brozo has quit [Quit: Leaving...]
tkuchiki has quit [Ping timeout: 256 seconds]
<DANtheBEASTman> that path in gemrc i mean
<DANtheBEASTman> no change in error though
<RickHull> make sure you have a new login session now
sinkensabe has joined #ruby
<DANtheBEASTman> yup
ttilley has joined #ruby
dionysus69 has quit [Ping timeout: 255 seconds]
justintv90 has joined #ruby
ghr has joined #ruby
<havenwood> DANtheBEASTman: Err, I'm tired. Confirm?: ruby -rubygems -e 'puts Gem.bindir'
workmad3 has joined #ruby
<RickHull> havenwood: if you don't resolve this ticket you don't get paid today
<havenwood> RickHull: But I want my porridge in the morning. :(
<RickHull> you can't have any meat if you don't eat your pudding!
<havenwood> DANtheBEASTman: Gist: gem env
<Aeyrix> This is the most un-ruby #ruby chat ever.
<RickHull> Aeyrix: in fact, it's super-#ruby-lang right now
<Aeyrix> hah
<RickHull> deal with it, put on sunglasses, etc
zotherstupidguy has quit [Quit: WeeChat 1.2]
mcclurmc has quit [Remote host closed the connection]
<havenwood> DANtheBEASTman: (Gem.bindir instead of Gem.default_bindir)
aganov has joined #ruby
ghr has quit [Ping timeout: 258 seconds]
User458764 has joined #ruby
workmad3 has quit [Ping timeout: 276 seconds]
fgo has joined #ruby
<RickHull> vaya con dios mi amigos
<havenwood> DANtheBEASTman: I'd suggest `--user-install` in your gemrc instead of custom gemhome and gempaths. Should *just work*.
RickHull has left #ruby [#ruby]
sinkensabe has quit [Remote host closed the connection]
<havenwood> gem: --user-install
jenrzzz has quit [Ping timeout: 276 seconds]
vdamewood has quit [Ping timeout: 245 seconds]
sinkensabe has joined #ruby
dvxam has joined #ruby
jenrzzz has joined #ruby
fgo has quit [Ping timeout: 265 seconds]
eddie_v3 has quit [Ping timeout: 240 seconds]
aaeron has quit [Ping timeout: 258 seconds]
sinkensabe has quit [Client Quit]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tagrudev has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
dopie has quit [Quit: This computer has gone to sleep]
balazs_ has quit [Ping timeout: 265 seconds]
Olipro_ has joined #ruby
Olipro_ is now known as Guest60251
jenrzzz has quit [Ping timeout: 264 seconds]
Aww has joined #ruby
djbkd has quit [Quit: My people need me...]
Guest70052 has quit [Ping timeout: 265 seconds]
vdamewood has joined #ruby
nfk|laptop has quit [Quit: yawn]
yardenbar has joined #ruby
duncannz has joined #ruby
tsujp has joined #ruby
GriffinHeart has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lxsameer has joined #ruby
last_staff has joined #ruby
ChoiKyuSang_ has joined #ruby
swgillespie has joined #ruby
hmnhf has joined #ruby
nonparfumee has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jaequery has joined #ruby
jaequery has quit [Client Quit]
ttilley has quit [Changing host]
ttilley has joined #ruby
CloCkWeRX has joined #ruby
ChoiKyuSang has quit [Read error: Connection reset by peer]
dbussink has joined #ruby
dionysus69 has joined #ruby
greenbagels_ has quit [Ping timeout: 265 seconds]
ChoiKyuSang_ has quit [Quit: Going offline, see ya! (( www.adiirc.com )]
eddie_v3 has joined #ruby
rubie has quit [Remote host closed the connection]
revath1 has joined #ruby
ocx has joined #ruby
<ocx> hello i want to create a menu in my xwindows that looks like the menu that runs on your access point when accessed via a webbrowser, it needs to have sections a menu, buttons text field etc, what is a good tool/language to use to achieve this?
oo_ has quit [Remote host closed the connection]
tibig has joined #ruby
dseitz has joined #ruby
postmodern has quit [Quit: Leaving]
<Aeyrix> You what
<ocx> hein
vdamewood has quit [Quit: Life beckons.]
ur5us has joined #ruby
bruno- has joined #ruby
Musashi007 has quit [Quit: Musashi007]
revath has quit [Ping timeout: 272 seconds]
GriffinHeart has quit []
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
lxsameer has quit [Ping timeout: 240 seconds]
Limix has quit [Quit: Limix]
ur5us has quit [Ping timeout: 264 seconds]
FastJack_ has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
multi_io has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
rubie has joined #ruby
bruno- has quit [Ping timeout: 276 seconds]
prateekp has joined #ruby
oo_ has joined #ruby
<prateekp> rdoc creates documentation for any project ... It does not throw an error if the project does not contain .rb files
<prateekp> is there any strict option?
multi_io has joined #ruby
ahmetkapikiran has joined #ruby
TheRinger has joined #ruby
d10n-work has quit [Quit: Connection closed for inactivity]
revath has joined #ruby
Macaveli has joined #ruby
kappy has joined #ruby
arBmind has joined #ruby
blandflakes has joined #ruby
wjimenez5271 has quit [Ping timeout: 245 seconds]
finisherr has joined #ruby
revath1 has quit [Ping timeout: 272 seconds]
jpfuente_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<prateekp> rdoc creates documentation for any project ... It does not throw an error if the project does not contain .rb files
<prateekp> is there any strict option?
blandflakes has quit [Client Quit]
amclain has quit [Quit: Leaving]
sandstrom has joined #ruby
bkxd has joined #ruby
mello has joined #ruby
Limix has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> rdoc is weird
A205B064 has quit [Ping timeout: 276 seconds]
roolo has joined #ruby
kerunaru has joined #ruby
<Nilium> I just write all documentation in godoc style now.
<Nilium> Because that's surprisingly readable.
<shevy> I assume you can run it via system() prateekp or rather result = `rdoc`, and then decide what to do with the result. if there is no .rb file, you can find out anyway, via Dir['**/**.rb']
<prateekp> shevy : you are correct ... but sometime ruby projects contains c source as well
mello has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 264 seconds]
dfockler has joined #ruby
<shevy> well you can check that anyway
<shevy> def has_c_files?; Dir['**/**.c'].size > 0
<shevy> or something like that
<prateekp> hmm right
<prateekp> and also ruby projects must have atleast one .rb for it to be called ruby project
<prateekp> i may be wrong here
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
ndrei has joined #ruby
choke has joined #ruby
codecop has joined #ruby
dvxam has quit [Read error: Connection reset by peer]
Limix has quit [Quit: Limix]
chinmay_dd has joined #ruby
dfockler has quit [Ping timeout: 272 seconds]
bhrgunatha has quit [Quit: ChatZilla 0.9.91.1 [Iceweasel 38.0.1/20150526223604]]
ghr has joined #ruby
failshell has joined #ruby
jenrzzz has joined #ruby
noname has quit [Ping timeout: 245 seconds]
clauswitt has joined #ruby
noname1 has quit [Ping timeout: 265 seconds]
ixti has quit [Ping timeout: 272 seconds]
Iskarlar has joined #ruby
pyo_ has joined #ruby
dvxam has joined #ruby
tkuchiki has joined #ruby
clauswitt has quit [Max SendQ exceeded]
failshell has quit [Ping timeout: 252 seconds]
ghr has quit [Ping timeout: 252 seconds]
eddie_v3 has quit [Ping timeout: 265 seconds]
clauswitt has joined #ruby
ahmetkapikiran has joined #ruby
arup_r has joined #ruby
Iskarlar has quit [Client Quit]
ndrei has quit [Ping timeout: 272 seconds]
ChoiKyuSang has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
A205B064 has joined #ruby
Channel6 has quit [Quit: Leaving]
sdwrage has quit [Quit: Leaving]
rubie has quit [Remote host closed the connection]
ta has quit [Remote host closed the connection]
lxsameer has quit [Ping timeout: 256 seconds]
tibig has quit [Ping timeout: 246 seconds]
CloCkWeRX has quit [Ping timeout: 244 seconds]
noname has joined #ruby
noname1 has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
vire has joined #ruby
eddie_v3 has joined #ruby
futilegames has joined #ruby
pwnz0r_ has quit [Remote host closed the connection]
greenbagels has joined #ruby
pwnz0r has joined #ruby
dvxam has quit [Read error: Connection reset by peer]
Atomic_rIN2R has joined #ruby
dumdedum has joined #ruby
<Atomic_rIN2R> hi
finisherr has left #ruby [#ruby]
jpfuentes2 has joined #ruby
jcaho has quit [Read error: Connection reset by peer]
thiagovsk has quit [Quit: Connection closed for inactivity]
jcaho has joined #ruby
al2o3-cr is now known as yarb
pwnz0r has quit [Ping timeout: 264 seconds]
Atomic_rIN2R has quit [Client Quit]
yarb is now known as al2o3-cr
jmhmccr has quit [Quit: Connection closed for inactivity]
Soda has joined #ruby
nedp has quit [Ping timeout: 256 seconds]
ChoiKyuSang is now known as Tempesta
lxsameer has joined #ruby
A205B064 has quit [Ping timeout: 276 seconds]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
fujimur__ has quit [Remote host closed the connection]
oo_ has quit [Quit: Leaving...]
mikecmpbll has joined #ruby
bayed has joined #ruby
oo_ has joined #ruby
fujimura_ has joined #ruby
<DANtheBEASTman> I don't understand what havenwood meant by putting --user-install in gemrc.. well I mean that's exactly the desired effect I want but surely putting that exact string in the file won't work.. and I can't find a syntax guide on the front page of googling 'gemrc syntax'
bruno- has joined #ruby
tkuchiki has quit [Ping timeout: 256 seconds]
<DANtheBEASTman> in other words I don't know how to do X because the front page of googling Y didn't help me
<havenwood> DANtheBEASTman: For example: gem: "--no-document --env-shebang --user-install"
datanoise has quit [Ping timeout: 272 seconds]
marr has joined #ruby
abuzze_ has joined #ruby
<DANtheBEASTman> so I could replace my whole gemrc with.. echo 'gem: "--user-install"' > ~/.gemrc ? idk what those other switches do because they're not in --help or man ruby
michael_mbp has quit [Excess Flood]
last_staff has quit [Ping timeout: 255 seconds]
User458764 has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
towski_ has quit [Remote host closed the connection]
<havenwood> DANtheBEASTman: For example: https://gist.github.com/havenwood/429f6c7af2094ab2b911
<DANtheBEASTman> vunderbar
michael_mbp has joined #ruby
<DANtheBEASTman> why do I need all those other things? what I just did worked great
abuzze has quit [Ping timeout: 256 seconds]
<havenwood> DANtheBEASTman: You don't need the others.
bruno- has quit [Ping timeout: 264 seconds]
<havenwood> DANtheBEASTman: Just showing how you'd do multiple in case you want to.
<DANtheBEASTman> ah. well thank you very much for your time!
<havenwood> DANtheBEASTman: You're welcome.
HayesHimself has joined #ruby
hmnhf has quit [Ping timeout: 258 seconds]
iliketurtles has joined #ruby
krz has joined #ruby
iliketurtles has quit [Remote host closed the connection]
tkuchiki has joined #ruby
northfurr has quit [Quit: northfurr]
jpfuentes2 has quit [Remote host closed the connection]
jpfuentes2 has joined #ruby
ur5us has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
tkuchiki has quit [Ping timeout: 258 seconds]
mrsolo has joined #ruby
et has joined #ruby
et has left #ruby [#ruby]
Parter_ has joined #ruby
<Parter_> hello
<ljarvis> moin
ur5us has quit [Remote host closed the connection]
eddie_v3 has quit [Ping timeout: 240 seconds]
<Parter_> how create my own kind of array with some variables
<ljarvis> Parter_: please be more specific
<Parter_> with each, meybe sort etc.
<ljarvis> what's wrong with a normal array?
<Parter_> a=[Array....
tkuchiki has joined #ruby
hanmac has quit [Ping timeout: 256 seconds]
<Parter_> my array have specyfic variable for example MyArray.v1 = 2
<Parter_> and a=MyArray.new
<Parter_> a[3]=7
<ljarvis> ok, just use a normal array and separate them into different versions, then
<Parter_> a.v1=2;
<Parter_> trouble is with add arrays
<ljarvis> Parter_: please provide some code, this is too vague for me to help
dhjondoh has joined #ruby
<Parter_> when I create my array and second my array and add 2 my arrays I get Array no myarray
watchtheblur has quit [Ping timeout: 265 seconds]
joneshf-laptop has quit [Remote host closed the connection]
<sevenseacat> if your array has settable attributes, its not really an array is it
Iskarlar has joined #ruby
krz has quit [Read error: Connection reset by peer]
<apeiros> Parter_: create a custom class which has an array as member
joneshf-laptop has joined #ruby
jack_rabbit has joined #ruby
<bnagy> or a DelegateClass
<apeiros> or *create custom classes
<Parter_> when I add aa += bb
<apeiros> Parter_: don't inherit from classes you don't own. that's recipe for pain.
<bnagy> Parter_: that's going to happen with all approaches unless you wrap + and concat etc
<Parter_> is possible to make class Spoko with all functionality of array?
futilegames has quit [Quit: futilegames]
mrsolo has quit [Quit: This computer has gone to sleep]
<Parter_> anybody can help me write working example
f3lp has quit [Ping timeout: 252 seconds]
<bnagy> in order of preference, 1. Try not to want that 2. Create a class that exposes a real array via a method 3. DelegateClass 4. subclass
futilegames has joined #ruby
<bnagy> 2 isn't exactly the api you asked for, but it's easier to work with
<bnagy> a.items would be the Array and a.v1 would be the attribute
<bnagy> the docs for DelegateClass have examples, but srsly, don't :)
<Parter_> bnagy, ok, Can You write Your code?
<sevenseacat> you mean, can bnagy write your code
<bnagy> Parter_: I can write mine just fine
User458764 has quit [Ping timeout: 256 seconds]
<Parter_> sevenseacat, Yours code ;-)
sandstrom has joined #ruby
dvxam has joined #ruby
futilegames has quit [Client Quit]
User458764 has joined #ruby
<Parter_> I need my own array and I need concatent etc. of it
ghr has joined #ruby
krz has joined #ruby
<sevenseacat> Parter_: you've been given the methods, now you want someone to write the code for you
<Parter_> I'm search any example for arrays and not found
<ljarvis> Parter_: are you confused by any of the suggestions? nobody is going to write it all for you
chinmay_dd has quit [Remote host closed the connection]
<Parter_> What sugestion?
<ljarvis> seriously?
<Parter_> please show this sugestion.
<Parter_> I put my example
<ljarvis> Parter_: there has been many suggestions given to you
mikecmpbll has quit [Quit: i've nodded off.]
<ljarvis> Parter_: the best one is to use a custom class that embeds an Array. i.e Spoko would have an Array member
<Parter_> ljarvis, meybe I canot see, can Yoy copy again it?
<ljarvis> Parter_: there you go
ahmetkapikiran has quit [Quit: ahmetkapikiran]
<Parter_> ok, tell me what i can add two class?
<ljarvis> Parter_: you have an @nowy member, now add an @items member
chinmay_dd has joined #ruby
edwinvdgraaf has joined #ruby
<Parter_> if my Spoko have Array inside I need add Spoko+Spoko
<Parter_> how writing def +
<Parter_> += etc.
choke has quit [Read error: Connection reset by peer]
dvxam has quit [Client Quit]
ghr has quit [Ping timeout: 244 seconds]
oleg has joined #ruby
oleg is now known as Guest12375
hanmac has joined #ruby
pengin has joined #ruby
krz has quit [Read error: Connection reset by peer]
<Parter_> how defining + - / += [] etc ?
jottr has joined #ruby
<apeiros> you don't. you delegate to the array.
jack_rabbit has quit [Ping timeout: 265 seconds]
ta has joined #ruby
<ljarvis> you would have to write a custom + method though
<flughafen> hey guys
<apeiros> ljarvis: no
yfeldblum has quit [Ping timeout: 256 seconds]
<apeiros> that's the nice thing about delegator
<apeiros> oh, hm
<apeiros> wait
<ljarvis> apeiros: srsly
<apeiros> might return the wrong type
<ljarvis> ya
<bnagy> it will delegate + to the array
<apeiros> early morning…
<ljarvis> you can't be my mess yesterday
<ljarvis> beat
<ljarvis> ugh
<ljarvis> flughafen: morning
<apeiros> ljarvis: you have no idea :D
<ljarvis> :P
<flughafen> ljarvis: !
<bnagy> weird that I can't find a clean link to DelegateClass in the rdoc
<bnagy> imho it's nicer to use than Delegator
* Parter_ writing in mruby Delegating is not good idea
f3lp has joined #ruby
<jhass> iirc it even does coerce correctly? (which doesn't go through method_missing)
<bnagy> ah thx
msgodf has joined #ruby
ahmetkapikiran has joined #ruby
ur5us has joined #ruby
<bnagy> jhass: doesn't seem to for me
<jhass> mh
<bnagy> would have made me o_0 if it did tbh
olegtc has joined #ruby
<bnagy> that would be taking a pretty aggressive view about what I wanted as a return class from arbitrary methods
allomov has joined #ruby
<bnagy> <3 when a class is defined in Object but you still have to require something to get it ;)
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sevenseacat> 'when a class is defined in Object'?
allomov has quit [Remote host closed the connection]
<ljarvis> method
allomov has joined #ruby
unsymbol has left #ruby [#ruby]
doertedev has joined #ruby
pengin has quit [Remote host closed the connection]
TheRinger has quit [Remote host closed the connection]
Forgetful_Lion has joined #ruby
livathinos has joined #ruby
<maloik> morning
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
<tobiasvl> haha what a horrible extermination that went on in #ruby-lang
Ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> dalekian extermination?
krz has joined #ruby
<bnagy> stop, I'm still traumatised
charliesome has quit [Quit: zzz]
<sevenseacat> extermination?
<apeiros> all users have been disintegrated. some reintegrated here. some got lost. it was a bloodbath.
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ledestin> was surprised to wake up here
<Parter_> is possible to redefining all method? .map [] + etc in class Spoko < Array
<Parter_> ?
<Parter_> include Enumerables is not good idea
langlands has joined #ruby
<bnagy> what makes you say that?
<Parter_> aa=Spoko.new ; p aa.map { |i| i.reverse }
Iskarlar has joined #ruby
dionysus69 has quit [Ping timeout: 272 seconds]
<Parter_> in this declaration .size not working
Hounddog has joined #ruby
revath1 has joined #ruby
<baweaver> apeiros: https://twitter.com/keystonelemur - Where are the Daleks? Thought I fixed that.
<baweaver> Parter_: Implement an Enumerable interface
jottr has quit [Quit: WeeChat 1.2]
<baweaver> Unless you have substantially good reason not to
<baweaver> Which you've yet to mention
<Parter_> baweaver, how?
blandflakes has joined #ruby
professor_soap has joined #ruby
fedexo has quit [Ping timeout: 256 seconds]
revath has quit [Ping timeout: 256 seconds]
<professor_soap> Hello people
<adaedra> Bonjour
<professor_soap> I need help :(
wnd has joined #ruby
<Parter_> baweaver, enumerables not working for me, .size .map .delete_at
<adaedra> professor_soap: then ask your question, we can't guess your problem :)
<baweaver> Parter_: http://www.gist.github.com - post the code
ixti has joined #ruby
datanoise has joined #ruby
<ljarvis> size/delete_at are not Enumerable methods
<ljarvis> you would have to delegate those to your Array
blandflakes has quit [Client Quit]
<ljarvis> which is, again, what many people here have already suggested
sideshowcoder has joined #ruby
<baweaver> If people have already suggested that then why hasn't that been tried yet?
* baweaver came in late
Hounddog has quit [Ping timeout: 255 seconds]
<ljarvis> delegate is basically exactly what Parter_ is looking for. However, they're just ignoring it and waiting for somebody to write the code for them
Hounddog has joined #ruby
<baweaver> Noted
<baweaver> Well on that I'm probably calling it a night then
<Parter_> ljarvis, or not undestanding
<ljarvis> g'night
psy_ has quit [Ping timeout: 240 seconds]
<baweaver> 'night
mikecmpbll has joined #ruby
<ljarvis> Parter_: if you don't understand, then ask questions
<ljarvis> but at least try what has been suggested
mello has joined #ruby
<Parter_> Your code not working with .size .map +=
<Parter_> this is trouble
<sevenseacat> lol
<sevenseacat> thats not questions
<ljarvis> sevenseacat: halp
<apeiros> baweaver: they drop through time about every third episode
<sevenseacat> thats 'fix it for me'
bruno- has joined #ruby
vivekananda has quit [Ping timeout: 258 seconds]
<Parter_> my question is simple and still this same. How writing my own Array with all Array functionality and some variables
<ljarvis> I just had some awful coffee
<Parter_> I show code
ixti has quit [Ping timeout: 256 seconds]
<Parter_> and this code NOT working
<Parter_> You too
<Parter_> I use mruby
<ljarvis> ok?
<Parter_> I wrote it (look previous)
vivekananda has joined #ruby
dvxam has joined #ruby
circ-user-gqbmz has joined #ruby
<ljarvis> I'm not such how that's relevant. Is that class unavailable on mruby?
<sevenseacat> Parter_: you havent posted any code yet
<ljarvis> sevenseacat: they have
<sevenseacat> its not in a gist
<sevenseacat> so i must have missed it
ghr has joined #ruby
<sevenseacat> oh yeah i wasnt clicking on that one.
<ljarvis> aye
<apeiros> and I got an idea for the website - recent links & recent links by user
<baweaver> sevenseacat: ftfy
<ljarvis> :)
<sevenseacat> ok, now whats the problem with that blob of code
<sevenseacat> other than 'it doesnt work'
<DefV> WHAT
<DefV> channel consolidation?
<DefV> this is bullshit
<ljarvis> yep
<sevenseacat> DefV: aye.
<ljarvis> hey now
mello has quit [Ping timeout: 265 seconds]
<sevenseacat> welcome.
<jhass> hi!
<DefV> where should I crosspost my questions now
<DefV> </troll>
<ljarvis> here and here
<sevenseacat> lol
<jhass> DefV: ##ruby
<yorickpeterse> DefV: #python
<ljarvis> yay for solving problems
duncannz has quit [Ping timeout: 272 seconds]
<ljarvis> oh no
<baweaver> #RubyOnRails works too
bruno- has quit [Ping timeout: 264 seconds]
<baweaver> Radar loves it when people do that
* apeiros too
<sevenseacat> oh dear
terlar has joined #ruby
* baweaver ducks and runs off
<professor_soap> This is probably very elementary. I have a class with an attr_accessible "attrs" that hold things like an id. I need to write a finder method that iterates through these objects attrs hash and find by id. Can anyone point to a nice way of doing this?
circ-user-gqbmz is now known as Pathfinder
<ljarvis> professor_soap: what about storing them in a Hash so the lookup is O(1) rather than using select or something?
<bnagy> professor_soap: you don't iterate through hashes, you just get your item
dvxam has quit [Client Quit]
tkuchiki has quit [Remote host closed the connection]
<professor_soap> Hmmmmm
<baweaver> >> {a: 1, b: 2, c: 3}[:c] # professor_soap
<ruboto> baweaver # => 3 (https://eval.in/374086)
tkuchiki has joined #ruby
tirel has joined #ruby
michael_mbp has quit [Excess Flood]
<jhass> professor_soap: some code might illustrate what you're doing better
baweaver has quit [Remote host closed the connection]
symm- has joined #ruby
bkxd has joined #ruby
<tirel> hello ruby chan. Does anyone knows an alternative to mkmf to build Makefile in ruby? mkmf incredibly inflexible folder structure all files must be in the same directory!
<tirel> mkmf has*
nhhagen has joined #ruby
michael_mbp has joined #ruby
jpfuentes2 has joined #ruby
jpfuentes2 has quit [Client Quit]
timonv has joined #ruby
Igorshp has joined #ruby
<ljarvis> tirel: that's not true
tkuchiki has quit [Ping timeout: 245 seconds]
jph98 has joined #ruby
<ljarvis> oh actually i've misunderstood
<ljarvis> it probaly is true
<tirel> @ljarvis Yeah I think it is..
quimrstorres has joined #ruby
bkxd has quit [Ping timeout: 272 seconds]
<tirel> I was talking about the C/C++sources
CustosLimen has quit [Read error: Connection timed out]
marr123 has joined #ruby
marr has quit [Ping timeout: 265 seconds]
marr123 has quit [Client Quit]
quimrsto_ has joined #ruby
<ljarvis> oh, you want to add include paths? because you can use dir_config for that
CustosLimen has joined #ruby
tkuchiki has joined #ruby
marr has joined #ruby
<tirel> Yes but using config_dir needs to be using command line options when actually calling the generated Make file, doesn't it ?
quimrstorres has quit [Ping timeout: 272 seconds]
abuzze_ has quit [Read error: Connection reset by peer]
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
abuzze has joined #ruby
Pathfinder has quit [Ping timeout: 240 seconds]
quimrsto_ has quit [Ping timeout: 264 seconds]
andikr has joined #ruby
datanoise has quit [Ping timeout: 258 seconds]
skade has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Exponential has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Zai00 has joined #ruby
livathinos has quit [Ping timeout: 276 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
Ilyes512 has joined #ruby
tyrel_ has joined #ruby
fujimura_ has quit [Remote host closed the connection]
arBmind has quit [Quit: Leaving.]
abuzze has quit [Remote host closed the connection]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
bjornar has joined #ruby
kj_ has joined #ruby
<kj_> how to run mysql query in controller ?
abuzze has joined #ruby
spider-mario has quit [Ping timeout: 258 seconds]
<jhass> ?rails kj_
<ruboto> kj_, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
jenrzzz has joined #ruby
starless has left #ruby ["Leaving"]
Ilyes512 has quit [Client Quit]
spider-mario has joined #ruby
revath has joined #ruby
bluOxigen has quit [Ping timeout: 244 seconds]
<Radar> DefV: Please cross post your questions to ##python, ##php and ESPECIALLY #haskell
ahmetkapikiran has joined #ruby
<kj_> ruboto_ this is the message i am gettting when I am posting anything in rubyonrails channel
<kj_> Cannot send to channel: #RubyOnRails
<sevenseacat> kj_: you didnt read the help text did you
tyrel_ has quit [Remote host closed the connection]
<Radar> You have failed the first test.
<Radar> kj_: You need to register with nickserv first.
last_staff has joined #ruby
solars has joined #ruby
revath1 has quit [Ping timeout: 256 seconds]
Ilyes512 has joined #ruby
Pathfinder has joined #ruby
revath1 has joined #ruby
f3lp has quit [Ping timeout: 276 seconds]
ahmetkapikiran has quit [Client Quit]
revath has quit [Ping timeout: 276 seconds]
shredding has joined #ruby
roolo has quit [Remote host closed the connection]
Exponential has joined #ruby
mike___1234 has joined #ruby
abuzze has quit [Remote host closed the connection]
fujimura has joined #ruby
arBmind has joined #ruby
revath1 has quit [Ping timeout: 264 seconds]
Pathfinder has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 246 seconds]
solars has quit [Ping timeout: 265 seconds]
Igorshp has quit [Remote host closed the connection]
sigurding has joined #ruby
ahmetkapikiran has joined #ruby
SalexW has joined #ruby
blue_deref has joined #ruby
tirel has quit [Ping timeout: 245 seconds]
haxrbyte has joined #ruby
abuzze has joined #ruby
tkuchiki has quit [Ping timeout: 265 seconds]
arBmind has quit [Quit: Leaving.]
langlands has quit [Quit: Textual IRC Client: www.textualapp.com]
professor_soap has quit []
tirel has joined #ruby
ndrei has joined #ruby
arup_r has quit []
langlands has joined #ruby
arBmind has joined #ruby
Guest24 is now known as lele
<maloik> Anyone happen to be aware of a project that is some kind of starter/demo RoR application with the purpose of demonstrating bugs, trying out new gems etc? I remember reading about it some time ago, possibly on /r/ruby but I forgot the name
haxrbyte_ has joined #ruby
haxrbyte_ has quit [Read error: Connection reset by peer]
iliketurtles has joined #ruby
iliketurtles has quit [Remote host closed the connection]
haxrbyte has quit [Ping timeout: 246 seconds]
spider-mario has quit [Read error: Connection reset by peer]
DEA7TH has joined #ruby
Igorshp has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
VinnyBoy has quit [Read error: Connection reset by peer]
Parter_ has quit [Quit: Wychodzi]
haxrbyte has joined #ruby
BlueBlood has joined #ruby
BlueBlood has left #ruby [#ruby]
valeri_ufo has joined #ruby
haxrbyte has quit [Read error: Connection reset by peer]
mistermocha has quit [Remote host closed the connection]
MrBeardy has joined #ruby
Mon_Ouie has joined #ruby
Exponential has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mello has joined #ruby
dionysus69 has joined #ruby
Pathfinder has joined #ruby
Igorshp has quit [Remote host closed the connection]
anisha has joined #ruby
gokulnath has joined #ruby
ESpiney_ has joined #ruby
yh has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
SalexW has quit [Remote host closed the connection]
DerisiveLogic has quit [Ping timeout: 264 seconds]
mello has quit [Ping timeout: 252 seconds]
Pathfinder has quit [Remote host closed the connection]
ESpiney has quit [Ping timeout: 245 seconds]
revath has joined #ruby
jenrzzz has joined #ruby
abuzze has quit [Remote host closed the connection]
abuzze has joined #ruby
<tirel> hello ruby chan. Does anyone knows an alternative to mkmf to build Makefile in ruby? mkmf has incredibly inflexible folder structure : all files must be in the same directory!
hagabaka has joined #ruby
ahmetkapikiran has quit [Quit: ahmetkapikiran]
micmus has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
olistik has joined #ruby
abuzze has quit [Read error: Connection reset by peer]
platzhirsch has joined #ruby
tercenya_ has quit [Ping timeout: 252 seconds]
Akagi201 has quit [Remote host closed the connection]
olistik has quit [Ping timeout: 276 seconds]
abuzze has joined #ruby
chthon has joined #ruby
simi has joined #ruby
fgo has joined #ruby
khebbie has joined #ruby
hectortrope has joined #ruby
workmad3 has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
blandflakes has joined #ruby
ur5us has quit [Remote host closed the connection]
abuzze has quit [Read error: Connection reset by peer]
<yorickpeterse> You asked the same question a while ago
abuzze has joined #ruby
blue_deref has quit [Quit: Leaving]
n008f4g_ has joined #ruby
<tirel> yes, and got no real answers...
kj_ has quit [Quit: Page closed]
quimrstorres has joined #ruby
gokulnath has quit [Ping timeout: 265 seconds]
CloCkWeRX has joined #ruby
<yorickpeterse> asking it again in just 45 minutes probably isn't going to get you an answer faster
blandflakes has quit [Client Quit]
<yorickpeterse> at least not one that's not "no there isn't"
elia has joined #ruby
fu2ristiq has joined #ruby
<fu2ristiq> hi everybody
thomasvm has joined #ruby
<tirel> ok thx yorickpeterse
sdothum has joined #ruby
OrbitalKitten has joined #ruby
chadrien has joined #ruby
<fu2ristiq> "Programming Ruby" vs "Ruby Way" books. Which one is better to read if I've completed Koans?
ruby_nuby has joined #ruby
tvw has joined #ruby
<ljarvis> fu2ristiq: start building something
hs366 has joined #ruby
granthatcher has joined #ruby
<fu2ristiq> ljarvis like what?
tercenya has joined #ruby
<ljarvis> fu2ristiq: I don't know. What would you do once you've "finished" learning Ruby?
banister has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> maybe you have something that you do regularly and could partially automate?
<fu2ristiq> oh, thank you guys.
<apeiros> evergreens: write an irc bot, write a webframework, write a webscraper
<apeiros> which evergreens did I miss?
<ljarvis> webframework should be on there twice
<apeiros> true
<apeiros> oh, a gem to help you make gems
<fu2ristiq> by the way, speaking about productivity. why do people use tmux/screen when iTerm has this neat split action going on?
elia has quit [Read error: Connection reset by peer]
ArchRogem has joined #ruby
<fu2ristiq> do I miss something?
<ljarvis> what happens when you close the iterm window?
<ruby_nuby> Anyone using Neo4J ActiveNode in ruby? I'm struggling a bit with a model
<MrBeardy> also I'd prefer being able to use something I can use everywhere, rather than just something on mac
<fu2ristiq> well, yeah.
<Darkwater> 7
Elboerea has quit [Ping timeout: 272 seconds]
<maloik> Radar: sorry for the vague question, but do you think Paranoia should alter the nested_attributes behavior in any way? Our app has a bug where a test is suddenly failing, and I can't figure out why. I just set up a new project with paranoia to try to recreate the problem but to no avail, so I'm guessing it's only happening because of our code. I see no reason for it myself, but I wanted to see if it throws any red flags on your end
<fu2ristiq> thanks guys
fu2ristiq has left #ruby ["WeeChat 1.1.1"]
dionysus69 has quit [Remote host closed the connection]
abuzze has quit [Read error: Connection reset by peer]
abuzze has joined #ruby
sevenseacat has quit [Ping timeout: 258 seconds]
elia has joined #ruby
t_ has joined #ruby
Musashi007 has joined #ruby
dionysus69 has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
senayar has joined #ruby
dhjondoh has joined #ruby
alexherbo2 has joined #ruby
gokulnath has joined #ruby
oo_ has joined #ruby
senayar has quit [Remote host closed the connection]
justintv90 has quit [Ping timeout: 256 seconds]
micmus has quit [Ping timeout: 276 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
Pathfinder has joined #ruby
tsujp has quit [Quit: tsujp is snoozing]
senayar has joined #ruby
n008f4g_ has quit [Ping timeout: 245 seconds]
rdark has joined #ruby
langland_ has joined #ruby
clauswitt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<zenspider> tirel: you _might_ try mkrf. I doubt it'll help.
ndrei has quit [Ping timeout: 256 seconds]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
langlands has quit [Ping timeout: 265 seconds]
Iskarlar has joined #ruby
<zenspider> I also think your assertion about a single source dir is incorrect.. at least, doable if you're willing to put in the (probably not worth it) effort.
mello has joined #ruby
<zenspider> gah that shit is still horribly ugly
ledestin has quit [Ping timeout: 258 seconds]
last_staff has quit [Remote host closed the connection]
bruno- has joined #ruby
Juanchito has joined #ruby
phale has joined #ruby
failshell has joined #ruby
<phale> jhass: are you there?
justintv90 has joined #ruby
nfk has joined #ruby
<jhass> any issue?
<phale> how come you're always here
<jhass> it's just open in the background
<phale> oh
elia has quit [Quit: Computer has gone to sleep.]
m8 has joined #ruby
<Darkwater> 12:03 ~ NiseVoid │ Darkwater: Ruby was made by a drunk japanese guy rite?
<Darkwater> 12:03 + Darkwater │ why drunk
<Darkwater> 12:03 ~ NiseVoid │ Because obviously the return last line thing is something you would only do when drunk
<Darkwater> how do I deal with people like these
mello has quit [Ping timeout: 245 seconds]
<tobiasvl> haha wtf
<phale> Darkwater: use a sane language
ledestin has joined #ruby
<ljarvis> of all the things they could have picked on, it was something nice?
<jhass> Darkwater: in doubt with /ignore add
<phale> what if his client doesn't support ignoring?
<Darkwater> I've tried leaving his channel
<jhass> then get a better client
<Darkwater> but for some reason I keep talking to this guy
puppeh has joined #ruby
<Darkwater> it's been going on for about 6 years
<puppeh> anyone here using the ruby 2.1 github fork in production?
ruby_nuby has quit [Remote host closed the connection]
<phale> Darkwater: try using something like Limbo
<phale> maybe he'll shut up
chthon has quit [Quit: Ex-Chat]
failshell has quit [Ping timeout: 265 seconds]
<Darkwater> oh god
<Darkwater> I don't think I'm ready for that
livathinos has joined #ruby
jgt has quit [Ping timeout: 246 seconds]
<phale> then ascend lol
codecop has quit [Quit: Išeinu]
<phale> I go on here to talk to people
<phale> not to code in Ruby
tesuji has joined #ruby
Pathfinder has quit [Ping timeout: 276 seconds]
<jhass> well, you don't appear to seek a nice conversation either
chipotle has joined #ruby
<phale> jhass: hm?
mandarinkin has quit [Ping timeout: 246 seconds]
<jhass> I never see questions from you that are designed to spark a nice conversation, quite the opposite in fact
Pathfinder has joined #ruby
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Musashi007 has quit [Quit: Musashi007]
mistermocha has joined #ruby
<phale> jhass: probably because I don't code in Ruby?
<jhass> I don't think that's related
ScriptGeek has joined #ruby
toretore has joined #ruby
<phale> phale> quantum physics and astrophysics can be applie to a set of ruby programs right
<phale> that was my last question
<phale> I got called a troll for whatever reason
mandarinkin has joined #ruby
concave has quit []
langland_ is now known as Langlands
withnale_ has joined #ruby
sigurding has quit [Quit: sigurding]
nofxx has quit [Ping timeout: 255 seconds]
terlar has quit [Quit: WeeChat 1.2]
<jhass> well, it's also things like "12:04 <phale> Darkwater: use a sane language" that you drop all the time
<jhass> you do appear quite close to a troll, yeah
senayar has quit [Remote host closed the connection]
<phale> no I'm serious
<tobiasvl> phale: you don't use ruby?
<phale> He should use a saner language
mistermocha has quit [Ping timeout: 245 seconds]
<phale> tobiasvl: No.
symm- has quit [Ping timeout: 246 seconds]
ruby_nuby has joined #ruby
<tobiasvl> then why are you here? "to talk to people" about what?
<jhass> phale: tbh I think #ruby is just the wrong community for you
<phale> I want to help people with Ruby problems and issues.
<phale> so basically everything about Ruby
<apeiros> phale: it doesn't look like that
<phale> apeiros: Give me one more chance, I'll help one person
<tobiasvl> and helping people with their problems include telling them to use a saner language
<apeiros> phale: I can tell you that I'm quite close to perma-banning you. so better use that chance.
<phale> who wants help
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> same here, quite close to ban you too
terlar has joined #ruby
<apeiros> and stuff like "use a sane language" is inacceptable.
<apeiros> next time I see shit like that you're gone.
chussenot has joined #ruby
Rickmasta has joined #ruby
<phale> apeiros: why?
<phale> I'm giving the users advice, that IS helping them.
<tobiasvl> yep, troll
<apeiros> I'm not going to discuss that. it's obvious enough.
<jhass> phale: at the end of the day if you don't see why that's sad, but you have to accept it
<phale> I'm sorry but I don't understand why people consider me as a troll because I help people.
clauswitt has joined #ruby
<tobiasvl> do you help them with anything else than suggesting they use other languages?
<phale> tobiasvl: Not really
<tobiasvl> because that's not helping them with ruby
<apeiros> this discussion is over
<apeiros> anybody continuing it will be kicked.
<apeiros> phale will either help people or go.
<apeiros> that's the last of it.
<phale> :-)
TheHodge has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ddv> is phale causing trouble again?
<Darkwater> I'd have banned him already
<phale> ddv: No I'm helping people
timonv has joined #ruby
<apeiros> ddv: 12:22 apeiros: [this discussion is over] anybody continuing it will be kicked.
<apeiros> same @ Darkwater
<ddv> apeiros: didn't read that
<apeiros> I mean it. no further warning.
<ddv> I just logged on lol
<phale> Love is Looking Over Various Errors, Hate is Habitually Accelerating Terror.
serivich has joined #ruby
<ljarvis> that's Hat
livathinos is now known as livathinos|away
<puppeh> when configuring ruby from source with ./configure and trying to pass the openssl path with `--with-openssl-dir`, what location am I supposed to pass? The lib/ dir of my OpenSSL installation or the bin/?
<puppeh> or the root?
centrx has joined #ruby
<phale> apeiros: Please don't kick me, I don't know how to help this person.
<adaedra> the root
User458764 has joined #ruby
<adaedra> which contains bin/ and lib/
Scroff has joined #ruby
<puppeh> OK thanks
AlphaAtom has joined #ruby
nofxx has joined #ruby
Pathfinder_ has joined #ruby
Zai00 has quit [Quit: Zai00]
Zai00 has joined #ruby
oo_ has quit [Remote host closed the connection]
Pathfinder has quit [Ping timeout: 264 seconds]
datanoise has joined #ruby
Zai00 has quit [Client Quit]
ur5us has joined #ruby
TinkerTyper has quit [Ping timeout: 255 seconds]
dionysus69 has quit [Quit: ChatZilla 0.9.91.1 [Firefox 38.0/20150511103303]]
neanderslob has quit [Read error: Connection reset by peer]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phutchins has joined #ruby
robustus is now known as robustus|Off
TinkerTyper has joined #ruby
khebbie has joined #ruby
mathie has quit [Quit: Quitting...]
mathie has joined #ruby
User458764 has quit [Quit: Textual IRC Client: www.textualapp.com]
rodfersou has joined #ruby
thomasvm has quit [Remote host closed the connection]
chipotle has quit [Quit: cheerio]
ixti has joined #ruby
livathinos|away is now known as livathinos
livathinos is now known as livathinos|away
livathinos|away is now known as livathinos
mister_solo has joined #ruby
LiquidInsect has quit [Ping timeout: 244 seconds]
chipotle has joined #ruby
LiquidInsect has joined #ruby
Ilyes512 has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phale has left #ruby ["Leaving"]
prateekp has quit [Ping timeout: 246 seconds]
nfk has quit [Quit: yawn]
bkxd has joined #ruby
greenbagels has quit [Ping timeout: 245 seconds]
Pathfinder_ has quit [Remote host closed the connection]
sandstrom has joined #ruby
ixti has quit [Ping timeout: 255 seconds]
xxneolithicxx has quit [Ping timeout: 255 seconds]
ur5us has quit [Remote host closed the connection]
sigurding has joined #ruby
oo_ has joined #ruby
CloCkWeRX has quit [Ping timeout: 265 seconds]
gauke has joined #ruby
solars has joined #ruby
stamina has joined #ruby
ruby_nuby has quit []
Rickmasta has joined #ruby
j4cknewt has joined #ruby
bluOxigen has joined #ruby
tirel has quit [Ping timeout: 244 seconds]
LMity has joined #ruby
DerisiveLogic has joined #ruby
chussenot has quit [Quit: chussenot]
k3asd` has joined #ruby
langland_ has joined #ruby
jgt has joined #ruby
al2o3-cr has quit [Ping timeout: 264 seconds]
ndrei has joined #ruby
chussenot has joined #ruby
caseypatrickdris has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
blandflakes has joined #ruby
gokulnath has quit [Ping timeout: 264 seconds]
Langlands has quit [Ping timeout: 244 seconds]
DerisiveLogic has quit [Ping timeout: 265 seconds]
rushed has quit [Quit: rushed]
FastJack_ has quit [Quit: leaving]
blandflakes has quit [Client Quit]
sinkensabe has joined #ruby
FastJack has joined #ruby
jgt has quit [Ping timeout: 265 seconds]
Xoro has quit [Ping timeout: 245 seconds]
gauke has quit [Quit: gauke]
skyrocker1 has joined #ruby
Langlands has joined #ruby
LMity has quit [Ping timeout: 246 seconds]
gokulnath has joined #ruby
symm- has joined #ruby
marr has quit []
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
crankharder has quit [Ping timeout: 256 seconds]
langland_ has quit [Ping timeout: 250 seconds]
nedp has joined #ruby
crankharder has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
ArchRogem has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermocha has joined #ruby
workmad3 has joined #ruby
Iskarlar has joined #ruby
bosma has quit [Ping timeout: 265 seconds]
sarkyniin has joined #ruby
crankharder has quit [Ping timeout: 240 seconds]
yopp has joined #ruby
yopp has left #ruby ["woop-woop-woop"]
bkxd has quit [Ping timeout: 245 seconds]
crankharder has joined #ruby
mistermocha has quit [Ping timeout: 256 seconds]
chipotle has quit [Quit: cheerio]
chussenot has quit [Quit: chussenot]
Jagan has joined #ruby
<Jagan> Hi Every one !!!
<Jagan> How to verify checkbox is checked or not.
<Jagan> in Ruby
gokulnath has quit [Quit: Leaving]
<Darkwater> Jagan: what checkbox?
<Jagan> Can you please help me.
<SebastianThorn> Jagan: you mean rails?
<Jagan> no Ruby
<Jagan> normal Checkbox
<Darkwater> what kind of checkbox
centrx has quit [Ping timeout: 245 seconds]
<Darkwater> a checkbox isn't a normal part of normal ruby
Exponential has joined #ruby
<Jagan> Actually I selected checkbox
<adaedra> What checkbox
<Darkwater> where?
<adaedra> How did you make that checkbox
<apeiros> Jagan: you're lacking lots of context. as Darkwater said - ruby itself doesn't have checkboxes.
codecop has joined #ruby
<Jagan> is checked means, no issues, not checked means again i will checked.
<Darkwater> a checkbox could be anything
<toretore> lol
crankharder has quit [Ping timeout: 246 seconds]
<apeiros> Jagan: html? GUI toolbox? CLI? something else?
<SebastianThorn> .empty?
<Darkwater> for all we know you could even be talking about a checkbox on a presidential election form which you're spying on using a sattelite and you're trying to get which checkbox the voter checks
<toretore> Jagan: how about showing us your code on http://gist.github.com ?
crankharder has joined #ruby
centrx has joined #ruby
<Jagan> Just I verify okay.
senayar has joined #ruby
<adaedra> Darkwater: Are you saying he may be russian?
<Darkwater> hey, for all we know
<Darkwater> he could be martian!
<toretore> )))
<adaedra> :o
<Jagan> Just I verify checkbox is checked or not
<Darkwater> what kind of checkbox are you talking about
<apeiros> pointless
<Darkwater> I guess
<adaedra> checkless
<tbuehlmann> the realisation after a day of #ruby: I miss #ruby-lang :'(
avril14th has quit [Remote host closed the connection]
<adaedra> :o
<Darkwater> what's that
<apeiros> tbuehlmann: because #ruby-lang had +b $x:clueless?
<tbuehlmann> you know exactly what I mean!
<Darkwater> tbuehlmann: you're not giving us enough context!!!
<toretore> this channel tended to attract the less desirable individuals, keeping them away from #ruby-lang
<Darkwater> ah
<jhass> now it keeps them away from #ruby-pro ;)
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<adaedra> “less desirable”
<Jagan> If not checked means, I will checked
A124 has quit [Quit: Luke's IRC Client v0.94 build 682]
<Jagan> Already checked means, no issues.
<jhass> ?answers Jagan
<ruboto> Jagan, How to ask the right questions to get you the right answer: https://www.mikeash.com/getting_answers.html
<Darkwater> Jagan: the answer to all your questions requires knowledge of what kind of checkbox you are talking about
<Darkwater> on a html page? gui desktop application?
futilegames has joined #ruby
chipotle has joined #ruby
<Jagan> web application
<apeiros> took only 5 tries…
<Jagan> .empty?
<Darkwater> progress!
<Jagan> this is fine.
<apeiros> ?code Jagan
<ruboto> Jagan, We can't help you without your code, please post it to https://gist.github.com
crankharder has quit [Ping timeout: 272 seconds]
<Darkwater> now, what framework do you use, if any?
<Jagan> Okay friends.
<Jagan> cucumber
crankharder has joined #ruby
<Darkwater> isn't that a testing framework?
<apeiros> yes
<Jagan> Web application using POM method
<toretore> troll meter certainty currenctly at 63%, rising.
<Jagan> yes
datanoise has quit [Ping timeout: 265 seconds]
nuck has quit [Ping timeout: 265 seconds]
<Jagan> automation testing framework
<Darkwater> toretore: clueless people actually exist though
<Darkwater> Jagan: I meant for the website itself
<Darkwater> a web framework
<Darkwater> rails? sinatra?
<toretore> the best trolls are indistinguishable
A124 has joined #ruby
<Jagan> not a rails
<apeiros> Jagan: so in your cucumber test story you want to have a step which checks whether a checkbox is checked?
<Jagan> only ruby using page object model
<toretore> Jagan: paste your code on gist.github.com and give us the link
Spami has quit [Quit: This computer has gone to sleep]
<toretore> Jagan: show us the code
<toretore> Jagan: code
<Jagan> okay..
<apeiros> ok, so with Jagan to follow up on questions, you obviously have to ask at least 5 times.
* jhass should write a bot
<Jagan> <apeiros> so in your cucumber test story you want to have a step which checks whether a checkbox is checked?
<toretore> Jagan: still waiting to see the code
<apeiros> Jagan: just for future reference - if you want help, answer on follow up questions. I'm amazed that people aren't already ignoring you.
<Jagan> this is exact question
Jackneill has joined #ruby
<MrBeardy> then answer it lol
<Darkwater> Jagan: show code
<adaedra> jhass, the bot writer
<Jagan> this is automation testing
thomasvm has joined #ruby
<toretore> Jagan: code
<Jagan> How will show the code
<apeiros> Jagan: with rspec + cucumber, that'd be: find(SELECTOR_FOR_CHECKBOX).should be_checked
oo_ has quit [Remote host closed the connection]
* SebastianThorn is reading all Jagan is writing in russian accent :)
hs366 has quit [Ping timeout: 252 seconds]
<Jagan> I want idea for ruby using Page object model
<bnagy> fml
bkxd has joined #ruby
<toretore> Jagan: go to https://gist.github.com/ - copy and paste your code there, click the create button, copy the link from your browser's address bar, then paste the link in here
gauke has joined #ruby
<Darkwater> make sure to include your Gemfile if you use that
<adaedra> apeiros: too bad, we could have asked phale to help him :p
oo_ has joined #ruby
<SebastianThorn> adaedra: haha
j4cknewt has quit [Remote host closed the connection]
<apeiros> adaedra: seriously, I said that's over. that applies to you too.
scripore has joined #ruby
<adaedra> :(
j4cknewt has joined #ruby
<Jagan> <apeiros> Jagan: so in your cucumber test story you want to have a step which checks whether a checkbox is checked? you only understand my question. this is for automation testing
jph98 has quit [Ping timeout: 240 seconds]
<apeiros> the best way to get trolls and "undesirable" people out, the best way is to stop paying them attention. report to ops, then ignore.
<apeiros> minus one "best way".
TinkerTyper has quit [Ping timeout: 256 seconds]
<adaedra> heh, he's not here anymore, that's why I allowed myself that
<apeiros> that makes it *slightly* less bad.
<Jagan> "I need to verify checkbox is checked or not, if not checked means, i will checked " this is my question in ruby
<adaedra> sorry, thought that would be funny.
<apeiros> 13:37 apeiros: Jagan: with rspec + cucumber, that'd be: find(SELECTOR_FOR_CHECKBOX).should be_checked
<apeiros> Jagan: do I need to repeat 5x again?
<jhass> yes!
<MrBeardy> There should be a !solution command for bots that sends them a message with the supplied solution to someone for every message they send after that
amystephen has joined #ruby
<Jagan> this is only cucumber
<Jagan> Can you pls tel me in ruby
<apeiros> Jagan: cucumber is executed by a language
<apeiros> and if you use ruby+rspec to execute cucumber, the above is the answer.
<Jagan> .empty?
futilegames has quit [Quit: futilegames]
<Jagan> this is fine for ruby
<Jagan> I am not using rspec
TinkerTyper has joined #ruby
<apeiros> then. provide. useful. information.
<apeiros> seriously.
<toretore> Jagan: where's that code?
<toretore> Jagan: waiting to see your code
revath1 has joined #ruby
<toretore> Jagan: code
<apeiros> anyway, I'm giving up. I've no patience for that.
mase-chatter has joined #ruby
<Darkwater> Jagan: if you want help, answer our questions
<jhass> I suggest we all do that until Jagan read ?answers
j4cknewt has quit [Ping timeout: 265 seconds]
<Darkwater> if you don't, fine
<jhass> ?answers Jagan
<ruboto> Jagan, How to ask the right questions to get you the right answer: https://www.mikeash.com/getting_answers.html
b_hoffman has joined #ruby
Forgetful_Lion has quit [Remote host closed the connection]
lapide_viridi has joined #ruby
revath has quit [Ping timeout: 250 seconds]
revath has joined #ruby
Miphix has joined #ruby
thomasvm_ has joined #ruby
c355E3B has joined #ruby
revath1 has quit [Ping timeout: 245 seconds]
<Jagan> I write the code for click in checkbox
<Jagan> in ruby using POM method
caseypatrickdris has quit [Remote host closed the connection]
<Jagan> def chk_exclude_opt() self.sel_exclude_opt_element.check end
Rickmasta has joined #ruby
mello has joined #ruby
<Jagan> "sel_exclude_opt_element " this is xpath
thomasvm has quit [Ping timeout: 246 seconds]
ldnunes has joined #ruby
tirel has joined #ruby
<Jagan> so "sel_exclude_opt_element.click"
felixjet has joined #ruby
<Jagan> so automatically checked
exile-bot-2 has joined #ruby
failshell has joined #ruby
<Darkwater> show full code
exile-bot-2 has quit [Remote host closed the connection]
<Darkwater> what does sel_exclude... return?
exile-bot-2 has joined #ruby
bricker has joined #ruby
<Darkwater> we aren't magic people who know everything
exile-bot-2 has quit [Remote host closed the connection]
al2o3-cr has joined #ruby
exile-bot-2 has joined #ruby
jgt has joined #ruby
mello has quit [Ping timeout: 252 seconds]
<centrx> Speak for yourself
exile-bot-2 has quit [Remote host closed the connection]
exile-bot-2 has joined #ruby
<Darkwater> sorry wizard centrx
exile-bot-2 has quit [Remote host closed the connection]
gix has quit [Ping timeout: 245 seconds]
<Darkwater> please guide the young Jagan
exile-bot-2 has joined #ruby
Jagan has quit [Ping timeout: 246 seconds]
<Darkwater> that's not how you guide someone
exile-bot-2 has quit [Remote host closed the connection]
CustosLimen has quit [Read error: Connection timed out]
exile-bot-2 has joined #ruby
<Darkwater> oh well
exile-bot-2 has quit [Remote host closed the connection]
<centrx> Apprentice must want to be helped
exile-bot-2 has joined #ruby
<Darkwater> what's this exile bot thing
exile-bot-2 has quit [Remote host closed the connection]
exile-bot-2 has joined #ruby
<centrx> !ops runaway bot
exile-bot-2 has quit [Remote host closed the connection]
jenrzzz has joined #ruby
<ruboto> fflush, apeiros, banisterfiend, seanstickle, Mon_Ouie, zzak, Radar, Havenn, jhass, sevenseacat, miah, workmad3, Coraline, drbrain, zenspider, rubyhacker1, slyphon, Aria, ljarvis
exile-bot-2 has joined #ruby
fabrice31 has joined #ruby
CustosLimen has joined #ruby
skyrocker1 has left #ruby [#ruby]
failshell has quit [Ping timeout: 265 seconds]
scripore has quit [Quit: This computer has gone to sleep]
charliesome has joined #ruby
dcarmich has joined #ruby
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blandflakes has joined #ruby
Ilyes512 has joined #ruby
gix has joined #ruby
clauswitt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ahmetkapikiran has joined #ruby
oo_ has quit [Remote host closed the connection]
tomkadwill has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
newbie has joined #ruby
newbie is now known as Guest11560
TinkerTyper has quit [Ping timeout: 265 seconds]
chussenot has joined #ruby
TinkerTyper has joined #ruby
davedev24_ has joined #ruby
<Guest11560> hello, it is the first time for me to use irc, I got a quesation here: "The car costs $1000 and the cat costs $10".scan(/\d*/) {|d| puts d}. it only shows 10. but if * changed to +, both 1000 and 10 will show. Why?
exile-bot-2 has quit [Remote host closed the connection]
joast has joined #ruby
Hobogrammer_ has joined #ruby
<Guest11560> thank you for your help
ndrei has quit [Ping timeout: 272 seconds]
<tobiasvl> Guest11560: hmm. it works here, except that the former with * also puts a lot of empty strings.
krz has quit [Quit: WeeChat 1.0.1]
<apeiros> Guest11560: it actually shows you much more than just 10 and 1000
<apeiros> because \d* also matches on zero \d's, i.e. the empty string
sankaber has joined #ruby
<apeiros> >> "The car costs $1000 and the cat costs $10".scan(/\d*/)
<ruboto> apeiros # => ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "1000", "", "", "", "", "", "", "", "", ...check link for more (https://eval.in/374260)
<apeiros> you're probably missing the 1000 because with puts you get lots of empty lines in between
<Guest11560> let me check it, thank you guys
<Guest11560> yes, I think so
scripore has joined #ruby
<Guest11560> I may miss 1000
Hobogrammer has quit [Ping timeout: 245 seconds]
goodcodeguy has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
<Guest11560> yes, I find it, too many other things that make me did not find 1000. Thank you everyone
<Darkwater> hm
<Darkwater> >> "a1b".scan(/\d*/)
<ruboto> Darkwater # => ["", "1", "", ""] (https://eval.in/374266)
fujimura has quit [Remote host closed the connection]
symm- has quit [Ping timeout: 264 seconds]
Axy has quit [Ping timeout: 255 seconds]
LMity has joined #ruby
pyo_ has quit [Ping timeout: 244 seconds]
caseypatrickdris has joined #ruby
senayar has quit [Remote host closed the connection]
symm- has joined #ruby
OrbitalKitten has joined #ruby
Guest11560 has quit [Quit: Page closed]
caseypatrickdris has quit [Remote host closed the connection]
HotCoder has quit [Ping timeout: 272 seconds]
pyo_ has joined #ruby
centrx has quit [Quit: Shutting down, Please wait...]
centrx has joined #ruby
OrbitalKitten has quit [Client Quit]
LMity2 has joined #ruby
wookiehangover has quit [Ping timeout: 246 seconds]
senayar has joined #ruby
tkuchiki has joined #ruby
LMity has quit [Ping timeout: 256 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
claptor has quit [Quit: this channel is bakas]
mrmargolis has quit [Remote host closed the connection]
wookiehangover has joined #ruby
Exponential has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Zai00 has joined #ruby
LMity has joined #ruby
kai_ has joined #ruby
ArchRogem has joined #ruby
tomkadwill has quit [Remote host closed the connection]
LMity2 has quit [Ping timeout: 246 seconds]
twistedpixels is now known as zz_twistedpixels
arta82 has joined #ruby
DoubleMalt has joined #ruby
arta82 has quit [Max SendQ exceeded]
commondream has joined #ruby
LMity2 has joined #ruby
datanoise has joined #ruby
LMity has quit [Ping timeout: 258 seconds]
Ilyes512 has quit [Quit: Textual IRC Client: www.textualapp.com]
fella6s is now known as fella5s
commondream has quit [Ping timeout: 256 seconds]
LMity2 has quit [Ping timeout: 272 seconds]
Nigel_ has joined #ruby
dorei has joined #ruby
AugustoCesar has joined #ruby
tsujp has joined #ruby
bmurt has joined #ruby
malconis has joined #ruby
malconis has quit [Remote host closed the connection]
Guest35670 has joined #ruby
malconis has joined #ruby
k3asd` has quit [Ping timeout: 256 seconds]
AugustoCesar has left #ruby [#ruby]
freerobby has joined #ruby
sarkyniin has quit [Quit: Quit]
b_hoffman has quit [Quit: b_hoffman]
mmazing has joined #ruby
livathinos has quit [Read error: Connection reset by peer]
livathinos has joined #ruby
skyrocker has joined #ruby
skyrocker has left #ruby [#ruby]
Guest35670 has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
hinbody has joined #ruby
decoponio has joined #ruby
xelim has joined #ruby
_joes_ has joined #ruby
kai_ has quit [Quit: Page closed]
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
CustosLimen has quit [Ping timeout: 255 seconds]
Dopagod has quit [Ping timeout: 265 seconds]
znz_jp has joined #ruby
[k- has joined #ruby
marr has joined #ruby
_joes_ has joined #ruby
peteykun has joined #ruby
charliesome has quit [Quit: zzz]
prereflect has joined #ruby
nonparfumee has joined #ruby
Hounddog has quit [Remote host closed the connection]
segfalt has joined #ruby
quimrstorres has quit [Remote host closed the connection]
CustosLimen has joined #ruby
senayar has quit [Remote host closed the connection]
yalue has joined #ruby
skyrocker1 has joined #ruby
skyrocker1 has left #ruby [#ruby]
<[k-> #ruby-lang now forwards to #ruby?
<centrx> Correct
thebastl has joined #ruby
<[k-> oh, the topic
<[k-> * facepal, *
ahmetkapikiran has quit [Quit: ahmetkapikiran]
<jhass> welcome!
sgambino has joined #ruby
imperator has joined #ruby
but3k4 has joined #ruby
thebastl has quit [Client Quit]
<workmad3> aww, I'm gonna miss #ruby-lang :(
lessless has joined #ruby
aclapinpepin has joined #ruby
sdwrage has joined #ruby
mujou has joined #ruby
OrbitalKitten has joined #ruby
<Miphix> what's going on with ruby-lang
charliesome has joined #ruby
kerunaru has quit [Quit: Textual IRC Client: www.textualapp.com]
<centrx> Channels merged
<workmad3> Miphix: jhass is destroying it!
<jhass> s/is/has/
<workmad3> :D
senayar has joined #ruby
senayar has joined #ruby
aryaching has joined #ruby
<Miphix> :(
allcentury has joined #ruby
<jhass> Miphix: look, the ruby community is finally among those that have a 1000+ members channel!
mistermocha has joined #ruby
<adaedra> It's not the size which counts.
<adaedra> matters
<jhass> adaedra: sssh, nobody needs to know
<adaedra> :')
<ddv> how did people ever end up in #ruby-lang anyways?
OrbitalKitten has quit [Client Quit]
<lxsameer> ddv +1
<adaedra> By typing /join #ruby-lang
* apeiros did by reading ruby-lang.org
<surrounder> nice calm place was nice
<adaedra> (Joke.killed_count += 1)
<ddv> apeiros: ah :)
Akagi201 has joined #ruby
Akagi201 has quit [Remote host closed the connection]
Akagi201 has joined #ruby
failshell has joined #ruby
sevenseacat has joined #ruby
kobain has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
asmodlol has joined #ruby
Rapier- has joined #ruby
failshell has quit [Remote host closed the connection]
<Miphix> The #ruby channel is the most popular channel in my IRC channel
yh has quit [Ping timeout: 264 seconds]
j4cknewt has joined #ruby
yh has joined #ruby
<Darkwater> how does that work
<jhass> *channels
<ddv> irception?
failshell has joined #ruby
northfurr has joined #ruby
<Darkwater> inception missing a column of pixels
<jhass> oh, #freenode is being funny
csavola has quit [Quit: Linkinus - http://linkinus.com]
mistermocha has quit [Ping timeout: 256 seconds]
sigurding has quit [Quit: sigurding]
<cout> is it possible to use rake as a library instead of as a standalone application? my guess from reading the source is "no, not easily", since tasks defined with the dsl forward to an application singleton
freerobby has quit [Quit: Leaving.]
j4cknewt has quit [Ping timeout: 256 seconds]
yh has quit [Remote host closed the connection]
yh has joined #ruby
mary5030 has joined #ruby
ahmetkapikiran has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
b_hoffman has joined #ruby
khebbie has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
<adaedra> cout: what do you want to do, globally?
quimrstorres has joined #ruby
<adaedra> who did using namespace std; ?
aryaching has joined #ruby
mary5030 has quit [Remote host closed the connection]
<cout> adaedra: this nick predates C++ standardization :)
<adaedra> ahah
mary5030 has joined #ruby
b_hoffman has left #ruby [#ruby]
<cout> my first irc nick was Alt-255, and I've pondered going back to it, but nobody would know who I am since I've been using this one for 20 years now
<cout> HOLY COW
<cout> I'M OLD
<adaedra> Leave the cow alone
<cout> adaedra: cam
<cout> can't
jerius has joined #ruby
<adaedra> :)
<jhass> too tasty
dblessing has joined #ruby
<cout> adaedra: I came from clemson. We love our cows.
fabrice31 has quit [Remote host closed the connection]
<adaedra> Anyway, did your answer solved your problem?
<cout> yeah I think so
<adaedra> Clemson, South Carolina?
<cout> yeah
<imperator> cout, thor perhaps?
<cout> imperator: what's thor?
<adaedra> It's a good thing that only the USA exists as a country, so you can give a city name without other precision like that
<adaedra> :p
thiagovsk has joined #ruby
<cout> imperator: haha, whatisthor.com
<cout> I've looked at this before
<adaedra> it's a good thing for clis
<cout> interesting, but I'm modifing an existing app rather than building a new one
caseypatrickdris has joined #ruby
<adaedra> so your goal is to use existing rake tasks and call them from a cli?
SimonKnight has joined #ruby
<SimonKnight> Hi everyone
<cout> adaedra: my goal is to not have to use the tsort lib directly
<cout> adaedra: but instead to use a high-level interface
<adaedra> tsort?
<cout> topological sort
<cout> basically I don't want to have to write all the guts to do dependency resolution but build on what already exists (and is already installed on all our machines)
<adaedra> because we were talking about rake above, I don't see the link
<cout> adeponte: the point of make (and also rake) is it correctly orders tasks in order of dependency
someword has joined #ruby
<cout> adeponte: the DSL is icing
prereflect has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
deded has joined #ruby
<deded> hi
<jhass> hi
<ljarvis> hi
<olegtc> hi
<deded> say i have a block whatever.map {|o| some logic that involved o } - the logic is too long, can i do whatever.map {|0| logic_method} def logic_method; stuff that involve o; end
sigurding has joined #ruby
bricker has quit [Ping timeout: 264 seconds]
<jhass> def logic_method(o); end; whatever.map {|o| logic_method(o) }
<jhass> you can also use newlines in a block
<adaedra> hi
<deded> jhass: does it have to be passed as an argument? it seems to work as it is?
twinkelhood has joined #ruby
<jhass> yes it has
<jhass> ?fake
<ruboto> Please show your real code to illustrate your problem. Using fake code often hides it or won't bring up the best possible solution.
<deded> jhass: kind of like inside the method o is still available without passing it
<adaedra> well, o may be a method on the object
<adaedra> code may help see that
<jhass> deded: that's very unlikely, as to the why it seems so, see above
SimonKnight has quit [Ping timeout: 246 seconds]
<deded> jhass: thanks
devdazed has joined #ruby
mrmargolis has joined #ruby
ahmetkapikiran has quit [Quit: ahmetkapikiran]
mmazing has quit [Ping timeout: 245 seconds]
<twinkelhood> Hey, I'm trying to overwrite the initialize of Array, but I'm unsure how to retain original behaviour. was trying something like this:http://pastebin.com/JSXtq2KP
<ruboto> twinkelhood, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/cd3975d29c494c4f2e42
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
someword has quit [Quit: Leaving.]
<bkxd> twinkelhood: dominated
<twinkelhood> Yup.
ringarring has joined #ruby
symm- has quit [Ping timeout: 246 seconds]
mello has joined #ruby
mello has joined #ruby
ringarring has quit [Quit: WeeChat 0.4.2]
ringarring has joined #ruby
<g0rx> i need a programmer :)
<g0rx> i pay via btc
scripore has joined #ruby
ahmetkapikiran has joined #ruby
<ericwood> not sketchy at all
Synthbread has quit [Ping timeout: 244 seconds]
momomomomo has joined #ruby
<ljarvis> twinkelhood: You shouldn't monkeypatch Array
<twinkelhood> I know, but for the sake of science.
<twinkelhood> I promise i won't put this in production, probably.
<centrx> g0rx, I prefer to be paid in unmarked envelopes placed under a park bench
delianides has joined #ruby
<ljarvis> twinkelhood: did your original code work?
<ljarvis> also, remember you have changed the signature of Array.new completely, so you're not retaining the current behaviour
robustus|Off is now known as robustus
<twinkelhood> Nope, throws an argumenterror, 0 for 1. And yeah, that's the point, since I don't have inheritance
mello has quit [Ping timeout: 272 seconds]
AphelionZ has left #ruby [#ruby]
<ljarvis> twinkelhood: you need to default to arg=nil and handle a second argument
txdv has joined #ruby
<ljarvis> it's a bit more involved if you want the original signature, but you *could* just splat the args
<twinkelhood> But would my super call do the thing?
roc56 has joined #ruby
<twinkelhood> When i monkeypatch a core class like that?
jenrzzz has joined #ruby
<toretore> twinkelhood: as you're not subclassing, you need to alias initialize first, then call the original version from your redefined one
<ljarvis> no :)
<centrx> you would use alias_method not super no?
<ljarvis> as toretore says, use an alias
<twinkelhood> Riiight, that's what I was thinking of
<toretore> twinkelhood: that being said, what you're doing is stupid
<twinkelhood> Thanks bro.
<ljarvis> toretore: it's been pointed out that this shouldn't be done, twinkelhood is hacking
tirel has quit [Quit: leaving]
bmurt has quit [Read error: Connection reset by peer]
<ljarvis> so let them hack
atomical has joined #ruby
<twinkelhood> Yup. My console is all hung up doing meaningful stuff, so just playing with IRB.
bmurt has joined #ruby
iamninja has quit [Ping timeout: 250 seconds]
<ljarvis> is that the code-compiling excuse
blandflakes has joined #ruby
<twinkelhood> And my collegues do not have time for my "irellevant"/"dangerous"/"why are we even paying you?" questions.
<twinkelhood> You can call it taht
<adaedra> I'm not slicking off, code's compiling!
<adaedra> slacking*
<MrBeardy> twinkelhood: looked at pry? it's better than IRB
<twinkelhood> I like calling it the re-importing db excuse.
<adaedra> :D
<twinkelhood> It is pry, to be honest.
<MrBeardy> :D
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
<adaedra> Segfault \o/
<bkxd> so for us noobs, why is monkeypatching array such a bad idea?
<bkxd> understand that it could potentially mess with a lot of things and is hard to maintain
iamninja has joined #ruby
<twinkelhood> Because it'll kill you in your sleep. Subclass it if you want to use your own logic :)
arturaz has quit [Remote host closed the connection]
<ljarvis> bkxd: pretty much yep
<bkxd> makes sense
<ljarvis> also, subclasses classes you dont own is also a bad idea ;)
<ljarvis> subclassing*
blandflakes has quit [Client Quit]
<twinkelhood> I mean, not that that ever kept activesupport from doing it >:(
CustosLimen has quit [Ping timeout: 244 seconds]
<twinkelhood> It depends on what you want.
<ljarvis> meh, they don't hide it
Eising has joined #ruby
<adaedra> It's the reason of ActiveSupport
jenrzzz has quit [Ping timeout: 264 seconds]
<toretore> it's like all global state, the more said state is relied upon from different users, the bigger the chance of something breaking
<twinkelhood> Am I here some... "That's bad practise unless DHH is doing it" from you guys? <3
<toretore> and Array#initialize is perhaps one of the most relied-upon
freerobby has joined #ruby
DerisiveLogic has joined #ruby
<adaedra> AS just add methods no, not replacing?
<toretore> activesupport's monkey patching, like all monkey patching, is nothing but laziness
<ljarvis> I actually think ActiveSupport is a good idea
momomomomo_ has joined #ruby
<toretore> some of it is valuable, some isn't.. some improvements found their way back to core as well iirc
<apeiros> active-refinement
<ljarvis> Ruby was built with the flexibility to control/mutate these things. It's arguably one of its greatest strengths. Can't hate on AS because it uses them
<twinkelhood> I'm a fan of it too.
<twinkelhood> I'm just trolling.
<twinkelhood> It does really nice things
<ljarvis> just remember, never require active_support/all unless you're in a rails app or actually NEED everything
<twinkelhood> Like, aliasing << with :append, that just smells of good intentions.
Papierkorb has joined #ruby
momomomomo has quit [Ping timeout: 252 seconds]
momomomomo_ is now known as momomomomo
araujo has quit [Quit: Leaving]
lavros has joined #ruby
DerisiveLogic has quit [Ping timeout: 256 seconds]
CustosLimen has joined #ruby
DoubleMalt has quit [Ping timeout: 264 seconds]
<wnd> Couple of weeks ago I spent considerable time figuring out why "GET" would an invalid HTTP method according to aws-sdk/seahorse/foo. At the end it turned out someone had monkeypatched String#capitalize to be unicode-aware, but at the same made it incompatible with the behaviour of original String#capitalize. "GET".capitalize would become "Get" and seahorse/aws-sdk would fail hard.
serivichi has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
<twinkelhood> wnd, awesome example.
serivich has quit [Ping timeout: 264 seconds]
tsou has joined #ruby
<apeiros> wnd: um, that's how capitalize works…
<twinkelhood> Good-intentioned monkey-patching of core stuff, is peeing in someone elses pants to get them to like you. It works at first, then... or.. yeah
<apeiros> >> "GET".capitalize
<ruboto> apeiros # => "Get" (https://eval.in/374348)
<apeiros> that's the expected behavior…
<Darkwater> >> "gEt".upcase
<ruboto> Darkwater # => "GET" (https://eval.in/374350)
Akagi201 has quit [Read error: Connection timed out]
<apeiros> .upcase if you want all chars uppercase.
<apeiros> sounds to me like in this instance it wasn't the monkey-patcher's fault :)
<toretore> *would* have been a good example ;)
<twinkelhood> Shhh, he's example still explains what kinds of things goes wrong
<wnd> oh, sorry, it was the opposite. seahorse would expect "Get" but the patched version would basically only touch upcase the first character and not touch the rest.
<apeiros> yeah. sorry for being a punch-line killer :D
fujimura_ has joined #ruby
<apeiros> wnd: aha, so "GET".capitalize would return "GET"?
<txdv> o no, he is here, all hide
<apeiros> well, shame on aws-sdk for violating rfc anyway
scripore has quit [Quit: This computer has gone to sleep]
workmad3 has joined #ruby
clauswitt has joined #ruby
<toretore> it's probably not sending "Get"
<toretore> just using it to look up something
scripore has joined #ruby
<wnd> def capitalize; return "" if size < 1; UnicodeUtils.upcase(self[0]) + self[1..-1]; end; end
araujo has joined #ruby
<wnd> where did my "class String" go?
<toretore> "Get".constantize probably :P
<apeiros> wnd: yupp, that's indeed a broken patch
simi has quit [Ping timeout: 272 seconds]
Akagi201 has joined #ruby
<apeiros> should be `UnicodeUtils.upcase(self[0]) + UnicodeUtils.downcase(self[1..-1])`
scripore has quit [Client Quit]
<toretore> or `def unicode_upcase`
olegtc has quit [Ping timeout: 272 seconds]
<apeiros> and yes, it's still a bad idea to monkey-patch String's method to do that :)
<wnd> best part is that the code did come with explanation how it was supposed to work and it /did/ work exactly as described
<txdv> >> "shevy " * 100
sigurding has quit [Quit: sigurding]
<apeiros> expected behavior is ascii only
<ruboto> txdv # => "shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy she ...check link for more (https://eval.in/374356)
araujo has quit [Max SendQ exceeded]
<jhass> txdv: seriously, that's what we get from lifting your ban?
<apeiros> !kick txdv don't use the bot for spam
txdv was kicked from #ruby by ruboto [don't use the bot for spam]
catcher has joined #ruby
<apeiros> oh, we even had them banned?
Voker57 has quit [Ping timeout: 255 seconds]
<jhass> yeah
txdv has joined #ruby
<txdv> ok sorry
<txdv> its just a thing i do to shevy
<jhass> well, stop it
fujimura_ has quit [Ping timeout: 246 seconds]
<txdv> but then it wouldn't be our thing anymore
<apeiros> we don't care
Kricir has joined #ruby
<apeiros> this channel is not here for you to spam it.
<txdv> This is actually a call for shevy to join the conversation
<txdv> Is inviting people to a conversation forbidden?
<jhass> txdv: next time you do it, you're gone again. End of discussion
ixti has joined #ruby
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<yorickpeterse> see we should totally go back to #ruby-lang
<yorickpeterse> :D
<jhass> (continue the discussion and you're gone too)
<txdv> How is the weather?
<jhass> a bit cloudy
<adaedra> So happy together ♪
* imperator hates dealing with authentication
* apeiros starts a betting pool for how long it takes until yorickpeterse founds #ruby-rants
<apeiros> imperator: in irc?
revath has quit [Ping timeout: 255 seconds]
<imperator> apeiros, azure
a346 has joined #ruby
<apeiros> ah
<txdv> jhass: why did you lift my ban?
<imperator> there's a simple way and a hard way....we, of course, must use the hard way
<apeiros> txdv: seriously, just go to #ruby-offtopic already.
<yorickpeterse> apeiros: I would've done that years ago if I wanted to
<jhass> txdv: if you want to discuss bans, join #ruby-banned
<adaedra> apeiros: is it still empty?
<apeiros> adaedra: yupp
<yorickpeterse> apeiros: why would I if there's #ruby-lang/#ruby?
<imperator> spent a bunch of time messing around with oauth2 yesterday only to be informed that i'm doing it wrong ;)
<yorickpeterse> :D
<yorickpeterse> :troll:
<apeiros> yorickpeterse: hence my betting pool…
asmodlol has quit [Ping timeout: 246 seconds]
deded has quit [Ping timeout: 246 seconds]
<yorickpeterse> lol, guy here in the hostel begging to borrow a phone with 3G
<yorickpeterse> "mine doesn't work here, spare me a phone plz"
tesuji has quit [Read error: Connection reset by peer]
momomomomo_ has joined #ruby
<twinkelhood> Give him a potato, some copper wire and say "just extend your reception", and when he looks confused say
<twinkelhood> "google it"
<yorickpeterse> haha
momomomomo has quit [Ping timeout: 244 seconds]
momomomomo_ is now known as momomomomo
gwendall has joined #ruby
DoubleMalt has joined #ruby
mase-chatter has quit [Ping timeout: 265 seconds]
mistermocha has joined #ruby
asmodlol has joined #ruby
enebo has joined #ruby
<yorickpeterse> ah yes vacation
<apeiros> 4 more and we have 1KiP
<yorickpeterse> that time of the year where FOSS productivity is 10x higher than usual
<txdv> why is it higher?
<yorickpeterse> and the wifi 10x shittier
<yorickpeterse> txdv: because there's nobody to bother me
northfurr has quit [Quit: northfurr]
<yorickpeterse> and because I don't have to go to an office during the day
<txdv> but you are spending your 'efficient time' on irc
<txdv> how can be that efficient
dudedudeman has joined #ruby
axilla has joined #ruby
<yorickpeterse> ssssh
dudedudeman has quit [Changing host]
dudedudeman has joined #ruby
clauswitt has quit [Ping timeout: 256 seconds]
<twinkelhood> lol
nateberkopec has joined #ruby
insidious has joined #ruby
<twinkelhood> Wait that's not how i spell my name.. what did i do. I did find it weird it didn't ask for my password...
twinkelhood is now known as twinklehood
fmcgeough has joined #ruby
<jhass> lol
<MrBeardy> twinkel looks dutch
Torrieri has joined #ruby
fgo has quit [Ping timeout: 256 seconds]
d10n-work has joined #ruby
<yorickpeterse> well, it _is_ a valid Dutch word
mistermocha has quit [Ping timeout: 256 seconds]
fgo has joined #ruby
nhhagen has quit [Ping timeout: 255 seconds]
<twinklehood> I dun wunner be dutch D:
mcclurmc has joined #ruby
fabrice31 has joined #ruby
<yorickpeterse> well, you can't be unless you're a superior human being
<yorickpeterse> the 10x human
jaequery has joined #ruby
Voker57 has joined #ruby
<yorickpeterse> 10x the height, 10x the strength, 10x the taxes (:<)
<jhass> I see yorick never heard of the human design system
<yorickpeterse> but there's no such thing as telnt!!!11
<yorickpeterse> * talent
<yorickpeterse> I hate this wifi
mase-chatter has joined #ruby
<yorickpeterse> somebody must be downloading lots of Linux ISOs, works fine when everybody is out
chrissonar has quit [Remote host closed the connection]
<adaedra> yeah right, Linux ISOs.
Scroff has quit [Ping timeout: 264 seconds]
lxsameer has quit [Quit: Leaving]
<surrounder> hehe
<adaedra> If people would stop /quit, I would be able to click that link.
<surrounder> fix that in your client then
<adaedra> yorickpeterse: TIL
<yorickpeterse> ^ both weechat and IRC can filter parts
<adaedra> I don't want to remove parts
<mikecmpbll> or more worrying, improve reaction speed / mouse control
<surrounder> indeed, very easy with weechat to toggle too
<adaedra> And why would I fix my setup when it's obvious that it's other people fault >_>
mcclurmc has quit [Ping timeout: 256 seconds]
<surrounder> hehe
<ljarvis> lmao if you list joins/parts/quits
<adaedra> problem?
<centrx> They show the passage of time naturally
<yorickpeterse> adaedra: what client are you using?
aganov has quit [Remote host closed the connection]
<adaedra> Textual
<yorickpeterse> oh hm, that's one of those hipster clients
tagrudev has quit [Remote host closed the connection]
Blaguvest has joined #ruby
<yorickpeterse> either way, Weechat at least can use a "smart" filter, where it hides /parts and /quits unless said person spoke in the past few minutes
<adaedra> I had that once
<ljarvis> do you even irssi
<yorickpeterse> also I meant Irssi instead of IRC above
* yorickpeterse notices the clock says 23:25, might explain a few things
<ljarvis> that you should be closing oga issues and getting drunk?
porkqpain has joined #ruby
f3lp has joined #ruby
commondream has joined #ruby
<txdv> yorickpeterse: that is something useful
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
asmodlol has quit [Ping timeout: 245 seconds]
watchtheblur has joined #ruby
<adaedra> but heh, I actually don't mind joins/parts
<yorickpeterse> ljarvis: I'm writing Rust actually
watchtheblur has quit [Max SendQ exceeded]
<ljarvis> right, so getting drunk might help
<adaedra> lol
watchtheblur has joined #ruby
<yorickpeterse> but I'm not a fan of Korean booze :<
<yorickpeterse> Soju is gross
<yorickpeterse> and rice wine is meh
<yorickpeterse> though I did spot a place that had Dutch beer, but it's closed now
kies has joined #ruby
<ljarvis> how long are you there?
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
atmosx has joined #ruby
someword has joined #ruby
balazs_ has joined #ruby
fgo has quit [Ping timeout: 244 seconds]
bluOxigen has quit [Ping timeout: 244 seconds]
asmodlol has joined #ruby
TinkerTyper has quit [Ping timeout: 265 seconds]
gambl0re has joined #ruby
<yorickpeterse> until Friday next week
<yorickpeterse> a massive 3 weeks
TinkerTyper has joined #ruby
<yorickpeterse> (some sarcasm there)
ArchRogem has quit [Quit: Textual IRC Client: www.textualapp.com]
CorpusCallosum has joined #ruby
<izzol> Hmm, how to convert: Mail::AddressContainer to String? I'm using gem: mail and I can get my e-mail from mail.from but this is a: Mail::AddressContainer.
<izzol> And I need to do something with the string (using split or something), but I cannot since this is not a string :(
<ericwood> izzol: call .address.to_s on it
<yorickpeterse> ljarvis: Rust is actually not too bad after the first week of beatings
mcclurmc has joined #ruby
joaomdmoura has joined #ruby
dopie has joined #ruby
<atomical> if you stop using it do you get ptsd?
symbol has joined #ruby
<izzol> ericwood: hmm, I thought that I already tested it but probably in wrong way or something. Anyway it works now. Thanks ;-)
<ericwood> np
<adaedra> atomical: prsd
<adaedra> (post-rust)
symbol has quit [Client Quit]
<atomical> hah
symbol has joined #ruby
arBmind1 has joined #ruby
<yorickpeterse> atomical: no idea, haven't stopped using it yet
<yorickpeterse> I do miss Ruby though
<adaedra> I still hasn't dig enough into Rust
someword has quit [Quit: Leaving.]
<adaedra> havn't?
<adaedra> english is hard
sinkensabe has quit [Remote host closed the connection]
momomomomo has quit [Ping timeout: 264 seconds]
arBmind has quit [Ping timeout: 240 seconds]
jmhmccr has joined #ruby
<ljarvis> yorickpeterse: I've written a fair amount actually, but still not a huge fan. The syntax gets me quite confused at times and I find it often hard to read rust code for learning purposes
iceden has joined #ruby
<puppeh> is there anyway I can limit the StackProf::Middleware to a specific unicorn worker?
<ljarvis> lol a fair amount is a gross over estimation, more like a couple thousand lines
<yorickpeterse> ljarvis: oh yeah, it requires quite the computing power to grok
<yorickpeterse> unless they cut down on the syntax bullshit I don't see this becoming as popular as Go for example
<ljarvis> i dunno, maybe. I think it'll be popular either way. Some people seem prepared to accept all of the syntax stuff that bothers me
<yorickpeterse> also it's pretty annoying it's either unique pointers or "lol fuck you, reference counting"
<ljarvis> but not being able to read other peoples code very well becomes a blocker quickly for me
<yorickpeterse> https://github.com/YorickPeterse/aeon/tree/master/src <- well, I'd say this isn't _too_ bad
<ljarvis> i like the safety
<yorickpeterse> mostly because I've been pretty aggressive at cutting down the amount of lifetime parameters
<yorickpeterse> which helps quite a bit
ta has quit [Remote host closed the connection]
<yorickpeterse> what I hate though is cargo being slower than Rails to start up
<ljarvis> right, your code looks pretty sane compared to a lot I've looked through
allcentury has quit [Ping timeout: 265 seconds]
<yorickpeterse> $ time cargo build
<yorickpeterse> real 0m4.215s
roc56 has quit [Ping timeout: 240 seconds]
<yorickpeterse> that's 770 lines of code
<ljarvis> that's just rustc being slow, no?
<yorickpeterse> probably
paulcsmith has joined #ruby
ESpiney_ has quit [Quit: Leaving]
<ljarvis> yeah i found it a bit annoying but i'm quite used to Go's near instant compilation
<yorickpeterse> Part of it is probably LLVM not being the fastest thing on the planet
<yorickpeterse> Although somehow clang can compile super fast
<ljarvis> i love clang
segfalt has quit [Quit: segfalt]
<jhass> different default optimization level?
<yorickpeterse> I can't even compile with optimizations
<ljarvis> ^ that's a decent point
<ljarvis> o
<jhass> llvm's optimizations stage is what takes the insane amount of time
mrmargolis has quit [Remote host closed the connection]
<jhass> there are about 5 levels I think
<jhass> 0 (=none) is super fast
<jhass> just slow in runtime, but good enough for dev usually
centrx has quit [Remote host closed the connection]
umgrosscol has joined #ruby
oo_ has joined #ruby
<yorickpeterse> also
<yorickpeterse> lol
<yorickpeterse> warning: peasant ocmputers might not load that page
<yorickpeterse> * computers
<yorickpeterse> darn it
rushed has joined #ruby
<ljarvis> yorickpeterse: your notes on this language look at *lot* like my toy language
<ljarvis> like... almost identical
_joes_ has quit [Ping timeout: 255 seconds]
dfockler has joined #ruby
<yorickpeterse> heh, I have a whole lot more in my notebooks
robustus is now known as robustus|Off
<yorickpeterse> basically it would be ruby + smalltalk + Rust (error handling wise)
<yorickpeterse> plus gradual typing
<yorickpeterse> (zomg types)
<ljarvis> although ugh, remove dat ->
<yorickpeterse> though the typing would be compile only, the VM don' care
segfalt has joined #ruby
<yorickpeterse> ljarvis: oh yeah, the syntax itself is still a bit of a rough sketch
dfockler has quit [Remote host closed the connection]
<yorickpeterse> Not sure what I'd use in place of -> though, I kinda enjoy the return type being in postfix form
<yorickpeterse> => might be an option
<yorickpeterse> ideally it wouldn't require usage of the shift key at all, but I can't think of any sigils that would make sense
dfockler has joined #ruby
fabrice31 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
<yorickpeterse> maybe just a : or something, not sure yet
dfinninger has joined #ruby
<yorickpeterse> also one of the things I have to think of is sharing memory
<ljarvis> I used nothing
araujo has joined #ruby
<ljarvis> ala Go
araujo has quit [Max SendQ exceeded]
<yorickpeterse> e.g. I want memory to be thread-local by default, but that wouldn't work if you want to share for example a mutex
<yorickpeterse> ljarvis: also an option
<dfockler> are you writing a language?
<yorickpeterse> I believe Erlang implements mutexes as actual actors/channels, which is interesting
Torrieri has quit [Quit: Be back later ...]
Limix has joined #ruby
<yorickpeterse> but that would require some sort of spinlock whenever trying to access the lock, which will fuck CPU usage
<yorickpeterse> dfockler: yesh
someword has joined #ruby
<dfockler> cool! that's something I've been looking at, although no where near mutexes or shared memory
centrx has joined #ruby
<yorickpeterse> I'm basically doing everything at once
dzejrou has joined #ruby
<dfockler> I'm trying to figure out syntax for a set based language, where every operation is based around sets
pyo_ has quit []
<txdv> lisp is about lists
<txdv> how will you call that language?
<dfockler> right now it's call crappy lang
mordocai has joined #ruby
<txdv> it probably describes the implementation as well?
<dfockler> haha absolutely
chinmay_dd has quit []
jottr has joined #ruby
<dfockler> yorickpeterse: what language are you writing it in?
mistnim has joined #ruby
aclapinpepin has quit [Ping timeout: 245 seconds]
Torrieri has joined #ruby
balazs has joined #ruby
<yorickpeterse> dfockler: Rust
<dfockler> hey me too!
<mistnim> hello, one file for each class or not? what is the standard in ruby?
<yorickpeterse> although that will only be used for the VM, I intend to bootstrap the whole thing
<yorickpeterse> mistnim: usually yes
<ericwood> mistnim: one file for class usually
<mistnim> ok
blandflakes has joined #ruby
mrmargolis has joined #ruby
fabrice31 has quit [Remote host closed the connection]
havenwood has joined #ruby
mwlang has joined #ruby
balazs has quit [Ping timeout: 265 seconds]
Spami has joined #ruby
<mwlang> has anyone used prediction.io with Ruby? I’m trying the “quickstart” tutorial here: https://docs.prediction.io/templates/ecommercerecommendation/quickstart/ but the Ruby examples seem completely “off” — either that or I just don’t quite follow.
datanoise has quit [Ping timeout: 265 seconds]
jerius has quit [Quit: /quit]
stef204 has joined #ruby
porkqpain has quit [Remote host closed the connection]
nhhagen has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
morissette has joined #ruby
<yorickpeterse> "unresolved name `array_instance`. Did you mean `float_instance`?" lol rust you drunk
jerius has joined #ruby
gregf has joined #ruby
<morissette> https://gist.github.com/anonymous/4f95172085c9726fa742 - anyone know why I am getting this error?
<yorickpeterse> mwlang: what problems are you running into?
sevenseacat has quit [Quit: Me dun like you no more.]
<imperator> morissette, possible one of your tests set it to nil?
<yorickpeterse> morissette: is @driver actually set before calling teardown?
<centrx> morissette, undefined method X for nil:NilClass means you have a nil where you expected an object
jerius has quit [Client Quit]
<morissette> I understand the error just not why the object doesn't exist
huddy has joined #ruby
<imperator> it appears to be defined in setup, so it's possible one of your tests set it to nil somewhere somehow
jerius has joined #ruby
malconis_ has joined #ruby
malconis_ has quit [Remote host closed the connection]
<imperator> you could change the line in teardown to @driver.quit if @driver
malconis has quit [Read error: Connection reset by peer]
<mwlang> yorickpeterse: I’m trying to “translate” the curl examples to the Ruby examples now…I can definitely tell the Ruby examples are pure rubbish.
malconis has joined #ruby
dblessing has quit [Ping timeout: 246 seconds]
dfinninger has quit [Remote host closed the connection]
<jhass> morissette: how about some syntax highlighting in the future, just name your file whatever.rb or pick from the dropdown ;)
<yorickpeterse> mwlang: you know their Ruby examples use an SDK right?
<ljarvis> yorickpeterse: noice.to_string()
rushed has quit [Quit: rushed]
<yorickpeterse> ljarvis: haha yeah, that's because I use String all over the place
<yorickpeterse> and there's no syntax for creating a String :/
<dfockler> mwlang: yeah those examples are basically just a wrapper around the curl requests
<ljarvis> yep
<morissette> syntax highlighting:https://gist.github.com/anonymous/348885768cf48c5b3d72
<ljarvis> dat &'str
senayar has quit [Remote host closed the connection]
dfinninger has joined #ruby
TommyTheKid has joined #ruby
<dfockler> Vec<Box<Option<i32>>>
<mwlang> dfockler: going in with eyes wide open now….I was at first just doing simple substites to replace <USER_ID> with real values and trying and not getting expected results.
Kero has joined #ruby
<jhass> morissette: *shrug*, perhaps you hit a var internal to minitest? would be sad if so, but try using a different name just for the sake of ruling that out
<TommyTheKid> I have a multiline string as a hash value that I am trying to use to_yaml on, hoping that it would use the "|" syntax to allow it to spread over multiple lines "cleanly" and its putting it in double quotes with \n's... which is technically valid, but ugly. is there an "easy" way to make to_yaml output multiline strings with yaml | syntax?
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<TommyTheKid> (for what its worth, my "string" is an SSL certificate) :)
<dfockler> mwlang: I mean you should replace the <USER ID> part with an id like in the REST API example
psy_ has joined #ruby
<Synthead> how can I write a block that has multiple "block" variables? I know how to utilize blocks, but I'm not sure about how to write this block itself.
joaomdmoura has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Limix has quit [Quit: Limix]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<dorei> >> [[1,2], [3,4]].map{|x,y| x+y}
<ruboto> dorei # => [3, 7] (https://eval.in/374386)
mrsolo has joined #ruby
allcentury has joined #ruby
<dorei> something like that Synthead?
peteykun has quit [Read error: Connection reset by peer]
<Synthead> dorei: I know how to use blocks, but I'm looking to write a block method myself. do I just return an array with yield and do something like "do |foo, bar|"?
nhhagen has quit []
mistermocha has joined #ruby
bzb has joined #ruby
Eiam has quit [Ping timeout: 255 seconds]
BigRonnieRon has joined #ruby
BigRonnieRon has quit [Max SendQ exceeded]
peteykun has joined #ruby
<dorei> >> def x ; yield [1,2] ; end ; x {|a,b| a+b}
<ruboto> dorei # => 3 (https://eval.in/374387)
<dorei> >> def x ; yield 1,2 ; end ; x {|a,b| a+b}
<ruboto> dorei # => 3 (https://eval.in/374388)
senayar has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
<Synthead> dorei: ah that's great, thanks!
<jhass> TommyTheKid: mmh, it seems to do that by default pretty aggressively for me
shadoi has joined #ruby
<jhass> TommyTheKid: might want to play with line_width and canonical
nfk|laptop has joined #ruby
justintv90 has quit [Remote host closed the connection]
<yorickpeterse> ljarvis: refresh my mind for a moment, "foo" is an instance of String, String is a Class, and is an instance of Class. What would you call String here? It's not the singleton class IIRC
<jhass> only options you have besides indentation anyway
spyderman4g63 has joined #ruby
<yorickpeterse> hm, if I change my terms I can work around this I think
mistermocha has quit [Ping timeout: 250 seconds]
tjohnson has joined #ruby
bzb has quit [Client Quit]
<mwlang> dfockler: yeah, I see it now…at first I was completely missing it because, well, I had the Ruby tab opened, not hte Curl tab, so there was a “disconnect” with what was written and what the code was showing.
<ljarvis> yorickpeterse: i don't follow exactly, you described it pretty well
<Takumo> So, I've build a rest API as a rack application, anyone got any tips for writing benchmarks for a rack application? I want to run a bunch of calls and measure response times, CPU times, memory usage etc. I could just do it with Benchmark::BM but is there something more integrated with rack?
<TommyTheKid> jhass: I noticed that most people were trying to get it to *not* split over multiple lines ;)
<TommyTheKid> I just want it to "obey" the \ns
chussenot has quit [Quit: chussenot]
<jhass> Synthead: note there's a subtle difference between yield 1, 2 and yield [1, 2], play around with blocks accepting either one or two params and those variants ;)
<mwlang> Takumo: use Apache’s ab command.
<yorickpeterse> ljarvis: the problem is I have a Class in my VM, but that really is just the structure, not an actual class in the language. It is however mapped to a class in the language
<ljarvis> er
<ljarvis> Takumo:
<yorickpeterse> so I had a method called "allocate_pinned_class", which allocates a VM class
djellemah has quit [Ping timeout: 265 seconds]
<jhass> TommyTheKid: perhaps you got literal \n's for some strange reason like calling inspect somewhere?
<yorickpeterse> which I've just renamed to "allocate_native_class" which should solve the problem
baroquebobcat has joined #ruby
livathinos has quit []
<ljarvis> that sounds nicer
<Takumo> ljarvis: interesting, thanks.
cpt_yossarian has joined #ruby
micmus has joined #ruby
nmyster has joined #ruby
Cache_Money has joined #ruby
shredding has quit [Ping timeout: 245 seconds]
woodruffw has quit [Ping timeout: 256 seconds]
j4cknewt has joined #ruby
<TommyTheKid> jhass: I wouldn't be surprised if something is getting wonky, its coming into puppet via hiera, and normally I just put it into a "file" (/etc/pki/tls/certs/blah.pem), but this time I need it to go to /path/to/app/shared/config/secrets.yml
gwendall has quit [Remote host closed the connection]
<ljarvis> ugh puppet
gwendall has joined #ruby
banister has joined #ruby
solars has quit [Ping timeout: 256 seconds]
mello has joined #ruby
fgo has joined #ruby
St1gma has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
towski_ has joined #ruby
commondream has quit [Remote host closed the connection]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
BigRonnieRon has joined #ruby
BigRonnieRon has quit [Client Quit]
robustus|Off is now known as robustus
momomomomo has joined #ruby
gwendall has quit [Ping timeout: 255 seconds]
mistermocha has joined #ruby
dzejrou has quit [Read error: Connection reset by peer]
mello has quit [Ping timeout: 240 seconds]
mistermo_ has joined #ruby
kaen has joined #ruby
sorbo_ has joined #ruby
<kaen> Hi, I'm source diving to debug an issue with a colleague. Is there a way for a mere mortal to get the D "foo" output such as this: https://github.com/ruby/ruby/blob/7393bf6a5cfff63683f36535e293caaa0d4c5be0/lib/net/http.rb#L882
robustus is now known as robustus|Off
<kaen> with a release build?
fgo has quit [Ping timeout: 264 seconds]
<someword> i'm working on an exercise from exercism.io. Need to convert binary to decimal. I have a working solution at https://gist.github.com/anonymous/0e36f055a967c68900b4 - but i'm curious if anyone has any input on the 'to_decimal' method. Having the method guard against invalid input and then actually call the real conversion method. Does that seem 'normal' ? Any other things I should thing? TIA
symbol has quit [Quit: WeeChat 1.1]
<ljarvis> kaen: did you try with $DEBUG?
<kaen> I tried with DEBUG=true ruby ...
<kaen> didn't get anything
<kaen> also tried --debug
HayesHimself has quit [Ping timeout: 264 seconds]
<kaen> but only got the caught exceptions
rcvalle has joined #ruby
a1fa has joined #ruby
<TommyTheKid> lol
mistermocha has quit [Ping timeout: 256 seconds]
<TommyTheKid> thanks tho guys
ringarring has quit [Read error: Connection reset by peer]
gauke has quit [Quit: gauke]
casadei has joined #ruby
cryptarium has quit [Quit: Leaving]
<someword> TommyTheKid: Are you using an erb temlate to write your yaml file?
<a1fa> hello, for ruby apps that remain in a loop connected to a mysql database, is it better to connect to unix socket or over localhost?
<gregf_> >> [4.to_s(2), 100.to_s(10)];
<ruboto> gregf_ # => ["100", "100"] (https://eval.in/374390)
<TommyTheKid> someword: yes
<ljarvis> kaen: debug_output can be enabled with http.set_debug_output $stderr
<kaen> !
<ljarvis> :)
Tempesta has quit [Quit: Going offline, see ya! (( www.adiirc.com )]
<kaen> I thought it was like a global debugging macro
<kaen> thx
chussenot has joined #ruby
<someword> TommyTheKid: You played with the various options to remove/keep whitespace (<- vs <) ?
shadoi has quit [Quit: Leaving.]
<TommyTheKid> <%= @secrets.to_yaml %>
chussenot has quit [Client Quit]
catphish has joined #ruby
towski_ has quit [Remote host closed the connection]
rushed has joined #ruby
livathinos has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
livathinos has quit [Client Quit]
<TommyTheKid> like I told my co-workers, I know its still technically the same value, its just ugly ;)
chussenot has joined #ruby
<catphish> is it safe to call hash.delete(k) during hash.each{|k,v|}
<ljarvis> catphish: no
<TommyTheKid> someword: I am using <%=
<ljarvis> wait
<ljarvis> yes
<ljarvis> or no
<catphish> lol
mandarinkin has quit [Ping timeout: 258 seconds]
<ljarvis> did that help?
<TommyTheKid> heh
<adaedra> you're not supposed to modify something you're iterating through
<catphish> well it depends how the iteration works
<ljarvis> catphish: delete_if was invented for this reason
rushed has quit [Client Quit]
<jhass> someword: should probably cache the values for the last two methods
<someword> TommyTheKid: Maybe trying to manually write out a here document in the template?
<tbuehlmann> as this is similar to arrays, that's unexpected behaviour
<catphish> ljarvis: i'd use delete_if normally, but in this case i call out to another method that removes entries
gwendall has joined #ruby
sorbo_ has quit []
<jhass> someword: you may like Array.new with a block
<ljarvis> catphish: still do that, but have that method return true/false based on some criteria?
<someword> jhass: would it be best to create the variables in the initialize method or in the binary_to_decimal method?
snockerton has joined #ruby
<TommyTheKid> someword: that was what I was thinking. I can do a map, and detect the type (or length) of the value and deal with it that way
<catphish> ljarvis: the problem is that method already does the delete
<catphish> i can rework it
moretti has joined #ruby
moretti has quit [Read error: Connection reset by peer]
sandstrom has joined #ruby
<nmyster> catphish - I'd make a copy of it, modify the copy then use that
moretti has joined #ruby
moretti has quit [Read error: Connection reset by peer]
<catphish> thanks, i think i prefer to use a delete_if block, i'll make modifications elsewhere to accomodate that
<nmyster> i.e hashCopy = hash
<nmyster> hash.each do | k,v |
<nmyster> hashCopy.delete(k)
<nmyster> end
baweaver has joined #ruby
<jhass> someword: I'd keep them local to the method for these cases, not everybody agrees though
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
asmodlol has quit [Ping timeout: 240 seconds]
<ljarvis> nmyster: that isn't right
shadoi has joined #ruby
morissette has quit [Quit: Page closed]
iamninja has joined #ruby
<someword> jhass: Thanks for your input!
<ljarvis> nmyster: you probably want .clone
<ljarvis> but yeah, delete_if would be better either way
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jpfuentes2 has joined #ruby
<nmyster> yeah either way - my point is making a copy means your not adjusting the current hash your iterating
Tempesta has joined #ruby
asmodlol has joined #ruby
toretore has quit [Read error: Connection reset by peer]
<jhass> someword: you might also want to test with the input values "010foo" and "foo\n010"
toretore has joined #ruby
jpfuentes2 has quit [Read error: Connection reset by peer]
<someword> jhass: thanks - i'll add some tests right now
DoubleMalt has quit [Ping timeout: 256 seconds]
jpfuentes2 has joined #ruby
dudedudeman has quit [Remote host closed the connection]
Torrieri has quit [Quit: Lingo: www.lingoirc.com]
gwendall has quit []
rubie has joined #ruby
mistnim has left #ruby ["ERC (IRC client for Emacs 24.5.1)"]
fujimura_ has joined #ruby
serivichi has quit [Ping timeout: 272 seconds]
toertore has joined #ruby
edwinvdgraaf has quit [Ping timeout: 265 seconds]
toretore has quit [Read error: No route to host]
bzb has joined #ruby
Verrelia has joined #ruby
<izzol> It makes sense more or less?
lapide_viridi has quit [Quit: Leaving]
<nmyster> has anyone had any use of the ruby sonos gem
sigurding has joined #ruby
dfinning_ has joined #ruby
asmodlol has quit [Ping timeout: 265 seconds]
dfinninger has quit [Ping timeout: 258 seconds]
momomomomo has quit [Quit: momomomomo]
dudedudeman has joined #ruby
dudedudeman has quit [Changing host]
dudedudeman has joined #ruby
scripore has joined #ruby
fujimura_ has quit [Ping timeout: 244 seconds]
<mwlang> nmyster: that just makes me want to go out and buy a sonos speaker system. Looks like fun.
<nmyster> its great!
asmodlol has joined #ruby
<nmyster> however... i think it broke after latest sonos update
araujo has joined #ruby
BanzaiJoe has joined #ruby
<nmyster> In my office we have a sonos - I have developed a hipchat bot that lets you interact with Sonos via hipchat - pretty cool
<nmyster> but, it stopped working
Lucky__ has joined #ruby
allcentury has quit [Ping timeout: 250 seconds]
<txdv> who is sonos
<adaedra> damn hardware vendors who break everything with their updates
<nmyster> that, with the Spotify gem - https://github.com/Burgestrand/spotify - You can do something like #sonos{artist,Queen} and it would give you the top track for that artist has on spotify and if you replied #yes it would queue it to sonos
a1fa has left #ruby [#ruby]
<nmyster> I am fairly new to Ruby but I find the gems people have made actually make me love Ruby
Limix has joined #ruby
ndrei has joined #ruby
joneshf-laptop has quit [Killed (Sigyn (Spam is off topic on freenode.))]
<nmyster> Favourite gems so far are the Sonos one (pre-breaking), hue gem by same devs and spotify gem
wjimenez5271 has joined #ruby
<nmyster> messing with people in the office using irb > sonos.volume = 100 is always fun :P
tkuchiki has quit [Ping timeout: 255 seconds]
Channel6 has joined #ruby
<MrBeardy> get in touch with the maintainer and see if there's anything they can do to fix it
atmosx has quit [Quit: Lost in trance]
<MrBeardy> (maintainer of that gem*)
<MrBeardy> plus, for brownie points, you could research the problem before-hand and look through the code to see if you could spot any issues
commondream has joined #ruby
balazs_ has quit [Ping timeout: 265 seconds]
sigurding has quit [Quit: sigurding]
<nmyster> yeah i started doing that but got side tracked
<Senjai> jhass: I'm so proud....
<Senjai> the tears of joy are real
<jhass> :D
<Senjai> congrats on the merge
<jhass> thanks, all I wanted is to make #ruby the official channel :P
<txdv> official channel of what?
<adaedra> happiness
<Senjai> But will yorickpeterse still go on his rants in a more populated channel. #thatisthequestion
finisherr has joined #ruby
<adaedra> #HashtagsOnIRC
<MrBeardy> #ruby
<finisherr> So, what’s the recommended method of distributing a CLI application w/ a specific version of ruby and specfic bundles?
nmyster_ has joined #ruby
towski_ has joined #ruby
<adaedra> forcing the ruby version and gem version in Gemfile and let people install that?
<mwlang> do prediction.io engines have to be in scala, java, or python? or can they also be in Ruby?
toertore has quit [Read error: No route to host]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
toretore has joined #ruby
yardenbar has quit [Quit: Leaving]
woodruffw has joined #ruby
<dfockler> mwlang: looks like the core server is in scala
krz has joined #ruby
<jhass> is traveling ruby a thing already?
<jhass> finisherr: ^ look up if so
krz is now known as Guest96197
<havenwood> Even works on Win.
mrsolo has joined #ruby
<finisherr> I think vagrant bundles it’s own interpreter
kinduff has joined #ruby
<finisherr> but i’m not sure
momomomomo has joined #ruby
<finisherr> i basically just want the application to work without any harsh system dependencies
datanoise has joined #ruby
<finisherr> Will look into that
<finisherr> thanks
woodenna_ has joined #ruby
Musashi007 has joined #ruby
cpt_yossarian has quit [Ping timeout: 256 seconds]
<finisherr> Awesome, this looks great
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zendrix has joined #ruby
bootstrappm has joined #ruby
dfinning_ has quit [Remote host closed the connection]
xxneolithicxx has joined #ruby
paulcsmith has quit [Quit: Lingo: www.lingoirc.com]
skade has quit [Quit: Computer has gone to sleep.]
__butch__ has joined #ruby
AlexRussia has quit [Ping timeout: 244 seconds]
ddarkpassenger has joined #ruby
pietr0 has joined #ruby
__butch__1 has joined #ruby
RegulationD has joined #ruby
nmyster__ has joined #ruby
balazs has joined #ruby
<bootstrappm> morning
__butch__ has quit [Remote host closed the connection]
__butch__1 has quit [Remote host closed the connection]
balazs has quit [Remote host closed the connection]
balazs has joined #ruby
RegulationD has quit [Client Quit]
andikr has quit [Remote host closed the connection]
yalue has quit [Remote host closed the connection]
polysics has joined #ruby
jaequery has joined #ruby
jackjackdripper has joined #ruby
RegulationD has joined #ruby
nmyster has quit [Ping timeout: 245 seconds]
nmyster_ is now known as nmyster
RegulationD has quit [Remote host closed the connection]
ocx has quit [Quit: Page closed]
CloCkWeRX has joined #ruby
edwinvdgraaf has joined #ruby
dionysus69 has joined #ruby
<xxneolithicxx> evening
<jhass> !fact mk ugt it's morning, see http://www.total-knowledge.com/~ilya/mips/ugt.html
<ruboto> jhass, I will remember that ugt is it's morning, see http://www.total-knowledge.com/~ilya/mips/ugt.html
treehug8_ has joined #ruby
bricker has joined #ruby
DerisiveLogic has joined #ruby
DerisiveLogic has quit [Remote host closed the connection]
n008f4g_ has joined #ruby
timonv has quit [Ping timeout: 272 seconds]
vire has quit [Ping timeout: 265 seconds]
senayar has quit []
ghr has quit [Ping timeout: 276 seconds]
aryaching has quit [Ping timeout: 250 seconds]
edwinvdg_ has joined #ruby
<xxneolithicxx> lol
<xxneolithicxx> im afraid of ruboto
m0r0n has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
railsForDaiz has joined #ruby
rcvalle has quit [Quit: rcvalle]
edwinvdgraaf has quit [Ping timeout: 246 seconds]
<xxneolithicxx> if he ever becomes sentient hes going to be one hell of an admin
<jhass> yep
<m0r0n> Can someone tel me why the array list gets printed at the end of this program? http://pastebin.com/r3RNuX7U
<ruboto> m0r0n, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/26b9f242e77c1e97ef78
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
mrmargolis has quit [Remote host closed the connection]
ramfjord has joined #ruby
<jhass> what do you mean?
<jhass> do you run this in irb/pry?
mrmargolis has joined #ruby
mello has joined #ruby
<m0r0n> According to Codecademy, the output is "1112131415[1, 2, 3, 4, 5]"
<m0r0n> I expected everything but the array
devdazed_ has joined #ruby
<jhass> looks like they print the return value of the each call then
<jhass> which is the receiver, in this case the array
txdv has quit [Quit: leaving]
<jhass> >> [1, 2, 3].each do |x| print x; end.inspect
<ruboto> jhass # => 123"[1, 2, 3]" (https://eval.in/374396)
mister_solo has quit [Ping timeout: 272 seconds]
<jhass> where did you pick up "#{x}" btw?
<bootstrappm> m0r0n: that is, the array isn't actually in the output if you were to run that ruby program normally. The tool you're using to run it just happens to print the return value of the last line as well
pengin has joined #ruby
dfinninger has joined #ruby
insidious has quit [Ping timeout: 256 seconds]
<xxneolithicxx> its being "helpful", whatever it is you are using
devdazed has quit [Ping timeout: 245 seconds]
<m0r0n> bootstrappm, Okay. That clears it up. jhass, That was something Codecademy used, I didn't modify their code when I pasted
<jhass> ah, so that's where
<jhass> how sad
catphish has quit [Quit: Leaving]
<m0r0n> I hate Codecademy, but I need to rush through it to find some common syntax I don't know for an interview tomorrow
<jhass> m0r0n: "#{x}" with nothing before #{ or after } is an anti idiom, just call x.to_s if x isn't a string already, or in this case print x, print calls to_s for you
<jhass> ?quickref
ddarkpassenger has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rcvalle has joined #ruby
<m0r0n> jhass, Thanks. This looks cleaner
mello has quit [Ping timeout: 264 seconds]
ixti has quit [Ping timeout: 272 seconds]
<MrBeardy> m0r0n: You'd learn a lot more a lot faster from the pickaxe book than from the codeacademy tutorials
<m0r0n> and about the #{}, yeah I wasn't entirely sure why they did that
tsujp has quit [Quit: tsujp is snoozing]
<m0r0n> I'm actually learning Ruby on Rails via Rails 4 in Action
<m0r0n> then I realized I needed some more Ruby experience to get through it properly
sandstrom has quit [Quit: My computer has gone to sleep.]
n008f4g_ has quit [Ping timeout: 252 seconds]
zotherstupidguy has joined #ruby
<m0r0n> I'm rusty with hashes and blocks, at this point
sandstrom has joined #ruby
paulcsmith has joined #ruby
oo_ has quit [Remote host closed the connection]
mikecmpbll has quit [Ping timeout: 246 seconds]
AlphaAtom has joined #ruby
granthatcher has quit []
<MrBeardy> you should definitely take some time out to learn ruby fully on its own, rather than just as a by-product to learn rails
insidious has joined #ruby
Alayde has joined #ruby
allcentury has joined #ruby
<m0r0n> That's the best route, I admit. I just needed to get a couple interviews to see what people expect from a Jr. Dev
<bootstrappm> If you're just trying to make something quickly I disagree. If you learn ruby fully you'll be looking into stuff you'll likely never use (e.g. metaprogramming) if you're just gonna create little projects
<bootstrappm> pareto principle as in everything m0r0n
<bootstrappm> figure out the 20% you need to know
AlexRussia has joined #ruby
mello has joined #ruby
mello has joined #ruby
anisha has quit [Quit: Leaving]
<jhass> toyotas cars run on Ruby?
txrx has joined #ruby
AlphaAtom has quit [Ping timeout: 264 seconds]
kaen has quit [Quit: Page closed]
Trynemjoel has quit [Ping timeout: 272 seconds]
edwinvdg_ has quit [Remote host closed the connection]
<dfockler> no
MrBeardy has quit []
ahmetkapikiran has joined #ruby
Guest96197 has quit [Quit: WeeChat 1.0.1]
a346 has quit [Quit: a346]
<mwlang> hmmm…I like UGT timezone. Time.zone needs to implement “UGT” :-)
spider-mario has joined #ruby
krzkrz has joined #ruby
<bootstrappm> interesting article though
ahmetkapikiran has quit [Client Quit]
rdark has quit [Quit: leaving]
ixti has joined #ruby
bzb has quit [Read error: No route to host]
k3asd` has joined #ruby
nfk|laptop has quit [Ping timeout: 264 seconds]
langland_ has joined #ruby
__butch__ has joined #ruby
mmazing has joined #ruby
mmazing has joined #ruby
mmazing has quit [Changing host]
affenhoden has joined #ruby
iliketurtles has joined #ruby
M-Technic has joined #ruby
txrx has quit [Ping timeout: 256 seconds]
Langlands has quit [Ping timeout: 255 seconds]
<bootstrappm> I'm actually gonna hop off today to focus on a freelance project
<bootstrappm> peace all
<centrx> hip hip hop away
unshadow has joined #ruby
<BanzaiJoe> bootstrappm actually pareto principle would be m0r0m , hahaha, I crack myself up
<bootstrappm> haha palindrome principle :P
tubuliferous_ has joined #ruby
woodruffw has quit [Quit: And then he took off.]
seank_ has joined #ruby
woodruffw has joined #ruby
<mwlang> bootstrappm: I think I shall follow suit. trouble concentrating on the “real work” today.
<bootstrappm> yeah, sometimes you just need a little less multitasking mwlang
<bootstrappm> bye now
bootstrappm has left #ruby [#ruby]
mwlang has quit [Quit: mwlang]
zendrix has quit [Remote host closed the connection]
<chipotle> FIFA head is resigning!!
JohnBat26 has joined #ruby
skade has joined #ruby
<BanzaiJoe> the president?
<BanzaiJoe> Bam Splatter?
<adaedra> wasn't he elected like, two days ago?
<BanzaiJoe> yes
<chipotle> yes
<chipotle> a complete cunt
<adaedra> nvm
<BanzaiJoe> Sepp Blatter
<adaedra> I don't even know why I'm taking interest on this
<BanzaiJoe> because it's better than Game of Heroes or The Good Wife
<chipotle> because the level of corruption is insane
JEG2 has joined #ruby
<adaedra> Fifa runs under FAT32?
<BanzaiJoe> and it's been known for decades and it's vindicating to know the bad guys are going down
<BanzaiJoe> there's a first in first (a) joke in there somewhere....
<kinduff> mwlang: When called one time is morning, second time is night?
<adaedra> If only big corrupted guys could go down more often...
aclapinpepin has joined #ruby
xelim has quit [Quit: Leaving]
finisherr has quit [Quit: finisherr]
djbkd has joined #ruby
Scroff has joined #ruby
unshadow has quit [Quit: leaving]
bb010g has quit [Quit: Connection closed for inactivity]
sinkensabe has joined #ruby
zendrix has joined #ruby
jottr has quit [Ping timeout: 244 seconds]
allomov has quit [Remote host closed the connection]
nmyster__ has quit [Quit: Leaving...]
finisherr has joined #ruby
jpfuentes2 has joined #ruby
sinkensabe has quit [Remote host closed the connection]
jottr has joined #ruby
ghr has joined #ruby
wallerdev has joined #ruby
Scroff has quit [Ping timeout: 244 seconds]
symm- has joined #ruby
jerius has quit [Quit: /quit]
m0r0n has quit [Quit: Leaving]
[k- has quit [Quit: Lingo: www.lingoirc.com]
txrx has joined #ruby
failshell has quit [Remote host closed the connection]
spyderman4g63 has quit [Read error: Connection reset by peer]
hahuang65 has quit [Ping timeout: 256 seconds]
Torrieri has joined #ruby
Torrieri has joined #ruby
darkf has quit [Quit: Leaving]
spyderman4g63 has joined #ruby
ghr has quit [Ping timeout: 256 seconds]
momomomomo_ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
momomomomo has quit [Ping timeout: 264 seconds]
momomomomo_ is now known as momomomomo
rushed has joined #ruby
sinkensabe has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ghr has joined #ruby
lavros has quit [Quit: leaving]
mansel_ has quit [Max SendQ exceeded]
choke has joined #ruby
mansel has joined #ruby
sinkensabe has quit [Remote host closed the connection]
Hijiri has quit [Quit: WeeChat 1.0.1]
jottr has quit [Ping timeout: 265 seconds]
tibig has joined #ruby
Eiam has joined #ruby
mansel has quit [Max SendQ exceeded]
soulcake has quit [Quit: Quack.]
TheHodge has quit [Quit: Connection closed for inactivity]
mansel has joined #ruby
jenrzzz has joined #ruby
soulcake has joined #ruby
kies has quit [Ping timeout: 265 seconds]
kinduff has quit [Ping timeout: 250 seconds]
vickleton has joined #ruby
serivichi has joined #ruby
mansel has quit [Max SendQ exceeded]
jpfuentes2 has joined #ruby
jpfuentes2 has quit [Client Quit]
scripore has quit [Quit: This computer has gone to sleep]
mansel has joined #ruby
Torrieri has quit [Quit: Be back later ...]
hagabaka has quit [Quit: No Ping reply in 180 seconds.]
mansel has quit [Remote host closed the connection]
jpfuentes2 has joined #ruby
jpfuentes2 has quit [Client Quit]
woodenna_ has quit [Quit: Textual IRC Client: www.textualapp.com]
hagabaka has joined #ruby
MaikV has joined #ruby
jpfuentes2 has joined #ruby
jpfuentes2 has quit [Client Quit]
mansel has joined #ruby
ghr has quit [Ping timeout: 252 seconds]
txrx has quit [Quit: txrx]
sarkyniin has joined #ruby
msgodf has quit [Ping timeout: 265 seconds]
jespada has joined #ruby
scripore has joined #ruby
mansel has quit [Client Quit]
mansel has joined #ruby
moretti has joined #ruby
jpfuentes2 has joined #ruby
moretti has quit [Client Quit]
rushed has quit [Quit: rushed]
gr33n7007h has joined #ruby
joaomdmoura has joined #ruby
gr33n7007h has quit [Client Quit]
al2o3-cr has quit [Ping timeout: 276 seconds]
al2o3-cr has joined #ruby
benanne has joined #ruby
moretti has joined #ruby
imperator has quit [Quit: This computer has gone to sleep]
_seanc_ has joined #ruby
Spami has joined #ruby
Zai00 has quit [Quit: Zai00]
riffraff has joined #ruby
dfinninger has quit [Remote host closed the connection]
jerius has joined #ruby
rushed has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
phantasm66 has joined #ruby
sinkensabe has joined #ruby
mrsolo has joined #ruby
Simon_ has joined #ruby
mwlang has joined #ruby
<Simon_> Hello
<jhass> hi
charliesome has quit [Quit: zzz]
<mwlang> How to I get this to give me every match, not just the first match? https://gist.github.com/mwlang/a72550bea798482e5eab
mikecmpbll has joined #ruby
<jhass> mwlang: scan?
platzhirsch has left #ruby [#ruby]
<mwlang> jhass: geez. too stupid simple.
dopie has quit [Quit: This computer has gone to sleep]
<Simon_> So, I'm looking at getting into programming/web development, I'm looking at the online courses that focus on RoR - Are they any good?
<havenwood> ?rails Simon_
<ruboto> Simon_, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
kies has joined #ruby
<mwlang> the day is only half gone and I’m already slippin’.
phantasm66 has quit [Client Quit]
twinklehood has quit [Ping timeout: 245 seconds]
sinkensabe has quit [Remote host closed the connection]
blue_deref has joined #ruby
argyro has joined #ruby
<havenwood> Simon_: Do learn Ruby! \o/ This is a great place for Ruby questions or feedback.
mujou has quit [Quit: Leaving...]
sinkensabe has joined #ruby
aaeron has joined #ruby
argyro has quit [Client Quit]
railsForDaiz has quit [Read error: Connection reset by peer]
baweaver_ has joined #ruby
fujimura_ has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
Simon_ has quit [Ping timeout: 246 seconds]
baweaver_ has quit [Remote host closed the connection]
baweaver_ has joined #ruby
baweaver_ has quit [Remote host closed the connection]
Channel6 has quit [Quit: Leaving]
revath has joined #ruby
peteykun has quit [Ping timeout: 245 seconds]
davedev2_ has joined #ruby
CustosLimen has quit [Ping timeout: 258 seconds]
peteykun has joined #ruby
joaomdmoura has quit [Read error: Connection reset by peer]
fujimura_ has quit [Ping timeout: 255 seconds]
davedev24_ has quit [Ping timeout: 256 seconds]
langland_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
clauswitt has joined #ruby
joneshf-laptop has joined #ruby
aaeron has quit [Quit: aaeron]
choke has left #ruby ["Textual IRC Client: www.textualapp.com"]
Igorshp has joined #ruby
choke has joined #ruby
hahuang65 has joined #ruby
Torrieri has joined #ruby
Torrieri has joined #ruby
jerius has quit [Quit: /quit]
momomomomo has quit [Quit: momomomomo]
finisherr has quit [Quit: finisherr]
mmazing has quit [Ping timeout: 245 seconds]
ramfjord has quit [Ping timeout: 264 seconds]
aaeron has joined #ruby
nonparfumee has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
serivichi has quit [Ping timeout: 244 seconds]
failshell has joined #ruby
finisherr has joined #ruby
ndrei_ has joined #ruby
apt-get_ has joined #ruby
insidious has quit [Ping timeout: 246 seconds]
dfinninger has joined #ruby
baweaver_ has joined #ruby
aryaching has joined #ruby
sinkensabe has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
phale has joined #ruby
joaomdmoura has joined #ruby
<phale> I'm here to help.
sinkensabe has joined #ruby
jerius has joined #ruby
nahtnam has quit [Quit: Connection closed for inactivity]
<centrx> phale, Get me a coffee!
<phale> centrx: Will do
Scroff has joined #ruby
mrsolo has quit [Quit: Leaving]
ljhooker has joined #ruby
mrsolo has joined #ruby
<phale> >> def get_coffee(who) print "Gives coffee to: #{who}"; end; get_coffee("centrx");
<ruboto> phale # => Gives coffee to: centrxnil (https://eval.in/374434)
zz_twistedpixels is now known as twistedpixels
CustosLimen has joined #ruby
sarkyniin has quit [Ping timeout: 244 seconds]
ndrei has quit [Ping timeout: 265 seconds]
sinkensabe has quit [Remote host closed the connection]
jhooker has joined #ruby
aryaching has quit [Client Quit]
scripore has joined #ruby
joaomdmoura has quit [Max SendQ exceeded]
MaikV has quit [Ping timeout: 256 seconds]
<Darkwater> >> "\x037hi"
<ruboto> Darkwater # => "\u00037hi" (https://eval.in/374435)
<Darkwater> aw
RegulationD has joined #ruby
edwinvdgraaf has joined #ruby
<phale> Darkwater: Don't use the Ruby bot for your own purposes (unless it's demonstrative)
riffraff has quit [Quit: This computer has gone to sleep]
<Darkwater> wanted to see if I could make it output irc colors
<Darkwater> but I guess the channel is +c'd anyway so meh
marr has quit [Ping timeout: 240 seconds]
withnale_ has quit [Ping timeout: 265 seconds]
sinkensabe has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
zendrix has quit [Remote host closed the connection]
arBmind1 has quit [Quit: Leaving.]
Igorshp has quit [Remote host closed the connection]
baweaver_ has quit [Remote host closed the connection]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Xiti` has quit [Quit: Xiti`]
failshell has quit []
Xiti has joined #ruby
yfeldblum has joined #ruby
riffraff has joined #ruby
aaeron has quit [Quit: aaeron]
zendrix has joined #ruby
aaeron has joined #ruby
sinkensabe has quit [Remote host closed the connection]
apt-get_ has quit [Quit: Quit]
moretti has quit [Quit: Leaving...]
jgoyon has joined #ruby
jottr has joined #ruby
dfinning_ has joined #ruby
rrichardsr3 has joined #ruby
Vile` has quit [Ping timeout: 256 seconds]
jaequery has joined #ruby
moretti has joined #ruby
VinnyBoy has joined #ruby
dfinninger has quit [Ping timeout: 240 seconds]
mistermo_ is now known as mistermocha
chadwtaylor has joined #ruby
SegFaultAX has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
Respek has joined #ruby
Torrieri has quit [Quit: Be back later ...]
chussenot has quit [Ping timeout: 272 seconds]
duderonomy has quit [Ping timeout: 272 seconds]
ramfjord has joined #ruby
MaikV has joined #ruby
speakingcode has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jaequery has quit [Ping timeout: 246 seconds]
nonparfumee has joined #ruby
chouhoul_ has joined #ruby
woodruffw has quit [Ping timeout: 246 seconds]
imperator has joined #ruby
x1337807x has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
Igorshp has joined #ruby
matp has joined #ruby
ta has joined #ruby
chouhoul_ has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
baweaver_ has joined #ruby
chouhoulis has quit [Read error: Connection reset by peer]
baweaver_ has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
jaequery has joined #ruby
dopie has joined #ruby
jaequery has quit [Client Quit]
quimrstorres has quit [Remote host closed the connection]
elev has joined #ruby
edwinvdgraaf has joined #ruby
DoubleMalt has joined #ruby
woodruffw has joined #ruby
quimrstorres has joined #ruby
Vile` has joined #ruby
ta has quit [Remote host closed the connection]
Igorshp has quit [Ping timeout: 245 seconds]
ta has joined #ruby
jsaak has quit [Ping timeout: 252 seconds]
zendrix has quit [Remote host closed the connection]
jsaak has joined #ruby
<elev> I will reconnect, god issues
elev has left #ruby [#ruby]
baweaver_ has joined #ruby
timonv has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 265 seconds]
Master44 has joined #ruby
<Master44> Whats the different of using "#{}" or just the variable?"
speaking1ode has quit [Quit: leaving]
edwinvdgraaf has joined #ruby
<baweaver_> The former calls to_s
<baweaver_> >> "#{1}"
<ruboto> baweaver_ # => "1" (https://eval.in/374452)
<baweaver_> >> 1
<ruboto> baweaver_ # => 1 (https://eval.in/374453)
<Master44> ok ok
<Master44> and the()?
<baweaver_> ...?
quimrstorres has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
<TommyTheKid> is it OK to ask a question about rails here too?
aclapinpepin has quit [Ping timeout: 252 seconds]
<baweaver_> #RubyOnRails TommyTheKid
<TommyTheKid> thx
<Master44> h = 1
<Master44> h
<Master44> puts h
<Master44> puts "#{1}"
<Master44> puts (1)
<Master44> so puts h and puts (h) its the same=
<baweaver_> Ruby infers them, and try not to post multi-line code
<Master44> yes ok
simi has joined #ruby
<baweaver_> Use gist for that
<baweaver_> There ARE cases where that'll bite you
<Master44> so what does the () do?
<baweaver_> What does it do in other languages?
<Master44> ye
<Master44> well thanks :)
<baweaver_> Ruby just infers them
<baweaver_> (most of the time)
jaequery has joined #ruby
<baweaver_> The edge case is with blocks: array.reduce 0 do |acc, i| ... end
<baweaver_> that's fine
<baweaver_> >> [1,2,3].reduce 0 do |acc, i| acc + i end
michael_mbp has joined #ruby
<ruboto> baweaver_ # => 6 (https://eval.in/374454)
MaikV has quit [Ping timeout: 265 seconds]
<baweaver_> but
<Master44> I only know ruby
<Master44>
<Master44> I am new to programming
<Master44>
jsaak has quit [Ping timeout: 252 seconds]
yqt has joined #ruby
<baweaver_> >> [1,2,3].reduce 0 { |acc, i| acc + i }
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ruboto> baweaver_ # => /tmp/execpad-316c73f57ac1/source-316c73f57ac1:2: syntax error, unexpected '{', expecting keyword_end ...check link for more (https://eval.in/374455)
<miah> () limits scope basically
<baweaver_> that's the case where it needs them for agruments to distinguish from a block
<baweaver_> >> [1,2,3].reduce(0) { |acc, i| acc + i }
<ruboto> baweaver_ # => 6 (https://eval.in/374456)
<miah> and most of the time its not needed, but often times its helpful
aclapinpepin has joined #ruby
jaequery_ has joined #ruby
jsaak has joined #ruby
allcentury has quit [Ping timeout: 252 seconds]
<Master44> miah?
<Master44> this sign: () What does insert mean?
jottr_ has joined #ruby
jottr has quit [Read error: Connection reset by peer]
<miah> () by itself is nothing
<miah> >> 1 + ( 2 * 4 )
<ruboto> miah # => 9 (https://eval.in/374457)
edwinvdgraaf has quit [Remote host closed the connection]
<baweaver_> >> 1 + 2 * 4
<ruboto> baweaver_ # => 9 (https://eval.in/374458)
<havenwood> >> ().class
<ruboto> havenwood # => NilClass (https://eval.in/374459)
<baweaver_> >> (1 + 2) * 4
<ruboto> baweaver_ # => 12 (https://eval.in/374460)
canton7 has quit [Quit: ZNC - http://znc.in]
rushed has quit [Quit: rushed]
<mwlang> for regex, how do I say “consume everything up-to the word ‘Processing”?
canton7 has joined #ruby
canton7 has quit [Changing host]
canton7 has joined #ruby
jaequery has quit [Ping timeout: 265 seconds]
<Master44> sook
<miah> /.*Processing/
edwinvdgraaf has joined #ruby
<Master44> so when i write I never use ()
<Master44> kike in ""
<havenwood> mwlang: negative lookahead
<Master44> ok got it ty
<miah> the only times i use () is when im defining a method that has arguments, or i'm calling a method with arguments. im sure there are others but those are the ones that stand out
baroquebobcat has quit [Quit: baroquebobcat]
<baweaver_> Basically go out and program something, you'll find out pretty fast.
<miah> but even when im calling a method that has arguments, using () isnt required. i just do it for cleanliness
shadoi has quit [Quit: Leaving.]
baroquebobcat has joined #ruby
<baweaver_> miah: Not an adherent of Seattle style eh?
<miah> ya, that. go write some code
choke has joined #ruby
momomomomo has joined #ruby
<miah> i guess not? =)
tlarevo has joined #ruby
n0f3 has joined #ruby
<baweaver_> def method args, have, no, parens
<miah> eloquent ruby and rsg have been my bibles
x1337807x has joined #ruby
<baweaver_> that's Seattle style
<Master44> I did baweaver, thats why I asked I saw a video and he used () just wonted to know why he did
dfinning_ has quit [Read error: Connection reset by peer]
<miah> ya
lapide_viridi has joined #ruby
<baweaver_> though I'm sure zenspider is cringing at me saying that
<havenwood> mwlang: i mean positive lookahead
dfinninger has joined #ruby
<Master44> :D
<mwlang> havenwood: ah….I was reading up on negative lookahead and it wasn’t making sense.
<havenwood> >> "stuff to be Processing and so on"[/.*(?=Processing)/]
<ruboto> havenwood # => "stuff to be " (https://eval.in/374462)
<havenwood> baweaver_: hehe
<baweaver_> I'm a blob of memes, puns, and ruby knowledge.
Aswebb_ has joined #ruby
<baweaver_> hm, it appears I forgot to logout at home
<baweaver_> fun, so no rails channel today
<havenwood> mwlang: partition(/Processing/).first
<miah> i ssh to a node on the internets and run irc in tmux. no 'logging out at home' required =)
moretti has quit [Quit: Leaving...]
<jhass> baweaver_: just ghost yourself?
<mwlang> but when the flow is something other than going from Processing to Processing (say Exception error), the flow breaks).
<baweaver_> jhass: Lazy / forget to do it
edwinvdgraaf has quit [Remote host closed the connection]
kirun has joined #ruby
<havenwood> mwlang: positive and negative lookaheads and lookbehinds can be handy
<Master44> derp
<havenwood> mwlang: just a matter of keeping track of which is which ;)
<jhass> baweaver_: /ns ghost baweaver hunter2
lapide_viridi has quit [Client Quit]
<mwlang> so the new strategy is to just consume until I hit “Processing”.
baweaver has quit [Disconnected by services]
<baweaver_> huh
<baweaver_> TIL
Alayde has left #ruby ["WeeChat 1.1.1"]
paulcsmith has quit [Quit: Lingo: www.lingoirc.com]
<baweaver_> jhass: The fact that I understand where hunter2 came from...
baweaver has joined #ruby
tlarevo has quit []
jhooker has quit [Ping timeout: 255 seconds]
edwinvdgraaf has joined #ruby
thomasvm_ has quit [Remote host closed the connection]
<baweaver_> Also comcast is being a pain so fair warning
<baweaver_> you might see a lot of comcast users flickering on channel today.
dfockler has quit [Remote host closed the connection]
<havenwood> mwlang: Dunno, maybe a case for StringScanner?: http://ruby-doc.org/stdlib/libdoc/strscan/rdoc/StringScanner.html
allcentury has joined #ruby
Langlands has joined #ruby
moretti has joined #ruby
dseitz has joined #ruby
a346 has joined #ruby
<Master44> to_a means to array right?
<phale> master44: yes
<mwlang> havenwood: that’s a new one to me. Let me experiment a bit I haven’t used lookarounds before (other than stealing other people’s ideas), so this is a learning exercise for me.
Hijiri has joined #ruby
zendrix has joined #ruby
<adaedra> <baweaver_> Also comcast is being a pain so fair warning
<adaedra> according to the internet, isn't that /always/ true
jhooker has joined #ruby
<baweaver_> Moreso than usual
<adaedra> :D
<jhass> baweaver_: btw you should also be able to identify regardless of your current nick, just be explicit: /ns identify baweaver hunter2
momomomomo has quit [Ping timeout: 265 seconds]
<baweaver_> touchy thing
Vile` has quit [Ping timeout: 256 seconds]
jerius has quit [Quit: /quit]
hazelux has joined #ruby
* jhass goes back to #freenode
<phale> jhass: Hey, let's not go off-topic.
sdwrage has quit [Quit: This computer has gone to sleep]
momomomomo has joined #ruby
<baweaver_> I'll just kick the thing when I get back home.
Torrieri has joined #ruby
Langlands has quit [Ping timeout: 276 seconds]
commondream has quit [Remote host closed the connection]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jgoyon has quit []
jottr has joined #ruby
<phale> Nothing against you, just enforcing the rules.
Vile` has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jottr has quit [Read error: Connection reset by peer]
zendrix has quit [Remote host closed the connection]
jerius has joined #ruby
jottr has joined #ruby
choke has joined #ruby
jottr_ has quit [Ping timeout: 276 seconds]
juni0r has quit [Ping timeout: 276 seconds]
CustosLimen has quit [Ping timeout: 240 seconds]
sdwrage has joined #ruby
jcaho has quit [Read error: Connection reset by peer]
baweaver_ is now known as baweaver|work
huddy has quit [Quit: Connection closed for inactivity]
jcaho has joined #ruby
dzejrou has joined #ruby
zendrix has joined #ruby
commondream has joined #ruby
phale has quit [Remote host closed the connection]
duderonomy has joined #ruby
<mwlang> this regex almost does it, except it gets everything up to the last Processing line in the file: %r{.*(?=Processing)?Processing\s([\w|#]+)\s\(for\s([\d|\.]+)[^\)]+\)\s\[(\w+)\]\n}
baweaver|work has quit [Remote host closed the connection]
spyderman4g63 has quit [Read error: Connection reset by peer]
CustosLimen has joined #ruby
<jhass> mwlang: read up on greedy vs non-greedy
<mwlang> so I reckon what I need is “less greedy” and match on first occurrance.
Master44 has quit [Quit: Lost terminal]
joaomdmoura has joined #ruby
spyderman4g63 has joined #ruby
<mwlang> jhass: ok, that confirms I’m on the right track...
<jhass> >> "fooabara"[/.*a/]
<ruboto> jhass # => "fooabara" (https://eval.in/374469)
<jhass> >> "fooabara"[/.*?a/]
edwinvdgraaf has quit [Remote host closed the connection]
<ruboto> jhass # => "fooa" (https://eval.in/374470)
chussenot has joined #ruby
sdwrage has quit [Ping timeout: 258 seconds]
commondream has quit [Remote host closed the connection]
arBmind has joined #ruby
edwinvdgraaf has joined #ruby
commondream has joined #ruby
duderonomy has quit [Ping timeout: 246 seconds]
nunayerBeezwax has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jgpawletko has quit [Quit: jgpawletko]
jpfuentes2 has joined #ruby
jpfuentes2 has quit [Client Quit]
Torrieri has quit [Quit: Be back later ...]
n008f4g_ has joined #ruby
jenrzzz has joined #ruby
jpfuentes2 has joined #ruby
simi has quit [Ping timeout: 265 seconds]
skade has quit [Quit: Computer has gone to sleep.]
kadoppe has quit [Ping timeout: 258 seconds]
peak has joined #ruby
peak has left #ruby [#ruby]
kadoppe has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Scroff has quit [Remote host closed the connection]
balazs has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
<aaeron> hi. I have a hash like this - myHash = { :first => { :color => [‘red’]}, :second => {:color => [‘blue’]}}
<aaeron> I want to call myHash and get the value using
thiagofm has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
<aaeron> myHash[myValue] #myValue = first
<aaeron> and not use myHash[:first]
<aaeron> Is there a way to do this?
<jhass> >> my_hash = {first: {color: %w(red)}, second: {color: %w(blue)}; my_hash[:second][:color]
<ruboto> jhass # => /tmp/execpad-67bcd44fe2b0/source-67bcd44fe2b0:2: syntax error, unexpected ';', expecting '}' ...check link for more (https://eval.in/374476)
<jhass> meh
<jhass> >> my_hash = {first: {color: %w(red)}, second: {color: %w(blue)}}; my_hash[:second][:color]
<ruboto> jhass # => ["blue"] (https://eval.in/374477)
<jhass> >> my_hash = {first: {color: %w(red)}, second: {color: %w(blue)}}; my_hash[:second][:color].first
edwinvdgraaf has joined #ruby
<ruboto> jhass # => "blue" (https://eval.in/374478)
sandstrom has quit [Quit: My computer has gone to sleep.]
<yxhuvvd> aaeron: my_hash[my_hash.keys.first]
<jhass> >> my_hash = {first: {color: %w(red)}, second: {color: %w(blue)}}; my_value = :first; my_hash[my_value][:color].first
<ruboto> jhass # => "red" (https://eval.in/374479)
jfarmer has joined #ruby
<jhass> if that doesn't help
<jhass> ?fake
<ruboto> Please show your real code to illustrate your problem. Using fake code often hides it or won't bring up the best possible solution.
<aaeron> This is the real code
<aaeron> Just different values
<jhass> so question answered then?
<mwlang> Is there a better way to say “\r?\n” for EOL? “$” doesn’t seem to work.
<mwlang> sometimes I’ll have a file with \r\n and other times I’ll have \n only.
jaequery_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
podman has joined #ruby
<aaeron> jhass - > checking
<jhass> yeah, $ matches \n only (and doesn't consume it) iirc
bluOxigen has joined #ruby
<jhass> /\r?\n/ is common, not off the track there
<aaeron> jhass
duderonomy has joined #ruby
victortyau has joined #ruby
<aaeron> I have a limitation of having the key as a variable
<aaeron> my_hash[my_value][:color].first
<jhass> so does my last example
<aaeron> Cannot have .first
<aaeron> in the end
<jhass> but?
<jhass> that just gets the first item of your array
<jhass> >> my_hash = {first: {color: %w(red)}, second: {color: %w(blue)}}; my_value = :first; item_number = 0; my_hash[my_value][:color][item_number]
<ruboto> jhass # => "red" (https://eval.in/374480)
<jfarmer> aaeron I missed your question/code — what is it?
caseypat_ has joined #ruby
<mwlang> jhass: havenwood: thanks for the steering. Got it all working nicely now.
<aaeron> jhass
Kricir has quit [Remote host closed the connection]
Scroff has joined #ruby
<aaeron> my_value = :first
<aaeron> my_value = first
<aaeron> I think there is a difference in this
yfeldblum has quit [Ping timeout: 265 seconds]
<jhass> aaeron: yes, the later assigns my_value the value of the variable or method first
riffraff has quit [Quit: Leaving]
icarus has joined #ruby
<jfarmer> aaeron :first is a Symbol literal — a Symbol is a data type in Ruby like a String, Integer, Array, Hash, etc.
<aaeron> ok
<aaeron> The second is a variable assignment
<jfarmer> so there's as much difference between those two lines as there is between
<jfarmer> my_value = "first"
<jfarmer> my_value = first
<aaeron> Yep
<aaeron> my question is : I have a hash
codeFiend has joined #ruby
<aaeron> myHash = { :first => { :color => [
<aaeron> red
<aaeron> myHash = { :first => { :color => [‘red’, ‘green’]}, :second => {:color => [‘blue’]}}
<aaeron> I want to call myHash using
caseypatrickdris has quit [Ping timeout: 265 seconds]
<aaeron> variable = “first"
<havenwood> mwlang: Commented on your gist with the requisite Regexp-free version: https://gist.github.com/mwlang/a72550bea798482e5eab
<aaeron> myHash[variable][:color]
<jfarmer> aaeron Symbols and Strings are different
<jfarmer> :first != "first"
imperator has left #ruby ["Leaving"]
<aaeron> Yes
commondream has quit [Remote host closed the connection]
<aaeron> I got that poiny
iliketurtles has quit [Quit: zzzzz…..]
<aaeron> point
<finisherr> can open-uri return the response object so i can query for the retern code?
<finisherr> s/retern/return
sarkyniin has joined #ruby
<jfarmer> >> myHash = {:first => [1, 2, 3]}; variable = :first; myHash[:first]
ScriptGeek has quit [Quit: Leaving.]
<ruboto> jfarmer # => [1, 2, 3] (https://eval.in/374483)
<jfarmer> Oops
<jhass> aaeron: why do you have a string?
<jfarmer> >> myHash = {:first => [1, 2, 3]}; variable = :first; myHash[variable]
<ruboto> jfarmer # => [1, 2, 3] (https://eval.in/374484)
<jhass> and a symbol as key?
dblessing has joined #ruby
<mwlang> havenwood: interesting…but does that handle Exception Reporting and random log emissions mixed in with all the Processing lines?
<aaeron> Oh. I can have a string as the key
<aaeron> ?
<aaeron> I want to have only one
<havenwood> mwlang: All the varieties in your example at least.
<havenwood> mwlang: It ignores beyond the Parameters line.
<mwlang> havenwood: ah. Yeah, it were that simple, I’d already be done. :-)
pengin has quit [Remote host closed the connection]
<jfarmer> aaeron Do you have a self-contained example of what you're trying to do and why it isn't working?
<aaeron> jhass
<aaeron> jfarmer
pulgolino has quit [Quit: WeeChat 0.4.2]
zendrix has quit [Remote host closed the connection]
<jfarmer> aaeron
<aaeron> got the solution
<aaeron> Thanks a lot
<jfarmer> heh
<aaeron> colos = {'first' => {'color' => ['red']}}
pulgolino has joined #ruby
<mwlang> havenwood: I use your approach more often than not.
<aaeron> test = 'first'
<aaeron> test_a = 'color'
<aaeron> puts ": #{test_method[test][test_a]}"
<aaeron> thanks a lot for the explanation
<havenwood> mwlang: Always nice to compare the regexp and non-regexp solutions.
zendrix has joined #ruby
<mwlang> easier to read and debug….reg-exps take some patience to grok
<aaeron> Because of u guys I am learning Ruby quicker
<aaeron> :)
<aaeron> thanks a lot jhass and jfarmer
rindolf has joined #ruby
<rindolf> Hi all.
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<mwlang> havenwood: I added more of the log data. and cleaned up the gist a bit.
iamjarvo has joined #ruby
zendrix has quit [Remote host closed the connection]
marr has joined #ruby
edwinvdg_ has joined #ruby
Hijiri has quit [Quit: WeeChat 1.0.1]
<havenwood> mwlang: Updated code to work.
<havenwood> mwlang: Sec and I'll make it nicer.
<mwlang> havenwood: verb: verb.delete('[]'), <== I like this. Clean way of throwing away garbage.
rindolf has quit [Quit: http://www.shlomifish.org/ ; Yay! I'm a llama again.]
last_staff has joined #ruby
edwinvdgraaf has quit [Ping timeout: 255 seconds]
konr has quit [Quit: Connection closed for inactivity]
cmisenas has joined #ruby
tvw has quit []
<havenwood> mwlang: aye
Torrieri has joined #ruby
fujimura has joined #ruby
<havenwood> mwlang: Oops, I was about to introduce a Regexp! :O Abort
victorkohl has quit [Quit: Page closed]
jottr_ has joined #ruby
choke has joined #ruby
jottr_ has quit [Client Quit]
<mwlang> :-)
j4cknewt has quit [Remote host closed the connection]
sandstrom has joined #ruby
commondream has joined #ruby
lele is now known as Guest24
Zai00 has joined #ruby
jottr has quit [Ping timeout: 272 seconds]
towski__ has joined #ruby
fujimura has quit [Ping timeout: 256 seconds]
blackmesa has joined #ruby
symm- has quit [Ping timeout: 244 seconds]
nonparfumee has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
scripore has joined #ruby
tcopeland has joined #ruby
tcopeland has quit [Client Quit]
<ljarvis> yorickpeterse: yo stahp with python style embedded docs :(
phutchins has quit [Ping timeout: 264 seconds]
towski_ has quit [Ping timeout: 256 seconds]
freerobby has quit [Quit: Leaving.]
vikaton has quit []
rubie has quit [Remote host closed the connection]
elia has joined #ruby
Channel6 has joined #ruby
symm- has joined #ruby
<Verrelia> havenwood, Noticed you were in #elixir-lang. You also learning it?..
<ytti> super excited about elixir and rust
b_hoffman has joined #ruby
<havenwood> Verrelia: Yup, really enjoying Elixir.
rrichardsr3 has quit [Read error: Connection reset by peer]
<ytti> too bad won't have much time for programming in near future
towski_ has joined #ruby
rushed has joined #ruby
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
vikaton has joined #ruby
skade has joined #ruby
freerobby has joined #ruby
diegoviola has joined #ruby
<Verrelia> What is it that you guys found interesting about Elixir?
<diegoviola> just went to some work at some shop and it looks like they expect me to use windows, I asked if I can use Linux myself and they said "You'll have to use a VM"
ramfjord has quit [Ping timeout: 244 seconds]
<diegoviola> they're even using PHP it seems
dfockler has joined #ruby
<surrounder> what's wrong with a vm ?
towski__ has quit [Ping timeout: 265 seconds]
<diegoviola> I wonder if it could be worse
joaomdmoura has quit [Max SendQ exceeded]
<diegoviola> surrounder: well, it took me 20 minutes to get Arch up and running in a vm
<surrounder> so get a decent OS
<miah> just fullscreen your vm and live in it =)
<surrounder> still, don't understand what's wrong with having your *nix tools in a vm if the hardware's up to it
<diegoviola> surrounder: Arch is great, I'm not complaining about the 20 minutes
<surrounder> you just did
<diegoviola> no, I didn't
b_hoffman has left #ruby [#ruby]
commondream has quit [Remote host closed the connection]
<diegoviola> I'm complaining about the fact they won't let me install it on bare metal
<diegoviola> and Windows is horrible as a host OS
<surrounder> meh
momomomomo_ has joined #ruby
_seanc_ has quit [Quit: _seanc_]
<surrounder> don't notice a difference really
momomomomo has quit [Ping timeout: 256 seconds]
momomomomo_ is now known as momomomomo
<diegoviola> I could actually barely notice the difference when I full screen Arch
rubie has joined #ruby
<surrounder> good then
commondream has joined #ruby
finisherr has quit [Quit: finisherr]
<dfockler> does the GServer class still exist in ruby 2.1
pengin has joined #ruby
nfk|laptop has joined #ruby
shadoi has joined #ruby
<ljarvis> dfockler: no
<yxhuvvd> diego: so why are you working at such a place?
xaocon has joined #ruby
<havenwood> 21>> require 'gserver'
<ruboto> havenwood # => true (https://eval.in/374506)
<ljarvis> dfockler: ugh, it's 2.2 it's gone
<ljarvis> so yes ^
Hijiri has joined #ruby
<ljarvis> >> require 'gserver'
<ruboto> ljarvis # => cannot load such file -- gserver (LoadError) ...check link for more (https://eval.in/374507)
mrmargol_ has joined #ruby
<dfockler> did they replace it, or just remove it?
<ljarvis> it's a rubygem
<dfockler> ahh ok, makes sense
<dfockler> the idea is nice, I guess the implementation was not
Igorshp has joined #ruby
ramfjord has joined #ruby
atmosx has joined #ruby
mrmargolis has quit [Ping timeout: 256 seconds]
neanderslob has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 1.2]
ur5us has joined #ruby
iliketurtles has joined #ruby
delianides has quit []
aclapinpepin has quit [Ping timeout: 246 seconds]
decoponio has quit [Quit: Leaving...]
hazelux has quit [Remote host closed the connection]
balazs has joined #ruby
jhooker has quit [Quit: Leaving]
Guest24 is now known as lele
Zai00 has quit [Quit: Zai00]
xaocon has left #ruby ["WeeChat 1.2"]
symbol has joined #ruby
jaequery has joined #ruby
Matachines has joined #ruby
x1337807x has joined #ruby
baweaver|work has joined #ruby
workmad3 has joined #ruby
bb010g has joined #ruby
nonparfumee has joined #ruby
asmodlol has quit [Ping timeout: 256 seconds]
apt-get_ has joined #ruby
finisherr has joined #ruby
rushed has quit [Quit: rushed]
zendrix has joined #ruby
yfeldblum has joined #ruby
baweaver|work has quit [Remote host closed the connection]
asmodlol has joined #ruby
tjbiddle has joined #ruby
naftilos76 has joined #ruby
sarkyniin has quit [Ping timeout: 256 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
xaocon has joined #ruby
yh has quit [Ping timeout: 265 seconds]
nunayerBeezwax has quit []
towski__ has joined #ruby
commondream has quit [Remote host closed the connection]
baweaver|work has joined #ruby
nedp has quit [Remote host closed the connection]
<xaocon> I'm very new to ruby and just made a gem. I am looking for any advice on it, from suggestions about ruby idioms to poor code. https://github.com/xaocon/carbonblack
towski_ has quit [Ping timeout: 256 seconds]
casadei has quit [Remote host closed the connection]
Channel6 has quit [Quit: Leaving]
zendrix has quit [Remote host closed the connection]
ramfjord has quit [Read error: Connection reset by peer]
spectra- has joined #ruby
revath has quit [Read error: Connection reset by peer]
yh has joined #ruby
umgrosscol has quit [Quit: Quit]
<jhass> xaocon: usage examples in the readme make a great gem for starters ;)
pengin has quit [Remote host closed the connection]
mello has quit [Quit: Lost terminal]
vivekananda has quit [Ping timeout: 265 seconds]
<miah> xaocon: check out 'rubocop'
<miah> ?rubocop
<ruboto> I don't know anything about rubocop
<ddfreyne> Rubocop is <3
<jhass> xaocon: require outside and inside a class makes no difference, just put all at the top
<jhass> I disagree
<miah> ?fact add rubocop https://github.com/bbatsov/rubocop
<ruboto> add, I don't know anything about fact
Igorshp has quit [Read error: Connection reset by peer]
baweaver|work has quit [Remote host closed the connection]
<miah> why you no love me
zendrix has joined #ruby
<jhass> !fact
<miah> doh
<miah> !fact add rubocop https://github.com/bbatsov/rubocop
<jhass> xaocon: ruby community standard is 2 spaces for indentation
<jfarmer> xaocon Ruby code should always be indented 2 spaces per indentation level. That's 2 literal space characters, not 1 tab character set to 2 spaces, not 4 spaces, not anything but 2 literal space characters.
<jfarmer> haha
Igorshp has joined #ruby
jaycee has joined #ruby
<ddfreyne> I generally don't use Rubocop as-is (I always have a few tweaks), but it's really good to have a consistent code style.
<jfarmer> jhass Jinx?
<jhass> what's that?
cmisenas has quit [Quit: cmisenas]
dionysus69 has quit [Ping timeout: 272 seconds]
<jhass> xaocon: no need for empty parens () anywhere
<miah> rubocop will automate the checks against the ruby style guide
<ddfreyne> Gah.
<jhass> xaocon: sensor.rb should define class Carbonblack::Sensor
commondream has joined #ruby
ramfjord has joined #ruby
djbkd has quit [Remote host closed the connection]
hazelux has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
frem has joined #ruby
<jhass> not sure what the example yaml file is for...
<jfarmer> ddfreyne Junx
<jfarmer> jinx
tvw has joined #ruby
<jhass> xaocon: some of your method names feel backwards, I'd prefer read_sensor over sensor_read for example
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jhass> xaocon: Prefer "string #{interpolation}" over "string" + concatenation
joaomdmoura has joined #ruby
treehug8_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> xaocon: don't mix {ruby_19: hash_style} with {:hash => rockets}
<ljarvis> to_id should probably be a private method since it's merely a helper and not part of the api
<xaocon> wow! a lot of great information. thanks for all the advice. while i'm looking for advice, is bundler the best way to manage the gem?
last_staff has quit [Quit: last_staff]
allcentury has quit [Ping timeout: 244 seconds]
last_staff has joined #ruby
<jhass> ?better
<ruboto> I don't know anything about better
Jackneill has quit [Remote host closed the connection]
<jhass> meh
<jhass> ?best
<ruboto> "Best" and "better" are subjective. Try to use a different term.
<g0rx> i need a programmer :)
<g0rx> i pay via btc
<jhass> it's certainly not a wrong way ;)
allcentury has joined #ruby
<havenwood> g0rx: What do you need programmed? How does it relate to Ruby?
<g0rx> some thing for personal
<jfarmer> xaocon Sidestepping the semantics of "best," it's the most conventional way and you'd need a good reason to use something else.
<jhass> g0rx: I wonder how many more days until you'll realize that what you do won't attract nobody, at least nobody sane...
<jhass> er, *anybody
momomomomo has quit [Quit: momomomomo]
<jhass> I don't know, I seem to see plain rubygems and something like jewlery etc quite often too
<xaocon> jhass: certainly best is almost always subjective. could you give me more detail on what is wrong with the hash styles?
elia has quit [Quit: Computer has gone to sleep.]
balazs has quit [Remote host closed the connection]
Respek has quit [Quit: gone to sleep. ZZZzzz…]
timonv has quit [Ping timeout: 246 seconds]
<jhass> xaocon: don't do {:a => b, c: d}, either do {a: b, c: d} or {:a => b, :c => d}
last_staff has quit [Client Quit]
balazs has joined #ruby
affenhoden has left #ruby [#ruby]
asmodlol has quit [Ping timeout: 264 seconds]
affenhoden has joined #ruby
RTG` has quit [Ping timeout: 245 seconds]
spyderman4g63 has quit [Read error: Connection reset by peer]
<jhass> if one of your keys requires the =>, use them for all of them, else I'd suggest the Ruby 1.9 style, since it's future proof if the API you're using switches to keyword arguments
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nonparfumee has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
spyderman4g63 has joined #ruby
<jfarmer> xaocon The general principles behind coding style is:
Agoldfish has joined #ruby
<xaocon> jhass: ahh on the HTTParty request. I think that was mostly copypasta. is 1.9 the rockets? I prefer {a: b} but if that won't work all the time I'll probably switch.
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<jfarmer> 1. Whatever style you pick, use it consistently.
A205B064 has joined #ruby
pengin has joined #ruby
<jfarmer> 2. Where the community broadly agrees on a standard, use that.
<jhass> xaocon: no the colons, the rockets is the old style that works for any kind of key not just symbols
nonparfumee has joined #ruby
asmodlol has joined #ruby
<jfarmer> 3. Where the community is divided, pick one style and stick with it.
<jhass> that's just 1 rephrased :P
<jfarmer> Ok...
ldnunes has quit [Quit: Leaving]
<jhass> don't mind me...
<duderonomy> if an array of words can be returned with this: words.slice(0..-1) why does the opposite not work as expected? (-1..0) ? What is this newb missing?
<jfarmer> 3. Where the community is divided evenly among a handful of styles, pick one (and don't forget 1)
<apeiros> good rules IMO :)
<duderonomy> expecting reverse array
<jfarmer> don't just pick a random style is my point
<jfarmer> an idiosyncratic style I mean
<centrx> -1 > 0
<duderonomy> I need to learn math too?
<duderonomy> thx
jenrzzz has quit [Ping timeout: 245 seconds]
<jfarmer> duderonomy What do you expect it to do?
<dudedudeman> whoa. a dude
<jfarmer> I honestly don't have a sense of what I'd "expect."
<duderonomy> expecting reverse array
<centrx> Use .reverse
kstuart has quit [Quit: WeeChat 1.2]
<duderonomy> hey dudedudeman! *my* brother from another mother
<centrx> oh dear
<dudedudeman> 'ell yeah! my homedoggy
<dudedudeman> *sup*
kstuart has joined #ruby
* jhass sense #ruby-dudes forming
djbkd has joined #ruby
ldnunes has joined #ruby
Zai00 has joined #ruby
* dudedudeman sniffs air, likes what he smells
* sweeper fistbump
* dfockler brofist
codeFiend has quit [Quit: codeFiend]
<duderonomy> I know reverse is good. Just want to know why it does not work as expected (0..-1) does right by me
* dudedudeman bumps all the fists
wallerdev has joined #ruby
<jhass> >> (-1..0).to_a # duderonomy
<ruboto> jhass # => [-1, 0] (https://eval.in/374514)
<jhass> mh, no, nvm me :D
<jhass> it's just the way it is I guess
DerisiveLogic has joined #ruby
mistergibson has quit [Ping timeout: 245 seconds]
mbug has joined #ruby
momomomomo has joined #ruby
codeFiend has joined #ruby
x1337807x has quit [Read error: Connection reset by peer]
<duderonomy> Yeah, I was ready for the great epiphany moment just now. bumps_fist :)
Moody404 has joined #ruby
x1337807x has joined #ruby
<jfarmer> I can understand why Array#slice works this was from an implementation perspective, but it does break the "generality" of the interface.
lordkryss has joined #ruby
<jfarmer> Like..you'd kind of expect array.slice([i1, i2, i3, ..., iN]) to return a new array populated with the values at indices i1, 12, ..., iN
atmosx has quit [Read error: Connection reset by peer]
dzejrou has quit [Read error: Connection reset by peer]
ndrei_ has quit [Ping timeout: 264 seconds]
atmosx has joined #ruby
Ziioynx has joined #ruby
mistergibson has joined #ruby
<apeiros> jfarmer: that's what values_at exists for
<jfarmer> apeiros I get that.
<jfarmer> I'm saying I understand duderonomy's expectations.
e1nh4nd3r has joined #ruby
<jfarmer> The docs kind of imply it, at least in the case of Ranges
stamina has quit [Quit: WeeChat 1.2]
<jhass> well, (0..-1).to_a == []
DerisiveLogic has quit [Remote host closed the connection]
<duderonomy> which is way helpful to helping me sleep at night
<apeiros> jfarmer: I don't think so, no
dopie has quit [Quit: This computer has gone to sleep]
mrmargolis has joined #ruby
Moody404 has quit [Remote host closed the connection]
<apeiros> the docs are imo quite clear on #[] accepting either offset,length or offset..offset. and negative offsets being treated as from the end
<jfarmer> When given a range, the docs say that Array#slice "returns a subarray specified by range of indices."
<jfarmer> (-1..0) is a "range of indices"
sandstrom has quit [Quit: My computer has gone to sleep.]
<apeiros> hm, I guess the wording changed
naftilos76 has quit [Remote host closed the connection]
<apeiros> at least I remember it differently
dopie has joined #ruby
<jfarmer> And, as jhass points out, (-1..0) is NOT empty whereas (0..-1) IS
fmcgeough has quit [Quit: fmcgeough]
<apeiros> yeah, "a subarray specified by range of indices“ can be misunderstood
clauswitt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jfarmer> So, that's kind of strange — Array#slice will return a non-empty array for certain empty ranges and will return an empty array for certain non-empty ranges.
mrmargol_ has quit [Ping timeout: 276 seconds]
Miphix has quit [Read error: Connection reset by peer]
roolo has joined #ruby
<apeiros> I think understanding range argument simply as offset..offset helps understanding it
Miphix has joined #ruby
greenbagels has joined #ruby
<apeiros> -1..0 would be "from end to start", and slice does not support reverse indexing
codecop has quit [Remote host closed the connection]
<apeiros> (even though it'd IMO make sense - could return a reversed slice)
<jfarmer> Right and I get why that's the case.
<jfarmer> But to "get it" you have to understand something about what makes arrays special as a data type
Soda has quit [Ping timeout: 246 seconds]
<jfarmer> (i.e., contiguous addressing)
NeverDie has joined #ruby
<finisherr> What do I pass to Net::HTTP::Get.new to get a request object?
b_hoffman has joined #ruby
fusillicode has joined #ruby
<apeiros> jfarmer: um, that's kind of the defining aspect of arrays
<jfarmer> so getting a monotonically increasing slice is easy peasy — O(1) in fact — while getting a monotonically decreasing slice or a slice in a non-contiguous order is O(n)
fusillicode has left #ruby [#ruby]
<jfarmer> apeiros A beginner doesn't see that, though.
nonparfumee has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Zai00 has quit [Quit: Zai00]
<apeiros> sure. but there's lots of such things in a higher level language.
<ljarvis> finisherr: see the example, a URI instance: http://ruby-doc.org/stdlib-2.2.2/libdoc/net/http/rdoc/Net/HTTP.html#class-Net::HTTP-label-How+to+use+Net-3A-3AHTTP
<jfarmer> Just saying I can see why the slice is justified in working the way it does and can also see why a beginner is more likely to see that behavior as "surprising"
<jfarmer> That's all I'm saying.
<jfarmer> That I can empathize with both sides. :P
choke has joined #ruby
NeverDie has quit [Max SendQ exceeded]
<jfarmer> And I agree that high-level languages are filled with those kinds of hiccups (though some more than others)
NeverDie has joined #ruby
<jfarmer> Ruby's generally pretty good on that front, at least among OOP languages.
umgrosscol has joined #ruby
<finisherr> ljarvis: Ahh, okay, the uri object. The docs say send some kind of method as the first param
iamjarvo has joined #ruby
Channel6 has joined #ruby
<jhass> finisherr: which docs? new(path, initheader = nil)
mbug has quit [Quit: Leaving]
choke has quit [Client Quit]
NeverDie has quit [Max SendQ exceeded]
<ljarvis> finisherr: those are constants
<jhass> finisherr: yeah, no methods documented there, click Parent
<finisherr> according to the comment at the top
freerobby has quit [Quit: Leaving.]
<ljarvis> The "See Net::HTTP for usage examples" was quite telling, too :)
<finisherr> Ahh, parent
<finisherr> ok
NeverDie has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<finisherr> I’m on 1.9.3 so i was lookin at those docs which are slightly different
<finisherr> Thanks for the help though
<waxjar> if all you need to do is send a GET request, i highly recommend using open-uri. it's so easy!
<finisherr> waxjar: I’m looking to get the response obj
bertocode has joined #ruby
<finisherr> so i can query for the return code
<finisherr> does open-uri have support for that kinda thing?
noethics has quit [Ping timeout: 265 seconds]
<waxjar> yup :)
<finisherr> cause it IS simpler
<ljarvis> open-uri can do that too, but I'd stick with net/http
<finisherr> oh snap
sandstrom has joined #ruby
<jhass> eh, wrong one
<waxjar> why ljarvis?
<ljarvis> that'll return the string response
<ljarvis> heh
Soda has joined #ruby
<jhass> get_response a bit further down
Hijiri has quit [Quit: WeeChat 1.0.1]
jpfuentes2 has quit [Ping timeout: 244 seconds]
centrx has quit [Quit: Shutting down, Please wait...]
<jfarmer> finisherr Honestly, Net::HTTP is _wayyyyy_ more low-level than most people want or need (which is why you're finding this process awkward)
_seanc_ has joined #ruby
<ljarvis> huh
<ljarvis> no it's not
NeverDie has quit [Max SendQ exceeded]
<jhass> jfarmer: saw my link?
b_hoffman has left #ruby [#ruby]
<jhass> hardly harder than open-uri
<ljarvis> waxjar: just for flexibility, really
CorpusCallosum has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> just need an additional URI()
<waxjar> ljarvis: fair enough
NeverDie has joined #ruby
<ljarvis> it's certainly no harder than open-uri, and it's most definitely not "way more low level"
<jfarmer> finisherr I would consider looking at something higher-level like faraday (https://github.com/lostisland/faraday) or HTTParty (https://github.com/jnunemaker/httparty)
Xoro has joined #ruby
<jfarmer> internet arguments!
Matachines has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<finisherr> Thanks for the tips folks
<jfarmer> I just mean it operates at a lower level of abstraction than most people who want to make HTTP requests are operating at.
Matachines has joined #ruby
jpfuentes2 has joined #ruby
<jfarmer> sorry for emphasizing the "way", but I do think that's why people stumble left and right over trying to use Net::HTTP
noethics has joined #ruby
ScriptGeek has joined #ruby
<jfarmer> But also not looking to start a debate.
<jhass> Net::HTTP.get(URI("http://google.com"))
umgrosscol has quit [Remote host closed the connection]
auraka has quit [Ping timeout: 276 seconds]
<jhass> same as open("http://google.com", &:read)
<waxjar> net/http is easy enough imo, provided you don't need to set headers/cookies/etc. in this case a higher level http library seems overkill
<jhass> Net::HTTP.get_response(URI("http://google.com")) #=> <Net::Http::Response ...>
Rapier- has quit [Quit: (null)]
<ljarvis> in other nets, this is basically the library I wish was Net::HTTP https://github.com/httprb/http.rb
x1337807x has joined #ruby
<ljarvis> s/nets/news/
_ht has quit [Quit: Konversation terminated!]
a346 has quit [Quit: a346]
jaycee has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> that it doesn't have an option to follow redirects is my biggest issue with net/http
tjbiddle has quit [Quit: tjbiddle]
<ljarvis> yeah, building a recursive method for that always got annoying
Hijiri has joined #ruby
choke has joined #ruby
chouhoulis has joined #ruby
baweaver|work has joined #ruby
<ljarvis> also, better timeouts
apofis has joined #ruby
baweaver|work has quit [Remote host closed the connection]
<ljarvis> because Timeout is not the way to do request timeouts
freerobby has joined #ruby
asmodlol has quit [Quit: Leaving]
blandflakes has joined #ruby
chouhoul_ has quit [Ping timeout: 250 seconds]
<xaocon> one more thing, as I'm developing i don't want to build the gem every time i change the code. I tried running test code with
j4cknewt has joined #ruby
<jfarmer> ljarvis That's nice
dblessing has joined #ruby
workmad3 has quit [Ping timeout: 265 seconds]
<xaocon> "ruby -Ilib/carbonblack -rlib/carbonblack test.rb" but it didn't work
<ljarvis> ruby -Ilib -rcarbonblack test.rb
benanne has quit [Quit: kbai]
<ljarvis> also, thank you for running examples properly and not like a mad man
<jfarmer> hahaha
<xaocon> ljarvis: ahh wonderful. thanks again.
bmurt has quit []
<jhass> ljarvis: s/request //
<ljarvis> jhass: amen
Musashi007 has quit [Quit: Musashi007]
baweaver|work has joined #ruby
jackjackdripper1 has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
baweaver|work has quit [Remote host closed the connection]
__butch__ has quit [Remote host closed the connection]
baweaver|work has joined #ruby
<ljarvis> I seriously spend way too long screwing around with different programming languages
<jhass> looked at crystal yet? :P
bluish has joined #ruby
gambl0re has quit [Ping timeout: 252 seconds]
<finisherr> Can you get the response header from an HTTP resopnse?
<ljarvis> yeah I did, I took a bit of notice during the stage of rebuilding into self-hosting
<Verrelia> <finisherr> Can you get the response header from an HTTP resopnse?
<Verrelia> What?
DLSteve has joined #ruby
<Verrelia> You always get that.
Zai00 has joined #ruby
bantic has joined #ruby
<jhass> ljarvis: currently concurrency/io model is revamped to something more Go-like, Coroutine/channel based
jhooker has joined #ruby
<ljarvis> jhass: oo sounds like something i'd like
casadei has joined #ruby
<jhass> currently it's single thread but plan is to eventually to automatically distribute them to a thread pool
<ljarvis> Go's concurrency model is imo the best of its kind
<finisherr> Verrelia: I guess how would i get something like the Content-Type field
<finisherr> oh, nevermind
polysics has quit [Remote host closed the connection]
<finisherr> there are methods for access
mike___1234 has quit [Ping timeout: 252 seconds]
jfarmer has quit [Quit: Textual IRC Client: www.textualapp.com]
e1nh4nd3r has quit [Quit: Leaving.]
segfalt has quit [Quit: segfalt]
e1nh4nd3r has joined #ruby
olistik has joined #ruby
jpfuentes2 has quit [Ping timeout: 258 seconds]
IrishGringo has joined #ruby
HotCoder has joined #ruby
<ljarvis> jhass: was debot cinch-inspired? :)
momomomomo_ has joined #ruby
<jhass> ljarvis: look at the branches ;)
momomomomo has quit [Ping timeout: 272 seconds]
momomomomo_ is now known as momomomomo
<ljarvis> aha
balazs has quit [Ping timeout: 244 seconds]
<ljarvis> nice one
<jhass> it's version 3 ;D
<ljarvis> looks good
jpfuentes2 has joined #ruby
fujimura has joined #ruby
<jhass> underlying stuff is still way too incomplete, like the whole user tracking is a complete mess
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> but I loose interest once things start working for my usecases :/
<ljarvis> naturally
<ljarvis> I do that a lot
hagabaka has quit [Ping timeout: 240 seconds]
ldnunes has quit [Quit: Leaving]
olistik has quit [Ping timeout: 256 seconds]
vivekananda has joined #ruby
mrmargol_ has joined #ruby
sdwrage has joined #ruby
atmosx has quit [Quit: parting / quiting]
ur5us has quit [Remote host closed the connection]
k3asd` has quit [Ping timeout: 272 seconds]
atmosx has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fusillicode has joined #ruby
BTRE has quit [Remote host closed the connection]
fusillicode has left #ruby [#ruby]
hazelux has quit [Remote host closed the connection]
fujimura has quit [Ping timeout: 255 seconds]
mrmargolis has quit [Ping timeout: 245 seconds]
tobyx has quit [Quit: Farewell.]
bruno- has quit [Quit: Lost terminal]
BTRE has joined #ruby
tobyx has joined #ruby
pandaant has quit [Remote host closed the connection]
dopie has quit [Quit: This computer has gone to sleep]
toretore has quit [Quit: This computer has gone to sleep]
dopie has joined #ruby
meph has joined #ruby
xaocon has left #ruby ["WeeChat 1.2"]
coffeeju1 has joined #ruby
catcher has quit [Quit: Leaving]
idafyaid has quit [Ping timeout: 255 seconds]
apofis has quit [Quit: This computer has gone to sleep]
bluish has quit [Quit: bluish]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
sandstrom has quit [Ping timeout: 265 seconds]
dopie has quit [Quit: This computer has gone to sleep]
allcentury has quit [Ping timeout: 240 seconds]
Igorshp has quit [Remote host closed the connection]
ur5us has joined #ruby
dopie has joined #ruby
victorkohl has joined #ruby
jhooker has quit [Ping timeout: 272 seconds]
bruno- has joined #ruby
apofis has joined #ruby
baweaver|work has quit [Remote host closed the connection]
mike___1234 has joined #ruby
hazelux has joined #ruby
jerius has quit [Quit: /quit]
rodfersou has quit [Quit: leaving]
<duderonomy> thanks to you all for that excellent discussion about the slice in ruby
chouhoulis has quit [Remote host closed the connection]
wallerdev has quit [Ping timeout: 272 seconds]
chouhoulis has joined #ruby
doublemalt_ has joined #ruby
blackmesa has quit [Quit: WeeChat 1.2]
joaomdmoura has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jenrzzz_ has joined #ruby
Igorshp has joined #ruby
enebo has quit [Quit: enebo]
joaomdmoura has joined #ruby
dopieee has joined #ruby
choke has joined #ruby
dopie has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 256 seconds]
DoubleMalt has quit [Ping timeout: 258 seconds]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
balazs has joined #ruby
Trynemjoel has joined #ruby
BTRE has quit [Quit: Leaving]
pandaant has joined #ruby
momomomomo_ has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
momomomomo has quit [Ping timeout: 272 seconds]
momomomomo_ is now known as momomomomo
Ox0dea has joined #ruby
finisherr has quit [Quit: finisherr]
<Ox0dea> Is there some way to "un-lambda" a Proc in-place without resorting to Fiddle?
Spami has quit [Quit: Leaving]
jpfuentes2 has quit [Ping timeout: 272 seconds]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jpfuentes2 has joined #ruby
balazs has quit [Ping timeout: 252 seconds]
CloCkWeRX has quit [Quit: Leaving.]
<jhass> just pass .arity-n nils?
casadei has quit [Remote host closed the connection]
<jhass> >> l = -> a, b, c { p [a, b, c] }; args = [1]; args.concat Array.new(l.arity-args.size); l.call(*args)
<ruboto> jhass # => [1, nil, nil] ...check link for more (https://eval.in/374521)
sgambino has joined #ruby
<jhass> just stuff that into def i_am_unsure_how_to_call_you(l, *args) and be done
<Ox0dea> jhass: Procs and lambdas also differ in their return semantics.
simi has joined #ruby
bluOxigen has quit [Ping timeout: 256 seconds]
<jhass> eh, and the caller most likely wrote the code with that in mind
jenrzzz_ has quit [Ping timeout: 272 seconds]
blackmesa has joined #ruby
code_ has quit [Quit: BNC - Hosted by EpicKitty]
finisherr has joined #ruby
jenrzzz has joined #ruby
x1337807x has joined #ruby
mrmargol_ has quit [Remote host closed the connection]
x1337807x has quit [Max SendQ exceeded]
x1337807x has joined #ruby
ddarkpassenger has joined #ruby
b_hoffman has joined #ruby
Spami has joined #ruby
swgillespie has joined #ruby
commondream has quit [Remote host closed the connection]
thiagofm has quit [Remote host closed the connection]
Eddieh_ has joined #ruby
Scroff has quit [Remote host closed the connection]
PStar has joined #ruby
PStar has left #ruby [#ruby]
ramfjord has quit [Ping timeout: 246 seconds]
Hijiri has quit [Ping timeout: 255 seconds]
ronbrz has joined #ruby
code_ has joined #ruby
j4cknewt has quit [Remote host closed the connection]
c_nt has joined #ruby
<c_nt> hi guys
Torrieri has quit [Read error: Connection reset by peer]
Torrieri has joined #ruby
Torrieri has quit [Changing host]
Torrieri has joined #ruby
kirun has quit [Quit: Client exiting]
duderonomy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blackmesa has quit [Quit: WeeChat 1.2]
arescorpio has joined #ruby
<apeiros> c_nt: hi girl
j4cknewt has joined #ruby
b_hoffman has left #ruby [#ruby]
<c_nt> do you know scratch programming apeiros?
JohnBat26 has quit [Ping timeout: 256 seconds]
Pumukel has joined #ruby
<apeiros> I don't know the term "scratch programming", no
<c_nt> have you programmed in scratch?
symbol has quit [Quit: WeeChat 1.1]
workmad3 has joined #ruby
<c_nt> it's a language for kids that was made by Lego people
<apeiros> is scratch a programming language?
<c_nt> yes
<apeiros> I see, no, I haven't programmed in scratch
badhatter has quit [Read error: Connection reset by peer]
moretti has quit [Quit: Leaving...]
ramfjord has joined #ruby
<c_nt> they have a code step sequencer where it visualizes what line of code the program is currently on in real time
badhatter has joined #ruby
badhatter has joined #ruby
<c_nt> I was wondering if there is something like that for ruby
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
dopieee has quit [Quit: This computer has gone to sleep]
<apeiros> c_nt: see byebug. I think it has a stepper.
BTRE has joined #ruby
<apeiros> or pry-byebug
spyderman4g63 has quit [Remote host closed the connection]
<c_nt> thank you
Ox0dea has quit [Read error: Connection reset by peer]
<apeiros> yw
spyderman4g63 has joined #ruby
gambl0re has joined #ruby
nmyster has quit [Ping timeout: 265 seconds]
Olipro has quit [Ping timeout: 272 seconds]
mroth has quit [Ping timeout: 276 seconds]
B1n4r10 has joined #ruby
b_hoffman has joined #ruby
moretti has joined #ruby
b_hoffman has left #ruby [#ruby]
vickleton has quit [Quit: Ex-Chat]
AdamMeghji has quit [Ping timeout: 272 seconds]
neektza has quit [Ping timeout: 252 seconds]
spider-mario has quit [Ping timeout: 245 seconds]
petems has quit [Ping timeout: 272 seconds]
devdazed_ has quit [Quit: Computer has gone to sleep.]
amitchellbullard has quit [Ping timeout: 276 seconds]
skade has quit [Quit: Computer has gone to sleep.]
spider-mario has joined #ruby
KnownSyntax has quit [Ping timeout: 265 seconds]
akahn has quit [Ping timeout: 256 seconds]
culturelabs has quit [Ping timeout: 256 seconds]
jrunning_ has quit [Ping timeout: 276 seconds]
ballPointPenguin has quit [Ping timeout: 276 seconds]
malconis has quit [Ping timeout: 255 seconds]
dukedave has quit [Ping timeout: 252 seconds]
scripore has quit [Quit: This computer has gone to sleep]
freerobby has quit [Quit: Leaving.]
spyderman4g63 has quit [Ping timeout: 258 seconds]
blackmesa has joined #ruby
troter___ has quit [Ping timeout: 265 seconds]
zrl has quit [Ping timeout: 276 seconds]
victortyau has quit [Quit: Leaving]
b_hoffman has joined #ruby
duderonomy has joined #ruby
balazs has joined #ruby
belak has joined #ruby
<belak> Is there a better way of doing this? file_url = URI.parse("#{params['xdm_e']}/api/1.0/repositories/#{params['owner']}/#{params['repo']}/src/#{params['cset']}/#{params['path']}")
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> ?better belak
<ruboto> belak, I don't know anything about better
<apeiros> oh dear. I don't know messages shouldn't be targeted :-S
<apeiros> ?best belak
<ruboto> belak, "Best" and "better" are subjective. Try to use a different term.
<belak> I'd say "less ugly" but that's also subjective.
<apeiros> at least it tells the area in which you want the improvement
<apeiros> so it's already more context than a plain "better" :)
casadei has joined #ruby
freerobby has joined #ruby
ramblinpeck_ has quit [Ping timeout: 265 seconds]
b_hoffman has left #ruby [#ruby]
<apeiros> if the keys were symbols you could use String#%
<apeiros> other than that… not much I can think of
<belak> Is there a best-practices way of doing string formatting for this case?
<apeiros> you can trade more lines beforehand to have this line shorter
<belak> I wanted to do % params, but that doesn't appear to work
<apeiros> "doesn't work" is not something we can act upon
micmus has quit [Quit: Leaving]
<apeiros> as said, you need symbol keys
<ddarkpassenger> belak, You could try something like rest-client: https://github.com/rest-client/rest-client
<ddarkpassenger> e.g. RestClient.get 'http://example.com/resource', {:params => {:id => 50, 'foo' => 'bar'}}
doublemalt_ has quit [Quit: Leaving]
<apeiros> example of trading lines: `template = "%s/api/1.0/repositories/%s/…"; uri = template % params.values_at('xdm_e', …); file_url = URI.parse(uri)`
<belak> Right now I'm just using the plain HTTPClient. I wasn't sure if there was a better library to use.
Guest12375 has quit [Ping timeout: 276 seconds]
<apeiros> c_nt: say, what does your nickname mean?
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<belak> apeiros: what is that magical values_at?
balazs has quit [Ping timeout: 255 seconds]
FernandoBasso has joined #ruby
<apeiros> belak: Hash#values_at
ruby-lang783 has joined #ruby
<apeiros> gets values at multiple keys at once
<ddarkpassenger> You should be able to achieve the same thing using URI assignment methods (host=, path=, etc)
Hijiri has joined #ruby
apt-get_ has quit [Quit: Quit]
baweaver|work has joined #ruby
<apeiros> ddarkpassenger: won't `RestClient.get 'http://example.com/resource', {:params => {:id => 50, 'foo' => 'bar'}} ` just generate a url with a query part?
mrsolow has quit [Ping timeout: 265 seconds]
<apeiros> from the README it seems like
<ruby-lang783> I am a newbe at RubyGems: I am trying to backward re-write a Gem at my work. I am getting confused around all the "SPEC" files. It has a gemname.gemspec AND a Gemfile AND a ~/spec/gemname_spec.rb <-- These files seem redundant (also I read that Gemfile was from bundler but I had to install bunder on the server ... so
diegoviola has quit [Read error: Connection reset by peer]
PhilK has quit [Ping timeout: 252 seconds]
spastorino has quit [Ping timeout: 252 seconds]
doertedev has quit [Ping timeout: 264 seconds]
<ruby-lang783> Any help would be appreciated
<ddarkpassenger> apeiros: Yep, but maybe he could use the same concept to define his URI.path in a more elegant way, with something like URI, something like this: https://github.com/hannesg/uri_template
c_nt has quit [Ping timeout: 258 seconds]
tjbiddle has joined #ruby
<ddarkpassenger> *URI template
scripore has joined #ruby
<ruby-lang783> anyone an expert at creating RubyGems?
joaomdmoura has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tjohnson has quit [Quit: Connection closed for inactivity]
mary5030 has quit [Remote host closed the connection]
<apeiros> ruby-lang783: your confusion is understandable
AlphaAtom has joined #ruby
jackjackdripper1 has quit [Read error: Connection reset by peer]
<apeiros> ruby-lang783: to build a gem, all you need is the .gemspec
_seanc_ has quit [Quit: _seanc_]
jackjackdripper has joined #ruby
<apeiros> `gem build your.gemspec` will generate the your-<version>.gem file
kies has quit [Ping timeout: 265 seconds]
Zai00 has quit [Quit: Zai00]
ramfjord has quit [Ping timeout: 265 seconds]
ckrailo has quit [Ping timeout: 265 seconds]
<apeiros> the Gemfile is used to deal with dependencies in arbitrary projects, not just gems. some of what it can do can also be handled by the .gemspec file
havenwood has joined #ruby
baweaver|work has quit [Ping timeout: 256 seconds]
<ruby-lang783> Ok, it looks like all dependencies are in the .gemspec
AlphaAtom has quit [Client Quit]
tvw has quit []
<ruby-lang783> so I removed everything in the Gemfile and replaced it with source and gemspec
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
<apeiros> you can find a description of the .gemspec format here: http://guides.rubygems.org/specification-reference/
_seanc_ has joined #ruby
<ruby-lang783> wo why a full spec directory with a <gemname>_spec.rb ??? What could this do?
<apeiros> those specs are tests
<apeiros> specifications for how your gem works
alakra has joined #ruby
freerobby has quit [Quit: Leaving.]
<apeiros> google for rspec
jackjackdripper has quit [Read error: Connection reset by peer]
<ruby-lang783> rspec ... ok thanks
jackjackdripper has joined #ruby
m8 has quit [Quit: Sto andando via]
NeverDie has joined #ruby
freerobby has joined #ruby
<ruby-lang783> I appreciate the help apeiros. If I need more I will come back ... and when I get a better handle on this I may come back to help others ... thanks again
AlphaAtom has joined #ruby
ramfjord has joined #ruby
Verrelia has quit [Ping timeout: 255 seconds]
<apeiros> ruby-lang783: you're welcome
fgo has joined #ruby
joaomdmoura has joined #ruby
momomomomo has quit [Quit: momomomomo]
baweaver|work has joined #ruby
NeverDie has quit [Max SendQ exceeded]
jfarmer has joined #ruby
moretti has quit [Quit: Leaving...]
ruby-lang783 has quit [Ping timeout: 246 seconds]
NeverDie has joined #ruby
Exponential has joined #ruby
casadei has quit [Remote host closed the connection]
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
moretti has joined #ruby
e1nh4nd3r has quit [Quit: Leaving.]
AlphaAtom has quit [Ping timeout: 244 seconds]
NeverDie has quit [Max SendQ exceeded]
RegulationD has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 250 seconds]
malconis has joined #ruby
NeverDie has joined #ruby
lordkryss has quit [Quit: Connection closed for inactivity]
zendrix has quit [Remote host closed the connection]
juanpaucar has joined #ruby
AdamMeghji has joined #ruby
zendrix has joined #ruby
<dfockler> yard is pretty nice for docs
<dfockler> I'm trying it out now
dopieee has joined #ruby
akahn has joined #ruby
KnownSyntax has joined #ruby
nmyster has joined #ruby
mroth has joined #ruby
sgambino has joined #ruby
vdamewood has joined #ruby
pandaant has quit [Remote host closed the connection]
sandstrom has joined #ruby
n0f3 has quit [Remote host closed the connection]
blue_deref has quit [Quit: Leaving]
petems has joined #ruby
culturelabs has joined #ruby
bantic has quit [Quit: bantic]
arBmind has quit [Ping timeout: 272 seconds]
qsuscs has joined #ruby
<qsuscs> hi
malconis has quit [Ping timeout: 265 seconds]
ballPointPenguin has joined #ruby
<qsuscs> is why’s poignant guide still the way to get started with ruby?
<dfockler> if you like foxes and comics
neektza has joined #ruby
mikecmpbll has quit [Quit: ciao.]
<qsuscs> better than some dry lecture.
chouhoul_ has joined #ruby
ddarkpassenger has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
OtterCoder has joined #ruby
dukedave has joined #ruby
<dfockler> some people love dry lectures
roolo has quit [Remote host closed the connection]
casadei has joined #ruby
amitchellbullard has joined #ruby
vivekananda has quit [Ping timeout: 272 seconds]
jrunning_ has joined #ruby
sandstrom has quit [Ping timeout: 246 seconds]
<qsuscs> so, it isn’t particularly outdated? like, teaching me stuff that will break with the latest ruby, or not mentiong something that i really should know?
devdazed has joined #ruby
<dfockler> I'm sure there are a few things, but it's more conceptual
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
auraka has joined #ruby
troter___ has joined #ruby
<qsuscs> hm, around 3.50€ to print it … or are there nice epub/mobipocket versions?
f3lp has quit [Ping timeout: 252 seconds]
mister_solo has joined #ruby
chouhoulis has quit [Ping timeout: 272 seconds]
<qsuscs> oh, someone converted it to markdown. i can probably beat that to mobipocket with pandoc or so
jackjackdripper has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
<dfockler> here's an epub, probably ok quality
codeFiend has quit [Quit: codeFiend]
chouhoul_ has quit [Ping timeout: 265 seconds]
arBmind has joined #ruby
<jfarmer> qsuscs It's outdated
<havenwood> qsuscs: And the soundtrack to the book: http://mislav.uniqpath.com/poignant-guide/soundtrack/
northfurr has joined #ruby
northfurr has quit [Client Quit]
Exponential has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rickmasta has joined #ruby
<qsuscs> jfarmer: what would you recommend instead? preferably on dead rainforest, or at least easily printable
codeFiend has joined #ruby
baweaver|work has quit [Remote host closed the connection]
northfurr has joined #ruby
dfinninger has quit [Remote host closed the connection]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> If I could just get my act together and draw some wizards...
<jfarmer> qsuscs Is this for you?
Exponential has joined #ruby
mary5030 has joined #ruby
<qsuscs> jfarmer: yes
nonparfumee has joined #ruby
<jfarmer> What's your background, programming-wise?
Eddieh_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has quit [Remote host closed the connection]
<qsuscs> unix shell hackery, haskell, object pascal (not deliberately. school.)
yh has quit [Ping timeout: 252 seconds]
<qsuscs> though i’m far from being a pro at all of those
commondream has joined #ruby
ramblinpeck_ has joined #ruby
<jfarmer> Is there some language you would say you're comfortable with?
<jfarmer> Or are you trying to learn something in-depth for the first time?
<qsuscs> i’ve been _trying_ to learn something in-depth many times ;)
<qsuscs> and i’m comfortable with german and english :>
dukedave has quit []
<g0rx> i need a programmer :)
zendrix has quit [Remote host closed the connection]
Hijiri has quit [Quit: WeeChat 1.0.1]
MatthewsFace has joined #ruby
Musashi007 has joined #ruby
someword has quit [Quit: Leaving.]
<dfockler> g0rx: sorry this channel is about gemstones and jewelry
<g0rx> ?
_seanc_ has left #ruby [#ruby]
<dfockler> haha just kidding
<nofxx> g0rx, only hard work miners and traders
zrl has joined #ruby
_seanc_ has joined #ruby
Lucky__ has joined #ruby
<g0rx> ok
f3lp has joined #ruby
commondream has quit [Ping timeout: 264 seconds]
Guest12375 has joined #ruby
<jfarmer> qsuscs I recommend https://pine.fm/LearnToProgram/
mary5030 has joined #ruby
chadwtaylor has quit [Remote host closed the connection]
<jfarmer> And eventually http://www.poodr.com/
<g0rx> jfarmer i recommend barbie.com
Exponential has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jfarmer> g0rx Go away.
nfk|laptop has quit [Quit: yawn]
<g0rx> jfarmer why ?
<g0rx> don t be racist
baweaver|work has joined #ruby
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
spastorino has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
<qsuscs> jfarmer: hm, the first one sounds like made for people who have no programming experience whatsoever … i wouldn’t consider myself a real programmer, but i’m good at concepts (unless it’s monads or pointer arithmetic or such weird stuff)
jackjackdripper1 has joined #ruby
yh has joined #ruby
fujimura has joined #ruby
Aswebb_ has quit [Remote host closed the connection]
d5sx43 has joined #ruby
zendrix has joined #ruby
<g0rx> :D
jackjackdripper has joined #ruby
dopieee has quit [Quit: This computer has gone to sleep]
d10n-work has quit [Quit: Connection closed for inactivity]
<jfarmer> qsuscs I don't know what "good at concepts" means, but if you're not proficient with some other language when Chris Pine's book is an excellent introduction.
PhilK has joined #ruby
<jfarmer> then*
<jfarmer> How do you know if you're "good at concepts" if you haven't put that to the test by implementing them?
<jfarmer> in which case, there'd be some language you were proficient with (presumably)
<jfarmer> But it's an easy and very good read regardless — check it out.
tmoor has joined #ruby
<qsuscs> jfarmer: because i did not listen in programming classes for two years, never did the exercices, yet scored 15 out of 15 points in the exam.
Exponential has joined #ruby
SalexW has joined #ruby
ckrailo has joined #ruby
Exponential has quit [Client Quit]
<gambl0re> what does this line mean? if ('#switcher').is(':hidden')
<qsuscs> jfarmer: i mean, i won’t need somebody carefully explaining a for loop or the difference between int and char or that stuff, rather “yeah this is how we do it in ruby”
<jfarmer> That sounds more like an indictment of the test then anything.
<jfarmer> qsuscs In the time you've spent here, you could've flipped through some of the freely-available chapters.
workmad3 has quit [Ping timeout: 272 seconds]
<jfarmer> you've spent here pushing back that is
<qsuscs> jfarmer: true. the teacher is weird and it’s not challenging … yet others scored three points
<jfarmer> Honestly, it's a very good book.
jackjackdripper1 has quit [Ping timeout: 258 seconds]
<qsuscs> okay, convinced, i’ll try it
mary5030 has quit [Remote host closed the connection]
fujimura has quit [Ping timeout: 244 seconds]
spastorino has quit []
swgillespie has joined #ruby
<jfarmer> That story also tells me you might be good at convincing yourself you understand things that you're only actually familiar with. :)
<jfarmer> which makes me want to recommend the book all the more
mister_solo has quit [Ping timeout: 255 seconds]
f3lp has quit [Ping timeout: 252 seconds]
Yzguy has joined #ruby
Ropeney has joined #ruby
swgillespie has quit [Client Quit]
f3lp has joined #ruby
zrl has quit []
hazelux has quit [Remote host closed the connection]
swgillespie has joined #ruby
mark[oz] has joined #ruby
Luyt_ has quit [Ping timeout: 258 seconds]
DLSteve has quit [Quit: Leaving]
krzkrz has quit [Read error: Connection reset by peer]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Limix has quit [Quit: Limix]
krz has joined #ruby
mordocai has quit [Ping timeout: 255 seconds]
eddie_v8 has joined #ruby
datanoise has quit [Ping timeout: 272 seconds]
MatthewsFace has quit [Remote host closed the connection]
Torrieri has quit [Quit: Be back later ...]
spastorino has joined #ruby
jaequery has quit [Ping timeout: 265 seconds]
<eddie_v8> i have already updated my rubygems and i keep getting Warning: You're using Rubygems 2.0.14 with Spring. Upgrade to at least Rubygems 2.1.0 and run `gem pristine --all` for better startup performance.
vivekananda has joined #ruby
<eddie_v8> any idea how to fix that
Luyt_ has joined #ruby
Musashi007 has quit [Quit: Musashi007]
finisherr has left #ruby [#ruby]
goodcodeguy has joined #ruby
<nofxx> eddie_v8, linux?
<eddie_v8> yes
TheNet has joined #ruby
<jhass> how did you install ruby?
blandflakes has joined #ruby
Llamachka88 has joined #ruby
Llamachka88 has left #ruby [#ruby]
hinbody has quit [Quit: leaving]
<eddie_v8> jhass: rvm
<mwlang> gambl0re: That looks like javascript and it’s checking to see if an element on the page is hidden (display: none, most likely) In this case, the element with ID=switcher
<jhass> eddie_v8: gem update --system should be good then
Olipro has joined #ruby
Pumukel has quit [Quit: ChatZilla 0.9.91.1 [Firefox 38.0.1/20150513174244]]
<eddie_v8> jhass: i tried that
<eddie_v8> its updated
<jhass> did you do the suggestion?
Olipro is now known as Guest41246
<eddie_v8> yes
mark[oz] has quit [Remote host closed the connection]
Cache_Money has quit [Quit: Cache_Money]
blandflakes has quit [Client Quit]
<jhass> gem -v reports 2.4.something?
blandflakes has joined #ruby
Guest41246 has quit [Read error: Connection reset by peer]
jackjackdripper1 has joined #ruby
<eddie_v8> jhass: i get Latest version currently installed. Aborting.
<jhass> you did run gem update --system with the same ruby & gemset activated as your rails app has?
jackjackdripper2 has joined #ruby
jackjackdripper1 has quit [Read error: Connection reset by peer]
<eddie_v8> jhass: but its a new rails app
<eddie_v8> jhass: i get the warning when i run rails new project
<jhass> you start evading my questions...
SalexW has quit [Remote host closed the connection]
G has quit [Disconnected by services]
Nigel_ is now known as G
bkxd has joined #ruby
bosma has joined #ruby
jackjackdripper has quit [Ping timeout: 255 seconds]
<eddie_v8> jhass: how do i know what gemset if i didnt create a rails app already
x1337807x has joined #ruby
<jhass> you check that rvm current is the same when you run bin/rails and gem update --system
chouhoulis has joined #ruby
<jhass> do you prepend sudo to any commands behind the scenes?
<eddie_v8> yes
<jhass> there we go, that's your mistake
<jhass> ?root
<ruboto> General advise in system administration: do not and that means never use sudo or root to "fix" things. Only use it if you exactly know why it would work and why it wouldn't work under any circumstances as normal user. Or if you're told to do it.
<eddie_v8> need to run them with sudo
<jhass> no
iliketurtles has joined #ruby
yh has quit [Quit: Lost terminal]
j_mcnally has joined #ruby
jfarmer has quit [Quit: Textual IRC Client: www.textualapp.com]
j_mcnally has quit [Max SendQ exceeded]
<jhass> if you have a global RVM install it's rvmsudo, if you have (like any sane person) a per user RVM install you don't need sudo for anything
<eddie_v8> think i will need to uninstall everything
j_mcnally has joined #ruby
bricker has quit [Ping timeout: 244 seconds]
<nofxx> eddie_v8, which distro? ruby that comes with it too outdated?
Hobogrammer_ has quit [Read error: Connection reset by peer]
serivichi has joined #ruby
fgo has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has quit [Quit: Leaving.]
Musashi007 has joined #ruby
jackjackdripper2 has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
aaeron has quit [Quit: aaeron]
j_mcnally has quit [Ping timeout: 256 seconds]
RegulationD has joined #ruby
mdz_ has joined #ruby
fgo has quit [Ping timeout: 258 seconds]
aaeron has joined #ruby
j_mcnally has joined #ruby
mdz_ has quit [Remote host closed the connection]
blackmesa has quit [Quit: WeeChat 1.2]
mike___1234 has quit [Ping timeout: 240 seconds]
dseitz is now known as s3itz
mdz_ has joined #ruby
s3itz is now known as dseitz
jpfuentes2 has joined #ruby
TheNet has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dseitz is now known as help
RegulationD has quit [Ping timeout: 255 seconds]
help is now known as Guest32282
Guest32282 is now known as dseitz
bkxd_ has joined #ruby
d5sx43 has quit [Quit: Leaving...]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
B1n4r10 has joined #ruby
sandstrom has joined #ruby
atomical has joined #ruby
commondream has joined #ruby
joaomdmoura has quit [Ping timeout: 250 seconds]
bkxd has quit [Ping timeout: 265 seconds]
mrsolow has joined #ruby
duderonomy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
caseypat_ has quit [Remote host closed the connection]
x1337807x has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<gkra> Can someone help me understand what I'm clearly missing here? https://gist.github.com/gkra/64e19568600c9782265d
sandstrom has quit [Ping timeout: 256 seconds]
MaikV has joined #ruby
mike___1234 has joined #ruby
jerski has joined #ruby
<jerski> hello
<jerski> im new to this channel
<gkra> I apparently can't brain gsub!
apofis has quit [Quit: This computer has gone to sleep]
<jerski> would like to seek some help from ruby gurus here
tibig has quit [Ping timeout: 245 seconds]
symm- has quit [Ping timeout: 272 seconds]
<jerski> can someone help me write a short script?
<jhass> ?anyone
<ruboto> Just ask your question, if anyone has, they will respond.
DEA7TH has quit [Ping timeout: 265 seconds]
<jerski> ok
<jhass> !fact ed anyone Just ask your question, if anyone has or can, they will respond.
<ruboto> jhass, I stand corrected that anyone is Just ask your question, if anyone has or can, they will respond.
pietr0 has quit [Ping timeout: 258 seconds]
Akagi201 has quit [Remote host closed the connection]
<shadoi> gkra: added a comment on your gist
apofis has joined #ruby
havenwood has quit [Ping timeout: 272 seconds]
<jerski> honestly i'm new to ruby and i'm looking for someone who can write a script that displays all tty devices in linux.
<jhass> what did you try so far?
Musashi007 has quit [Quit: Musashi007]
<jerski> ordered by increasing numbers, in 3 columns. the scripts should accept 3 arguments, -h: display help, -r: reverse order listing, and -csv comma separated values (same output, no spaces, separated by comma).
bayed has quit [Quit: Connection closed for inactivity]
CloCkWeRX has joined #ruby
b_hoffman has joined #ruby
swgillespie has joined #ruby
<jerski> i've tried
konr has joined #ruby
CloCkWeRX has quit [Client Quit]
icarus has quit [Quit: Lost terminal]
michael_mbp has quit [Excess Flood]
CloCkWeRX has joined #ruby
<gkra> shadoi: hah, i'm using gsub like an idiot....
<jhass> gkra: rely on the truthiness of stuff, match returns nil which is falsey, MatchData instances are truthy, no need for the ternary
<gkra> jhass: the ternary was me going into the weeds
michael_mbp has joined #ruby
<gkra> instead of going "Oh hey maybe i should use sub instead of gsub"
TheNet has joined #ruby
ScriptGeek has left #ruby [#ruby]
mark[oz] has joined #ruby
<jerski> hey
b_hoffman has quit [Client Quit]
bruno- has quit [Ping timeout: 245 seconds]
mwlang has quit [Ping timeout: 250 seconds]
<jhass> jerski: show your attempt, try to ask something specific about what you're stuck with it ;)
<jhass> ?gist
<ruboto> https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<jerski> i've only tried to write this
<jerski> f = File.open("test.txt") p f.isatty # => false p STDOUT.isatty # => true
baweaver|work has quit [Remote host closed the connection]
<jerski> i'm having brain freeze