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
<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>
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
<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.
<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 >.<
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>
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)
<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.
<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]
<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.
<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.
<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
<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]
<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
<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
<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>
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.
<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) ?
<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…]
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>
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.
<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.
<_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.
<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]
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?
<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?
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]
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
<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
<_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?
<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
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.
<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)
<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]
<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]
<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 :)
<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
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.
<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]
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]
<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
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
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]
<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>
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>
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