havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.0; 2.2.4; 2.1.8; 2.0.0-p648: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
mic_e has joined #ruby
pawnbox has joined #ruby
zenspider has quit [Quit: bye]
j_mcnally has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
zenspider has joined #ruby
rns has joined #ruby
dwfait has joined #ruby
Xeago has quit [Remote host closed the connection]
radgeRayden has quit [Ping timeout: 265 seconds]
al2o3-cr has joined #ruby
Darmani has quit [Ping timeout: 252 seconds]
underplank has joined #ruby
dwfait has quit [Ping timeout: 240 seconds]
symm- has joined #ruby
underplank has quit [Client Quit]
duckpuppy has joined #ruby
underplank has joined #ruby
symm- has quit [Ping timeout: 245 seconds]
duckpuppy has quit [Ping timeout: 276 seconds]
MattV has joined #ruby
RegulationD has joined #ruby
symm- has joined #ruby
MattV has quit [Client Quit]
techietrash has joined #ruby
techietrash has joined #ruby
techietrash_ has joined #ruby
underplank has quit [Quit: underplank]
MattV has joined #ruby
underplank has joined #ruby
mattwildig has quit []
graffix has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
alakra has quit [Ping timeout: 240 seconds]
MattV has quit [Client Quit]
juddey has joined #ruby
pawnbox has joined #ruby
MattV has joined #ruby
underplank has quit [Client Quit]
juddey has quit [Remote host closed the connection]
MattV has quit [Client Quit]
pawnbox has quit [Ping timeout: 260 seconds]
techietrash_ is now known as paultreny
last_staff has joined #ruby
akem has joined #ruby
Rodya_ has joined #ruby
last_staff has quit [Client Quit]
celly has joined #ruby
Jackneill has quit [Ping timeout: 255 seconds]
houhoulis has quit [Remote host closed the connection]
Exce1l has joined #ruby
MattV has joined #ruby
nanoz has joined #ruby
celly has quit [Remote host closed the connection]
djbkd has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
al2o3-cr has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
marr has quit [Ping timeout: 272 seconds]
atomical_ has joined #ruby
crazydiamond has joined #ruby
jdawgaz has joined #ruby
QpQ4 has joined #ruby
gvillalta99 has quit [Ping timeout: 260 seconds]
ElFerna has joined #ruby
bkxd has quit [Ping timeout: 246 seconds]
atomical has quit [Ping timeout: 255 seconds]
<Ox0dea> Peter Naur (the N in BNF) has died. :<
<pontiki> awww. how old was he?
<Ox0dea> 87.
alakra has joined #ruby
ur5us has joined #ruby
* pontiki nods
<pontiki> same age as my dad
harai54 has quit [Ping timeout: 260 seconds]
sp1rs has joined #ruby
MattV has quit [Quit: Leaving.]
sp1rs has quit [Read error: Connection reset by peer]
TomPeed has joined #ruby
MattV has joined #ruby
sp1rs has joined #ruby
atomical has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
speakingcode has joined #ruby
atomical_ has quit [Ping timeout: 256 seconds]
MattV has quit [Quit: Leaving.]
shazaum has joined #ruby
shazaum has quit [Remote host closed the connection]
sp1rs has quit [Ping timeout: 255 seconds]
MattV has joined #ruby
houhoulis has joined #ruby
al2o3-cr has joined #ruby
MattV has quit [Client Quit]
duckpuppy has joined #ruby
Exce1l has quit [Quit: Exce1l]
agent_white has quit [Quit: beRitebak]
sp1rs has joined #ruby
duncannz has quit [Ping timeout: 240 seconds]
harai54 has joined #ruby
Phanes has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
sp1rs has quit [Ping timeout: 260 seconds]
duckpuppy has quit [Ping timeout: 265 seconds]
fly5566 has joined #ruby
sp1rs has joined #ruby
Fridtjof has quit [Ping timeout: 255 seconds]
MattV has joined #ruby
pawnbox has joined #ruby
jdawgaz has joined #ruby
tectonic has joined #ruby
krobzaur has quit [Ping timeout: 260 seconds]
pdoherty has quit [Read error: Connection reset by peer]
pawnbox has quit [Ping timeout: 250 seconds]
pdoherty has joined #ruby
crazydiamond has quit [Ping timeout: 265 seconds]
dtordable has joined #ruby
dtordable has quit [Remote host closed the connection]
dtordable has joined #ruby
astrobunny has joined #ruby
TheNet has joined #ruby
dtordable has quit [Read error: Connection reset by peer]
rattatmatt has joined #ruby
mezcan has joined #ruby
dorei has quit []
rns has quit [Ping timeout: 246 seconds]
scripore has joined #ruby
TheNet has quit [Quit: Leaving...]
TheNet has joined #ruby
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tulak has joined #ruby
rkazak_ has quit [Quit: Sleep.....ing....]
rkazak has joined #ruby
Yzguy has quit [Quit: Zzz...]
juddey has joined #ruby
hinbody has quit [Ping timeout: 260 seconds]
freerobby has joined #ruby
djbkd has quit [Quit: My people need me...]
skcin7 has joined #ruby
sp1rs has quit [Quit: sp1rs]
jbrhbr has joined #ruby
QpQ4 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
Fridtjof has joined #ruby
araujo_ has joined #ruby
QpQ4 has joined #ruby
araujo has quit [Ping timeout: 276 seconds]
northfurr has joined #ruby
bkxd has joined #ruby
krobzaur has joined #ruby
davedev24 has quit []
lkba has quit [Ping timeout: 255 seconds]
craysiii has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 246 seconds]
freerobby has quit [Quit: Leaving.]
freerobby has joined #ruby
freerobby has quit [Client Quit]
m3_del has quit [Remote host closed the connection]
pawnbox has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AndroUser2 has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has quit [Read error: Connection reset by peer]
zeroDivisible has quit [Quit: WeeChat 1.3]
MattV has quit [Quit: Leaving.]
pawnbox has quit [Ping timeout: 255 seconds]
ElFerna has quit [Ping timeout: 255 seconds]
jdawgaz has joined #ruby
iateadonut has joined #ruby
krz has joined #ruby
scoot has joined #ruby
haraigo has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
RegulationD has joined #ruby
harai54 has quit [Ping timeout: 276 seconds]
yqt has quit [Ping timeout: 246 seconds]
RegulationD has quit [Ping timeout: 245 seconds]
psy_ has joined #ruby
iateadonut has quit [Quit: Leaving.]
iateadonut has joined #ruby
mistermocha has joined #ruby
radgeRayden has joined #ruby
pawnbox has joined #ruby
mistermocha has quit [Ping timeout: 240 seconds]
pawnbox has quit [Ping timeout: 246 seconds]
QpQ4 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
celly has joined #ruby
duncannz has joined #ruby
domgetter has joined #ruby
ur5us has quit [Remote host closed the connection]
Zamerick has quit [Ping timeout: 276 seconds]
ur5us has joined #ruby
celly has quit [Ping timeout: 256 seconds]
<droptone> What is the best method to subtract 3 months from a Ruby DateTime object?
northfurr has quit [Quit: northfurr]
yeticry has quit [Ping timeout: 246 seconds]
northfurr has joined #ruby
yeticry has joined #ruby
northfurr has quit [Client Quit]
northfurr has joined #ruby
paradisaeidae has joined #ruby
A124 has quit [Read error: Connection reset by peer]
<Radar> droptone: with or without activesupport?
northfurr has quit [Client Quit]
yeticry has quit [Remote host closed the connection]
m3_del has joined #ruby
yeticry has joined #ruby
<Radar> droptone: With AS: time - 3.months
<Radar> without AS: ???
Darmani has joined #ruby
bkxd has joined #ruby
A124 has joined #ruby
<droptone> I have ActiveSupport included in this project - currently I'm turning a value returned from an API into a DateTime object via DateTime.parse
<Darmani> Hey kids ^.^
<droptone> but I'm pretty sure it's just leveraging the 'time' require
<droptone> Oh wait, never mind
<droptone> Yes, I hear you.
arescorpio has joined #ruby
kfpratt has quit [Remote host closed the connection]
<droptone> So what would the AS method be to declare the dt object?
kfpratt has joined #ruby
<droptone> ::Time and ::DateTime don't exist
<Radar> Time.parse instead of DateTime.
colegatron has quit [Ping timeout: 264 seconds]
<Radar> Time.parse(blah) - 3.months
nertzy has joined #ruby
northfurr has joined #ruby
freerobby has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
sankaber has joined #ruby
m3_del has quit [Remote host closed the connection]
sankaber has quit [Client Quit]
pawnbox has joined #ruby
haraigo has quit [Ping timeout: 265 seconds]
djbkd has joined #ruby
dwfait has joined #ruby
crystalmaiden has joined #ruby
ElFerna has joined #ruby
hinbody has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
crystalmaiden has quit [Max SendQ exceeded]
crystalmaiden has joined #ruby
Xentil has quit [Ping timeout: 245 seconds]
psy_ has quit [Remote host closed the connection]
crystalmaiden has quit [Max SendQ exceeded]
kp666 has quit [Ping timeout: 240 seconds]
crystalmaiden has joined #ruby
jbrhbr has quit [Quit: Leaving.]
crystalmaiden has quit [Max SendQ exceeded]
devoldmx has joined #ruby
crystalmaiden has joined #ruby
Channel6 has joined #ruby
crystalmaiden has quit [Max SendQ exceeded]
Rodya__ has joined #ruby
ibouvousaime has quit [Ping timeout: 276 seconds]
mezcan has quit [Remote host closed the connection]
colegatron has joined #ruby
crystalmaiden has joined #ruby
dwfait has quit [Ping timeout: 245 seconds]
Rodya_ has quit [Ping timeout: 272 seconds]
crystalmaiden has quit [Max SendQ exceeded]
rkazak has quit [Quit: Sleep.....ing....]
crystalmaiden has joined #ruby
mary5030 has joined #ruby
crystalmaiden has quit [Max SendQ exceeded]
crystalmaiden has joined #ruby
haraigo has joined #ruby
Yzguy has joined #ruby
Yzguy has quit [Max SendQ exceeded]
crystalmaiden has quit [Max SendQ exceeded]
<TheNet> anyone know of a gem for managing version numbers?
crystalmaiden has joined #ruby
<TheNet> i.e. if I have a version 1.0 and I want to increment the patch by 1, I would get 1.0.1
crystalmaiden has quit [Max SendQ exceeded]
crystalmaiden has joined #ruby
<Ox0dea> TheNet: Are you sure you need a library for that?
Rodya__ has quit [Quit: Leaving...]
<TheNet> Ox0dea: well I don't know if the original version number will be 1.0, or 1.0.1
<TheNet> or just 1
<TheNet> I could do the checks, but it would be nice if something already existed
<TheNet> I think I found one http://dazuma.github.io/versionomy/
<apeiros> TheNet: various gems which help with creating gems provide stuff like that. I've seen e.g. rake tasks for this purpose.
<apeiros> that said, I too don't really see the need for that.
<apeiros> I probably type less by doing it manually than if I'd invoke a rake task or another automatism.
<TheNet> apeiros: I want to automate a change to a bunch of files that each have a version number that I want to bump
<apeiros> why'd you have them in multiple files?
colegatron has quit [Ping timeout: 256 seconds]
<TheNet> what?
<apeiros> …
<TheNet> these are zip files
<TheNet> not gems or scripts
<diegoviola> I want to remove ruby from /usr/local, I compiled it myself
<TheNet> sounds like a bad idea
<diegoviola> no, it's not a bad idea
<diegoviola> I want to compile a newer version
<diegoviola> 2.3
chouhoulis has joined #ruby
<TheNet> isn't it used by the OS though?
<diegoviola> no
<apeiros> TheNet: that explains some things.
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
rkazak has joined #ruby
<Ox0dea> diegoviola: `make --prefix=/usr/local uninstall` might do.
<diegoviola> TheNet: when you compile things to /usr/local, there is a very little chance it will be used by the OS itself, if it were installed by the distro package manager to /usr, then it's likely that other packages might depend on it
<diegoviola> Ox0dea: I don't think the Makefiles in the ruby source have an uninstall
<diegoviola> I already checked
<TheNet> diegoviola: oh I'm thinking of /usr/bin
<Ox0dea> diegoviola: You're mistaken.
<diegoviola> Ox0dea: about the Makefile?
<Ox0dea> diegoviola: Yes, the rule is in common.mk.
AlexTheLion has joined #ruby
agent_white has joined #ruby
<diegoviola> oh
<diegoviola> well, sorry
<diegoviola> thanks for letting me know
<Ox0dea> Sure thing.
<agent_white> Evenin' folks
<Ox0dea> TheNet: To what would you like "1" to bump?
jtdowney has quit [Quit: ZNC]
tulak has quit [Remote host closed the connection]
zast has joined #ruby
<domgetter> TheNet: There's no way for a program to know if some set of changes represent a patch, a minor version change, or a major version change.
<Ox0dea> domgetter: Not with that attitude.
<domgetter> brb, building mind-reading AI
<shevy> lol
<Radar> diegoviola: what are you compiling that new Ruby with?
<Radar> ruby-install?
<TheNet> domgetter: this isn't a library, I'm iterating over a bunch of zip files that have a version number in their name and bumping the patch on each of them by 1
<Ox0dea> TheNet: So "1" bumps to "1.0.1"?
build22 has joined #ruby
<TheNet> It's a one-time operation, never plan on doing this again
build22 has left #ruby [#ruby]
<TheNet> right
<Ox0dea> Weird.
<Ox0dea> Why?
<apeiros> TheNet: you still need the rules
<diegoviola> Radar: yes
ur5us has quit [Remote host closed the connection]
<TheNet> Ox0dea: a bunch of maps for a game are configured wrong. I'm automating the fix
<apeiros> TheNet: that sounds less like bumping and more like replacing
<domgetter> TheNet: Oh okay. yea, youd have to codify the rules of version changing yourself and then run the script
<TheNet> It's literally just semver
<apeiros> semver literally has nothing to do with automated version bumping :-p
<domgetter> TheNet: and semver is a set of rules you'll have to codify
ElFerna has quit [Ping timeout: 256 seconds]
<TheNet> which is why I was asking if there was a library that did this already
<apeiros> your "that" is insufficiently specified.
<Darmani> Ox0dea: I'm kinda curious
<shevy> that thing man
<apeiros> which is what a couple of people try to tell you for a while now.
<Darmani> Do you ever sleep?
<Ox0dea> Darmani: Once.
<Darmani> How was it?
<Ox0dea> It was a Thursday.
<Ox0dea> I have no idea; I was unconscious.
<Darmani> lmao
<Ox0dea> I heard that was largely the point.
chouhoulis has quit [Remote host closed the connection]
<Darmani> Who told you that?
<Darmani> That's false.
<Ox0dea> And in that sleep what dreams may come?
<TheNet> apeiros: I think there was a communication error somewhere along the way. I have it figured out though. :)
<Darmani> exactly.
<TheNet> domgetter: thanks
colegatron has joined #ruby
Jardayn has quit [Quit: Leaving]
tectonic has quit []
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
ur5us has joined #ruby
bb010g has joined #ruby
<Ox0dea> TheNet: Alternatively: https://eval.in/496877
dseitz has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
<diegoviola> Ox0dea: it looks like I'll need to rebuild/reinstall ruby 2.2.4 to uninstall it
<diegoviola> No rule to make target `.installed.list', needed by `uninstall'. Stop.
charliesome has quit [Read error: Connection reset by peer]
<diegoviola> it wants that file
<diegoviola> .installed.list
<diegoviola> I don't have it anymore
<TheNet> Ox0dea: neat, thanks
pawnbox has joined #ruby
<Ox0dea> diegoviola: Did you purposely delete it?
<Ox0dea> TheNet: Sure thing.
<diegoviola> I think that file is created when I run make install
charliesome has joined #ruby
<diegoviola> Ox0dea: no, I didn't
<shevy> diegoviola there is a much simpler alternative - compile into a specific versioned directory using --prefix
northfurr has quit [Quit: northfurr]
<diegoviola> I don't know where ruby-install put the source
<diegoviola> found it
<diegoviola> /usr/local/src/ruby-2.2.4
haraigoshi has joined #ruby
<diegoviola> phew
northfurr has joined #ruby
<shevy> there!
<shevy> a versioned directory :D
northfurr has quit [Client Quit]
ur5us has quit [Ping timeout: 272 seconds]
<diegoviola> ok so I have that file
mary5030 has quit [Remote host closed the connection]
<diegoviola> just ran make uninstall
colegatron has quit [Ping timeout: 240 seconds]
kfpratt has quit [Remote host closed the connection]
<diegoviola> and now I don't have ruby anymore
<Ox0dea> Huzzah!
celly has joined #ruby
haraigo has quit [Ping timeout: 246 seconds]
<diegoviola> thanks folks :)
<diegoviola> now to install ruby-install 0.6.0 and ruby 2.3
<diegoviola> 2.3.0
<diegoviola> but first I have a question I need to answer myself, do I compile ruby to /usr/local or as a user in ~/.rubies
<diegoviola> I just have to run my rails app (as a user)
pawnbox has quit [Ping timeout: 256 seconds]
<shevy> ruby-install will install into your home dir right?
<diegoviola> removing ruby from /usr/local wasn't that hard
<diegoviola> yes
<diegoviola> if you run it as a user, it puts the source in ~/src and the rubies in ~/.rubies
<diegoviola> so it's easier to remove, just rm -rf ~/.rubies/ruby-2.2.4, etc
<diegoviola> well, removing it from /usr/local wasn't terribly hard
<havenwood> shevy: "Supports installing into /opt/rubies/ for root and ~/.rubies/ for users by default."
<diegoviola> but I'm sure there are leftovers in /usr/local
<havenwood> shevy: Wherever you'd like as an option.
<shevy> aha
<Ox0dea> $ git clone https://github.com/ruby/ruby && cd ruby && autoconf && mkcd build && configure .. & make --prefix=~/.rubies/ruby-trunk install
<shevy> diegoviola yeah! just kill a directory and you are done
dlitvak has joined #ruby
Phanes has quit [Quit: ...shout as you did in rome...]
<diegoviola> kill a directory?
<Darmani> Ox0dea: Dude
<Ox0dea> Darmani: The bleeding edge is hot.
<Darmani> Should I just study documentation? Or is there like a book you would recommend I should read?
<Ox0dea> ?books Darmani
<ruboto> Darmani, You can find a list of recommended books at http://ruby-community.com/pages/links
<Darmani> :o
<Darmani> cool.
kfpratt has joined #ruby
<Radar> ?twgr
<ruboto> I don't know anything about twgr
<Radar> Thanks ruboto
<Ox0dea> Darmani: This tutorial is also very good: https://youtu.be/GlKL_EpnSp8?t=28
<Darmani> Ox0dea: You're an idiot. Lol
<agent_white> Darmani: I hope you've gotten somewhere... you were asking the same question over 8 hours ago.
<Ox0dea> You're not wrong.
<Darmani> agent_white: I haven't been studying I was doing other things. I just came back to my computer.
Phanes has joined #ruby
Phanes has quit [Changing host]
Phanes has joined #ruby
solocshaw has quit [Ping timeout: 260 seconds]
<agent_white> Ah. And ick! 'studying'. That makes it sound like boring work instead of fun.
<Darmani> That's because it fucking is lol
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
<Darmani> Don't get me wrong I enjoy it, but when I don't understand what to do or where to look it becomes studying.
<Darmani> kind of.
<Darmani> I also don't understand something just by reading it. It takes a few different methods before I get a concept or idea.
<Darmani> oh to be me. It's such a wonderful thing.
<Ox0dea> /part #self-loathing
<shevy> Darmani that is why you have to write a lot of code
nbdy has joined #ruby
<agent_white> Same. Gotta just dive in.
* Darmani sigh
<Darmani> okay guys.
braincrash has quit [Quit: bye bye]
<Radar> I've read so many fitness blogs but I don't have those washboard abs. Please help
pawnbox has joined #ruby
<Darmani> LMAO
<Darmani> That's funny.
<shevy> lol
<Darmani> Radar: Aren't you clever?
<shevy> yeah... homer simpson worthy... "I eat so many donuts and still don't lose weight"
colegatron has joined #ruby
<Radar> Darmani: While I might be cleverer than you at Ruby and analogies, you are definitely cleverer than me at... well, I am not sure yet because I din't know you.
<Radar> don't*
<Darmani> I'm sure we'll think of something. Lol
<Radar> Something.
<Darmani> ,,l,,
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Radar> Point is: different folks are differently clever.
<pipework> Some people aren't clever at all.
<apeiros> seems they try to show you that they're clever at symbolisms
astrobun_ has joined #ruby
* pipework points at himself :(
Ox0dea has quit [Changing host]
Ox0dea has joined #ruby
<apeiros> Darmani: might not be all too clever to show the finger to an op, though
<Radar> apeiros: seems that way
ur5us has joined #ruby
<Darmani> apeiros: thanks for the tip. Do you always give advice to people who don't ask?
<Ox0dea> Just the tip?
UtkarshRay has quit [Ping timeout: 250 seconds]
<apeiros> Darmani: I also sometimes show people the door even though they don't want to go…
<Radar> Darmani: Yeah it happens all the time. Little personality quirk.
<shevy> lol that was an epic reply from apeiros :D
<Darmani> Is apeiros a mod or something?
<Darmani> Is that why he acts so high and mighty?
<Radar> Darmani: plz consult /msg chanserv access #ruby list
<agent_white> Darmani: If it's free, it's advice; if you pay for it, it's counceling; if you can use either one, it's a miracle.
<Darmani> Oh wonderful.
<shevy> HAHAHA
<shevy> this is #funday on #ruby
kfpratt has quit [Remote host closed the connection]
<Darmani> No one his opinion is the only one that matters.
<Darmani> It all makes sense now.
<Darmani> Forgive me your highness, forgive my arrogance.
<domgetter> Funday Monday?
krobzaur has quit [Ping timeout: 256 seconds]
<Ox0dea> He's repentant, if nothing else. <3
<shevy> oh damn yeah... it's a Monday and I woke up not long ago :(
rkazak has quit [Quit: Sleep.....ing....]
ur5us has quit [Ping timeout: 250 seconds]
araujo_ has quit [Quit: Leaving]
<Darmani> Okay I really should study. Or pretend to study.
<Darmani> Or stare at my computer screen and call that studying.
braincrash has joined #ruby
<Radar> yup.
<Darmani> I forget which one is correct...
<shevy> Darmani you can try it with some different strategy... e. g. learn just 3-5 minutes but very intensely, then do something else - repeat a lot
<Ox0dea> shevy: Is there a name for that technique?
lkba has joined #ruby
<agent_white> Ox0dea: Pomodoro.
<Ox0dea> agent_white: 3-5, though?
<Darmani> shevy: You know, I actually don't have great habits when it comes to learning. That's probably a good method.
<agent_white> Ox0dea: Extreme pomodoro?
<Ox0dea> Heh.
<domgetter> Darmani: what are you studying?
<agent_white> I wouldn't go 3-5. Give it 15.
<Darmani> domgetter: How to have washboard abs
<agent_white> Darmani: It helps if you have a goal in mind. Mindless 'studying' is the worst.
<Darmani> I've been reading Fitness blogs for the past two hours.
<shevy> Ox0dea dunno really but I think it's similar to when you just keep on repeating some facts for some upcoming exam
<Radar> Darmani: http://tomatoi.st/uxco
<Darmani> agent_white: but what's the goddamn goal?
<Radar> Darmani: Hit Pomodoro, then learn for that.
<Radar> Darmani: Solve a Sudoku.
QpQ4 has joined #ruby
<Darmani> The fuck is a Sudoku?
<agent_white> ^ tomato-timer.com also... but I like Radar's more.
<Radar> Although that might be too hard.
<Radar> Darmani: Do you have any Ruby experience at all?
<agent_white> Darmani: You tell me. When I was learning about switch-statements, I made a little program to order a pizza.
<Darmani> Radar: Bits and pieces. It's all jumbled really. I can do basic things....
<Darmani> uhhhmmm.
<agent_white> Radar: I don't think he has any prior programming experience.
<Radar> Darmani: Ok, your goal for the next 25 mins is to get through as many of http://rubykoans.com/ as you can.
<Darmani> Oh like that Fizzbuzz program shit?
<Darmani> I figured that one out myself ^.^
kfpratt has joined #ruby
<Radar> Fizzbuzz is really an idiot test.
<agent_white> ^^ Darmani do what Radar said!
<agent_white> I enjoyed Ruby Monk as well.
<Radar> If you can do Fizzbuzz, then you can do programming.
<Darmani> lmao
<Darmani> I passed the idiot test
<Darmani> great
krz has quit [Read error: Connection reset by peer]
<shevy> yeah :)
<domgetter> Darmani: part of learning how to program is ignoring yourself when you tell yourself that you already know how to do something
FooMunki has quit [Quit: FooMunki]
krz has joined #ruby
<domgetter> Knowing how to do something is not a good reason to not do it
<Darmani> domgetter: O.o????
<Darmani> That was a double negative.
<apeiros> domgetter: but that's my favorite reason not to do things :-(
<agent_white> Darmani: Have you started on ruby koans or ruby monk?
<Darmani> agent_white: I've never heard of Ruby Koans. I've gone through most of Rubymonk.
PaulCapestany has quit [Remote host closed the connection]
<apeiros> Darmani: there's also rubywarrior
QpQ4 has quit [Ping timeout: 246 seconds]
<domgetter> Darmani: It was an intentional double negative
kfpratt has quit [Remote host closed the connection]
<Darmani> apeiros: Are we friends now? o.o
<agent_white> Darmani: Then look it up? And if you have gone through 'most', why are you still worried about finding a path to learn?
<apeiros> Darmani: no? unless you insist on behaving like a pre-teen, I'm not your enemy, though.
kam270 has joined #ruby
kfpratt has joined #ruby
<Darmani> agent_white: Well... It all seems very basic. I know that sounds dumb but I feel like I know it already.
<Darmani> apeiros: You're the one making enemies -__-
<shevy> Darmani well, simple solutions - build larger programs
<shevy> they will become more complex automatically
PaulCapestany has joined #ruby
<apeiros> Darmani: no, I'm the one making the rules you don't like and choose the wrong way to show that.
<domgetter> Darmani if you know it so well, then practicing it should be easy :)
<apeiros> (insert random missing "you")
build22 has joined #ruby
AndroUser2 has quit [Ping timeout: 240 seconds]
<agent_white> Darmani: It's probably not if you're having issues with it. Take a second look. :)
<shevy> Darmani you can also do some commandline interface next for some .rb file that you use - enable options such as --help or --directory=/tmp
<domgetter> There's a difference between knowing something and *willing* it
<Darmani> shevy: Well. they seem so far out of reach though.
<apeiros> Darmani: you may go over the backlog and you'll see that all I did was tell you that your violence metaphor was not cool and not welcome, and that showing the finger to an op is not a good idea.
<shevy> naaaaah
<shevy> it's simple! just ARGV handling
<Darmani> A simple Cipher is easy enough to do or any other method for that matter
<Darmani> And then you tell me to build a music app
<Darmani> lmao
<domgetter> For example, right now I'm taking typing tests. I can already type sufficiently fast and I know the keyboard, but I want to get better
<shevy> then use modules + classes and have a logical structure
kam270 has quit [Max SendQ exceeded]
<shevy> (project structure that is)
<agent_white> domgetter: Typeracer?! :D
kam270 has joined #ruby
<domgetter> agent_white: 10fastfingers ;)
<apeiros> Darmani: so if that makes me your enemy, I'd say that's pretty much a problem on your side.
<agent_white> Hm. Never heard of it.
<Ox0dea> Are we gonna race?
<domgetter> agent_white: it's pretty nice http://www.10fastfingers.com/typing-test/english
<Darmani> apeiros: Are we still discussing this?
kam270 has quit [Max SendQ exceeded]
<Darmani> I'm over it.
<apeiros> Darmani: lol
<apeiros> if you say so
kam270 has joined #ruby
<Ox0dea> domgetter: That was from forever ago, though.
ohaibbq has joined #ruby
<diegoviola> does ruby-install requires I use chruby if I compile it as a user?
<domgetter> Ox0dea: My record is 111 from earlier today. I aspire to be the fastest typer in the world
<diegoviola> or I just have to add ruby to my PATH?
<Darmani> Okay. I'm going to study.
<Darmani> I'll be back later.
VladGh has quit [Ping timeout: 260 seconds]
<Darmani> What was I supposed to do again
<Darmani> Oh yeah Ruby Koans
<Darmani> brb
<agent_white> :)
<Ox0dea> diegoviola: chruby just makes the process even more painless.
juddey has quit [Ping timeout: 276 seconds]
<diegoviola> right, so I'm not sure I want to use chruby+ruby-install as a user on my server, or only use ruby-install and compile ruby in /usr/local
<agent_white> domgetter: I'm still working at pushing mine a bit. I'm been at 85wpm for awhile.
<pipework> Seeing as it's just a server that's your personal one, I wouldn't worry one bit about cleanliness anymore than you really actually want to.
ur5us has joined #ruby
<diegoviola> it's not my personal server
<pipework> I personally don't include build toolchains on production-like systems.
paradisaeidae_ has joined #ruby
akem has quit [Ping timeout: 256 seconds]
devoldmx has quit [Read error: Connection reset by peer]
<shevy> diegoviola use a versioned directory!
Yzguy has joined #ruby
devoldmx has joined #ruby
<pipework> shevy: Even better, have the server forward all requests to his development machine!
paradisaeidae has quit [Ping timeout: 265 seconds]
<diegoviola> haha
astrobun_ has quit [Remote host closed the connection]
<Ox0dea> #deep: https://eval.in/496878
celly has quit [Remote host closed the connection]
EvanGuru has quit [Quit: Oh shit the geek died!]
ur5us has quit [Ping timeout: 264 seconds]
arup_r has joined #ruby
yes`r has joined #ruby
AckZ has joined #ruby
ohaibbq_ has joined #ruby
ohaibbq has quit [Read error: Connection reset by peer]
haraigoshi has quit [Ping timeout: 265 seconds]
ihsw has quit [Quit: Lost terminal]
<diegoviola> I'll just dump it to /usr/local
<diegoviola> standard path
build22 has quit [Read error: Connection reset by peer]
<diegoviola> s/dump/install/
build22 has joined #ruby
<diegoviola> meaning I'm just lazy to set up paths myself manually
ElFerna has joined #ruby
build22 has quit [Client Quit]
<Darmani> Wait. I'm confused how to proceed..
<Darmani> So I open the Ruby Koans in a text editor..
<Darmani> And then what
ElFerna has quit [Ping timeout: 246 seconds]
<pipework> diegoviola: good luck upgrading. :)
<Radar> Darmani: Did you read the readme yet?
<Darmani> Of course I did
<Darmani> not.
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has quit [Remote host closed the connection]
BackEndCoder has quit [Ping timeout: 240 seconds]
<Ox0dea> Darmani: What's the deal, man? You're actively resisting assistance.
scripore has quit [Quit: This computer has gone to sleep]
BackEndCoder has joined #ruby
<Darmani> Ox0dea: I'm not honestly. I didn't think I had to read the ReadMe. I thought I could just go straight into it.
Evan- has joined #ruby
freerobby has quit [Quit: Leaving.]
yes`r has quit [Ping timeout: 240 seconds]
<agent_white> I want to believe this is not a troll.
AlexTheLion has quit [Quit: Lingo: www.lingoirc.com]
<Darmani> I'm not the type that reads instructions...
<Darmani> I should.
<shevy> he is just very lazy
<Darmani> I've always been more trial and error honestly.
<apeiros> agent_white: most certainly not a troll.
Evan- has quit [Client Quit]
<shevy> Darmani you need a ruby black-ops variant where you can get your mission assignment through ruby, then you will read that since it suddenly appears more interesting
<Darmani> The ReadMe is an RDoc though. I'm not sure how to open that >.<
<apeiros> rdoc is plaintext
<diegoviola> pipework: ty
<Darmani> lmaoo shevy you're funny.
<diegoviola> $ ruby-install --system ruby 2.3.0
<diegoviola> just did that already
<agent_white> erm
<agent_white> Sorry domgetter
<diegoviola> ruby-install is amazing
<Ox0dea> Darmani: http://rubykoans.com/
<agent_white> I must be a magician.
<shevy> lol
<shevy> it really is #funday here
<apeiros> now you even have a wizard hat
<Darmani> Alright well let me go read all this shit I guess
<agent_white> Wait
* Darmani sighs
<agent_white> !
<agent_white> :(
<Ox0dea> Missed your chance to wreak havoc.
<agent_white> Nah I rmrfed my server
<domgetter> agent_white: s'all good
adgtl has joined #ruby
bluOxigen has joined #ruby
<Radar> TIL agent_white has ops
<agent_white> Radar: The world was unsafe for a brief moment.
<Radar> or at least, had.
<Ox0dea> agent_white: I thought type systems were supposed to save us?
<apeiros> agent_white: we felt a tremble
<Ox0dea> Earth :: Unsafe(World)
<apeiros> or wait, tremble is the verb and tremor the noun?
<Ox0dea> apeiros: Aye.
pawnbox has joined #ruby
<Ox0dea> Then again, "a tremble" isn't unheard of, and "tremoring" is a word.
<Ox0dea> English is crazy.
ur5us has joined #ruby
<apeiros> just like about all languages
<Ox0dea> You take that back.
<Ox0dea> Toki Pona is awesome.
<diegoviola> Radar: do I really want to --disable-install-rdoc when compiling ruby on my server?
<apeiros> that's a more recent artifical one, right?
<diegoviola> Radar: because it's already building...
<Ox0dea> Aye.
dopie has quit [Quit: Lost terminal]
<Radar> diegoviola: Don't worry if you hadn't done it.
<diegoviola> should I ctrl-c?
<apeiros> and you also learnt esperanto and lojban in order to compare?
<Radar> diegoviola: no need
<Ox0dea> apeiros: s/artificial/constructed/, though.
<diegoviola> ok
<diegoviola> ty
dopie has joined #ruby
nullwarp has quit [Read error: Connection reset by peer]
choke has joined #ruby
astrobun_ has joined #ruby
rkazak_ has joined #ruby
Melpaws has joined #ruby
adgtl_ has joined #ruby
houhoulis has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 265 seconds]
UtkarshRay has joined #ruby
flughafen has quit [Ping timeout: 255 seconds]
Evan- has joined #ruby
adgtl has quit [Ping timeout: 265 seconds]
<Melpaws> i'm struggling with a silly string interpolation (newbie here). I'm trying to use a call inside a method like so : results = pp @client.characters(name: 'name_passed_here') . But it returns empty on the call . Suggestions?
toretore has quit [Ping timeout: 265 seconds]
Wsewolod has joined #ruby
pawnbox has quit [Remote host closed the connection]
Aasha has joined #ruby
Wsewolod has quit [Remote host closed the connection]
<apeiros> Melpaws: you'll have to show your .characters method. or if the problem is with the value you pass, then the actual value.
<apeiros> since you talk about string interpolation: note that single quoted strings do not interpolate.
<Melpaws> hm. Let me get a gist up since i've tried a few attempts so far and gone no where
mary5030 has joined #ruby
shinnya has joined #ruby
bkxd has joined #ruby
<Ox0dea> shevy: Mind a PM?
mary5030 has quit [Ping timeout: 250 seconds]
flughafen has joined #ruby
pawnbox has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
<diegoviola> !!! Installation of ruby 2.3.0 failed!
<diegoviola> f*ck
fly5566 has quit [Remote host closed the connection]
<diegoviola> I don't get why it failed
<diegoviola> /home/admapp/src/ruby-2.3.0/lib/fileutils.rb:1393:in `initialize': Permission denied @ rb_sysopen - /usr/local/bin/ruby (Errno::EACCES)
cpup has quit [Ping timeout: 240 seconds]
<domgetter> agent_white: I actually made my own typing test that tells you how long it takes to type individual letter combinations: http://domgetter.github.io/typerooni/index.html
<diegoviola> it sounds like a permission thing, wouldn't ruby-install ask me for sudo password to install it?
cpup has joined #ruby
duncannz has quit [Remote host closed the connection]
Yzguy has quit [Quit: Zzz...]
zast has quit [Remote host closed the connection]
ur5us has joined #ruby
<Ox0dea> Heh, "wordlet".
baweaver has joined #ruby
<diegoviola> nevermind, compiling as root now
<apeiros> Melpaws: you getting up a gist still a thing? I might be gone soon…
arescorpio has quit [Quit: Leaving.]
cmolenda has joined #ruby
dwfait has joined #ruby
<Ox0dea> domgetter: Needs more than 100 words. :P
ur5us has quit [Ping timeout: 240 seconds]
<domgetter> Ox0dea: hehe, I know
<domgetter> lemme bump it up to 150 for you
baweaver has quit [Ping timeout: 246 seconds]
yes`r has joined #ruby
<Ox0dea> Danke. <3
pawnbox_ has joined #ruby
VladGh has joined #ruby
bluOxigen has left #ruby [#ruby]
pawnbox has quit [Ping timeout: 260 seconds]
cmolenda has quit [Remote host closed the connection]
cmolenda has joined #ruby
<domgetter> Ox0dea: there you go
<Ox0dea> domgetter: Much appreciated.
<domgetter> Ox0dea: also, if you press F5 while your cursor is in the input field, it will reset the game and keep your history. the next time you finish a game, youll see all the wordlets youve typed up to that time (until you close the tab or do a refresh)
<Melpaws> sorry @apeiros - got called away
<Melpaws> Gist :
<Ox0dea> domgetter: Ah, that's nifty. I noticed that F5 didn't do a full reload, but it's neat that it has a memory too.
<Ox0dea> Melpaws: You're passing a keyword argument, but the method expects a positional one.
<domgetter> Ox0dea: the magic you can do with persistent immutable data structures!
<Ox0dea> domgetter: Time travel, even!
<Melpaws> i've tried a few ways in the name like so :
<domgetter> Ox0dea: hold down F5 and watch the game reset every frame!
<Ox0dea> Melpaws: Er, sorry, maybe not. I made that call based on the signature of #character_test.
<Melpaws> https://gist.github.com/dylnnlsn/b4ee65482021ce2f9c98 updated . So do i pass #{like_so} ?
<Darmani> Ox0dea: Breh
<Darmani> I haven't come across this "Assert Equals" before. What does it do? o.o
<Ox0dea> Darmani: It asserts equality, silly.
<Darmani> Lol
<Darmani> I swear to god
<Darmani> tell me
<apeiros> Melpaws: as said, single quoted strings do not interpolate.
<domgetter> Darmani: There's not any more to it.
scroff has quit [Ping timeout: 245 seconds]
<domgetter> Darmani: if the two things are equal, the assertion passes. if the two things passed in are not equal, the assertion fails
<Darmani> That's really what it does? So it tests two values to see if they are the same?
<apeiros> Melpaws: but from your gist, I still don't see what you're struggling with. please make sure you include expected and actual outcome.
<Ox0dea> Darmani: Yeah.
<Darmani> oh.
<Darmani> Well that makes sense I guess.
<domgetter> Darmani: yes. It does this so it can make some pretty green and red output in your console to show you what tests have failed
<Melpaws> ah
<Melpaws> one sec @apeiros
<Darmani> And here I thought you were being your normal sarcastic self Ox0dea
<domgetter> Darmani: it becomes super useful when you're changing code and you didn't write it, or you wrote it months ago and don't 100% remember everything about it
<Darmani> domgetter: Hm. I'll keep that in mind. Thank you sir ^.^
<apeiros> Melpaws: additionally - interpolation of a local variable is "#{variable}", not "#variable"
<Ox0dea> Darmani: Programmatically validating your assertions is so much better than guessing.
<Ox0dea> *your assumptions
<domgetter> And *euuchh* manual testing
<Darmani> alright
<Darmani> Well back to it.
dopie has quit [Quit: Lost terminal]
<apeiros> domgetter: why test manuals if nobody reads them? (scnr)
<Melpaws> so when i use "#{variable}" i get the following error back from the api :
<Melpaws> "#<Marvel::Response::Error: 409 name cannot be blank if it is set>"
<apeiros> Melpaws: remove the api from the equation
<Melpaws> ok
<apeiros> Melpaws: get an example working with your interpolation.
<domgetter> apeiros: I would test Manuel, but he doesn't look very friendly
<Ox0dea> Melpaws: Ah, then interpolation is the problem.
<Ox0dea> Because your use of the API is correct.
<Ox0dea> The variable you're interpolating doesn't contain what you think it does.
<apeiros> Melpaws: as in, an example which does not use the api. just interpolation.
<Ox0dea> In fact, it almost certainly contains nil.
<apeiros> and what Ox0dea said is probably your problem.
<Ox0dea> >> "#{nil}" # Melpaws
<ruboto> Ox0dea # => "" (https://eval.in/496880)
<apeiros> (but without real code - impossible to tell…)
dopie has joined #ruby
<Ox0dea> apeiros: It is real code?
<Melpaws> it is
<apeiros> Ox0dea: his gist was only partially real
<Ox0dea> apeiros: Real enough to diagnose, I reckon.
<apeiros> Ox0dea: real enough to speculate, at best
<apeiros> results = pp @client.characters(name: '#name_here') # <- the piece they gisted - does not show the very thing they have an issue with
<Melpaws> if i take out the '#name_here' variable it works. so if i replace with literal like 'thanos' it will call up all the thanos related marvel comics . Yes
<Ox0dea> Melpaws: You're doing a character search.
<Melpaws> yeppers . but the stupid interpolation retuns a blank result
tomchapin has joined #ruby
<apeiros> Melpaws: Api::ApiMarvel.character_test() if you call it like this, then `name` will be nil
<apeiros> as Ox0dea already said
<apeiros> but no idea how you actually interpolate, as you haven't showed it - or only showed a broken way which would result in a different error/result
darkf has joined #ruby
<Ox0dea> I reckon Melpaws has gotten closest with `name: "#{name}"` + forgetting to pass an argument to #character_test.
<Ox0dea> As apeiros already implied.
<apeiros> on a note of character_test() - you probably shouldn't even allow leaving name off. there's no point to it.
<Melpaws> sorry , its 100% of code. I use the gem - https://github.com/O-I/marvel too. But as you noted, its returning the nil as that is result when i try passing not the literal . So if i pass it an argument like './marvel_script.rb Spider-Man' the result is []
ElFerna has joined #ruby
<apeiros> Melpaws: your gist does not do any argument processing
<apeiros> so whether you pass your script an arg or not doesn't matter
arup_r has quit [Remote host closed the connection]
<apeiros> so if your gist *really* is your code, and up to date, then you're doing 3 things wrong: a) you don't process ARGV, b) you pass no name to character_test, c) '#name_here' is wrong, it should be just name - no interpolation needed
<Melpaws> yes
<apeiros> i.e., c) -> @client.characters(name: name)
<apeiros> and I'd strongly suggest you test out those things individually. otherwise you get confused about what's causing issues in your code.
<Melpaws> probably - let me fix with argv options
ElFerna has quit [Ping timeout: 260 seconds]
<apeiros> well, I'm off. Ox0dea or other people in here will surely help you with the rest :) good luck!
<Ox0dea> Au revoir.
<agent_white> bai!
<Darmani> question
<Darmani> Does that oval appear when you've finished a section?
adgtl_ has quit [Read error: Connection reset by peer]
ta has quit [Remote host closed the connection]
<Ox0dea> Darmani: Yes, it's there to remind you that mountains are merely mountains.
krz has quit [Quit: WeeChat 1.2]
<Ox0dea> Er, wait... I think that's only supposed to show up once you've finished?
<Darmani> yeah I don't understand that line of thinking
<Darmani> "merely" mountains
<Ox0dea> Pfft.
<Ox0dea> The fuck can mountains do?
<Darmani> what? lol xD
<Darmani> Ox0dea breh
<Darmani> Meh. Never mind.
<Melpaws> thank you @Ox0dea and @ apeiros . it was the stupid argv options not being passed. I will hide my head in shame now
Phanes has quit [Quit: ...shout as you did in rome...]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Phanes has joined #ruby
Phanes has quit [Changing host]
Phanes has joined #ruby
ohaibbq_ has quit [Read error: Connection reset by peer]
dseitz has joined #ruby
ohaibbq has joined #ruby
UtkarshRay has quit [Remote host closed the connection]
Channel6 has quit [Quit: Leaving]
<shevy> :D
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arup_r has joined #ruby
dlitvak has quit [Remote host closed the connection]
<Ox0dea> Darmani: Trial-and-error can certainly lead to worthwhile insight, but required are the materials to perform sufficiently meaningful trials and a deep enough understanding of the terrain to recognize and subsequently correct your errors.
dlitvak has joined #ruby
TheNet has quit [Quit: Leaving...]
<Darmani> Ox0dea: Really. You called me to say that? Lol
<Ox0dea> Darmani: You'll find the video tutorial I linked earlier to be of some relevance.
<Darmani> Those words were spoken hours ago lmao have you been meditating on them all this time?
<Ox0dea> I am always meditating.
<Darmani> Good practice.
<Darmani> Ox0dea: Most people regardless of their understanding learn through trial and error. True it's probably not prudent but it's in our nature to learn things for ourselves. Even the hard way if need be.
<Ox0dea> That just doesn't work for intellectual endeavors.
<Ox0dea> The world isn't so structured as a computer.
<Ox0dea> You're meant to use that to your advantage.
<Ox0dea> Both ways.
<Darmani> That I am learning the hard way...
<Darmani> Unfortunately.
<agent_white> Kinda. For instance, I agree with Jeff Atwood that beginners have no business attempting to follow any 'patterns' of any sort.
<agent_white> Patterns being an intellectual endeavor? Absolutely. Helpful to the novice? No way in hell.
dlitvak has quit [Ping timeout: 260 seconds]
<Ox0dea> Darmani: In any case, I'm not knocking trial-and-error, but it has to be done a certain way to prove effective.
<Darmani> agent_white: I would tend to agree with that line of thinking. I have memorized whole lines of code trying to understand the concept to no avail. Though I knew how it went together I had no idea how it worked.
<Darmani> Ox0dea: I understand. Bear with me though friend, eventually I'll come to the end of myself and see things your way. If indeed it is the correct way.
<Ox0dea> Darmani: If you're memorizing lines of code rather than the concepts they embody, you're gonna have a bad time.
<agent_white> Darmani: Well... I'm not saying that at all. "Had no idea how it worked" is not good.
DoYouKnow has quit [Changing host]
DoYouKnow has joined #ruby
DoYouKnow has joined #ruby
krz has joined #ruby
<agent_white> Darmani: Listen to what Ox0dea is saying... what I had said doesn't apply here it seems.
kfpratt has quit [Remote host closed the connection]
<Darmani> agent_white: I am not advocating my approach nor condoning it in any way shape or form. I agree that following patterns without understanding their meaning is counter-intuitive.
<agent_white> Darmani: I understand what you mean. As I said, I regret mentioning "patterns", as we're talking about understanding single lines of code.
krz has quit [Read error: Connection reset by peer]
krz has joined #ruby
<Ox0dea> Regarding "Listen to [Ox0dea]": https://youtu.be/VFHpvPwq2i8?t=452
<agent_white> Darmani: As Ox0dea said, the concept is more important than the syntax... like, MUCH more important. (a thing can be done in many different ways, with various amounts of characters, but HOW and WHY they are done as they are helps to oil-the-cogs)
jackcom has joined #ruby
<agent_white> olward
<agent_white> olawd even
<jackcom> making language is difficult?
dwfait has quit [Remote host closed the connection]
<Ox0dea> jackcom: Designing your own concatenative language is pretty easy, comparatively.
<jackcom> i want make ruby+ language that is developed from ruby
<Ox0dea> No.
ta has joined #ruby
<jackcom> :(
<Ox0dea> jackcom: Define "ruby+", then.
<Darmani> agent_white: Thank you sir, I know that.
<Ox0dea> Darmani: You know that a house must be built on a foundation lest it crumble?
<jackcom> yeah very powerful language comparaitvely ruby of 7 multiful power. Ox0dea
<Darmani> Lest the waves and the wind come and it falls apart?
<Ox0dea> > ruby of 7 multiful power
<Ox0dea> gtfo
<Darmani> Yes Ox0dea. Obviously.
<Ox0dea> Darmani: It does seem so obvious, doesn't it?
<Darmani> To you and I, I believe so.
lxsameer has joined #ruby
RegulationD has joined #ruby
<agent_white> Darmani: :) A desired output is awesome. But understanding how it is created, moreso. (tldr; fail2win, dothething, but don't copypasta)
Melpaws has quit [Read error: Connection reset by peer]
Melpaws has joined #ruby
ta has quit [Ping timeout: 264 seconds]
crystalmaiden has quit [Ping timeout: 250 seconds]
haraigoshi has joined #ruby
RegulationD has quit [Ping timeout: 260 seconds]
<jackcom> ruby plus that can do by saying command. if i say ruby plus that ‘hack www.xxxx.com site, then ruby plus do it automatically.
<jackcom> how about?
<Ox0dea> Darmani: At least you're not that guy, eh?
ur5us has joined #ruby
<shevy> ack... I just discovered this typo in my code... "(i = Nil)"
andikr has joined #ruby
<jackcom> shevy: happy new year
<jackcom> :)
<Darmani> Ox0dea: What guy?
<Darmani> o.O??
<shevy> jackcom happy new year to you as well
<jackcom> thanks shevy
<jackcom> :)
<Ox0dea> Darmani: Disregard.
<Darmani> will do.
pdoherty has quit [Ping timeout: 240 seconds]
mistermocha has joined #ruby
weemsledeux has joined #ruby
claw has quit [Ping timeout: 276 seconds]
ElFerna has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nbdy has quit [Quit: Textual IRC Client: www.textualapp.com]
rkazak_ has quit [Quit: Sleep.....ing....]
<Darmani> ugh I don't fucking understand this.
mistermocha has quit [Ping timeout: 265 seconds]
<agent_white> ?
<domgetter> Darmani: what's got you stumped?
<Darmani> Ruby Koans... I just don't get it...
<domgetter> Which one?
<agent_white> And what part?
<Darmani> about_arrays
<Darmani> I don't even understand what they are trying to ask me
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Darmani> What's the point of learning Ruby like this???
<Darmani> All your doing is filling in the blanks
ElFerna has quit [Ping timeout: 250 seconds]
<Darmani> What is this asking me???
<Darmani> I don't get it...
<domgetter> They want you to fill in the blank
<Darmani> yeah. I understood that much.
<domgetter> If you have a brand new empty array, what is its class?
<Darmani> With what???
<Darmani> It's an array class....
<Darmani> right?
paradisaeidae_ has quit [Quit: ChatZilla 0.9.92 [Firefox 43.0.3/20151223140742]]
<domgetter> That's correct, so they want you to fill in the first blank with the word Array
<Darmani> Are you shitting me
<Ox0dea> Baby steps, grasshopper.
<domgetter> assert_equal Array, empty_array.class
<shevy> you can put any object into an Array Darmani
<Darmani> lmao
<Darmani> that is so fucking stupid
<domgetter> you gotta learn syntax sometimes
<Ox0dea> This is semantics.
<Ox0dea> In any case, Darmani wants a miracle. :/
<agent_white> It's also pertinent that you remember these are tests... failing ones give you an idea of what it wants. Just like Rubymonk.
<shevy> Darmani the whole idea is to be able to assert that what you are testing, will work as expected, when you lateron make changes. it's more useful when you have larger projects
<Darmani> ...
<Darmani> I guess.
<Ox0dea> You want to push a button or read a few tweets or some shit and magically know how to program.
<Ox0dea> It's not gonna happen that way.
<Darmani> Ox0dea: No one said that -__-
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
<domgetter> Darmani: I take it you figured out how to fill the second blank?
<Darmani> Actually no...
<Ox0dea> "Omigod! How can something that's empty have a size?!"
<agent_white> Darmani: Keep irb open as well :) --
<domgetter> Darmani: if you have an empty bag, how many things are in it?
<Ox0dea> domgetter: There's no apples there!
<Darmani> zero.....
<agent_white> Darmani: "it's array class... right?" could have been answered with you simply doing `[].class` in irb.
<Darmani> Are you serious
<Darmani> That's the answer
<domgetter> yup
<domgetter> programming is very simple, you just have to learn all the words
<Darmani> lmao aaaaaand we're back in third grade
<Darmani> domgetter: Thank you though. Honestly I feel so dumb.
<agent_white> :) Just like learning a new language.
<shevy> you are a baby right now Darmani
<Darmani> agent_white: There are better ways to learn a new language.
<domgetter> Darmani: no reason to feel dumb. It's not your fault someone else named things poortly
<domgetter> poorly*
<Darmani> shevy: NOT EVEN
<shevy> you named something poortly!!!
<eam> port is delicious
<agent_white> Darmani: False. There are _many_ ways ;) Better is subjective.
<shevy> Darmani well you gotta start somewhere :)
<Ox0dea> eam: Cheese xor wine?
<shevy> Darmani imagine if you would be age 60 and learn to progam from scratch
<Darmani> agent_white: I suppose.
<Darmani> shevy: that would suck.
<eam> Ox0dea: yes please
<domgetter> shevy: ugh that would suck. I hate that I waited til I was 25
<shevy> domgetter hehe
<shevy> 25 is pretty old already"
<Darmani> Where's domgetter
<Darmani> read me the next one
<Darmani> lmao
<agent_white> Darmani: I was told I needed to learn programming/Ruby to help my devs by building a testing suite for our website. I was a network guy with no programming experience. Had to learn because the other network dude didn't indent code, so 'I was more fit'. Pick and choose your method of learning :)
claw has joined #ruby
ibouvousaime has joined #ruby
<Darmani> agent_white: Back when the world was young and things were easier.
<Darmani> What a lovely place that was.
<agent_white> Darmani: By 'the world' you mean config files? Yes. :P
<domgetter> Darmani: I only help after you put in some effort ;)
<agent_white> This is more fun though.
solars has joined #ruby
* Darmani sighs
howdoi has joined #ruby
<Ox0dea> Darmani: You get your foot outta that grave this instant!
<agent_white> Darmani: Keep going!
pawnbox_ has quit [Remote host closed the connection]
<Darmani> Ox0dea: I'm going to stay here
<eam> I mean, really, if you haven't become world famous by 25 probably best to just give up
<agent_white> Miss Frizzle would want you to dive in.
<Darmani> It's more comfortable
<Darmani> MISS FRIZZLE
<Darmani> You get brownie points for using that reference.
charliesome has joined #ruby
<agent_white> Take chances! Make mistakes! Get messy!
<Darmani> Mr. Rogers would tell me he believes in me and that I can do it.
<eam> even the smallest mistake is the end of all things. Fear error, avoid everything
sameerynho has joined #ruby
<agent_white> Yeah well, Mr. Rogers' 'hope' doesn't make programs.
<agent_white> ;)
<domgetter> Darmani: You've already learned at least 3 things this evening
<domgetter> at this rate, you'll be a master in no time
<Darmani> domgetter: I have??
<Darmani> and what exactly were those
* agent_white gives Darmani badge
<Darmani> I don't think I wrote them down.
zenspider has quit [Quit: bye]
<agent_white> keep. doing. koans. I think were them.
<Ox0dea> Darmani: You've learned that `Array.new.class` is `Array`, for starters. That's pretty important.
<agent_white> ^^^
<domgetter> you learned about "assert equals"
TomyLobo has joined #ruby
<agent_white> ^^^
<domgetter> which shows up in almost every testing framework (even outside of ruby)
<agent_white> And... that... Matz is nice, so we are nice.
glenny has joined #ruby
<Darmani> Ox0dea: Any moron knows that. I'd be ashamed of myself if I came here without knowing basic terms.
<Darmani> jesus christ.
<agent_white> Darmani: Quit it.
<Ox0dea> Don't minimize your suffering.
<Ox0dea> Let it hurt.
<agent_white> Darmani: You _think_ you know that. It will sink in later.
<Ox0dea> It's medicine.
lxsameer has quit [Ping timeout: 272 seconds]
diegoviola has quit [Quit: WeeChat 1.3]
* Darmani sighs
<Darmani> Well I'm going to go back to staring at Ruby Koans
<Darmani> and not being able to read them.
<agent_white> Darmani: As in, Ox0dea said "this is important". It's not in passing, and he chose to say it.
<domgetter> Darmani: Sucking at something is the first step to being sorta good at it
<agent_white> domgetter: That's pretty math.
<agent_white> ;)
<Darmani> agent_white: He is so wise, I want to be just like him one day.
* Darmani stares @ Ox0dea in adoration.
Ox0dea has left #ruby ["WeeChat 1.4-dev"]
<agent_white> Darmani: Me too, actually. Being sarcastic will only make you kick yourself in the future when you understand what he meant.
<Darmani> agent_white: Forgive me, sarcasm is my way of showing affection.
pawnbox has joined #ruby
<Darmani> I do appreciate you and him though and all the people who are pushing me forward.
<Darmani> Honestly.
<Darmani> I do.
<domgetter> but how do we know THAT wasn't sarcastic?
<Darmani> LOL
<Darmani> Because I said so
<Darmani> xP
<agent_white> domgetter: You gotta see the Breakfast Club!
<agent_white> ;P
bkxd has joined #ruby
<Darmani> I do enjoy that movie.
rattatmatt has quit [Quit: Leaving]
<Darmani> maybe I should go watch that and then come back and program.
<Darmani> Lol
<agent_white> Nah quit it. Just go do the koans.
<domgetter> Darmani: or *maybe* you should keep programming
<domgetter> forever. and ever
<Darmani> jesus. Sounds like eternal damnation.
<Darmani> i'll pass.
<agent_white> domgetter: https://www.youtube.com/watch?v=aUHU8SNGMcY -- I read that in Bender's voice (guy in jean-jacket)
<Darmani> I need a girlfriend and other things too.
<domgetter> Here's the thing about programming. You don't choose to do it. It chooses you. And it has chosen you
<Darmani> brb bathroomm
<shevy> Darmani bathroom is often where you will have the best ideas
<shevy> like you can solve a problem that you are unable to solve when you sit before the computer
<shevy> other methods involve running
<domgetter> I often run to the bathroom
<domgetter> So I can solve 2 problems
ta has joined #ruby
Phanes has quit [Quit: ...shout as you did in rome...]
haraigoshi is now known as harai54
Aasha has quit [Quit: Leaving]
<shevy> hahaha
Phanes has joined #ruby
Phanes has quit [Changing host]
Phanes has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
<shevy> still #funday here
<agent_white> shevy: I think you are the ruby funday pope
<agent_white> :)
SOLDIERz has joined #ruby
<domgetter> I thought he was the "go make ruby gems!" pope
<shevy> agent_white today was very productive here, I think I collected three quotes already...
scepticulous has joined #ruby
<agent_white> shevy: You kept the peace on this planet? :)
<shevy> one from october last year
<shevy> <Erik____> Are you a seasoned programmer or young?
<shevy> <Zarthus> I program regardless of season
<shevy> agent_white pfft peace is so overrated, I am not a hippie!
adgtl has joined #ruby
<agent_white> shevy: Well... I did!
<agent_white> This planet is very peaceful!
dionysus69 has joined #ruby
pawnbox has quit [Remote host closed the connection]
arup_r has quit [Remote host closed the connection]
arup_r has joined #ruby
Ox0dea has joined #ruby
nanoz has quit [Read error: Connection reset by peer]
ibouvousaime has quit [Ping timeout: 246 seconds]
<Darmani> When I became a counselor
<Darmani> I wanted to help people.
<flughafen> merry new years
<Darmani> But people need my help way too much T.T
<Darmani> flughafen: Happy New Years m8(:
ta has quit [Remote host closed the connection]
<shevy> hey flughafen - new year, better flughafen!
<flughafen> hehe.
UtkarshRay has joined #ruby
dwfait has joined #ruby
<Darmani> Wait
<Darmani> If I don't get something
<Darmani> Where am I supposed to look for the answer???
<Darmani> Does RubyKoans just expect you to know?
<flughafen> shevy: how were your holidays
<shevy> flughafen I dunno ... I had a very weird sleeping pattern
execat has joined #ruby
smactive has quit [Remote host closed the connection]
<flughafen> ha. me too.
TomyLobo has quit [Ping timeout: 264 seconds]
dwfait has quit [Ping timeout: 240 seconds]
aganov has joined #ruby
<Darmani> omg
<Darmani> guys
<Darmani> I'm doing it.
<Darmani> I'm DOING IT
<Darmani> T.T
Melpaws1 has joined #ruby
Melpaws has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
roshanavand has joined #ruby
ibouvousaime has joined #ruby
Reyshon has joined #ruby
<Reyshon> I'm tired of seeing crackers make everything racist. Tires is black because is a symbol of slavery. The tires is slaves to the cars and what color they is? They black. That's racist. \#blacklivesmatter
pawnbox has quit [Ping timeout: 256 seconds]
<shevy> Darmani doing what
<shevy> the koans?
<shevy> skip them and write something important!
yardenbar has joined #ruby
<Darmani> shevy: Now I should be doing something else??? D:
<Darmani> What is wrong with you people? T.T
<shevy> yeah!
<Darmani> I'm convinced all this is a sick joke designed to make people go insane.
<shevy> you just like the koans because you get the mission briefing
<Darmani> It's working.
<shevy> what is working
<Darmani> my madness
<Darmani> I can feel it taking over
<Darmani> Q.Q
firstdayonthejob has joined #ruby
<Darmani> wait Shevy are you the guy who reads the picture books?
<Darmani> Are you that guy?
<Darmani> shevy
<Darmani> don't leave me
<Darmani> T.T
Reyshon has quit [K-Lined]
<domgetter> If you want a Ruby picture book, look up Why's Poignant Guide to Ruby
ElFerna has joined #ruby
ur5us has quit [Remote host closed the connection]
<shevy> Darmani picture books?
<shevy> right now I am reading a chemistry book... it's boring to no ends
<domgetter> oooh, chemistry
Xzanron has joined #ruby
ElFerna has quit [Ping timeout: 256 seconds]
<Darmani> I was talking to someone who read picture books to his daugher...
<Darmani> I don't remember his name.
puria has joined #ruby
ohaibbq has quit [Remote host closed the connection]
CloCkWeRX has quit [Ping timeout: 260 seconds]
ohaibbq has joined #ruby
rippa has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has joined #ruby
<shevy> cro something
<shevy> nick starting with c
<shevy> I forgot it too
<shevy> a php convert
weemsledeux has joined #ruby
ohaibbq has quit [Ping timeout: 265 seconds]
SHyx0rmZ has quit [Read error: Connection reset by peer]
ta has joined #ruby
ta has quit [Remote host closed the connection]
ta has joined #ruby
<Ox0dea> logs $ ag 'picture books' | head -1 | cut -f2
<Ox0dea> choke
<choke> yo
anisha has joined #ruby
<Ox0dea> Some folks were trying to remember your name.
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<choke> oh well, the whole conversation that I just read brings a song to my mind..
<choke> is it me.... you've been looking for....
pawnbox has quit []
marsjanin has quit [Quit: ZNC 1.7.x-git-487-cbf5c38 - http://znc.in]
devoldmx has quit []
<Darmani> oh choke!!
<Darmani> it was choke.
<Darmani> I remember.
pawnbox has joined #ruby
marsjaninzmarsa has joined #ruby
<choke> when you can't remember my name, just keep in mind that your mind is "choking"
<Darmani> I'm still trying to figure out what this is supposed to be teaching me.
jaguarmagenta has joined #ruby
<Darmani> choke: I want to keep that in mind... but it sounds dangerous. Lol
<choke> It is teaching you, that it's peanut butter jelly time of course.
<Darmani> lmao
<agent_white> Darmani: Where the...
<Darmani> that must be what it is lol
<agent_white> Darmani: What are you following. Link me.
domgetter has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<Darmani> wat
<Darmani> ??
<agent_white> also, wtf you doing using "and"
<agent_white> oh nvm
<Darmani> That's what the program did
<Darmani> not me
dwfait has joined #ruby
<agent_white> _why's guide isn't a picture book :(
* Darmani sighs
<agent_white> Darmani: What have you learned? :)
<Darmani> NOTHING
CloCkWeRX has joined #ruby
<Darmani> I'm serious.
<agent_white> You've been through rubymonk though you said.
jaguarmagenta has quit [Client Quit]
<agent_white> And started rubykoans.
<Darmani> yeah...
jaguarmagenta has joined #ruby
<agent_white> So... :)
<Darmani> So......
arup_r has quit []
<dwfait> What's the rationale behind 'bang' methods not being chainable (such as compact!, select!)?
SCHAAP137 has joined #ruby
<dwfait> I mean, for me being able to chain it is more valuable than to know whether it had an effect or not
felixal has joined #ruby
kp666 has joined #ruby
jaguarmagenta has quit [Client Quit]
jam_ has joined #ruby
aufi has joined #ruby
symm- has quit [Ping timeout: 260 seconds]
Xentil has joined #ruby
<Darmani> agent_white:
<Darmani> Bro
<Darmani> Be honest with me.
<Darmani> Will doing these Ruby Koans really help me?
<Darmani> Because I don't see it.
adgtl_ has joined #ruby
jam_ has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
shredding has joined #ruby
adgtl has quit [Ping timeout: 245 seconds]
<Darmani> Alright
<Darmani> That's enough programming for one day
vondruch has joined #ruby
<Darmani> You're all lovely human beings. Each one of you.
<Darmani> Goodnight<33
<agent_white> Darmani: Yes. Do them :)
<Darmani> AHA
<Darmani> He lives.
<Darmani> okay I will. Tomorrow.
<Darmani> Goodnight<33
Darmani has quit [Quit: Page closed]
bkxd has joined #ruby
<agent_white> Darmani: Same reason I'm bruting through K&R... question is "count words in a line". Takes more than 10+ lines to do. In ruby... 12 characters. But, I'm learning.
krz has quit [Read error: Connection reset by peer]
krz has joined #ruby
roshanav_ has joined #ruby
roshanavand has quit [Read error: Connection reset by peer]
<agent_white> dwfait: Why chain them if the final message is the modifier?
SHyx0rmZ has joined #ruby
<dwfait> agent_white: well yes, for compact it is usually the last of the chain, but it seems that all in place modifiers have a convention of returning nil if no changes made, such as select! versus select, which is often done early in a chain
craysiii has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
karapetyan has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
firstdayonthejob has quit [Ping timeout: 240 seconds]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
execat has quit [Quit: Page closed]
<dwfait> in which case you're either forced to give up the terseness of chaining, or use immutability which has a performance cost (in the case that you don't care or need immutability)
weemsledeux has joined #ruby
niko has quit [Quit: leaving]
Mon_Ouie has joined #ruby
auzty has joined #ruby
nik0 has joined #ruby
<agent_white> >> x = "abc"; y = "abc"; x.chop.chop!; y.chop!.chop!; x == y
<ruboto> agent_white # => false (https://eval.in/496942)
<agent_white> >> x = "abc"; y = "abc"; a = x.chop.chop!; b = y.chop!.chop!; a == b
<ruboto> agent_white # => true (https://eval.in/496943)
nik0 is now known as niko
sjohnsen has quit [Quit: Gone]
einarj has joined #ruby
14WAALC65 has joined #ruby
sjohnsen has joined #ruby
haxrbyte has quit [Quit: Leaving...]
<dwfait> "but returns nil if no changes were made."
14WAALC65 has quit [Read error: Connection reset by peer]
jbrhbr has joined #ruby
einarj has quit [Remote host closed the connection]
<dwfait> So it seems some bang! methods have the behaviour, some don't
<dwfait> just wondering what the underlying rationale is
pawnbox has quit [Remote host closed the connection]
<shevy> dwfait is .select not part of enumerable? or was it enumerator, I mix the two up
<shevy> dwfait often the bang methods will be faster; if you compare for a string: x = 'ABC'; x = x.downcase versus x = 'ABC'; x.downcase!
pawnbox has joined #ruby
<dwfait> It's defined on the hash class
<shevy> the second should be faster - and also uses fewer characters to write. but it can not as easily be used in method chaining such as x.downcase.bla.ble.blu
<dwfait> Yes, I get that - but whether it returns nil or self doesn't really enter into its speed or whether it duplicates the object or not
Domaldel has joined #ruby
<agent_white> hm wierd
blackgoat has joined #ruby
<agent_white> >> [].select{} == [].select!{}
<ruboto> agent_white # => false (https://eval.in/496944)
<agent_white> >> [nil].select{} == [nil].select!{}
<ruboto> agent_white # => true (https://eval.in/496945)
terlar has joined #ruby
haxrbyte has joined #ruby
<dwfait> I'm asking because I implemented this: https://github.com/ruby/ruby/pull/1184
<shevy> it is common to return nil for bang methods
<dwfait> and as per other hash methods I found and the example in the ticket, if unchanged it should return a nil
haxrbyte has quit [Client Quit]
<dwfait> but it doesn't really feel natural to me
tmtwd has joined #ruby
einarj has joined #ruby
roshanav_ has quit [Remote host closed the connection]
roshanavand has joined #ruby
<agent_white> shevy: Enumerable "bang" methods return nil on no change, others return the changed value?
* agent_white shrugs
huyderman has joined #ruby
djbkd has joined #ruby
<shevy> agent_white don't they always return nil? I am not sure of one that does not
XangadiX has joined #ruby
<agent_white> I'm still wondering about my example above.
framling has quit [Remote host closed the connection]
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
roshanavand has quit [Remote host closed the connection]
kenken_ has joined #ruby
<kenken_> what is the best pace to lookup all domains that are available
<kenken_> i want all the tlds
roshanavand has joined #ruby
yes`r has quit [Ping timeout: 240 seconds]
mistermocha has joined #ruby
<shevy> agent_white .select seems to yield an array, I don't quite know why the nil is removed but it is probably documented
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
<dwfait> agent_white: I can't seem to find any enumerable bang methods, could you point one out?
<agent_white> dwfait: Select?
ElFerna has joined #ruby
<dwfait> From what I can tell that's implemented on the hash class and not available on the enumerable module, but I could be wrong?
<shevy> ok so this http://pastie.org/10669030 is Array#select!
Hounddog has joined #ruby
TheHodge has joined #ruby
<agent_white> dwfait: Hash class, Array class, Range class... any iterable list.
aspiers has joined #ruby
<shevy> I assume that this line does something magical: RETURN_SIZED_ENUMERATOR(ary, 0, 0, ary_enum_length);
<agent_white> dwfait: Listen to shevy more than me though. I'm more intrigued by what I posted above then anything, now... and I'm an idiot. :D
<dwfait> that doesn't appear to be a bang version? from what I can tell, the non-bang versions are on the enumerable and then the bangs are on the class level
<shevy> yeah
<shevy> now if I would know what RETURN_SIZED_ENUMERATOR does
<dwfait> RETURN_SIZED_ENUMERATOR(ary, 0, 0, ary_enum_length); is for when you don't pass a block, but the code inside is pretty magical to me still
<dwfait> I've had a brief look but there's a lot in the codebase I don't understand, like recursive #define's that don't seem like they should work
mistermocha has quit [Ping timeout: 246 seconds]
ElFerna has quit [Ping timeout: 264 seconds]
charliesome has joined #ruby
<agent_white> Here be dragons
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
atmosx has joined #ruby
atmosx has quit [Client Quit]
yes`r has joined #ruby
<dwfait> I'm imagining it sets something up to interact with the VM, and not necessarily with the code there
mark2 has joined #ruby
mic_e has quit [Ping timeout: 265 seconds]
<shevy> C is scary
araujo has joined #ruby
<felixal> yeah I dressed up as a pointer on halloween and spooked everyone
<agent_white> Hm
<agent_white> >> "a".chop! << "b"
<ruboto> agent_white # => "b" (https://eval.in/496946)
<agent_white> >> "a".chop << "b"
<ruboto> agent_white # => "b" (https://eval.in/496947)
araujo has quit [Max SendQ exceeded]
<agent_white> wat
<agent_white> x = "x"; x.chop! << "y"; x
bluOxigen_ has joined #ruby
<agent_white> >> x = "x"; x.chop! << "y"; x
<ruboto> agent_white # => "y" (https://eval.in/496948)
<agent_white> >> x = "x"; x.chop << "y"; x
<ruboto> agent_white # => "x" (https://eval.in/496950)
XangadiX has quit [Quit: ego sensuo, carthagenem delendam.]
<shevy> yeah, I assume x.chop is an empty string, then 'y' is appended
XangadiX has joined #ruby
wrilain has joined #ruby
<dwfait> yeah, indeed it is. did you mean chomp?
<dwfait> >> "x".chomp << "y"
<ruboto> dwfait # => "xy" (https://eval.in/496951)
bluOxigen_ has left #ruby [#ruby]
<dwfait> >> "x".chomp! << "y"
<ruboto> dwfait # => undefined method `<<' for nil:NilClass (NoMethodError) ...check link for more (https://eval.in/496952)
<shevy> agent_white indeed, that is one that does not seem to return a nil
<dwfait> >> "".chop!
<ruboto> dwfait # => nil (https://eval.in/496953)
<agent_white> shevy: Aye. Same with with passing empty blocks to select/select! on arrays that aren't empty
codecop has joined #ruby
<agent_white> Though, empty arrays give that (self/nil)
<shevy> dwfait right but the variable x part
d0nn1e has quit [Ping timeout: 256 seconds]
djbkd has quit [Quit: Leaving...]
<shevy> I haven't quite understood your block example above
<shevy> actually
<shevy> I never saw an empty .select {} before either
adgtl_ has quit [Remote host closed the connection]
<shevy> ruby code written by others can feel so alien!
d0nn1e has joined #ruby
<dwfait> ah, just realised nil << "y" should raise
adgtl has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
Bloomer has joined #ruby
jam_ has joined #ruby
<agent_white> fancys
<agent_white> >> nil.to_s
<ruboto> agent_white # => "" (https://eval.in/496954)
<agent_white> >> !!nil.to_s
<ruboto> agent_white # => true (https://eval.in/496955)
<agent_white> >> !nil.to_s
<ruboto> agent_white # => false (https://eval.in/496956)
<agent_white> Yeah I don't think I should look at shevy's pasted code for "select!"... I'm just learning C. Looking at a language's vm's eval is not a good idea.
<agent_white> ;P
<agent_white> >> "".chop{}.chop!
<ruboto> agent_white # => nil (https://eval.in/496957)
<agent_white> >> "".chop!{}.chop
<ruboto> agent_white # => undefined method `chop' for nil:NilClass (NoMethodError) ...check link for more (https://eval.in/496958)
wrilain has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
scoot has quit [Remote host closed the connection]
SCHAAP137 has joined #ruby
<shevy> agent_white I wanna learn C too! properly... but I always ended up giving up, mostly out of boredom
<agent_white> shevy: I'm going through K&R as we speak :) Was told that "cruising through" is not allowed, so I'm making sure to do each and every exercise.
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
c0m0 has joined #ruby
<kenken_> is it true that the legal age for prostitution in venezuela is 14?
smactive has joined #ruby
DoubleMalt has joined #ruby
<agent_white> I like how... it's what drives majority of languages out there, and is so simple. :)
<kenken_> is it true that the legal age for prostitution in venezuela is 14?
<agent_white> kenken_: Is there an echo in here?
<agent_white> kenken_: Is there an echo in here?
<kenken_> oww
sandstrom has joined #ruby
marr has joined #ruby
charliesome has joined #ruby
smactive has quit [Ping timeout: 272 seconds]
mic_e has joined #ruby
DoubleMalt has quit [Read error: Connection reset by peer]
ledestin has joined #ruby
DoubleMalt has joined #ruby
<shevy> agent_white yeah but... so much of this is just a bit of ruby code and I am done!
<shevy> with C it's like you have to specify more
mic_e has quit [Ping timeout: 250 seconds]
gregf_ has quit [Quit: Lost terminal]
lxsameer__ has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sameerynho has quit [Ping timeout: 245 seconds]
gregf_ has joined #ruby
pandaant has joined #ruby
<agent_white> shevy: True :) I just want to be a systems programmer someday... maybe. Or at least be able to read some linux kernel patches and understand what they mean.
<agent_white> Or at the very least, know that I have a language that is extremely portable (likely most portable in the world? ;P ) in my back pocket.
<agent_white> That. Or most importantly. To write a wrapper for ncurses that is actually nice to use in ruby.
<agent_white> Because every other language has a fancy TUI library... and Ruby. Well, we just wrap ncurses.
<agent_white> ;P
jbrhbr has quit [Quit: Leaving.]
<agent_white> Well rather... not write a wrapper. Just write... a TUI library. A nice one. Mehbeh.
<shevy> oh god ncurses
<shevy> a ruby wrapper over ncurses would be nice
<agent_white> Yeah. Well we have... curses. Ncursesw. But they just re-inforce the shit that is ncurses. While Python has so many alternatives that make shit right (be it a wrapper or native).
choke has joined #ruby
<dwfait> might be a fun project to learn C with
<agent_white> Thus. Learn ruby!
<dwfait> and still get to do ruby
<agent_white> erm, C!
<agent_white> Exactly! :D
<blub> whats wrong with curses
<dwfait> it's hard for ruby programmers to use :)
<shevy> blub it is so painful to use
ElFerna has joined #ruby
adgtl has quit [Remote host closed the connection]
<agent_white> blub: You must be a masochist.
<agent_white> ;)
Haris has joined #ruby
<Haris> hello all
<Haris> how do I run ruby app with apache ? install Ruby Version Manager (RVM) ?
adgtl has joined #ruby
harai54 has quit [Ping timeout: 250 seconds]
tmtwd has quit [Ping timeout: 240 seconds]
ElFerna has quit [Ping timeout: 255 seconds]
skcin7 has joined #ruby
elaptics`away is now known as elaptics
shmoon_ has left #ruby [#ruby]
<Haris> guys, anyone around ?
<blub> ?guys
<ruboto> Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
blackmesa has joined #ruby
pagios has left #ruby ["Leaving"]
colegatron has quit [Remote host closed the connection]
jam_ has quit [Remote host closed the connection]
<Haris> folks, all, everyone, anyone around ?
<Haris> my! bad
jam_ has joined #ruby
<agent_white> That factoid needs to be gone.
<kenken_> has anyone been?
<agent_white> Dwelling on indirect object pronouns and assuming they are offensive only feeds insensitivity.
<kenken_> i just bought a first class ticket to caracas
<yorickpeterse> Haris: generally people will reply whenever they can, no reply means either nobody has a good answer or nobody is around
<agent_white> Disgusting, it is.
<yorickpeterse> ?offtopic kenken_
<ruboto> kenken_, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<shevy> Haris first stop would be to get ruby to run on your system
<shevy> erm, *first step
<agent_white> blub: I'd appreciate it if you don't feed the use of it.
<Haris> yep. will wait
<Haris> I'v installed ruby.
<kenken_> i'm going on a trip to have sex with 14 year old women
<kenken_> i'll be back on the 28th
jam_ has quit [Ping timeout: 255 seconds]
<shevy> Haris rails too? and both works? you can test via the webrick server as far as I know
<Haris> 14 yr old are now considered women ?
<kenken_> in venezuela
<shevy> can someone get rid of kenken_
<Haris> how to install rails on centos
<kenken_> and 13 are considered women if you're jewish
* Haris yum searches for rails
<kenken_> i'm jewish
<blub> agent_white: oh
<kenken_> please be sensitive of people's religions too
<agent_white> blub: Thank you.
<Haris> I see .. o_O
<shevy> Haris I would not trust the packages on centos too much... for typical gems, "gem install rails" should suffice. does for me at least but I don't use centos
<Haris> ah ok
<shevy> I switched from apache to lighttpd after they changed their config format
kp666 has quit [Ping timeout: 276 seconds]
<shevy> I was too lazy to want to re-read apache stuff :(
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kp666 has joined #ruby
scripore has joined #ruby
<yorickpeterse> ?op
<ruboto> To call for ops use the !ops command.
<yorickpeterse> !ops
<ruboto> fflush, apeiros, banisterfiend, seanstickle, Mon_Ouie, zzak, Radar, Havenn, jhass, sevenseacat, miah, workmad3, Coraline, drbrain, zenspider, slyphon, rubyhacker1, Aria, ljarvis, baweaver, Adaedra
<yorickpeterse> see above
pawnbox has quit [Remote host closed the connection]
<kenken_> i'm going on a first class trip to caracas to have sex with 14 year old women
<livcd> yeah yeah you told us
devbug has quit [Read error: Connection reset by peer]
techsethi has joined #ruby
<jhass> !ban kenken_ !T 1w troll
kenken_ was kicked from #ruby by ChanServ [Banned: troll]
<jhass> yorickpeterse: ty
<agent_white> jhass: What's the deal with "?guys"
<jhass> ?offtopic
<ruboto> this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<yorickpeterse> justice has been served
ur5us has joined #ruby
pawnbox has joined #ruby
glenny has quit [Read error: Connection reset by peer]
<shevy> :D
glenny has joined #ruby
<shevy> this time - but they will be back!
DaniG2k has joined #ruby
<Radar> yorickpeterse: kenken_?
ibouvousaime has quit [Ping timeout: 240 seconds]
tvw has joined #ruby
ibouvousaime has joined #ruby
tulak has joined #ruby
Chau has joined #ruby
<yorickpeterse> Radar: jhass already dealt with it
FernandoBasso has joined #ruby
robbyoconnor has quit [Remote host closed the connection]
scripore has quit [Quit: This computer has gone to sleep]
livcd has quit [Changing host]
livcd has joined #ruby
XangadiX has quit [Quit: ego sensuo, carthagenem delendam.]
wrilain has joined #ruby
XangadiX has joined #ruby
bkxd has joined #ruby
auzty has quit [Quit: Leaving]
DaniG2k has quit [Quit: leaving]
arup_r has joined #ruby
jzigmund has quit [Ping timeout: 240 seconds]
aufi has quit [Ping timeout: 265 seconds]
<Radar> gg
krz has quit [Ping timeout: 240 seconds]
tulak has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
wrilain has quit [Remote host closed the connection]
tulak has joined #ruby
lethalbrains has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
gagrio has joined #ruby
lxsameer__ has quit [Ping timeout: 240 seconds]
chthon has joined #ruby
RegulationD has joined #ruby
minimalism has quit [Quit: minimalism]
adgtl has quit [Ping timeout: 250 seconds]
lxsameer__ has joined #ruby
adgtl has joined #ruby
dlitvak has joined #ruby
Ishido has joined #ruby
RegulationD has quit [Ping timeout: 245 seconds]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
rodfersou has joined #ruby
wrilain has joined #ruby
mdw has joined #ruby
akem has joined #ruby
karapetyan has quit [Ping timeout: 240 seconds]
araujo has joined #ruby
karapetyan has joined #ruby
kp666 has quit [Ping timeout: 256 seconds]
ElFerna has joined #ruby
mistermocha has joined #ruby
glenny has quit [Quit: Konversation terminated!]
charliesome_ has joined #ruby
Zamerick has joined #ruby
ur5us has quit [Remote host closed the connection]
Bloomer has quit [Remote host closed the connection]
aufi has joined #ruby
lxsameer__ is now known as lxsameer
lxsameer has quit [Changing host]
lxsameer has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
charliesome has quit [Ping timeout: 265 seconds]
ElFerna has quit [Ping timeout: 276 seconds]
mistermocha has quit [Ping timeout: 264 seconds]
roshanavand has quit [Remote host closed the connection]
karapetyan has quit [Ping timeout: 276 seconds]
[xx] has joined #ruby
radgeRayden has quit [Quit: Leaving]
Xzanron has quit [Read error: Connection reset by peer]
nanoz has joined #ruby
XangadiX has quit [Ping timeout: 272 seconds]
joonty has joined #ruby
bweston92 has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 246 seconds]
pdoherty has joined #ruby
PedramT has joined #ruby
PedramT has quit [Remote host closed the connection]
PedramT has joined #ruby
tulak has quit [Remote host closed the connection]
nanoz has quit [Quit: <3]
karapetyan has joined #ruby
astrobun_ has quit [Remote host closed the connection]
blackmesa has joined #ruby
karapetyan has quit [Ping timeout: 250 seconds]
roshanavand has joined #ruby
futilegames has joined #ruby
futilegames has quit [Client Quit]
roshanavand has quit [Ping timeout: 240 seconds]
trautwein has joined #ruby
trautwein has quit [Client Quit]
trautwein has joined #ruby
FooMunki has joined #ruby
roshanavand has joined #ruby
[xx] has quit [Quit: ego sensuo, carthagenem delendam.]
XangadiX has joined #ruby
ht__ has joined #ruby
charliesome has joined #ruby
stamina has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
ht__ has quit [Read error: No route to host]
ht__ has joined #ruby
charliesome_ has quit [Ping timeout: 272 seconds]
ht__ has quit [Client Quit]
msankhala has joined #ruby
cmolenda has quit [Remote host closed the connection]
mic_e has joined #ruby
cornerman has joined #ruby
Chau has quit [Ping timeout: 272 seconds]
kp666 has joined #ruby
mic_e has quit [Ping timeout: 240 seconds]
kp666 has quit [Max SendQ exceeded]
platzhirsch has joined #ruby
decoponio has joined #ruby
griff has joined #ruby
FooMunki has quit [Quit: FooMunki]
FooMunki has joined #ruby
prestorium has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roshanavand has joined #ruby
ht__ has joined #ruby
ronjohns has joined #ruby
marcoecc has quit [Read error: Connection reset by peer]
rdark has joined #ruby
marcoecc has joined #ruby
drptbl has joined #ruby
rdark has quit [Client Quit]
rdark has joined #ruby
griff has quit [Read error: Connection reset by peer]
ht__ has quit [Client Quit]
griff has joined #ruby
ht__ has joined #ruby
blackmesa has quit [Ping timeout: 256 seconds]
ht__ has quit [Client Quit]
PedramT has quit [Ping timeout: 264 seconds]
griff has quit [Client Quit]
ElFerna has joined #ruby
psf has joined #ruby
ht__ has joined #ruby
drptbl has quit [Quit: See you later!]
drptbl has joined #ruby
ht__ has quit [Client Quit]
ElFerna has quit [Ping timeout: 276 seconds]
ht__ has joined #ruby
jam_ has joined #ruby
karapetyan has joined #ruby
techsethi has quit [Quit: techsethi]
Xeago has joined #ruby
prestorium_ has joined #ruby
ht__ has quit [Client Quit]
Coldblackice has joined #ruby
jam_ has quit [Ping timeout: 260 seconds]
prestorium has quit [Ping timeout: 246 seconds]
techsethi has joined #ruby
akem has quit [Quit: Bye]
<jackcom> shevy: what are you doing?
<jackcom> Volumes increase more than doubled compared to yesterday <—— you can edit it for me?
<jackcom> shevy:
workmad3 has joined #ruby
tulak has joined #ruby
dtordable has joined #ruby
steffkes has joined #ruby
steffkes has quit [Changing host]
steffkes has joined #ruby
<jackcom> Volumes increase more than doubled compared to yesterday <——— who can edit it for me? Ox0dea ?
bweston92 has joined #ruby
<jackcom> Volumes increase more than doubled compared to yesterday <—— this statement is correct? everybody?
pagios has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
<jackcom> excellent ruby programmer
<jackcom> :(
ht__ has joined #ruby
roshanav_ has joined #ruby
roshanavand has quit [Read error: Connection reset by peer]
Coldblackice has quit [Read error: Connection reset by peer]
krz has joined #ruby
ht__ has quit [Client Quit]
ht__ has joined #ruby
karapetyan has quit [Remote host closed the connection]
ht__ has quit [Client Quit]
ElFerna has joined #ruby
ht__ has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
prestorium_ is now known as prestorium
karapetyan has joined #ruby
PedramT has joined #ruby
workmad3 has quit [Read error: Connection reset by peer]
PedramT has quit [Remote host closed the connection]
nertzy has joined #ruby
shredding has quit [Ping timeout: 256 seconds]
cold_zero has joined #ruby
duckpuppy has joined #ruby
ht__ has quit [Client Quit]
agent_white has left #ruby [#ruby]
blackmesa has joined #ruby
prestorium_ has joined #ruby
<cold_zero> Hi there. I new to Ruby and I've found piece of code that I don't familiar with and I haven't found any reasonable explanation of what it does. Here is it Class Person ; extend Forwardable ; end
norc has joined #ruby
<cold_zero> what this "extend" does ?
<jackcom> inherit cold_zero
<Mon_Ouie> extend means that the instance methods defined in the Forwardable module are now available as class methods in the Person class
Chau has joined #ruby
<norc> cold_zero: extend applies to the targets singleton class, include to the class directly.
<Mon_Ouie> (it is similar to calling `include' from the class's singleton class)
* norc refuses to use "instance method" and "class method" in Ruby, since only classes can have methods...
<cold_zero> so, let me say in my own words. All instance methods from "Forwardable" now in "Person" class as class methods ?
<cold_zero> is it correct ?
<Mon_Ouie> Yes
<cold_zero> ok and what the point of this ?
<cold_zero> what benefit does this gave to me ?
astrobun_ has joined #ruby
<norc> cold_zero: Oh I forgot. All of this is not really true for the majority of rails code, since they deeply mess around with included?
<norc> cold_zero: They provide you with Mixin facility, the strongest and most useful feature of Ruby. :-)
<Mon_Ouie> It gives you the benefits that you can… call those methods
prestorium has quit [Ping timeout: 265 seconds]
workmad3 has joined #ruby
b3nt_pin has joined #ruby
techsethi has quit [Ping timeout: 265 seconds]
bkxd has joined #ruby
tulak has quit [Remote host closed the connection]
<cold_zero> ok, so I guess if I would compare this approach with inheritance, then this approach allows me to include methods from more than one class
ht__ has joined #ruby
<norc> cold_zero: There is also Module#prepend by the way, which is even fancier. But you probably want to understand how Ruby dispatches methods before really using this. :)
<cold_zero> is it correct ?
tulak has joined #ruby
<norc> cold_zero: Indeed. And across multiple classes too.
<Mon_Ouie> from more than one module, not class
<cold_zero> you mean I can use only modules and not classes ?
<Mon_Ouie> You can only include/extend/prepend a module and not a class
ibouvousaime has quit [Read error: Connection reset by peer]
<cold_zero> ok
nertzy has quit [Quit: This computer has gone to sleep]
<cold_zero> I can only inherit from class. Is it correct ?
<Mon_Ouie> You can include/extend/prepend into a class or a module, but what you include/extend/prepend must be a module and can't be a class
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
astrobun_ has quit [Ping timeout: 256 seconds]
<Mon_Ouie> Wait, do you mean "inherit from a class"?
<norc> cold_zero: That is also correct.
[xx] has joined #ruby
<norc> >> class Foo; end; class Bar; include Foo; end
<ruboto> norc # => wrong argument type Class (expected Module) (TypeError) ...check link for more (https://eval.in/497040)
<norc> >> module Foo; end; class Bar < Foo; end
<ruboto> norc # => superclass must be a Class (Module given) (TypeError) ...check link for more (https://eval.in/497041)
<cold_zero> I meant to inherit from some particular class not class "Class"
ht__ has quit [Client Quit]
<norc> That actually made me wonder...
<norc> >> class Foo < Class; end
<ruboto> norc # => can't make subclass of Class (TypeError) ...check link for more (https://eval.in/497042)
pawnbox has quit [Remote host closed the connection]
<norc> Why...
bkxd has quit [Ping timeout: 250 seconds]
<norc> Not that I have any particular reason for doing this...
adgtl has quit [Ping timeout: 260 seconds]
<Mon_Ouie> It would make sense for Struct to be a subclass of Class, since Struct.new returns a class
<cold_zero> I think it now have much more sense for me, thank you guys :-)
<norc> >> Struct.ancestors
<ruboto> norc # => [Struct, Enumerable, Object, Kernel, BasicObject] (https://eval.in/497045)
<norc> Mon_Ouie: ostruct too then I guess
XangadiX has quit [Ping timeout: 260 seconds]
<norc> Mon_Ouie: Mind my asking, aren't you one of the yy gurus of cruby around here?
<norc> Or am I confusing you with someone else
<Mon_Ouie> OpenStruct.new doesn't return a class, it returns an object that behaves like a hash but can be accessed using regular getters/setters
<Mon_Ouie> Probably confusing me for someone else
<norc> Hard to find people who are knowledged about the parser in here. :(
Coldblackice has joined #ruby
prestorium_ has quit [Quit: Leaving]
roshanav_ has quit [Read error: Connection reset by peer]
<shevy> that is because people here are solving real problems
roshanavand has joined #ruby
<shevy> and that you do not speak japanese!
Coldblackice has quit [Read error: Connection reset by peer]
jdawgaz has joined #ruby
cmolenda has joined #ruby
[xx] has quit [Quit: ego sensuo, carthagenem delendam.]
<cold_zero> can I ask a question about "Forwardable" module. Have you used it? If so what is the usual use case scenario for it ?
ht__ has joined #ruby
<apeiros> cold_zero: you can use it instead of subclassing. usually recommended when you'd want to subclass a class you don't own.
Coldblackice has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
<norc> cold_zero: I think one of the most powerful examples in Ruby is Enumerable.
cmolenda has quit [Ping timeout: 240 seconds]
<norc> Which is by default included into some classes like Array or Hash for example. But you can create your own class, and make it Enumerable too. You just need to provide some basic methods for it to work.
pawnbox has joined #ruby
<apeiros> norc: the person with the most knowledge about the parser I know of (short of those developing it) is probably whitequark. He's quite certainly online, but sadly no longer frequenting #ruby.
rdark has quit [Ping timeout: 260 seconds]
<cold_zero> norc: oh this is what you mean
<norc> apeiros: Oh, is that the owner of this website? http://rxr.whitequark.org/mri/source/parse.y
<apeiros> yes
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<norc> Neat. Well it looks like I have to start learning Bison then, but its fine.
<norc> Shift and reduce, how hard can it be.
ht__ has quit [Read error: No route to host]
Coldblackice has quit [Read error: Connection reset by peer]
pawnbox has quit [Ping timeout: 246 seconds]
<cold_zero> I'm little bit confused. Back to "extend", what the difference between "include" and "extend" both of them kinda do same job
mdw has joined #ruby
dionysus69 has joined #ruby
<cold_zero> or not ?
ElFerna has quit [Ping timeout: 256 seconds]
Coldblackice has joined #ruby
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
Coldblackice has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
lkba has joined #ruby
adgtl has joined #ruby
<Mon_Ouie> "extend" makes the module's instance methods available as class methods, "include" makes them available as instance methods
drptbl has joined #ruby
Coldblackice has joined #ruby
<norc> cold_zero: They do the same but operate on different things under the hood, so the differentiation is just syntactic sugar.
<apeiros> class Foo; extend Bar; end # <-- is almost the same as --> class Foo; class << self; include Bar; end; end
<norc> apeiros: Almost?
<Mon_Ouie> The extended/included hook
<apeiros> norc: triggers different hooks
<norc> Well. Aside from that of course.
<cold_zero> triggers hooks
<cold_zero> ?
pawnbox has joined #ruby
<apeiros> aside from that I think they do the same
<cold_zero> can you say more about this ?
<norc> apeiros: Ah well, time to look at the source code again. :)
<apeiros> class Foo; include Bar; end # calls Bar.included(Foo)
<apeiros> class Foo; extend Bar; end # calls Bar.extended(Foo)
<apeiros> norc: I'm interested in your findings :)
roshanavand has quit [Remote host closed the connection]
<gregf_> >> module Foo; def bar msg=nil; puts "Bar " + (msg.nil? ? "": msg);end;end; class Bar; include Foo;end;class Baz; extend Foo;end; Bar.new.bar("include"); Baz.bar("extend") # cold_zero ^^ 'what apeiros said'
<ruboto> gregf_ # => Bar include ...check link for more (https://eval.in/497052)
techsethi has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<cold_zero> ok, thank you. Now it's clear
<cold_zero> thank you for help
__ht has joined #ruby
adgtl has quit [Ping timeout: 245 seconds]
charliesome has joined #ruby
__ht has quit [Client Quit]
FooMunki has quit [Quit: FooMunki]
prestorium has joined #ruby
rdark has joined #ruby
FooMunki has joined #ruby
<norc> apeiros: They are identical except for the callback, and the fact that extend operators on the targets singleton class.
Domaldel has quit [Quit: Leaving]
<apeiros> norc: thanks for the confirmation :D
<norc> (Extend ends up calling rb_include_module(rb_singleton_class(obj), module)), aside from that the wrapper methods are the same.
roshanavand has joined #ruby
<norc> apeiros: Well, turns out that browsing the source code is the most reliable way to get information about how ruby behaves. :-)
<apeiros> norc: in some cases I also found it to be a quite time consuming way :-/
<norc> apeiros: I think things would be much easier if all the obscure optimized functions had at least some code comments. :-)
<apeiros> norc: indeed
<norc> Trying to figure out what happens in string.c is not fun.
roshanavand has quit [Remote host closed the connection]
gagrio has quit [Ping timeout: 255 seconds]
GinoManWorks has joined #ruby
domgetter has joined #ruby
sigurding has joined #ruby
techsethi has quit [Ping timeout: 265 seconds]
cold_zero has quit [Ping timeout: 265 seconds]
blackmesa has quit [Ping timeout: 246 seconds]
prestorium_ has joined #ruby
tulak_ has joined #ruby
blackgoat has quit [Quit: WeeChat 1.3]
arup_r has quit [Remote host closed the connection]
roshanavand has joined #ruby
prestorium has quit [Ping timeout: 264 seconds]
tulak has quit [Ping timeout: 255 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
futilegames has joined #ruby
dlitvak_ has joined #ruby
workmad3 has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
techsethi has joined #ruby
dionysus69 has quit [Ping timeout: 265 seconds]
ht__ has joined #ruby
nanoz has joined #ruby
dlitvak has quit [Ping timeout: 245 seconds]
atomical has joined #ruby
Coldblackice has quit [Read error: Connection reset by peer]
kobain has joined #ruby
<gregf_> >> module Foo; def bar; puts "Bar";end; def self.included klass; klass.extend(Baz);end; module Baz; def quux;puts "Quux";end;end;end;class Quux; include Foo;end;Quux.new.bar;Quux.quux
<ruboto> gregf_ # => Bar ...check link for more (https://eval.in/497058)
BTRE has quit [Remote host closed the connection]
futilegames has quit [Quit: futilegames]
codecop has quit [Quit: Išeinu]
Coldblackice has joined #ruby
sgambino has joined #ruby
ElFerna has joined #ruby
bkxd has joined #ruby
gagrio has joined #ruby
Coldblackice has quit [Read error: Connection reset by peer]
BTRE has joined #ruby
dlitvak_ has quit [Remote host closed the connection]
techsethi has quit [Ping timeout: 240 seconds]
<norc> gregf_: Just sometimes using eval.in directly with properly indented code is helpful. :-P
<domgetter> norc: Here you go: https://eval.in/497060
Coral has joined #ruby
Coldblackice has joined #ruby
Coral is now known as Guest59462
Coldblackice has quit [Read error: Connection reset by peer]
<Ox0dea> Nobody told dfwait he could chain bang methods with #tap. :/
Guest59462 is now known as tjadc
tjadc is now known as tjad
jackcom has quit [Ping timeout: 240 seconds]
ht__ has quit [Quit: Konversation terminated!]
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
bkxd has quit [Ping timeout: 250 seconds]
ht__ has joined #ruby
<norc> gregf_: Gotcha thanks.
<norc> Ox0dea: o/
<Ox0dea> Ahoy!
<Ox0dea> norc: What's this about string.c?
<Ox0dea> Did you find the secret to making String#expand a one-liner?
<norc> I figuratively stumbled over the contents of that file. Many times.
jackcom has joined #ruby
Melpaws1 has quit [Quit: Leaving.]
<norc> But then again, this might have something to do with C being absolutely a PITA to do any string work in.
FernandoBasso has quit [Quit: Leaving]
akem has joined #ruby
atmosx has joined #ruby
atmosx has quit [Remote host closed the connection]
BTRE has quit [Remote host closed the connection]
arup_r has joined #ruby
atmosx has joined #ruby
A124 has quit [Read error: No route to host]
ht__ has quit [Client Quit]
cmolenda has joined #ruby
lethalbrains has quit [Remote host closed the connection]
speakingcode has quit [Ping timeout: 246 seconds]
ht__ has joined #ruby
A124 has joined #ruby
cmolenda_ has joined #ruby
arup_r has quit [Remote host closed the connection]
<dwfait> Ox0dea: indeed you can use tap, but again, there you lose terseness.
morfin has joined #ruby
cmolenda has quit [Read error: Connection reset by peer]
<dwfait> I'm not looking for a way to accomplish anything in particular, just pondering the design-decision of making bang methods not chainable
<dwfait> maybe we need another class of methods which are in-place and chainable
nerfando has quit [Quit: Textual IRC Client: www.textualapp.com]
drptbl has joined #ruby
nerfando has joined #ruby
<apeiros> the design decision probably went something like this: if you modify in place, the return value is of little use, and the next best use for the rv is to observe whether the object changed
<Ox0dea> dwfait: Their not being chainable is a side effect of their much more useful and intended purpose.
Coldblackice has joined #ruby
ht__ has quit [Ping timeout: 265 seconds]
<norc> dwfait: You asked about have_func a couple days ago. The answer is that only those functions exposed with #pragma GCC visibility are available with that function.
jmonreal has joined #ruby
<norc> As such rb_thread_fd_select (I believe you asked about that) shouldn't be available.
<Ox0dea> That bang methods return `nil` when they might've made some change but didn't provides greater information density at absolutely no cost.
<Ox0dea> Other than, of course, the loss of chainability.
<Ox0dea> But there's #tap. Everybody wins.
<Ox0dea> norc: But it's available for me?
<dwfait> re: chaining, fair enough.
<norc> Ox0dea: Huh?
Dreamer3 has quit [Quit: Computer has gone to sleep.]
<apeiros> Ox0dea: personally I'd prefer if they changed the method signature to either return true/false or always return self, though.
<dwfait> norc: I ended up upgrading to OS X 10.11 and it resolved the issue. Don't know why.
<apeiros> their sometimes returning self is a great source of bugs :-/
arup_r has joined #ruby
scripore has joined #ruby
Coldblackice has quit [Read error: Connection reset by peer]
<dwfait> But from my digging, mkmf.rb generates a program which consumes the function you're trying to check, and if it links successfully we assume it's there, if there's an error then it's not
<dwfait> and AFAIK rb_thread_fd_select should be available from 1.9 upwards
<Ox0dea> norc: have_func('rb_thread_fd_select') # => true for me.
PedramT has joined #ruby
<Ox0dea> It's very strange that dwfait couldn't get that result.
<Ox0dea> I couldn't find anything particularly special about that function in the source tree, but there's gotta be something?
<dwfait> It is strange. Seemed to be an issue of it trying to link to one of OS Xs Frameworks which didn't like being linked against
<dwfait> It was an environment issue with my machine
<Ox0dea> I suppose that'd have to be it.
workmad3 has joined #ruby
<dwfait> that only reared itself on that particular function check, for some odd reason
Dreamer3 has joined #ruby
ht__ has joined #ruby
Macaveli has joined #ruby
Coldblackice has joined #ruby
gagrio has quit [Ping timeout: 246 seconds]
abkabkabk has joined #ruby
<norc> Ox0dea: Strangely enough it returns false for me too.
PedramT_ has joined #ruby
<norc> Ox0dea: And naively I would even expect it to.
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> Uh-oh.
<Ox0dea> My box is the weirdo.
<abkabkabk> ruby fn for extracting two things? line.match('asdf (\w+) two: (\w+)').join(' ') ? or? i just wanna print the two capture grps
ht__ has quit [Client Quit]
<apeiros> abkabkabk: .captures after the .match
<abkabkabk> ty
<apeiros> may have to test for nil first (whether it matched at all)
prestorium_ is now known as prestorium
<norc> Ox0dea: Well, honestly this is one of these parts that I really don't want to use.
scepticulous has quit [Quit: Konversation terminated!]
<Ox0dea> norc: Linker headaches are the best!
<Ox0dea> That's `gold`, Jerry!
nerfando has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<norc> Ox0dea: Best I ever had was trying to statically link glibc into Qt. (I succeeded eventually).
<Ox0dea> Why not a smaller libc for that?
ramortegui has joined #ruby
<norc> Because Qt has a hard dependency on it for some reason.
dtordable has quit [Ping timeout: 240 seconds]
<norc> Or had at the time of the problem anyway.
<abkabkabk> not working
<dwfait> norc: interesting. Does gem install eventmachine work for you?
<abkabkabk> is this valid line~/someregexp/
<ljarvis> ?try
<ruboto> Why don't you try it and see for yourself?
<norc> dwfait: Ill have to check at home, since there I have the machine that returns false on it. On my Ruby version on OSX 10.10.4 it works for sure.
PedramT has quit [Ping timeout: 276 seconds]
rns has joined #ruby
<Ox0dea> abkabkabk: That should be `line =~ /rx/`.
<Ox0dea> That'll give you a MatchData object that you could assign to a variable for subsequent querying.
<Ox0dea> Or you could just use $1, $2... to refer to the captures.
jam_ has joined #ruby
build22 has joined #ruby
build22 has left #ruby [#ruby]
<abkabkabk> thx
<abkabkabk> working now
abkabkabk has quit [Quit: Page closed]
<Ox0dea> Never mind about the MatchData object; that's only for #match... well, all right.
blackmesa has joined #ruby
<norc> Ox0dea: http://www.akkadia.org/drepper/no_static_linking.html -- that article alone shows how much of an ego some people on this planet have...
cold_zero has joined #ruby
atmosx has quit [Read error: Connection reset by peer]
<norc> It's basically "We just know whats best for you, so we make sure you cannot do it any other way".
<domgetter> >> m = "John Smith".match(/^(?<first>\w+)\s(?<last>\w+)$/); m[:last]
<ruboto> domgetter # => "Smith" (https://eval.in/497068)
<domgetter> mmmm named groups
jam_ has quit [Ping timeout: 256 seconds]
dorei has joined #ruby
atmosx has joined #ruby
<Ox0dea> >> /(?<omg>\w+)/ =~ 'wtf'; omg # domgetter
<ruboto> Ox0dea # => "wtf" (https://eval.in/497073)
Zamerick has quit [Ping timeout: 276 seconds]
dn` has quit [Read error: Connection reset by peer]
<domgetter> ooooh, I didn't know it set local variables with +~
<domgetter> =~*
p337rB has joined #ruby
<dwfait> where's the "considered harmful considered harmful" article when you need it
<ljarvis> only Regexp =~ not String =~
dstarh has joined #ruby
<domgetter> Using Regex to Set Local Vars Considered Harmful
<apeiros> domgetter: only under very specific circumstances
Jackneill has joined #ruby
_Tariq has joined #ruby
<apeiros> regex must be lhs, must not contain interpolation, must use =~
<_Tariq> I am unable to install any new gems, because whenever I try to do so, I get an error
<_Tariq> "Gem::RemoteFetcher::FetchError: Errno::ECONNREFUSED: Connection refused - connect(2) for "rubygems.global.ssl.fastly.net" port 443 (https://rubygems.org/gems/rspec-support-3.2.0.gem)"
<_Tariq> Is this a problem with rubygems specifically or a problem with Comcast?
symbol has joined #ruby
<Ox0dea> _Tariq: It's an SSL problem.
<Ox0dea> Could have all sorts of root causes.
<_Tariq> Oh dear
<domgetter> apeiros: ah okay. cool, thanks :)
<_Tariq> So let me try to reset the SSL then
rodfersou is now known as rodfersou|lunch
gagrio has joined #ruby
<ddv> reset ssl? :p
mic_e has joined #ruby
dwfait has quit [Remote host closed the connection]
dtordable has joined #ruby
<Ox0dea> norc: Found a relevant bug: https://sourceware.org/bugzilla/show_bug.cgi?id=10134
Bloomer has joined #ruby
graft has quit [Ping timeout: 260 seconds]
sankaber has joined #ruby
jam_ has joined #ruby
graft has joined #ruby
graft has quit [Changing host]
graft has joined #ruby
<Ox0dea> norc: Unfettered freedom could never work in practice, and it doesn't even really work in principle.
* Ox0dea ducks
PedramT_ has quit [Remote host closed the connection]
deuterium has joined #ruby
mic_e has quit [Ping timeout: 264 seconds]
PedramT has joined #ruby
ht__ has joined #ruby
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ht__ has quit [Client Quit]
jam_ has quit [Remote host closed the connection]
krobzaur has joined #ruby
akem has quit [Remote host closed the connection]
duckpuppy has quit [Ping timeout: 250 seconds]
<_Tariq> Even switching from https:// to http:// doesn't "resolve" the issue
jam_ has joined #ruby
<_Tariq> so I don't actually think it could be an SSL issue
jam_ has quit [Remote host closed the connection]
Chau has quit [Quit: Leaving]
PedramT has quit [Remote host closed the connection]
vbatts|work has left #ruby ["found the other side of the rainbow"]
PedramT has joined #ruby
<Ox0dea> $ curl -I rubygems.org
<Ox0dea> HTTP/1.1 301 Moved Permanently
RegulationD has joined #ruby
<Ox0dea> _Tariq: http://rubygems.org basically "becomes" https://rubygems.org.
duckpuppy has joined #ruby
<_Tariq> Well that sounds terrible.
<domgetter> _Tariq: what OS are you on?
<_Tariq> Mac.
ta0 has joined #ruby
<_Tariq> I don't really know how to deal with SSL configuration
stamina has quit [Ping timeout: 276 seconds]
shredding has joined #ruby
<Ox0dea> Burn it.
TomPeed has joined #ruby
<_Tariq> ...
<_Tariq> That doesn't help.
<Ox0dea> It might.
tagrudev has joined #ruby
ronjohns has quit [Quit: leaving]
jam_ has joined #ruby
<norc> Ox0dea: The status change on the bug is hilarious.
<Ox0dea> _Tariq: What's your browser do if you try to visit https://rubygems.global.ssl.fastly.net?
PedramT has quit [Ping timeout: 260 seconds]
<_Tariq> "Safari can't connect to server"
drptbl has joined #ruby
BTRE has joined #ruby
<Ox0dea> Find fire.
<Ox0dea> Or make it, if'n you're suitable equipped.
Komde has joined #ruby
Komde has left #ruby [#ruby]
<_Tariq> domgetter: I followed instructions there, but nothing seems to have changed
atmosx has quit [Quit: parting / quiting]
nfk|laptop has joined #ruby
<domgetter> _Tariq: what gem are you trying to install?
<_Tariq> And they do give me the correct URI, not "your-dns-need-immediate-attention"
<_Tariq> domgetter: All the gems in my Gemfile
djcp has joined #ruby
weemsledeux has joined #ruby
<domgetter> Are you using bundle install?
<Ox0dea> The problem is that _Tariq's SSL certificate configuration has gone wonky, and RubyGems doesn't wanna let him connect insecurely.
osiutino_ has joined #ruby
<Ox0dea> Probably.
<_Tariq> domgetter: Yes.
<domgetter> does it work if you use gem install gemname directly?
<_Tariq> Nope
<domgetter> (just to see if one works)
tagrudev has quit [Client Quit]
<Ox0dea> domgetter: ?
ht__ has joined #ruby
<_Tariq> ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
<domgetter> then yea I agree with Ox0dea that you need a new cert
<_Tariq> Errno::ECONNREFUSED: Connection refused - connect(2) for "rubygems.global.ssl.fastly.net" port 443 (https://api.rubygems.org/quick/Marshal.4.8/minitest-5.5.1.gemspec.rz)
nertzy has joined #ruby
<_Tariq> But how do I get a new cert?
jam_ has quit [Ping timeout: 255 seconds]
<_Tariq> I thought you 'burn it with fire' was a joke
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<_Tariq> not like, a possible command
<Ox0dea> Dual-boot Linux for those occasions when you want shit to function correctly?
<Ox0dea> (Sorry. <3)
<_Tariq> I have Linux on another machine
dtordable has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
kies^ has quit [Ping timeout: 264 seconds]
dtordable has joined #ruby
<_Tariq> So I guess I could transfer my work over there in case I'm stuck with this SSL cert forver
<norc> Ox0dea: People still do that? I just dished out some money for 16GB of ram to have 4-5 VMs running concurrently for every flavor Im working with... :-)
<domgetter> _Tariq: what version of rubygems is installed?
<Ox0dea> norc: A wontfix from the creature itself would've been of considerable hilarity.
symbol has quit [Quit: WeeChat 1.1]
<domgetter> _Tariq: run gem -v to find out
<norc> Ox0dea: Heh.
<_Tariq> domgetter: 2.4.6
sankaber has quit [Quit: Textual IRC Client: www.textualapp.com]
denym_ has joined #ruby
nfk|laptop has quit [Ping timeout: 250 seconds]
<norc> Ox0dea: Or a worksforme. :-)
<denym_> Hey there, when I build ruby from source how can i skip the doc generation?
<domgetter> _Tariq: can you `gem update --system`
<Ox0dea> domgetter: --no-doc
Macaveli has joined #ruby
<Ox0dea> denym_: ^
<_Tariq> Connection refused, domgetter.
<domgetter> --no-rdoc --no-ri
<Ox0dea> Oh... Ruby itself, not gems.
<domgetter> oh
ht__ has quit [Ping timeout: 276 seconds]
sankaber has joined #ruby
<denym_> Ox0dea: like "./configure; make install --no-doc" ?
<norc> Is there a reason why referencing an unused instance variable returns nil?
<_Tariq> nil means "nothing"
<_Tariq> There's nothing in that variable
<domgetter> _Tariq: are you using rvm ?
<Ox0dea> denym_: No, not quite, sorry.
<_Tariq> domgetter: Yes
<_Tariq> "rvm 1.26.11 (latest)"
<norc> _Tariq: Except technically that variable does not even exist in the ivar table.
<norc> It should cause an exception.
<norc> Or cause Ruby to somehow explode in a visually pleasing fashion.
<apeiros> norc: probable reason was modules. but I'd prefer an exception or explicit initializers.
<domgetter> _Tariq: specifically the section titled "Use RVM to Fix SSL Certificates"
<Ox0dea> denym_: `make install-nodoc`
<_Tariq> They say they are already up to date
<_Tariq> bundle install
<_Tariq> er
<domgetter> _Tariq: also, OSX comes with a Ruby installed, so it's possible that the OS is trying to use that one. what does `which ruby` and `which rubygems` display? If it's not an rvm-looking thing, then you might need to uninstall your stock ruby
ElFerna has quit [Ping timeout: 240 seconds]
<Ox0dea> Sounds dangerous.
<_Tariq> which ruby = "/Users/tariqali/.rvm/rubies/ruby-2.2.1/bin/ruby"
<norc> apeiros: How are modules a probable reason here? Making assumptions about the internal state of a class is a bad idea to begin with. Suppression exceptions in case they are not defined yet is even worse.
<_Tariq> which rubygems = rubygems not found
<_Tariq> The problem started when for some reason all my gems went away
<domgetter> oops, is it `which gem` ?
<domgetter> one sec, lemme get my laptop
<_Tariq> I get this python code
CloCkWeRX has left #ruby [#ruby]
<_Tariq> er, not python, but some type of script nevertheless
dlitvak has joined #ruby
ht__ has joined #ruby
<norc> apeiros: The only reason I can see is that for non instance variables, Ruby does not even know whether it was a function or a local variable.
<norc> In which case NameError is the only reasonable option.
<apeiros> norc: but that'd be the reason why lvars don't auto-vivify, not why ivars do ;-)
<denym_> Ox0dea: thanks I giv e that a try, you got any source on this?
ht__ has quit [Client Quit]
<domgetter> _Tariq: what does `which gem` display?
yes`r has quit [Ping timeout: 260 seconds]
azgil has joined #ruby
chouhoulis has joined #ruby
<domgetter> it should be "/Users/tariqali/.rvm/rubies/ruby-2.2.1/bin/gem"
workmad3 has quit [Read error: Connection reset by peer]
<_Tariq> This is what which gem displays
ch33s3c4k3 has joined #ruby
<domgetter> That doesn't look right at all to me, but I've never owned a mac, so I can't say.
<Ox0dea> denym_: Er, my source is... the source.
<Ox0dea> Use the source, Luke!
<_Tariq> apeiros: My guess that all variables are pointers to something, but you have an instance variable that points to nothing, and since nil is a standin for nothing, just return nil
<domgetter> _Tariq: do you have a folder called "/Users/tariqali/.rvm/rubies/ruby-2.2.1/bin/gem" ?
ht__ has joined #ruby
futilegames has joined #ruby
karapetyan has quit [Remote host closed the connection]
<ch33s3c4k3> If I have a dictionary of values, what it the best way of creating a version that contains all possible combinations of those values with nulls among them. [a => null, b => null], [a => 1, b => null], [a => 1, b => 1], [a => null, b => 1] (only I have a lot more values)
<denym_> Ox0dea: I will thanks again :)
<_Tariq> domgetter: Yes, I do have it
karapetyan has joined #ruby
AugustoCesar has joined #ruby
<domgetter> _Tariq: it seems like the problem is that when you try to install gems, it's not using that directory. I can't help much further than that, since I don't know macs, though
Haris has quit [Quit: Leaving]
nertzy has quit [Quit: This computer has gone to sleep]
<domgetter> _Tariq: this *might* help though: https://rvm.io/rubies/rubygems
ht__ has quit [Client Quit]
mic_e has joined #ruby
karapetyan has quit [Ping timeout: 255 seconds]
ht__ has joined #ruby
<_Tariq> I'm looking at it domgetter
anisha has quit [Quit: Leaving]
AugustoCesar has left #ruby ["QUIT :Leaving."]
<Ox0dea> ch33s3c4k3: Could you clarify? I think you want #product.
PedramT has joined #ruby
aegis3121 has joined #ruby
stannard has joined #ruby
<Ox0dea> >> [(foo rescue $!.class), @foo] # _Tariq: This is the inconsistency that rustles norc's jimmies.
<ruboto> Ox0dea # => [NameError, nil] (https://eval.in/497095)
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<_Tariq> Ox0dea: Yeah this seems to rustles my feathers too
<_Tariq> What does that code even mean?
babblebre has joined #ruby
ESpiney has joined #ruby
ht__ has quit [Client Quit]
nertzy has joined #ruby
elaptics is now known as elaptics`away
roshanav_ has joined #ruby
roshanavand has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
<ch33s3c4k3> Ox0dea: I will take a look at product. What I want is to have a full list of values populated in my dictionary. I then want to create every possible dictionary variation of that hash that has nulls. All nulls, nulls in just each value... every possible combination of the fully populated hash and null values.
<Ox0dea> ch33s3c4k3: Interesting.
<domgetter> ch33s3c4k3: may I ask why you want to do that?
codecop has joined #ruby
<ch33s3c4k3> I have to pass a set of data into a system to test that the workflow behind it runs without error. I want to make sure that all possible combinations of data and no data are checked
ht__ has joined #ruby
harai54 has joined #ruby
futilegames has quit [Quit: futilegames]
<domgetter> ch33s3c4k3: how many values will there be at a maximum?
<ch33s3c4k3> 40
<domgetter> >> 2**40
<ruboto> domgetter # => 1099511627776 (https://eval.in/497104)
<Ox0dea> Egads!
<domgetter> ch33s3c4k3: you're trying to do something that is computationally impractical
chouhoulis has quit [Remote host closed the connection]
speakingcode has joined #ruby
whippythellama has joined #ruby
chouhoulis has joined #ruby
<ch33s3c4k3> Oh I have no doubt about that. I would just like to be able to cover myself and say "I provided all possible iterations and it handled them all" - I understand that doesn't mean it's perfect but would be nice. Can you think of any nice alternatives?
<Ox0dea> ch33s3c4k3: https://eval.in/497109
Biohazard has quit [Quit: WE ARE IN THE BEEEAAAAMMMM]
kfpratt has joined #ruby
Fridtjof has quit [Quit: ZNC - http://znc.in]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<domgetter> ch33s3c4k3: when you say 40, you mean that the hash has 40 keys in it, right? like {a: 1, b: 2, c: 3, ... last: 40} ?
<ch33s3c4k3> Yes
PedramT has quit [Remote host closed the connection]
ht__ has quit [Ping timeout: 256 seconds]
kith has quit [Quit: kith]
<Ox0dea> Well, you really do have 2^40 different permutations, then.
<domgetter> ch33s3c4k3: you're asking to be able to run a loop 1,099,511,627,776 (over 1 trillion times)
harai54 has quit [Ping timeout: 240 seconds]
<Ox0dea> Not that that can't be done, mind.
<ch33s3c4k3> Is that all... :D
<Ox0dea> ?
msankhala has quit [Quit: This computer has gone to sleep]
<Ox0dea> Oh.
bMalum has joined #ruby
anaeem1 has joined #ruby
<ch33s3c4k3> That is a crazy amount. While I could write some code to create those permutations... having the workflow handle that many runs is not going to work. The system I am feeding this into is slow and running with a worker count of 1 (with a pause every [small number] of seconds). I will try and come up with a list of key combinations of values.
psy_ has joined #ruby
<domgetter> multiplying 1 by 2 ten million times on my machine takes a half a second. 1 trillion is one hundred thousand times this
anaeem1 has quit [Remote host closed the connection]
<Ox0dea> domgetter: Huh?
psy_ has quit [Max SendQ exceeded]
<domgetter> it would take 13 hours to multiply 1 by 2 on my machine (in ruby) 1 trillion times
jgpawletko has joined #ruby
<Ox0dea> notbad.jpg
<_Tariq> I say do it
<_Tariq> I mean, think about it.
psy_ has joined #ruby
<_Tariq> If you try to wait for a better techinque
<_Tariq> you may not find it
nertzy has quit [Quit: This computer has gone to sleep]
<_Tariq> But if you spend the 13 hours now
<_Tariq> you'll get your task completed.
kirun has joined #ruby
<domgetter> I'm assuming that the underlying calculation is more cpu intensive than doing 1*2
<ch33s3c4k3> It's not the creating data that I'm concerned about too much. Running that many permutations through the workflow won't be completed for several millenia at the speed that thing works :D
<_Tariq> Then just only choose a few variations
<_Tariq> How about 100 different variations?
<domgetter> oh yea I forgot about the trillion hashes you need to make in memory
<Ox0dea> _Tariq: That's turning testing back into guesswork.
dwfait has joined #ruby
<_Tariq> 100 random variations
<_Tariq> Or maybe 1000 variations
<_Tariq> The point isn't that you're guessing
<ch33s3c4k3> I could leave this thing spitting out values as a fuzz test in the background...
<_Tariq> You want to take a statistically representative sample
<_Tariq> of these possible hash values
<_Tariq> and use that to make general conclusions about the whole population
<_Tariq> and if there
blackmesa has quit [Ping timeout: 240 seconds]
<_Tariq> is an error later on, you can add that to the test
<Ox0dea> But at what cost?
<domgetter> ch33s3c4k3: I would tone back the test cases to each key pointing to nil once
<_Tariq> The cost being that you're going to have to know stats
<_Tariq> Understand frequentist versus Bayesian arguments, etc.
<_Tariq> But I think that's a small cost to pay.
<_Tariq> The "Law of Large Numbers" are on your side.
<ch33s3c4k3> I will create 42 tests. Everything. Nothing. A set of data with null in each possible value. I will then fuzz the rest as a background process. How does that sound?
<domgetter> so like {a: nil, b: 2, c: 3}, {a: 1, b: nil, c: 3}, and {a: 1, b: 2, c: nil} for a hash of 3 key value paris
FernandoBasso has joined #ruby
<domgetter> ch33s3c4k3: that sounds much more reasonable
<domgetter> but I would not try to test every possible combination of nil values. but that's just me I guess
ht__ has joined #ruby
mdw has quit [Ping timeout: 272 seconds]
ht__ has quit [Client Quit]
sankaber has quit [Remote host closed the connection]
<ch33s3c4k3> It might be overkill... even then though, it doesn't cover everything right? *a value* and nil are not the only things that could pass into the workflow.
sankaber has joined #ruby
<domgetter> ch33s3c4k3: that's right, and every possible combination of every possible value represents a factorial calculation
shibly has joined #ruby
<ch33s3c4k3> I will just leave a background process spitting out values and notify the admin team any time it trying to push something through and fails. It's more than likely they'll see the failure and say "obviously THAT fails...." and I can ignore it moving forward.
craysiii has quit [Ping timeout: 250 seconds]
<domgetter> actually, I think it's worse than factorial
shibly has left #ruby [#ruby]
<domgetter> 40**40 > 40!
craysiii has joined #ruby
bMalum has quit [Ping timeout: 255 seconds]
<ch33s3c4k3> I have heard of a tribe of people that don't count past 3. I will stick with them and say 1, 2, 3... more than 3. If it's "more than three", I'm out.
wldcordeiro has quit [Ping timeout: 240 seconds]
framling has joined #ruby
<canton7> 40^40 is *large*. As in, assuming a million tests a second, you'll cover just 1/10^50 of the search space in 100 years
roshanav_ has quit [Remote host closed the connection]
<canton7> ch33s3c4k3, don't forget Terry Pratchett's trolls: "one, two, many, lots"
<ch33s3c4k3> If Ruby can't handle the task... maybe I'll find a language that can :D
freerobby has joined #ruby
<ch33s3c4k3> I've never read any Terry Pratchett. I always hear good things from friends who I can trust... maybe I should give it a go.
<ch33s3c4k3> Thanks for the pointers though folks, it's much appreciated
ta has quit [Remote host closed the connection]
dhollinger has joined #ruby
steffkes has quit [Ping timeout: 250 seconds]
braincrash has quit [Ping timeout: 245 seconds]
roshanavand has joined #ruby
krz has quit [Read error: Connection reset by peer]
malconis has joined #ruby
<tockitj> 40*40 - is so large that it is not even question of time anymore
<Ox0dea> ch33s3c4k3: *whom
<Ox0dea> >> 40
<ruboto> Ox0dea # => 40 (https://eval.in/497162)
nanoz has quit [Ping timeout: 260 seconds]
<Ox0dea> Derp.
<Ox0dea> tockitj: I think you dropped this: *
Encapsulation has joined #ruby
solars has quit [Ping timeout: 256 seconds]
ht__ has joined #ruby
<tockitj> sun throughout its life cycle does not have enough energy to iterate memory through 40**40 states
<_Tariq> And besides, don't we want to avoid writing too many tests
<_Tariq> The more tests you write, the more you have to maintain them
<domgetter> _Tariq: yea but, job security ;0
<domgetter> ;) *
TomyWork has joined #ruby
roshanavand has quit [Remote host closed the connection]
<_Tariq> I've been trying to explore mutation testing, which seems very interesting
<_Tariq> although they have been spitting out equally valid (and better stylized) Ruby code
<_Tariq> at me
<Ox0dea> >> (40 ** 40).size
<_Tariq> instead of actual errors
<ruboto> Ox0dea # => 27 (https://eval.in/497163)
braincrash has joined #ruby
<Ox0dea> That's puny.
krz has joined #ruby
osiutino_ has quit [Quit: Ex-Chat]
nerfando has joined #ruby
ht__ has quit [Read error: No route to host]
<domgetter> >> (40**40).to_s.length
<ruboto> domgetter # => 65 (https://eval.in/497164)
__ht has joined #ruby
<Ox0dea> I confess to having used Fixnum#size as bait.
<Ox0dea> And I would've gotten away with it too.
__ht has quit [Client Quit]
<tockitj> >> Math.log2(40**40)
<ruboto> tockitj # => 212.8771237954945 (https://eval.in/497165)
<eam> what does that even mean "the sun does not have enough energy to iterate through 40**40 states"
<Ox0dea> >> (40 ** 40).bit_length
<ruboto> Ox0dea # => 213 (https://eval.in/497166)
<ch33s3c4k3> Ox0dea: I have finally looked into when to use who and whom... you learn something new every day.
<Ox0dea> eam: Science things.
bkxd has joined #ruby
<domgetter> eam: it means that if we harvested the sun for all its energy, we still wouldnt be able to power a computer that added 1+1 that many times
nanoz has joined #ruby
<eam> the sun has 1e58 atoms so of course it does
freerobby has quit [Quit: Leaving.]
<canton7> eam, uh, that's not how maths works :P
<Ox0dea> ch33s3c4k3: he/she/who, him/her/whom
<Ox0dea> It's surprisingly simple.
<ch33s3c4k3> I thought we were talking about Sun(tm)
<eam> canton7: sure it is
<domgetter> dem/der/dem/den
<domgetter> thats all I remember from German class
<eam> what's the energy contained in one atom?
<eam> certainly enough to power one addition
freerobby has joined #ruby
<eam> this is called "back of the envelope debunking" :)
<domgetter> eam 40**40 is about 10 to the 65, so it would take a million suns
aganov has quit [Remote host closed the connection]
ta has joined #ruby
<domgetter> 10 million suns*
<ch33s3c4k3> is that, or is that not, more than 3?
<eam> well no, because splitting an atom provides billions more power than it takes to drive a math operation
<domgetter> ch33s3c4k3: it's on the order of more than 3
<ch33s3c4k3> Hmmm. That sounds like too many.
<Ox0dea> > billions more power
<Ox0dea> I love it.
<ch33s3c4k3> Maybe if we had 3 suns, and just told them there's a lot riding on this and they'll need to work extra hard
<eam> Ox0dea: :)
mdw has joined #ruby
<eam> "a lot ok"
roshanavand has joined #ruby
<domgetter> eam, that's gross energy, not net
<domgetter> you'd need to fuel your fission reaction
<eam> well it'd be fusion
<domgetter> the sun is already fueling its fusion reaction
roshanavand has quit [Remote host closed the connection]
tinnvec has joined #ruby
<eam> we're talking in the abstract I assume, so I'm just converting mass to energy
<domgetter> so we can only count joules of radiation from that fusion
<eam> since they're the same
bkxd has quit [Ping timeout: 245 seconds]
<domgetter> they're proportional
bkxd has joined #ruby
<domgetter> e != m, e = mc**2
<canton7> the sun has a theoretical mass-energy of 1.8×10^47 J, according to wikipedia
<eam> canton7: released through gravitational fusion?
<domgetter> how much energy does it take to flip a bit?
axl_ has joined #ruby
ruby-lang634 has joined #ruby
<eam> canton7: because I'm discussing the entire energy potential
<Ox0dea> domgetter: It's so easy even neutrinos sometimes do it.
<ddv> lol
<ddv> nerds
<domgetter> according to Landauer's principle, we can flip a bit with 2.75 * 10**-21 J : https://en.wikipedia.org/wiki/Landauer's_principle
<domgetter> that's 10**68 bit flips
ziyadb has quit [Quit: Connection closed for inactivity]
<Ox0dea> domgetter: That's a no-op.
<Ox0dea> >> bit = 0; 10e3.times { bit ^= 1 }; bit
<ruboto> Ox0dea # => undefined method `times' for 10000.0:Float (NoMethodError) ...check link for more (https://eval.in/497170)
<Ox0dea> Grr.
<Ox0dea> You get the idea.
__ht has joined #ruby
<tockitj> eam - how do you harvest that much energy?
<eam> we don't currently have that kind of technology, obviously :)
<domgetter> tockitj: that's not relevant. eam is arguing against the claim that the sun could even do that in theory
PedramT has joined #ruby
<tockitj> do you really do not understand example about sun?
<tockitj> domgetter, well sun radiate energy as black body
pwnd_nsfw has quit [Ping timeout: 250 seconds]
<tockitj> peak of this radiation is in visible spectrum (yellow light)
karapetyan has quit [Remote host closed the connection]
<tockitj> example about sun being or not being able to cycle through states of idealized register is quite common
<domgetter> but yea, building an enclosing dyson shell would prove problematic
<domgetter> and take all kinds of energy in itself
karapetyan has joined #ruby
<tockitj> and it relies on the energy output of the sun - output being radiated energy into vacuum
PedramT has quit [Remote host closed the connection]
<Ox0dea> Are Internet arguments Turing-complete?
__ht has quit [Client Quit]
<Ox0dea> Like, could you use smugma to perform computation?
Biohazard has joined #ruby
norc has quit [Ping timeout: 252 seconds]
griffindy has joined #ruby
govg has joined #ruby
<eam> we haven't even begun to discuss how we might extract energy from the iron core
<Ox0dea> Whose iron core?
<eam> the sun's
<ddv> you've been there eam?
Fridtjof has joined #ruby
<Ox0dea> ddv: You're in space.
<eam> to the sun!?!
dwfait has quit [Remote host closed the connection]
<ddv> good point
<Ox0dea> eam is Icarus confirmed.
Xeago has quit [Remote host closed the connection]
<domgetter> I got dibs on any gold in there
__ht has joined #ruby
<domgetter> (hint: there isn't any)
<eam> well, save traces from other supernova
<Ox0dea> *supernovae
<tockitj> eam, point is that majority of energy sources on earth rely on energy that came from sun
<tockitj> eam, energy that is radiated through em waves
<domgetter> tockitj: that only cuts it down a few orders of magnitude
<tockitj> eam, and that is just a tiny fraction of energy that sun radiates in all directions
lxsameer has quit [Quit: Leaving]
<eam> tockitj: indeed, and the radiated energy is just a tiny fraction of the total energy potential of its mass
Xeago has joined #ruby
karapetyan has quit [Ping timeout: 265 seconds]
<eam> that's why I mention iron
<Ox0dea> Ah, I see the source of the confusion now.
<Ox0dea> tockitj is approaching the question from the perspective of using the Sun to perform computation here on Earth.
<eam> yeah
<Ox0dea> eam was talking about going and getting it.
<Ox0dea> (I hope.)
<eam> render unto space caesar
<domgetter> I got it, let's just ram earth into the sun so we can get all that material
<Ox0dea> ^
<domgetter> that should be cheaper than making round trips
<ddv> nerds arguing
<_Tariq> Meanwhile, I'm still unable to run bundle install properly
<eam> I was thinking a quantum black hole might be the most constructive approach
<_Tariq> I even copied and pasted somebody else's SSL certificate
<ddv> _Tariq: we are discussing more important things than your ssl problem
arup_r has quit [Remote host closed the connection]
__ht has quit [Client Quit]
<domgetter> _Tariq: I recommend uninstalling and reinstalling rvm
<_Tariq> "Really? uninstall, all? See "rvm list" and limit the selection to something more sane please :)"
<_Tariq> Gee thanks rvm.
<aegis3121> sounds like rvm implode?
<_Tariq> Not sure whether to thank you for stopping me for doing something stupid, or to curse you for ignoring my instructions.
bkxd has quit [Ping timeout: 250 seconds]
aufi has quit [Quit: Konversation terminated!]
Xeago has quit [Remote host closed the connection]
aspiers has quit [Ping timeout: 240 seconds]
drys has joined #ruby
nfk|laptop has joined #ruby
elaptics`away is now known as elaptics
dfdfdf has joined #ruby
zencognito has quit [Ping timeout: 240 seconds]
polishdub has joined #ruby
pwnd_nsfw has joined #ruby
__ht has joined #ruby
tnordloh has joined #ruby
<Ox0dea> Curse it for ignoring your stupid instructions.
karapetyan has joined #ruby
ta has quit [Remote host closed the connection]
mary5030 has joined #ruby
<Ox0dea> > Why Must Systems Be Operated?
psy_ has quit [Read error: No route to host]
nertzy has joined #ruby
Xeago has joined #ruby
kaleido has joined #ruby
tockitj has quit [Ping timeout: 265 seconds]
__ht has quit [Client Quit]
<eam> the real answer is that the cheap PC platform undercut the expensive mainframe market which featured all kinds of redundancy
treehug88 has joined #ruby
yardenbar has quit [Ping timeout: 240 seconds]
tercenya_ has quit []
Xeago has quit [Remote host closed the connection]
axl_ has quit [Quit: axl_]
rippa has quit [Ping timeout: 255 seconds]
<_Tariq> Resetting SSL stuff doesn't seem to be doing anything
<_Tariq> there must be another problem
tmtwd has joined #ruby
rippa has joined #ruby
tockitj has joined #ruby
MattV has joined #ruby
<_Tariq> Maybe my internet blocker is blocking connections needlessly
Jammy_Work has quit [Quit: Leaving]
ruby-lang634 has quit [Quit: Page closed]
Hammy_Work has joined #ruby
einarj has quit [Remote host closed the connection]
jgpawletko has quit [Ping timeout: 240 seconds]
<headius> yorickpeterse: your specs are very heavy on using Socket to test the more specific types...kind of a pain
<headius> like the roundabout way you test UNIXSocket.recvfrom
CorySimmons has joined #ruby
<headius> most of the specific sockets can be implemented very simply without touching Socket, so having Socket be required for their specs is troublesome
<yorickpeterse> Socket has the most straightforward API compared to all the other classes
<yorickpeterse> Hence it's used all over the place
<headius> I've had to implement more stuff on Socket than in any of the specific sockets just to get the specific sockets' specs to run
<headius> Socket has the most raw API, I'll give you that
<yorickpeterse> That just sounds like JRuby's Socket wasn't compatible to begin with
<headius> we don't have a raw socket on JDK
<headius> I have to emulate each type individually
tercenya has joined #ruby
__ht has joined #ruby
<headius> it was compatible enough for the users using us...and I fixed issues as they came in
<yorickpeterse> A lot of the Socket snippets are also pretty much straight from the rdoc
<_Tariq> My website blocker blocks anything that runs on the same server as the websites that I want to block
<Ox0dea> _Tariq: $ curl -sI https://rubygems.org | head -1
<Ox0dea> What's that give you?
wldcordeiro has joined #ruby
<_Tariq> HTTP/1.1 200 OK
<yorickpeterse> As harsh as it sounds, whatever the JVM can/can't do isn't really the concern of rubysl-socket, it just follows (as closely as possible) what CRuby does
Ebok has joined #ruby
<yorickpeterse> and IIRC in a bunch of cases there's no way around using raw Socket because of dumb shit in CRuby
<_Tariq> I don't really know how to turn off my webblocker and may probably not want to anyway
<_Tariq> but
<headius> yorickpeterse: it doesn't sound harsh...I just have to be realistic
<_Tariq> I think I have to, if I actually want to do any bundle install stuff
<yorickpeterse> headius: well you don't have to implement everything, e.g. we ditched ancillary data because it was too much of a pain
arup_r has joined #ruby
<headius> right, but that's what I'm saying...there's a lot more of Socket I have to implement just to run the other socket types' specs
<headius> they're not isolated from Socket
pagios has left #ruby ["Leaving"]
jokke is now known as kuyatzu
__ht has quit [Client Quit]
<yorickpeterse> well so in many cases Socket is used to set up a server, usually DGRAM because that's easier. The alternative would've been a UDP server (using Socket.udp_server or whatever it was called), which has the same problems
<yorickpeterse> the same goes for TCPServer
<headius> yeah
<yorickpeterse> it's basically impossible to write these specs in isolation since the "design" is a spaghetti of dependencies
<headius> I know there's some cases where you just can't do it without Socket
<headius> it's just frustrating
gusTester has joined #ruby
<headius> in any case, most of what I've fixed has been somewhat edge-casey
<headius> argument coercion, Addrinfo/sockaddr juggling, etc
gagrio has quit [Ping timeout: 264 seconds]
kappy has joined #ruby
<headius> most of the specific socket type specs run green (most ran green to begin with) and I've filled out a bit more of Socket and Addrinfo
kuyatzu is now known as jokke
mustmodify has joined #ruby
<headius> yorickpeterse: what do you have left to do on the impl?
__ht has joined #ruby
<yorickpeterse> OS X support, that's all
<headius> it would be interesting to try to reuse it but there's still a lot of rbx-specific callouts
<yorickpeterse> which is mostly adjusting specs because they do Linux specific stuff
<yorickpeterse> All Rbx specific stuff has been moved to lib/rubysl/socket
<yorickpeterse> everything in lib/socket just refers to wrapped stuff
<yorickpeterse> s/OS X/BSD
__ht has quit [Client Quit]
jgpawletko has joined #ruby
<_Tariq> Oh come on!
<_Tariq> This is bad
<_Tariq> My website blocker is indeed blocking rubygems
<_Tariq> but I can't get rid of my website blocker
<headius> yorickpeterse: ok
<headius> I don't think there's anything in there we can't support but some of the build-time things will be tricky
<headius> we don't have a build time for 99% of people
nfk|laptop has quit [Quit: yawn]
Mr_Pancake has quit [Ping timeout: 250 seconds]
<yorickpeterse> build time?
PedramT has joined #ruby
<mustmodify> why didn't this work from bash? ruby < "puts 'hello'"
gambl0re has quit [Ping timeout: 256 seconds]
<eam> mustmodify: do you have a file named "puts 'hello'" ?
UtkarshRay has quit [Ping timeout: 260 seconds]
<Ox0dea> eam: ?
<_Tariq> Okay, I hope this isn't help vampire mode but...how do I know what servers are on ssl.fastly.net?
araujo has quit [Quit: Leaving]
<Ox0dea> eam: Disregard.
<mustmodify> eam: no, and obviously that's the problem, but I thought that was how to get stdin into some program.
<eam> ;)
<headius> yorickpeterse: config("rbx.platform.addrinfo" ...
Rutix has joined #ruby
Rutix has joined #ruby
<yorickpeterse> oh right
<Ox0dea> mustmodify: $ ruby <<< 'p 42'
<eam> mustmodify: try echo "puts 'hello'" | ruby
<_Tariq> Because I think my website blocker is blocking ssl.fastly.net because one of my blocked sites is on there
<_Tariq> so I need to know which blocked site it is
<headius> I assume those are building something in rbx to map the struct
<headius> we don't have a build time to do that
<eam> Ox0dea: wow, was not aware of <<< -- is that a bash-ism?
<Ox0dea> eam: There is only Bash.
<eam> mmmmmmmm
<yorickpeterse> headius: the config(...) bits are used to determine field lengths/offsets
<Papierkorb> _Tariq: why are you blocking sites? fastly is a CDN ..
<eam> debian based distros are gonna ruin your day
<yorickpeterse> They are set when rbx is compiled
UtkarshRay has joined #ruby
<headius> right, I figured
<_Tariq> Papierkorb: To avoid distractions
<Papierkorb> aha
jgpawletko has quit [Ping timeout: 272 seconds]
<eam> or freebsd, or :D
<headius> we could either use jnr-clang to generate that or just do them manually per platform like most other structs we ship
<Papierkorb> _Tariq: Don't block CDNs. Block the pages themselves.
<Papierkorb> if you really have to, that is
howdoi has quit [Quit: Connection closed for inactivity]
<mustmodify> Ox0dea: thanks
<Ox0dea> mustmodify: Happy to help.
<headius> or ffi-clang I guess
<_Tariq> That what I thought I did, but it seems my lovely producitivty blocker wants to block CDNs.
<_Tariq> *productivity
<headius> ffi-gen, whatever it's called
<_Tariq> since it blocks the computer hosting the pages
PedramT has quit [Remote host closed the connection]
<Papierkorb> _Tariq: so it blocks productivity ? Looks like it
<_Tariq> CNN uses fastly
<yorickpeterse> headius: IIRC Truffle also uses rubysl-socket, not sure what they did to make it work though
<_Tariq> so let me "unblock" CNN
<_Tariq> and see if that might fix the issue
<_Tariq> ...or even better
<_Tariq> find an actual good producitivty blocker
<yorickpeterse> _Tariq: this sounds offtopic
<_Tariq> Yes it is
<_Tariq> So I'll shut up
<_Tariq> thanks yorickpeterse
<Papierkorb> Or just don't go on reddit all the time _Tariq and throw that junk away.
PedramT has joined #ruby
araujo has joined #ruby
<headius> yorickpeterse: I don't think they do
<headius> at least, I don't see any of the sources in our repo
<chrisseaton> yorickpeterse: we generated config parameters on Mac and Ubuntu and hard coded them into our source - not sure if it will work long term but it's fine for now
snguyen has joined #ruby
jokke is now known as kuyatzu
mezcan has joined #ruby
araujo has quit [Max SendQ exceeded]
<yorickpeterse> Ah
<headius> chrisseaton: are you using rubysl-socket of some version?
kaleido has left #ruby ["Textual IRC Client: www.textualapp.com"]
<chrisseaton> we use rubysl-socket, but some of things it does via FFI we just implemented in Java (sometimes using jnr-posix so the effect is the same)
<headius> odd...didn't come up in a search
<chrisseaton> headius: yes, from a while ago
<headius> ok
<headius> well if you have the stubs we can probably just use the same thing then
huyderman has quit [Ping timeout: 260 seconds]
<headius> if that seems valuable over the JDK-based versions
araujo has joined #ruby
<chrisseaton> it was surprisingly painless to use - but I guess it's changed a lot in the most recent version so I can't say for sure
<chrisseaton> also it works for Webrick and Siantra, who knows about the wider Ruby ecosystem
<chrisseaton> I wouldn't jump on it right now unless you're just experimenting
PedramT has quit [Remote host closed the connection]
<headius> it sounds like rubysl-socket was in a pretty poor state before yorickpeterse's work
PedramT has joined #ruby
<headius> I'm just working on our JVM-based socket lib using his specs to improve what we already had
<chrisseaton> headius: using the specs makes a lot of sense as a first step, whether or not you do more later
jam_ has joined #ruby
<headius> right
mistermocha has joined #ruby
tnordloh has left #ruby [#ruby]
<chrisseaton> headius: here's the Java we needed to back ruby-socket - some of it was for other libraries so it's less really https://github.com/jruby/jruby/blob/master/truffle/src/main/java/org/jruby/truffle/nodes/rubinius/PosixNodes.java
<headius> dunno if any of these fixes affected users, but it's a net improvement
kuyatzu is now known as jokke
null_ref has joined #ruby
<headius> ahh, and these are all in jnr-posix anyway
<headius> that's good
<yorickpeterse> headius: it was fucking terrible
<headius> I feel like I need to rejigger jnr-enxio and jnr-unixsocket to build atop jnr-posix
<headius> they both have their own bindings
oz has quit [Ping timeout: 264 seconds]
<yorickpeterse> I honestly wonder how a lot of the code _ever_ came through Q&A, probably because there was none
<headius> Q&A wut
dstarh has quit [Ping timeout: 240 seconds]
<yorickpeterse> er QA
<headius> this is OSS man, if you aren't QA yourself nobody will be
<yorickpeterse> well I did clean up at least 5-6 years of crap
<headius> I'm not surprised
<headius> socket was a major pain for us to implement too...imagine doing it all without access to any file descriptors, socket(), bind(), or listen()
<yorickpeterse> Basically everything was there: widely different code styles? Check. Code implemented incorrectly? Check. Useless comments/TODOs from years back? Check. Code lumped together? Check. Inadequate tests? Check
<yorickpeterse> I recall one bit of code that was so far from correct I wonder what it was ever based on
<yorickpeterse> though I can't quite remember what code it was
CorySimmons has quit [Quit: Bye!]
justbleed has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
oz has joined #ruby
justbleed has quit [Client Quit]
trautwein has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jam_ has quit [Ping timeout: 240 seconds]
<headius> heh, nice
justbleed has joined #ruby
TomPeed has quit [Quit: Textual IRC Client: www.textualapp.com]
<headius> yorickpeterse: I assume all the custom rubysl gems will need to go through MPL conversion too
justbleed is now known as TomPeed
Mr_Pancake has joined #ruby
mistermocha has quit [Ping timeout: 260 seconds]
jokke is now known as kuyatzu
SCHAAP137 has quit [Remote host closed the connection]
<yorickpeterse> Not sure, since a lot of them bundle CRuby code they're basically using the same license
<yorickpeterse> not sure if I ever got around to making sure they actually had the correct licenses though
<headius> rubysl-socket, for example
TomPeed has quit [Client Quit]
<yorickpeterse> Probably what we'll do is keep the licenses as-is and only change them whenever the Gems are changed in a big way
<yorickpeterse> so e.g. I'll _probably_ move rubysl-socket to MPL 2.0 after OS X/BSD works
<yorickpeterse> since I practically rewrote the whole thing there's probably few (if any) people that would have to be contacted
minimalism has joined #ruby
smactive has joined #ruby
<headius> yorickpeterse: hard to determine that
<headius> indent someone else's line of code correctly, it's still their code but you won't see it in a blame anymore
jbrhbr has joined #ruby
Mr_Pancake has quit [Read error: Connection reset by peer]
<headius> when I've had to do this process before, I actually had to go back and look at a few folks' commits to see what was left
<headius> I'm guessing most of that history was blown away when the gems were pulled out of rbx repo too
<headius> or at least harder to get at
tomdp has left #ruby ["Leaving"]
tomdp has joined #ruby
mezcan has quit [Remote host closed the connection]
kuyatzu is now known as jokke
kies^ has joined #ruby
snguyen has quit [Read error: Connection reset by peer]
ta0 has quit [Ping timeout: 272 seconds]
<yorickpeterse> Probably, hence I won't take a look at it for a while
<headius> ok
nertzy has quit [Quit: This computer has gone to sleep]
<headius> bleh, I wish I could figure out why JDK always wants to use ::1 instead of 0:0:0:0:0:0:1
<headius> like half of the remaining failures would go away
smactive has quit [Ping timeout: 246 seconds]
konr has joined #ruby
user083 has quit [Read error: Connection reset by peer]
_Tariq has quit [Remote host closed the connection]
iateadonut has left #ruby [#ruby]
mustmodify has left #ruby [#ruby]
stan has quit [Quit: Leaving]
weemsledeux has joined #ruby
penne12 has joined #ruby
<tubbo> headius: it doesn't have to type so much
user083 has joined #ruby
<headius> tubbo: yeah, it's just annoying because I have all these "failures" that aren't :-)
praveen has joined #ruby
TomPeed has joined #ruby
axl_ has joined #ruby
harai54 has joined #ruby
symm- has joined #ruby
deuterium has quit [Ping timeout: 246 seconds]
PedramT has quit [Remote host closed the connection]
treehug88 has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
harai54 has quit [Ping timeout: 265 seconds]
tylersmith has quit [Ping timeout: 250 seconds]
wrilain has quit [Remote host closed the connection]
yqt has joined #ruby
mary5030 has quit [Remote host closed the connection]
duckpuppy has quit [Ping timeout: 276 seconds]
TomyWork has quit [Ping timeout: 246 seconds]
drys has quit [Quit: Konversation terminated!]
mistermocha has joined #ruby
<Papierkorb> >> RUBY_VERSION
<ruboto> Papierkorb # => "2.2.0" (https://eval.in/497221)
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tylersmith has joined #ruby
sigurding has quit [Quit: sigurding]
<Papierkorb> Blasphemy. The lonely-person operator does not work with #[]: "whatever"&.[1]
<Papierkorb> Gives a SyntaxError
jgpawletko has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
TomPeed has joined #ruby
praveen has quit [Remote host closed the connection]
terlar has quit [Ping timeout: 265 seconds]
hobodave has joined #ruby
praveen has joined #ruby
<ljarvis> nil&.[](1)
<Ox0dea> Papierkorb: In line with the fact that neither does the method invocation operator (`.`).
<FernandoBasso> Where can docs on ruby-doc.org be found about class instance variables?
duderonomy has quit [Ping timeout: 245 seconds]
<apeiros> Papierkorb: all methods can be used with &., just use the generic syntax instead of the sugar
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
hobodave has quit [Client Quit]
<apeiros> ok, I think I have to revoke that. not all methods can. those defined with define_method and friends with an invalid name can't.
tnordloh has joined #ruby
<Ox0dea> apeiros: Yet.
<adaedra> &.send
jackcom has quit [Ping timeout: 240 seconds]
<adaedra> apeiros: you may want to change the setting in ruboto about default language version? :)
<Ox0dea> Honestly.
jackcom has joined #ruby
hobodave has joined #ruby
jgpawletko_ has joined #ruby
jgpawletko has quit [Ping timeout: 265 seconds]
jgpawletko_ is now known as jgpawletko
amclain has joined #ruby
aegis3121 has quit [Ping timeout: 255 seconds]
karapetyan has quit [Remote host closed the connection]
<FernandoBasso> Even site:ruby-doc.org "class instance variables" doesn't find much.
<adaedra> class instances variables are just instance variables at class level?
<FernandoBasso> "(1) is a class instance variable, and (2) is an ordinary instance variable (which, not having been initialized, has a value of nil). (2) belongs to an instance of class Foo, and (1) belongs to the class object Foo, which is an instance of Class class. (phew!)"
<FernandoBasso> (from an old faq)
shredding has quit [Ping timeout: 272 seconds]
<FernandoBasso> "belongs to an instance of class Foo"? Strange!
<FernandoBasso> I would think that it only "belongs to the class object Foo".
<adaedra> You should give us even less context, we're beginning to see what you're talking about here.
karapetyan has joined #ruby
denym_ is now known as zz_denym_
<FernandoBasso> What do you mean "even less context"?
prestorium has quit [Read error: Connection reset by peer]
prestorium has joined #ruby
jj has joined #ruby
<adaedra> nvm that, you already replied to that.
<Mon_Ouie> What that FAQ says is correct
<adaedra> Look, (1) and (2) are reference to two different variables, to show the difference.
<FernandoBasso> Ah, indeed.
<FernandoBasso> But still, that was as much as I could get from ruby-doc.org.
Salve has joined #ruby
<jj> Hey everyone! I'm new to ruby and wondering where I can see all the gems that are installed in a specific project as dependencies? I'm looking for some kind of a pendant to the package.json file that you have in node.js-based projects
rodfersou|lunch is now known as rodfersou
<apeiros> adaedra: yes, I totally want to.
<Salve> jj: look at Gemfile
yxby has joined #ruby
<adaedra> jj: for gems, the `.gemspec` file, for non-gemified projects, `Gemfile`.
<FernandoBasso> And Gemfile.lock, since it lists dependencies.
yxby has left #ruby [#ruby]
<Salve> Well, Gemfile.lock isn't ment to be touched
<adaedra> Can be read tho.
<Salve> NEVER!
<Salve> :D
<FernandoBasso> Yep, that was my intent.
rubyonrailed has joined #ruby
yardenbar has joined #ruby
<adaedra> apeiros: also, have you deployed the new things yet?
psf has left #ruby [#ruby]
<jj> @adaedra @Salve I have a project built with jekyll but cannot find any .Gemfile or .gemspec that has been generated after I installed a gem - where is it supposed to lie in? In the root of the project?
<Mon_Ouie> It's mostly because the distinction between "instance variable" and "class instance variable" does not matter to Ruby, it's just convenient to refer to them that way. @foo always refers to the instance variable called '@foo' of whatever happens to be self when it gets evaluated. That thing could be a class or any other type of object.
<rubyonrailed> I'm having trouble with jruby. I installed it using `rbenv install jruby-1.7.16` And now i'm gettingt this error: `rbenv: jruby: command not found`
<rubyonrailed> Did I install jruby incorretly?
<adaedra> jj: `Gemfile` is a file, without .
bkxd has joined #ruby
<adaedra> ?rbenv
<ruboto> Missing command under rbenv? Did you try `rbenv rehash`?
<adaedra> rubyonrailed: ^
Hounddog has quit [Ping timeout: 260 seconds]
<Salve> jj: do a search find / -name gems
<jj> @adaedra No, unfortunately I can't find a Gemfile either
<rubyonrailed> rubuto: Just tried that, same error.
<jj> @Salve I'll try that thanks
<adaedra> jj: ah but you just installed a gem and want to see its dependency, not in a cloned/installed project?
<adaedra> rubyonrailed: did you change the current ruby to jruby in rvm?
<Salve> adaedra: I think he just wants to find the gems
<jj> @adaedra yes, the project is cloned from github and I just installed the gem locally after I downloaded all the source code
<apeiros> adaedra: nope. I was satisfying my addiction and played through xenoblade in mostly one piece. but that's done since ~11h ago :D
<adaedra> jj: which github?
karapetyan has quit [Remote host closed the connection]
<apeiros> now trying to reestablish a sane sleep pattern ^^
<adaedra> tssk tssk tssk.
<Salve> who needs sleep...pfff
<adaedra> right.
<FernandoBasso> Mon_Ouie: "of whatever happens to be self when it gets evaluated" That is what was missing for my understanding of this mater. Thanks.
<FernandoBasso> (I'll run some tests anyway, though, since I want to "see" it in action)
Xeago has joined #ruby
<FernandoBasso> Ah, even warnings just say "instance variable".
bkxd has quit [Ping timeout: 240 seconds]
<rubyonrailed> adaedra Whoops :0
<jj> @Salve nothing found in my project folder - just for checking: I'm not looking for the folders with the code for the gems, I'm just wondering if there is a file in my own local project where the dependencies are referenced
SOLDIERz has quit [Ping timeout: 260 seconds]
maletor has joined #ruby
<jj> @Salve I thought about something like a package.json that you have in node.js projects
<adaedra> jj: Yes, it should be a `[project-name].gemspec` file or `Gemfile`.
<Salve> jekyll is compiled gem so...
<adaedra> jj: show the project in question?
davedev24 has joined #ruby
<jj> @adaedra sorry, it's a private one
<adaedra> ¯\_(ツ)_/¯
<jj> @adaedra I know :-=
<jj> :-)
<adaedra> also, distant gems dependencies are listed on their page on rubygems.org
maletor has quit [Client Quit]
bb010g has quit [Quit: Connection closed for inactivity]
gambl0re has joined #ruby
TomyLobo has joined #ruby
<jj> @adaedra @Salve seems I still have to create a Gemfile manually if it isn't already present in my jekyll project as of now. Found this one question on a board: https://talk.jekyllrb.com/t/more-information-about-gemfiles/509
<sandstrom> Is there something similar to `arity` in the context of a called method? E.g. `def foo(a, b = nil); /* ... */ end;` how can I know within the function if it was called with `foo(1)` or `foo(1, nil)`
nanoz has quit [Read error: Connection reset by peer]
ch33s3c4k3 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<adaedra> I don't think there is.
graft has quit [Quit: Lost terminal]
chthon has quit [Ping timeout: 255 seconds]
<sandstrom> (except using *args + counting)
<sandstrom> (maybe that wouldn't even work)
<sandstrom> adaedra okay, thanks!
<Mon_Ouie> You could do something like NoArgument = Object.new and then def foo(a, b = NoArgument); …; end
<Mon_Ouie> I've never seen anyone really do that in Ruby though
jbrhbr has quit [Quit: Leaving.]
c0m0 has quit [Ping timeout: 276 seconds]
dlitvak has quit [Remote host closed the connection]
mistermocha has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
mistermocha has joined #ruby
dlitvak has joined #ruby
ta0 has joined #ruby
arthurix has quit [Read error: Connection reset by peer]
inukshuk_ has joined #ruby
pesh0 has joined #ruby
GinoManWorks_ has joined #ruby
cschneid_ has joined #ruby
<pesh0> hello guys, how can I have something like a factory method in ruby? for example I have a constructor with the initialize method, but I want to have a method from_foo which constructs the same object from the string foo?
duderonomy has joined #ruby
trautwein has joined #ruby
<pesh0> and more importantly, I want to have them both :)
djbkd has joined #ruby
n00bdev has joined #ruby
harai54 has joined #ruby
<penne12> yes
jackcom has left #ruby [#ruby]
GinoManWorks has quit [Ping timeout: 250 seconds]
<penne12> for class methods:
krz has quit [Remote host closed the connection]
<cschneid_> pesh0: I do that often. `def self.from_foo; preprocess; new(myAdjustedArguments); end`
toretore has joined #ruby
<penne12> and constructors:
<pesh0> cschneid_: so basically, I should call initialize from the class method right?
<cschneid_> pesh0: you should call `new`, just like any other place you'd create an object. `initialize` isn't something you call directly very often
prestorium has quit [Read error: Connection reset by peer]
<pesh0> yeah lol, my mistake; new would call it anyway so that's what I meant
<pesh0> thanks guys you are gold <3
<penne12> So like (Employee.new("Chuck"))
hobodave has quit [Quit: Computer has gone to sleep.]
<penne12> calls initalize with args: "Chuck"
prestorium has joined #ruby
haraigo has joined #ruby
<pesh0> yup I got it :)
harai54 has quit [Ping timeout: 250 seconds]
Kruppe has quit [Quit: ZNC - http://znc.in]
<penne12> Awesome, and you can define the class method "def self.potato"
elaptics is now known as elaptics`away
Kruppe has joined #ruby
Alayde has joined #ruby
Alayde has left #ruby [#ruby]
Xeago has quit [Remote host closed the connection]
baweaver has joined #ruby
Xeago has joined #ruby
pietr0 has joined #ruby
baweaver has quit [Remote host closed the connection]
dlitvak has quit [Remote host closed the connection]
dlitvak has joined #ruby
pdoherty has quit [Ping timeout: 264 seconds]
lacuna has joined #ruby
tjad has quit [Remote host closed the connection]
antgel has quit [Ping timeout: 250 seconds]
Xeago has quit [Remote host closed the connection]
ch33s3c4k3 has joined #ruby
<cschneid_> Do threads have any concept of "parent thread" that spawned them?
Xeago has joined #ruby
PedramT has joined #ruby
mary5030 has joined #ruby
steffkes has joined #ruby
steffkes has joined #ruby
gagrio has joined #ruby
pdoherty has joined #ruby
<apeiros> cschneid_: no
iamvery has quit [Ping timeout: 250 seconds]
<cschneid_> that's unfortunate :) Confirms my skim of the docs though.
MattV has quit [Quit: Leaving.]
<apeiros> threads aren't a hierarchy
<apeiros> if you want a hierarchy, you can easily build one
<apeiros> or do you need this for debugging?
mark2 has quit [Remote host closed the connection]
jbrhbr has joined #ruby
firstdayonthejob has joined #ruby
symm- has quit [Quit: Leaving...]
<penne12> out of curiosity, what is your interest level in a ruby framework to create minecraft one command block creations
m3_del has joined #ruby
<cschneid_> apeiros: I work for Scout, and we have a rails monitoring tool - but it loses track across threads. For instance, we fire off a handful of db queries in sub threads in our own app, and it's difficult to track those automatically
hobodave has joined #ruby
Gmi has joined #ruby
poguez_ has joined #ruby
jbrhbr has quit [Client Quit]
<cschneid_> apeiros: getting down & dirty w/ the innards of ruby & rails to automate the tracing, haven't come up w/ a clear way to do it across threads
PedramT has quit [Ping timeout: 260 seconds]
iamvery has joined #ruby
Zamerick has joined #ruby
mary5030 has quit [Remote host closed the connection]
finisherr has joined #ruby
jj has quit [Quit: Leaving]
guacamole has joined #ruby
render___ has joined #ruby
Xeago has quit [Remote host closed the connection]
XangadiX has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
uri_ has joined #ruby
<tnordloh> if all your threads are in an array (or some other object) then you can iterate through them in a separate 'monitor' thread periodically.
<apeiros> cschneid_: override Thread.new and .start
<apeiros> track their invocation
renderf__ has quit [Ping timeout: 240 seconds]
<apeiros> it's what we did when we had runaway threads which didn't check connections back into the pool
duckpuppy has joined #ruby
paultreny has quit [Changing host]
paultreny has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
jpfuentes2 has joined #ruby
camillo has joined #ruby
sol_ has quit [Ping timeout: 240 seconds]
<tnordloh> When I'm troubleshooting a thread, I assign values within the thread, like Thread.current[:status] = "some status here", then use my monitor thread to loop through my thread pool, and examine that status, if that helps.
camillo is now known as sol_
Xeago has joined #ruby
jbrhbr has joined #ruby
atumzin has joined #ruby
<jbrhbr> happy new year, rubyfolk
Lucky__ has joined #ruby
griffindy has quit [Read error: Connection reset by peer]
PedramT has joined #ruby
<cschneid_> apeiros: yeah, was hoping not to get too fancy w/ Thread monkey patching, but that's where I've gotta end up
mary5030 has joined #ruby
braincrash has quit [Ping timeout: 255 seconds]
braincra- has joined #ruby
jam_ has joined #ruby
RegulationD has quit [Remote host closed the connection]
Bloomer has quit [Remote host closed the connection]
Bloomer has joined #ruby
Bloomer has quit [Remote host closed the connection]
mistermo_ has joined #ruby
Xeago has quit [Remote host closed the connection]
Eiam has joined #ruby
brandon has joined #ruby
brandon has quit [Client Quit]
shadoi has joined #ruby
ch33s3c4k3 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
agent_white has joined #ruby
jam_ has quit [Ping timeout: 246 seconds]
Xeago has joined #ruby
mistermo_ has quit [Ping timeout: 255 seconds]
rdark has quit [Ping timeout: 276 seconds]
arup_r has quit []
finisherr has quit [Ping timeout: 264 seconds]
finisherr has joined #ruby
Xeago has quit [Remote host closed the connection]
mdw has joined #ruby
nertzy has joined #ruby
houhoulis has joined #ruby
Xeago has joined #ruby
stamina has joined #ruby
futilegames has joined #ruby
duckpuppy has quit [Ping timeout: 256 seconds]
B1n4r10 has joined #ruby
ch33s3c4k3 has joined #ruby
futilegames has quit [Client Quit]
houhoulis has quit [Ping timeout: 250 seconds]
[ddmp] has joined #ruby
mary5030 has quit [Remote host closed the connection]
jackjackdripper has joined #ruby
XangadiX has quit [Ping timeout: 255 seconds]
wolffles has joined #ruby
<wolffles> hey everyone
<apeiros> hi wolffles
jackjackdripper has quit [Client Quit]
jackjackdripper has joined #ruby
ta0 has quit [Ping timeout: 264 seconds]
<wolffles> so ive just finished a beginners guide to ruby book, and im looking for some intermediate practice. what can i create that would be good practice for me?
<penne12> What do you want to do?
<adaedra> go nuts
spider-mario has joined #ruby
<wolffles> im not sure where to go from where i am
<wolffles> what can i do with a basic knowlegde of ruby?
karapetyan has joined #ruby
<adaedra> everything
<apeiros> not much. but that's the wrong question anyway, since you always can (and should) extend your basic knowledge with what you're doing.
karapetyan has quit [Remote host closed the connection]
UtkarshRay has quit [Quit: Leaving]
<apeiros> i.e., just start, even if you can't do it yet. learn it while you're doing it.
<wolffles> can i make little apps for my mac?
n00bdev has quit []
<wolffles> idk i need a teacher D:
mdw has quit [Quit: Sleeping Zzzzz]
<apeiros> you might be better off using rubymotion if you mean GUI apps (not sure though whether it's iOS only)
dfockler has joined #ruby
n00bdev has joined #ruby
<havenwood> wolffles: The starter edition of RubyMotion doesn't support OS X so it'd be $199 a year.
yqt has quit [Ping timeout: 246 seconds]
ta has joined #ruby
vdamewood has joined #ruby
praveen has quit [Remote host closed the connection]
nullwarp has joined #ruby
<zacts> what is RubyMotion?
<wolffles> id be interested in GUI apps thanks for the idea
* zacts searches
<zacts> oh cool
bryancp has quit [Quit: Connection closed for inactivity]
jbrhbr has quit [Quit: Leaving.]
djbkd has quit [Remote host closed the connection]
<zacts> so is RubyMotion the only serious Ruby for Android?
<adaedra> GUI is not really one of Ruby's strengths.
platzhirsch has left #ruby [#ruby]
<wolffles> oh
<wolffles> yeah i cant find much info on it
<zacts> (I realize RubyMotion is cross platform too)
<zacts> but I'm curious as to the options for Ruby on android
<penne12> RubyMotion
<penne12> RubyMotion
<penne12> and RubyMotion
lkba has quit [Ping timeout: 245 seconds]
djbkd has joined #ruby
<zacts> cool
<adaedra> Personally, if I want to GUI, I look at native libs/langs or Qt
<penne12> and maybe Haml + Rails + Ionic/Electron, but that's not really ruby
<wolffles> what do a majority of ruby users build anyways?
djbkd has quit [Remote host closed the connection]
<penne12> rails
<wolffles> ah
[ddmp] has quit [Quit: WeeChat 1.3]
<adaedra> well, not only, we have other web frameworks.
<penne12> and about one of them (me) makes Minecraft one command creations
jbrhbr has joined #ruby
<wolffles> interesting
<adaedra> not enough apparently, as some people decided to make one themselves.
<zacts> how about http://ruboto.org/?
<havenwood> zacts: MobiRuby (mruby) was a thing but I'm not sure how far it's come on Android?
<havenwood> zacts: And yeah, Ruboto.
Prominent has joined #ruby
blackmesa has joined #ruby
<havenwood> JRuby jars!
jackjackdripper has quit [Quit: Leaving.]
<zacts> cool thanks havenwood et al...
jackjackdripper has joined #ruby
tulak_ has quit [Remote host closed the connection]
domgetter has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<havenwood> wolffles: You know you can just make a .app by hand too. :O Here's a silly example of apache-callback-mac with a Sinatra app: https://github.com/havenwood/sinatra-dot-app
nullwarp has quit [Read error: Connection reset by peer]
bluOxigen has quit [Ping timeout: 240 seconds]
[ddmp] has joined #ruby
<havenwood> wolffles: So it launches a sinatra app then serves it up to your web browser. >.>
[ddmp] has quit [Client Quit]
mary5030 has joined #ruby
<havenwood> wolffles: A RubyMotion license really might be worth considering if you want to make nice native OS X apps in Ruby!
[ddmp] has joined #ruby
<wolffles> i should really just try to get into this school and stop procrastinating
<wolffles> i feel like without guidance im slowing down in my rate of progress
praveen has joined #ruby
davedev2_ has joined #ruby
Macaveli has joined #ruby
davedev24 has quit [Ping timeout: 240 seconds]
DoubleMalt has quit [Remote host closed the connection]
hahuang61 has joined #ruby
<tubbo> no it's not at all havenwood :)
<tubbo> because rubymotion is basically free if you just want to fuck around
bkxd has joined #ruby
<tubbo> which i am super thrilled about
<tubbo> because i'm not paying $300 just to find out that it doesn't work for me
cajone has quit [Remote host closed the connection]
<Papierkorb> Rubymotion was ultra slow on my Samsung S2 :|
<Papierkorb> So, if you want to keep low-end phones in mind ..
jgpawletko has quit [Ping timeout: 260 seconds]
craysiii has quit [Ping timeout: 240 seconds]
praveen has quit [Ping timeout: 264 seconds]
nertzy has quit [Quit: This computer has gone to sleep]
craysiii has joined #ruby
mdw has joined #ruby
sandstrom has joined #ruby
kadoppe has quit [Ping timeout: 246 seconds]
n00bdev has quit []
bkxd has quit [Ping timeout: 255 seconds]
nullwarp has joined #ruby
m3_del has quit [Quit: Leaving...]
cajone has joined #ruby
kadoppe has joined #ruby
mdw has quit [Read error: Connection reset by peer]
[ddmp] has quit [Quit: WeeChat 1.3]
ta_ has joined #ruby
mdw has joined #ruby
baroquebobcat has quit [Read error: Connection reset by peer]
ch33s3c4k3 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
ta has quit [Ping timeout: 255 seconds]
araujo_ has joined #ruby
aegis3121 has joined #ruby
arup_r has joined #ruby
karapetyan has joined #ruby
Bloodshot has joined #ruby
araujo has quit [Ping timeout: 272 seconds]
juddey has joined #ruby
zeroDivisible has joined #ruby
ElFerna has joined #ruby
devbug has joined #ruby
guacamol_ has joined #ruby
sigurding has joined #ruby
dmr8 has joined #ruby
guacamol_ has quit [Client Quit]
guacamol_ has joined #ruby
guacamole has quit [Ping timeout: 246 seconds]
stamina has quit [Ping timeout: 246 seconds]
lacuna has quit [Read error: Connection reset by peer]
[ddmp] has joined #ruby
lacuna has joined #ruby
rfizzle has joined #ruby
guacamol_ has quit [Client Quit]
ta_ has quit [Remote host closed the connection]
guacamole has joined #ruby
mostlybadfly has joined #ruby
rfizzle has left #ruby [#ruby]
jgpawletko has joined #ruby
[ddmp] has quit [Client Quit]
FooMunki has quit [Ping timeout: 255 seconds]
zapata has quit [Quit: WeeChat 1.3]
[ddmp] has joined #ruby
[ddmp] has quit [Client Quit]
FooMunki has joined #ruby
Zackio has quit [Quit: C-x C-c]
Zackio has joined #ruby
[ddmp] has joined #ruby
kith has joined #ruby
Bloodshot has left #ruby [#ruby]
ChameleonSix4 has joined #ruby
ur5us has joined #ruby
postmodern has joined #ruby
ChameleonSix4 has left #ruby [#ruby]
defendguin has joined #ruby
<shevy> zacts the ruby-gnome bindings are ok-ish
[dmp] has quit [Quit: WeeChat 1.3]
minimalism has quit [Quit: minimalism]
[ddmp] is now known as [dmp]
Dimik has joined #ruby
ChameleonSix has joined #ruby
karapetyan has quit [Remote host closed the connection]
ChameleonSix has left #ruby [#ruby]
RegulationD has joined #ruby
einarj has joined #ruby
ur5us has quit [Remote host closed the connection]
<shevy> I had hopes for ruby-qt but it kinda went through strangeness-ness
konr has quit [Quit: Connection closed for inactivity]
CorySimmons has joined #ruby
einarj has quit [Read error: Connection reset by peer]
<Papierkorb> shevy: ?
einarj has joined #ruby
sigurding has quit [Quit: sigurding]
<shevy> Papierkorb it did not work for a long time
karapetyan has joined #ruby
<Papierkorb> it did work recently, but it's stuck at Qt4.8, so ..
jdawgaz has joined #ruby
devbug has quit [Read error: Connection reset by peer]
devbug has joined #ruby
<shevy> rdale used to maintain the project, then he vanished
karapetyan has quit [Remote host closed the connection]
cmolenda_ has quit [Remote host closed the connection]
duckpuppy has joined #ruby
aegis3121 has quit [Ping timeout: 246 seconds]
antgel has joined #ruby
j_mcnally has quit [Remote host closed the connection]
arup_r has quit []
PedramT has quit [Remote host closed the connection]
PedramT has joined #ruby
jimeh_ has quit [Ping timeout: 240 seconds]
lxsameer has quit [Quit: Leaving]
sgambino has quit [Ping timeout: 255 seconds]
jimeh has joined #ruby
darkf has quit [Quit: Leaving]
Xeago has quit [Remote host closed the connection]
ElFerna has quit [Ping timeout: 264 seconds]
Xeago has joined #ruby
dionysus69 has quit [Read error: Connection reset by peer]
Jardayn has joined #ruby
pawnbox has quit [Remote host closed the connection]
dionysus69 has joined #ruby
karapetyan has joined #ruby
ElFerna has joined #ruby
PedramT has quit [Remote host closed the connection]
scottschecter has joined #ruby
PedramT has joined #ruby
karapetyan has quit [Remote host closed the connection]
snguyen has joined #ruby
einarj has quit [Remote host closed the connection]
PedramT has quit [Client Quit]
Icey has quit [Remote host closed the connection]
bb010g has joined #ruby
tos9 has joined #ruby
Icey has joined #ruby
mary5030 has quit [Remote host closed the connection]
CorySimmons has quit [Quit: Bye!]
mary5030 has joined #ruby
karapetyan has joined #ruby
sgambino has joined #ruby
mondongo has joined #ruby
mondongo has left #ruby [#ruby]
<tos9> Hey, not a ruby programmer unfortunately, but I'm trying to install a bundle and noticing a lot of broken Makefiles for the gems it's trying to install (my bundle contains pretty much just chef)
yfeldblum has joined #ruby
<tos9> Is the install target for those Makefiles automatically generated by bundler or are those part of the projects -- I guess I can check that
<tos9> But it's running a bunch of random shell commands without actually properly quoting the arguments.
Linell has joined #ruby
<tos9> OK it looks like ruby is generating those Makefiles.
dlitvak has quit [Remote host closed the connection]
pawnbox has joined #ruby
mary5030 has quit [Ping timeout: 250 seconds]
guacamol_ has joined #ruby
choke has joined #ruby
guacamol_ has quit [Client Quit]
karapetyan has quit [Remote host closed the connection]
guacamol_ has joined #ruby
lacuna has quit [Read error: Connection reset by peer]
prestorium has quit [Quit: Leaving]
lacuna has joined #ruby
guacamole has quit [Ping timeout: 245 seconds]
jhass is now known as jazz
jazz is now known as Guest92640
FernandoBasso has quit [Quit: Leaving]
Guest92640 is now known as jhass
<tos9> OK :/ but it's the project's extconf.rb's that look like they handle that, and e.g. https://github.com/chef/libyajl2-gem/blob/master/ext/libyajl2/extconf.rb is wrong.
lacuna has quit [Read error: Connection reset by peer]
Jammy_Work has joined #ruby
lacuna has joined #ruby
karapetyan has joined #ruby
craysiii has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 272 seconds]
dlitvak has joined #ruby
guacamol_ has quit [Ping timeout: 260 seconds]
Darmani has joined #ruby
<Darmani> Hi everyone^^
<blub> hi darmani
einarj has joined #ruby
Hammy_Work has quit [Ping timeout: 250 seconds]
jam_ has joined #ruby
ruid has joined #ruby
ruid has joined #ruby
nertzy has joined #ruby
penne12 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Prominent has quit [Quit: Leaving]
MartinR90 has joined #ruby
ta has joined #ruby
mistermo_ has joined #ruby
jam_ has quit [Ping timeout: 256 seconds]
mdw has quit [Quit: Sleeping Zzzzz]
dtordable has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
guacamole has joined #ruby
braincra- has quit [Ping timeout: 240 seconds]
andikr has quit [Remote host closed the connection]
braincrash has joined #ruby
<Darmani> agent_white: This seems so fucking pointless.
<Darmani> I'm still doing these Koans
dstarh has joined #ruby
<Darmani> honestly.
tulak has joined #ruby
rodfersou has quit [Quit: leaving]
<shevy> tos9 what gem breaks? libyajl2 ?
penne12 has joined #ruby
DonOtreply has joined #ruby
<MartinR90> I have some general questions, first of all why don't we pre compile ruby (or in general, interpreted languages) to gain performance ?
mistermo_ has quit [Ping timeout: 240 seconds]
<Linell> https://gist.github.com/Linell/42967b77b6d70150d5a1 <- I'm trying to write something that allows me to scope methods to only certain users
<tos9> shevy: Yeah.
<canton7> MartinR90, it's not that easy: a lot of stuff isn't known until runtime
<Mon_Ouie> pre-compiling would only increase the performance of loading the code, which isn't that big in the first place
<tos9> shevy: As does dep-selector-libgecode and possibly some others
Dimik has quit [Ping timeout: 272 seconds]
<MartinR90> canton7, ok can you name these things "unknown" ?
<canton7> data types, for instance?
snguyen has quit [Read error: Connection reset by peer]
guacamole has quit [Ping timeout: 276 seconds]
<tos9> MartinR90: (Don't assume pre-compiled code is faster :)
ruid has quit [Ping timeout: 260 seconds]
<canton7> I know this stuff gets very hard very fast
<canton7> ... you might be able to precompile to bytecode, but you can't go to native
snguyen has joined #ruby
Zamerick has quit [Ping timeout: 276 seconds]
FooMunki has quit [Quit: FooMunki]
<MartinR90> tos9, when somebody open website that is written in ruby it first have to interpret and complie the script same for every next person
mary5030 has joined #ruby
<MartinR90> so it is slower than if it was pre compiled isn't it ?
dlitvak has quit [Remote host closed the connection]
<Mon_Ouie> Hm? No, you don't usually reload your whole application for every request, do you?
<MartinR90> Mon_Ouie, what if it it CGI ?
<tos9> MartinR90: No, not necessarily (I'm a guest here, so consider this to be more broadly about ruby, but Topaz makes it pretty directly applicable) -- it's a "fallacy" that pre-compilation (of some source to native code now, not bytecode) is the Only Way to write fast code.
duckpuppy has quit [Ping timeout: 246 seconds]
<Mon_Ouie> Then sure, but I don't think that's the most common way people use Ruby to make websites
<tos9> MartinR90: A runtime JIT (like rubinious in ruby, or Topaz in ruby, or PyPy in Python) are very powerful things that can achieve whatever mystical "fast" you're dreaming of in the general case. They do this by using the *additional* information that's available at runtime to generate better code.
kith has quit [Quit: kith]
<shevy> Mon_Ouie I still use cgi!
<shevy> I feel so 1990
<blub> hi shevy
bkxd has joined #ruby
<ddv> damn millenials
<shevy> hmm ok 1997...
<shevy> yo blub
einarj has quit [Remote host closed the connection]
<shevy> slept well? full of energy to write more code?
<MartinR90> yes but in case of CGI when user open www it the CGI script is first interpreted and than it prints out result - same story for all requests is it correct ?
jbrhbr has quit [Quit: Leaving.]
<blub> not today..
baweaver has joined #ruby
<MartinR90> blub, what you mean ?
<shevy> MartinR90 yeah, typically you could write a standalone class that handles the output like that, then it can be used on the commandline, on classical GUIs or in app/cgi environments all at the same time
<Darmani> shevy: BRUH
<Darmani> I'm not doing those Koans anymore
<blub> martinr90: that im lazy @_@
<Darmani> They are pointless.
karapetyan has quit [Remote host closed the connection]
lemur has joined #ruby
<shevy> Darmani haha
dlitvak has joined #ruby
<shevy> Darmani did I not tell you to write something that is useful to you :)
<MartinR90> nowadays framweroks starts their application which is already compiled right ?
<Darmani> shevy: yeah you did.
<Darmani> I want to make a music player.
<Darmani> But I probably can't.
choke has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
<MartinR90> so when user open website it just prints out result
ElFerna has quit [Ping timeout: 256 seconds]
pawnbox has joined #ruby
blackmesa has quit [Ping timeout: 265 seconds]
bkxd has quit [Ping timeout: 276 seconds]
baweaver has quit [Ping timeout: 255 seconds]
n_blownapart has joined #ruby
ur5us has joined #ruby
dlitvak has quit [Ping timeout: 264 seconds]
ElFerna has joined #ruby
djbkd has joined #ruby
ur5us_ has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
<shevy> Darmani no, you must start from a smaller project then let it grow
<Darmani> shevy: like what
<shevy> Darmani that depends on what you need to solve :)
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> I have no idea why you use a computer
<Darmani> to write code lol
pawnbox has quit [Ping timeout: 255 seconds]
<Ox0dea> Darmani: What's your favorite website?
blackmesa has joined #ruby
<Darmani> Ox0dea: Hey buddy ^^
<Darmani> umm.
frem has joined #ruby
<shevy> Darmani ok but WHY
<Darmani> To waste time?
<Darmani> Perhaps Reddit.
<shevy> I mean, the code has to do something
<shevy> you can watch youtube videos if you wanna waste time
<Darmani> shevy: I could lol
<Ox0dea> > mfw shevy has 3 youtube tabs open
<Darmani> xD
<adaedra> Only 3?
* adaedra closes some tabs
<shevy> hey that is almost correct
<shevy> 2 right now
<Radar> Good morning.
<adaedra> hi Radar
<blub> hi radar
<Ox0dea> hi radaR
<Darmani> Ox0dea: Why did you ask
<Darmani> anyway
<Darmani> Hi Radar ^^
<adaedra> Darmani: because that may give you ideas.
<Ox0dea> Darmani: Because scratching an itch will make the process more enjoyable.
<shevy> peope
<Ox0dea> This is an okay song.
<shevy> erm... people
<shevy> don't scratch... go and take a bath instead!
<Ox0dea> Hey, uh, how to prevent the heat death of the Universe?
PsionTheory has joined #ruby
<Ox0dea> It's urgent.
<shevy> are you sure that this will happen
<Darmani> Ox0dea: Lol
nertzy has quit [Quit: This computer has gone to sleep]
cmolenda has joined #ruby
tvw has quit [Read error: Connection reset by peer]
praveen has joined #ruby
<Darmani> Ox0dea: So what's a good song
aegis3121 has joined #ruby
<Darmani> to help me concentrate? =P
Xeago has quit [Remote host closed the connection]
<shevy> ...
<Ox0dea> Darmani: The sound of impending doom.
<Ox0dea> (Sorry.)
<Darmani> Ox0dea: ,,I,,
<Darmani> damn it that middle finger looks fucked up. Lol
<Ox0dea> Did you upgrade from l to I?
<Darmani> LOL
finisherr has quit [Quit: finisherr]
<Darmani> Shutup
<Ox0dea> $ make me
<adaedra> Darmani: calm down.
* lemur perks up
lemur is now known as baweaver
* baweaver perks up
<Darmani> Why does everyone assume I'm worked up or something
<Ox0dea> Darmani: You're different.
<shevy> baweaver you are such a sneaky little shapechanging beaver
<Ox0dea> You "play rough" or whatever.
<baweaver> Wood you blame me?
<shevy> lol
<Darmani> Ox0dea: Do I now.
<Darmani> I had no idea.
<al2o3-cr> not again
braincra- has joined #ruby
<Ox0dea> Always.
<baweaver> and that's enough of that
finisherr has joined #ruby
<Darmani> Lulz
braincrash has quit [Ping timeout: 272 seconds]
cmolenda has quit [Ping timeout: 250 seconds]
roshanavand has joined #ruby
<Darmani> Is there a good resource on learning how to chain methods together?
<Darmani> I suck at it.
<baweaver> as in Enumerable?
praveen has quit [Ping timeout: 245 seconds]
<Darmani> uhhh...
<Darmani> That's a new word for me.
<Darmani> I'm still learning what it means.
MartinR90 has left #ruby ["Leaving"]
<adaedra> Give an example, maybe?
<baweaver> it's basically what steps do you need to get from A to B
<aegis3121> Enumerable = Ruby's general purpose Collection module
<Darmani> Hmm. Okay. Hold on.
<baweaver> Like I want the sum of the square of the numbers one to five
n_blownapart has quit []
<baweaver> that's two steps and a data source you want to transform
<Darmani> Like that.
<Darmani> I would never think do to something like that.
guacamole has joined #ruby
penne12 has quit [Ping timeout: 240 seconds]
<Darmani> Or I guess it seems hard.
<Darmani> idk.
<adaedra> It comes with practice.
<aegis3121> yea
<Ox0dea> It comes with exposure.
<Darmani> Great.
mdw has joined #ruby
<Darmani> That's very helpful
<aegis3121> Just make sure you know what the method returns and think "Does the next thing I'm going to do happen on the same type of object?"
<adaedra> You have to think of the different transformative steps you want on your data.
<Darmani> You are all so wonderful.
<aegis3121> If yes -> probably good to chain
<aegis3121> if no -> maybe/maybe not
<aegis3121> As just a very very very general rule/way of thinking
<Mon_Ouie> n(n+1)(2n+1)/6 though
Xeago has joined #ruby
<baweaver> though if you're chaining 3+ methods you probably need to break things up a bit.
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> never!.shall!.things?.be!.broken!.down!
<Darmani> You know what would be useful?
<shevy> Darmani yes - if you'd start to talk less and write more code :)
<Darmani> Like an interpreter that shows you step by step what's happening in a method like that.
roshanavand has quit [Ping timeout: 255 seconds]
<Radar> +1 shevy
<Darmani> I would like that.
<Darmani> shevy: Fine shevy.
<Darmani> fine.
mdw has quit [Read error: Connection reset by peer]
<adaedra> Darmani: you just split up and read.
<Darmani> I'll be back when I'm at my wits end and I have to yell at someone.
<Ox0dea> *wit's
mdw has joined #ruby
<Darmani> @#$%$@#$%
<Darmani> ^ that's for you Ox0dea
dmcc_ has joined #ruby
<adaedra> Don't come here to yell, come here to discuss.
<Ox0dea> Darmani: That looks like my code.
<adaedra> And be nice, please.
<Darmani> Lol
snguyen has quit [Read error: Connection reset by peer]
<Ox0dea> Darmani: Did you say you're familiar with FizzBuzz?
<Radar> [08:07:48] <Ox0dea>Darmani: That looks like my code. <-- ROFL
<Ox0dea> ^_^
<shevy> ?adaedra
<ruboto> don't be mean to adaedra
<Darmani> Ox0dea yeah
<Darmani> so?
<Ox0dea> >> _=$$/$$;__=_-_;@_=_+_;$_=@_+_;$__=@_+$_;$-_=$__*$_;@__=''<<$-_*($__+$_)+@_;$___=''<<$-_*$__-$__<<$-_*($__+@_)<<@__<<@__;@___=''<<$-_*$__-$_*$_<<$-_*($__+$_)-$_<<@__<<@__;(___=->____{$.+=_;____<<($.%$-_==__ ?$___+@___:$.%$_==__ ?$___:$.%$__==__ ?@___:$.);$.<($__*@_)**@_?___[____]:____})[[]]
<ruboto> Ox0dea # => [1, 2, "Fizz", 4, "Buzz", "Fizz", 7, 8, "Fizz", "Buzz", 11, "Fizz", 13, 14, "FizzBuzz", 16, 17, "Fiz ...check link for more (https://eval.in/497269)
<Ox0dea> I wasn't kidding.
<shevy> oh my god
<Darmani> jesus christ what the fuck is that
ziyadb has joined #ruby
<adaedra> Ruby.
<shevy> that is a language called brainfuck
<Darmani> it's fucking me right now
<Darmani> Lol
mary5030 has quit [Remote host closed the connection]
<Ox0dea> Do you love it?
<Darmani> Not in the slightest.
<Ox0dea> Oh.
* adaedra pats Ox0dea
<Darmani> I can only imagine what sick imaginative thoughts propelled you to create such a monstrosity.
* baweaver pats Ox0dea
<adaedra> Darmani: don't ask, but there's worse.
<baweaver> let's tone down the reactions a bit though.
<Darmani> adaedra: Of that, I have no doubt.
<shevy> Darmani naaaah he does it since a long time, there are even worse atrocities than the above
tos9 has left #ruby [#ruby]
<Ox0dea> Lots of people mispelling "better" today.
<adaedra> :')
<Darmani> I'm beter than most people
<Ox0dea> And one of us misspelling "misspelling".
puria has quit [Read error: Connection reset by peer]
<Ox0dea> Darmani: There must be *some* itch?
<Darmani> Okay I'll be back.
ElFerna has quit [Ping timeout: 272 seconds]
ChameleonSix4 has joined #ruby
<Darmani> Ox0dea: goddamnit how am I supposed to write when you call my name every five seconds lol
<shevy> ok Damani
ChameleonSix4 has quit [Client Quit]
<shevy> now you don't get highlighted
<Darmani> Damani LMAO
<Darmani> never heard that one before
ChameleonSix_ has joined #ruby
dionysus69 has quit [Ping timeout: 246 seconds]
ChameleonSix_ has quit [Client Quit]
<Darmani> Is that the only gif you know?
<Ox0dea> Yes.
<Darmani> lmao
<adaedra> Let's not start #gifexchange or #lmao sirs.
ur5us_ has quit []
ChameleonSix has joined #ruby
<al2o3-cr> you speak to endoh lol
ChameleonSix has quit [Client Quit]
<Ox0dea> I really like Endoh-san.
<Ox0dea> He's very sensible and doesn't afraid to have fun.
ElFerna has joined #ruby
Salve has quit [Read error: Connection reset by peer]
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
Salve has joined #ruby
<al2o3-cr> the masses
blackgoat has joined #ruby
pawnbox has joined #ruby
ch33s3c4k3 has joined #ruby
nertzy has joined #ruby
dmcc_ is now known as dannymcc
michaeldeol has joined #ruby
dannymcc is now known as dmcc_
karapetyan has quit [Remote host closed the connection]
michaeldeol has quit [Client Quit]
hohenfall has left #ruby ["WeeChat 1.3"]
domgetter has joined #ruby
<shevy> probably because he knows the english language
pesh0 has quit [Quit: Page closed]
pawnbox has quit [Ping timeout: 260 seconds]
DonOtreply has quit [Quit: DonOtreply]
ch33s3c4k3 has quit [Client Quit]
wolffles has quit [Quit: wolffles]
Gmi has quit [Read error: Connection reset by peer]
<al2o3-cr> shevy: you're like a spark :p
karapetyan has joined #ruby
baweaver has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 250 seconds]
<Ox0dea> I'm having trouble deciding what exactly that comment was meant to insinuate.
<Ox0dea> shevy: Are you accusing me of being xenophobic?
<domgetter> I'm Xenaphobic. She's scary
puria has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<adaedra> G'night.
<Ox0dea> A vida Seine.
<al2o3-cr> pet
<al2o3-cr> not seen that for years
ElFerna has quit [Ping timeout: 276 seconds]
<shevy> Ox0dea I have no idea what you are being!
Salve has quit [Read error: No route to host]
Salve_ has joined #ruby
baweaver has joined #ruby
dmr8 has quit [Quit: Leaving]
baweaver has quit [Remote host closed the connection]
<Ox0dea> shevy: Nor is that of any particular pertinence. Could you clarify what you meant to say?
baweaver has joined #ruby
penne12 has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shellie_ has quit [Remote host closed the connection]
<shevy> everything that had to be said was already said
dlitvak has joined #ruby
magaudet has joined #ruby
CorySimmons has joined #ruby
ta has quit [Read error: Connection reset by peer]
<domgetter> There's nothing new under the sun
<domgetter> Except maybe a proof that P = NP
ta has joined #ruby
ItSANgo has joined #ruby
ta has quit [Read error: Connection reset by peer]
Mon_Ouie has quit [Ping timeout: 245 seconds]
codecop has quit [Remote host closed the connection]
ta has joined #ruby
<Ox0dea> shevy: You're suggesting, then, that I like Endoh-san because he knows English?
<Ox0dea> You know English, more or less, so that particular invariant doesn't hold.
DonOtreply has joined #ruby
lemur has joined #ruby
mooe has joined #ruby
<domgetter> Yea, but shevy *has* to know English
<al2o3-cr> calm down boys
<al2o3-cr> otherwise there will be trouble
karapetyan has quit [Remote host closed the connection]
<al2o3-cr> set 'em bartender to brandys
steffkes has quit [Ping timeout: 255 seconds]
kith has joined #ruby
stannard has quit [Remote host closed the connection]
<domgetter> Prepare for trouble! Make it double!
baweaver has quit [Ping timeout: 260 seconds]
stannard has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
<al2o3-cr> domgetter: js
scripore has quit [Quit: This computer has gone to sleep]
ta has quit [Quit: Leaving...]
ta has joined #ruby
scripore has joined #ruby
skcin7 has joined #ruby
minimalism has joined #ruby
pdoherty has quit [Ping timeout: 256 seconds]
karapetyan has joined #ruby
praveen has joined #ruby
mary5030 has joined #ruby
smactive has joined #ruby
praveen has quit [Ping timeout: 240 seconds]
karapetyan has quit [Ping timeout: 260 seconds]
cmolenda has joined #ruby
ElFerna has joined #ruby
ta0 has joined #ruby
finisherr has quit [Quit: finisherr]
mary5030 has quit [Remote host closed the connection]
scripore has quit [Quit: This computer has gone to sleep]
pdoherty has joined #ruby
sandstrom has joined #ruby
devbug has quit [Read error: Connection reset by peer]
nertzy has quit [Quit: This computer has gone to sleep]
jgpawletko has quit [Quit: jgpawletko]
finisherr has joined #ruby
Denommus` has joined #ruby
AlphaAtom has joined #ruby
devbug has joined #ruby
ta has quit [Remote host closed the connection]
ElFerna has quit [Ping timeout: 255 seconds]
GinoManWorks_ has quit [Read error: Connection reset by peer]
psf has joined #ruby
dmcc_ has quit [Quit: Leaving]
ElFerna has joined #ruby
psf has quit [Quit:]
aegis3121 has quit [Quit: Textual IRC Client: www.textualapp.com]
ta has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dlitvak has quit [Remote host closed the connection]
aegis3121 has joined #ruby
cmolenda has quit [Remote host closed the connection]
uri_ has quit [Ping timeout: 240 seconds]
devbug has quit [Read error: Connection reset by peer]
lacuna has quit [Remote host closed the connection]
devbug has joined #ruby
lacuna has joined #ruby
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nertzy has joined #ruby
spooq has joined #ruby
axsuul has joined #ruby
CorySimmons has quit [Quit: Bye!]
ta has quit [Remote host closed the connection]
ta has joined #ruby
NyteFyre has joined #ruby
scripore has joined #ruby
Zamerick has joined #ruby
ramortegui has quit [Quit: Ex-Chat]
axsuul has quit [Client Quit]
ta has quit [Read error: Connection reset by peer]
ElFerna has quit [Ping timeout: 276 seconds]
ta has joined #ruby
woodruffw has quit [Quit: And then he took off.]
jbrhbr has joined #ruby
NyteFyre has left #ruby [#ruby]
tubuliferous_ has joined #ruby
ruid has joined #ruby
yqt has joined #ruby
ruid has quit [Changing host]
ruid has joined #ruby
Pupeno has quit [Quit: Leaving...]
felixal has quit [Ping timeout: 245 seconds]
einarj has joined #ruby
decoponio has quit [Quit: Leaving...]
krobzaur has quit [Ping timeout: 260 seconds]
bkxd has joined #ruby
tokion has joined #ruby
CorySimmons has joined #ruby
zotherstupidguy has quit [Ping timeout: 240 seconds]
tokion has quit [Quit: Bye]
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bkxd has quit [Ping timeout: 250 seconds]
dfockler has quit [Ping timeout: 276 seconds]
B1n4r10 has quit [Ping timeout: 276 seconds]
roshanavand has joined #ruby
einarj has quit [Remote host closed the connection]
praveen has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
gambl0re has quit [Ping timeout: 276 seconds]
zotherstupidguy has joined #ruby
yfeldblum has joined #ruby
Linell has quit [Quit: leaving]
roshanavand has quit [Ping timeout: 276 seconds]
jokke has quit [Quit: WeeChat 1.3]
praveen has quit [Ping timeout: 245 seconds]
jokke has joined #ruby
bricker has joined #ruby
rubyonrailed has quit [Remote host closed the connection]
dhollinger has quit [Quit: WeeChat 1.3]
zenlot has quit [Ping timeout: 250 seconds]
kirun has quit [Quit: Client exiting]
zenlot has joined #ruby
lkba has joined #ruby
pawnbox has joined #ruby
ruid has quit [Ping timeout: 265 seconds]
Wompy has joined #ruby
d0nn1e has quit [Ping timeout: 246 seconds]
cmolenda has joined #ruby
lemur has quit [Read error: Connection reset by peer]
pawnbox has quit [Ping timeout: 245 seconds]
d0nn1e has joined #ruby
Denommus` has quit [Ping timeout: 245 seconds]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Denommus` has joined #ruby
ElFerna has joined #ruby
uri_ has joined #ruby
wolffles has joined #ruby
solocshaw has joined #ruby
Rutix has quit []
bkxd has joined #ruby
hahuang61 has quit [Quit: WeeChat 1.3]
stannard has quit [Remote host closed the connection]
tvw has joined #ruby
<dorei> when doing "case str ... when regex", is $1, $2, etc the only way to access capture groups from within the when regex block?
stannard has joined #ruby
centrx has joined #ruby
workmad3 has joined #ruby
CorySimmons has quit [Quit: Bye!]
<Ox0dea> dorei: No, there are other globals to that effect.
jokke is now known as kuyatzu
kuyatzu is now known as jokke
jokke is now known as kuyatzu
Jackneill has quit [Remote host closed the connection]
gusTester has quit [Quit: Leaving.]
tnordloh has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
<Ox0dea> dorei: Way better, right?
hxegon has joined #ruby
ElFerna has quit [Ping timeout: 264 seconds]
freerobby has joined #ruby
hahuang65 has joined #ruby
<al2o3-cr> never do this! never!
bkxd has quit [Ping timeout: 250 seconds]
<aegis3121> o_o
futilegames has joined #ruby
ta_ has joined #ruby
p337rB has quit [Remote host closed the connection]
bkxd has joined #ruby
ta has quit [Ping timeout: 255 seconds]
blackmesa has quit [Ping timeout: 250 seconds]
kies^ has quit [Ping timeout: 240 seconds]
domgetter has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
kuyatzu is now known as jokke
stannard has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 276 seconds]
<dorei> $LAST_MATCH_INFO[1] ? :O
devbug has quit [Read error: Connection reset by peer]
<al2o3-cr> wtf?
_joes_ has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
<dorei> i think i'll stick with $1 :)
ta has joined #ruby
volty has joined #ruby
uri_ has quit [Quit: --]
hobodave has quit [Quit: Computer has gone to sleep.]
devbug has joined #ruby
<volty> is there a way (command line or similar) to determine the location of ruby.h ?
<workmad3> volty: `find / -name ruby.h` maybe?
ta has quit [Read error: Connection reset by peer]
futilegames has quit [Quit: futilegames]
wolffles has left #ruby [#ruby]
<al2o3-cr> volty: sudo grep -r 'ruby.h' /
<volty> workmad3: that one done (with locate), I was asking if you can suggest me something smarter
ta has joined #ruby
<volty> since I have more versions of ruby
douglass_ has joined #ruby
<al2o3-cr> yeah workmad3 shit
<volty> (<above>)
<al2o3-cr> just go with workmad3 solution
<volty> I would like to write the including of that header programatically
uri_ has joined #ruby
<drbrain> volty: RbConfig has it
praveen has joined #ruby
<volty> thx drbrain :)
<drbrain> at least, it has the path to the directory where ruby.h lives
scrndddy has joined #ruby
<volty> that's what I needed
ElFerna has joined #ruby
<scrndddy> anyone using grape to do apis?
AlphaAtom has quit [Quit: Textual IRC Client: www.textualapp.com]
<workmad3> scrndddy: a bit, yeah
joonty has quit [Ping timeout: 276 seconds]
wldcordeiro has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby
aegis3121 has quit [Ping timeout: 250 seconds]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<headius> yorickpeterse: out of curiousity I ran your specs against rbx (with the old rubysl-socket)... 1250F+E versus about 1008 for JRuby 9.0.4.0. So I guess JRuby's socket lib was actually a bit less broken than rbx's
<scrndddy> workmad3: i'm thinking about using it on its own without rails. is that a bad idea?
underplank has joined #ruby
praveen has quit [Ping timeout: 276 seconds]
<headius> I'm sure the majority of those are the same failure, as in JRuby...but it does show that neither of us were really that broken for normal users
_joes_ has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
underplank has quit [Client Quit]
Denommus` has quit [Ping timeout: 260 seconds]
Denommus` has joined #ruby
Dimik has joined #ruby
craysiii has joined #ruby
davedev24 has joined #ruby
finisherr has quit [Quit: finisherr]
craysiii has quit [Client Quit]
davedev2_ has quit [Ping timeout: 260 seconds]
devbug has quit [Ping timeout: 256 seconds]
craysiii has joined #ruby
Salve has joined #ruby
Salve_ has quit [Read error: Connection reset by peer]
ElFerna has quit [Ping timeout: 240 seconds]
whippythellama has quit [Quit: WeeChat 1.3]
<al2o3-cr> >> $>><<`id`
<ruboto> al2o3-cr # => /tmp/execpad-f5e5fbd7d6e3/source-f5e5fbd7d6e3:7: can't find string "id" anywhere before EOF ...check link for more (https://eval.in/497349)
TomyLobo has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
ta has quit [Remote host closed the connection]
nfk|laptop has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
nertzy has quit [Quit: This computer has gone to sleep]
domgetter has joined #ruby
ur5us has quit [Remote host closed the connection]
uri_ has quit [Quit: --]
Spleeze has quit [Ping timeout: 250 seconds]
weemsledeux has joined #ruby
shellie_ has joined #ruby
guacamole has quit [Quit: Textual IRC Client: www.textualapp.com]
scrndddy has quit [Quit: Page closed]
<shellie_> Hi, I'm learning python, I got myself a copy of the well grounded rubyist. I have a fair amount of experience in C and Python, so I can read a lot of ruby code. Could someone point me to some good libraries/sources of good ruby practices?
<shevy> you are learning python? :-)
dfdfdf is now known as azzgil
<azzgil> google awesome ruby
<shellie_> shevy: meant ruby, pardon me :)
<shevy> some libraries that may be worth to study are rack and prawn https://github.com/rack/rack https://github.com/prawnpdf/prawn
<shellie_> azzgil: thanks :)
<azzgil> funny troll
<shevy> they may a bit too complex for a newcomer though
Spleeze has joined #ruby
Salve has quit [Read error: Connection reset by peer]
<azzgil> he has c exp
<shevy> azzgil please man
<azzgil> and he cannot find good libs for ruby
Salve has joined #ruby
<azzgil> it is strange
pawnbox has joined #ruby
charliesome has joined #ruby
<azzgil> you are a girl?
<shevy> shellie_ another step on is to write your own .gem, for any project of your liking -> http://guides.rubygems.org/make-your-own-gem/ . this has the additional benefit that you will tend to structure your project in ruby in a consistent and logical manner (e. g. lib/ and files residing there, in a module/class namespace)
<azzgil> shevy ^
ta0 has quit [Ping timeout: 255 seconds]
<shevy> azzgil you really wanna have the ops have a look at you?
<domgetter> I'm a grill btw
veg__ has quit [Ping timeout: 260 seconds]
mooe has quit [Quit: Connection closed for inactivity]
<shellie_> I suppose when you are new to a language, you are not familiar with a lot of subtleties. You bring some bagage from other languages and you will therefore approach programming in the new language using what the skills you have acquired. e.g I tried to learn python by writing code in the same way I wrote low level C code, which is not very expressive/idiomatic. I wanted something clean/"beautiful" (idiomatic/expressive/clean), I could look at and learn from
<shellie_> I am not a he, but you can treat me as such
<shevy> yeah, that sometimes happens in ruby too
<shevy> C/C++ influences a lot of the writing style
<domgetter> I treat everyone on the internet the same: dirty, no good liars. every one of them
<shellie_> thanks shevy :)
<shevy> the GUI bindings to ruby-gnome and probably ruby-qt are an example, also ruby-ncurses
Salve has quit [Ping timeout: 240 seconds]
<shevy> shellie_ ruby may be a bit different to python because the syntax alone can be more flexible, which can be not so much fun if you have to look at other people's code (if it is bad code) but it can be nice because you have more freedom to decide on your own what style you prefer
pawnbox has quit [Ping timeout: 272 seconds]
wldcordeiro has joined #ruby
mary5030_ has joined #ruby
<shellie_> I have read a fair amount of ruby and indeed, it seems to have far more syntactic sugar than python :)
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
spider-mario has quit [Remote host closed the connection]
janebootydoe has joined #ruby
janebootydoe has quit [Max SendQ exceeded]
janebootydoe has joined #ruby
<shevy> shellie_ you can also have a look at https://github.com/bbatsov/ruby-style-guide - you probably won't agree to all of them (I don't) but at least it's one "style" guide out there, and rubocop enforces this; this is nice because you can have rubocop --autocorrect ruby code written, and change it to a specified style (you can fine tune that behaviour too through rubocop)
<shellie_> oh, cool
snockerton has joined #ruby
Spleeze has quit [Quit: QUIT]
<al2o3-cr> python is the shit when it comes to comprehensions
mic_e has quit [Ping timeout: 272 seconds]
mary5030 has quit [Ping timeout: 240 seconds]
<shevy> al2o3-cr I lately saw another cool python project
<shevy> al2o3-cr http://etetoolkit.org/
<shevy> now this made it on my todo list! redo this in ruby ... in 20 years or so :D
<shevy> al2o3-cr here is one picture produced automagically, from someone else in #bioinformatics http://nar.oxfordjournals.org/content/43/D1/D227/F1.large.jpg
<al2o3-cr> can't slag off python i just cant
<al2o3-cr> *can't
freerobby has quit [Quit: Leaving.]
Spleeze has joined #ruby
<shevy> most of the original bioinformatics code such as the ncbi query tools were written in C/C++ - and then perl
<shellie_> both languages are great, what I hate about having to learn ruby is that it causes dilution. Now instead of improving/focusing on a language I am experienced at, instead I am learning a new one and not going to become an expert on either.. :)
<shevy> the latter seems to have changed somewhat, I see a lot more python code out there these days (or the last few years actually). I am not sure if this has to do with perl declining or with python growing at the same time, or both
<shellie_> but, I do like (and I want to learn) ruby
veg has joined #ruby
<shevy> shellie_ I see
<azzgil> so stupid learn ruby after python