<Ox0dea>
diegoviola: Just stick the constant on the class.
<charliesome>
drbrain: yeah agreed
eggoez has joined #ruby
<charliesome>
that said the code already uses Net::DNS so I'm just gonna leave it be
<diegoviola>
and isn't %w just the same as declaring the array with NUMBERS = [1,2,3,4,5] ?
graydot has joined #ruby
<diegoviola>
so I don't see how I'm redefining it?
<Mon_Ouie>
No, %w is array of strings
<diegoviola>
Ox0dea: why do I have to add it to the class?
<loincloth>
diegoviola: i think you are caught up partly on a wording choice
relix has joined #ruby
<loincloth>
it maybe be the first time it was defined but because it was declared in a method body you are getting that error
<diegoviola>
loincloth: ?
<loincloth>
not sure on that, though
bootstrappm has left #ruby [#ruby]
<mwlang>
Ox0dea: the fingerprint is developer’s choice more so than algo. basically what I have is a hash with say 200 keys. They’re soap messages that have been turned into hashes with the Nori gem. The developers of the exchange partner didn’t really follow Soap specs which says only one complex datatype definition per named data type and namespace.
<diegoviola>
loincloth: what do you mean?
<Ox0dea>
diegoviola: The constant would get redefined every time you called the method.
<loincloth>
sorry if i'm off base, but i thought you were confused by it saying you are "redefining" when you haven't defined it before
<diegoviola>
Ox0dea: oh
<Ox0dea>
That said, you can use Object.const_set if you simply *must* define a constant in a method, which you really oughtn't.
<Mon_Ouie>
And constants can only exist inside modules (including classes). There's no such thing as a constant local to a method or something.
serivich has quit [Ping timeout: 250 seconds]
<mwlang>
So, what I did was look for keys that distinguished one from the other and let the Factory choose the right Ruby object class to instantiate and populate. I found that out of 200 keys, I only needed 4 or 5 to correctly identify which Ruby class to instantiate for the hash.
<diegoviola>
loincloth: I haven't defined the constant before
<diegoviola>
I was trying to create a constant with some words in it
<loincloth>
i believe you :D
<mwlang>
I just had the idea as I was looking at the implementation to automatically scan for every object with a fingerprint class method and check that each one is unique to the other.
<diegoviola>
inside a method
<diegoviola>
so constants shouldn't be inside methods?
<Ox0dea>
diegoviola: Why do you think it needs to live in the method?
<loincloth>
diegoviola: it's not the best design
serivichi has quit [Ping timeout: 244 seconds]
myztic has joined #ruby
<Ox0dea>
diegoviola: Defining a literal constant in a method is, as you've discovered, a syntax error.
<diegoviola>
Ox0dea: why it needs to live inside a class?
<Ox0dea>
Dynamically doing so just attaches the constant to the surrounding module.
zacstewart has quit [Remote host closed the connection]
<loincloth>
diegoviola: i'm not sure all the reasons but i think at the least it just violates semantics to do it that way
<Ox0dea>
diegoviola: If you think about it, method-local constants don't make a great deal of sense.
<diegoviola>
I want to know the reason why it needs to be in a class and not a method
<loincloth>
as noted, you can actually dynamically define constants, but it's not a feature you should be looking to very often
<shevy>
constants that can be changed lateron also don't make sense
<loincloth>
you might want an instance variable instead, for example
<Ox0dea>
diegoviola: It's not *constant* if it gets a "new" value every time the method is invoked.
<shevy>
then why can it be changed?
<diegoviola>
ok
<Ox0dea>
Because Ruby.
<shevy>
Because we can.
<loincloth>
yeah
dfockler has quit []
<diegoviola>
%w is just a shorthand for defining a array of words? it won't redefine the array or anything, right?
<loincloth>
but i'm sorry if i hurt more than i helped
<Ox0dea>
diegoviola: That's what I meant about "redefinition"; the %w[a b c] is a different object every time the method gets called.
<Ox0dea>
Thus demonstrating the futility of method-local "constants".
blue_deref has joined #ruby
mleung has quit [Quit: mleung]
failshell has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
krz has quit [Quit: WeeChat 1.2]
fullofcaffeine has quit [Remote host closed the connection]
<Ox0dea>
diegoviola: In the event you're ever looking to emulate C's `static` keyword to only initialize an object the first time through a method, you can use `@ivar ||= foo`.
ecksit has joined #ruby
ecksit has left #ruby [#ruby]
dblessing has joined #ruby
Tempesta has quit [Read error: Connection reset by peer]
paulcsmith___ has joined #ruby
Tempesta has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
PhantomSpank has quit []
<diegoviola>
thanks
PhantomSpank has joined #ruby
failshell has quit [Ping timeout: 250 seconds]
dblessing has quit [Client Quit]
<loincloth>
diegoviola: sweet name btw :D
Rollabunna has joined #ruby
pwnd_nfsw has quit [Read error: Connection reset by peer]
dblessing has joined #ruby
major_majors has quit [Ping timeout: 246 seconds]
dblessing has quit [Client Quit]
RegulationD has quit [Remote host closed the connection]
major_majors has joined #ruby
Rickmasta has joined #ruby
s2013 has joined #ruby
marr has quit [Ping timeout: 264 seconds]
valetudo has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
Rollabunna has quit [Ping timeout: 244 seconds]
zacstewart has joined #ruby
oo_ has joined #ruby
fullofcaffeine has joined #ruby
oo_ has quit [Remote host closed the connection]
EllisTAA has joined #ruby
oo_ has joined #ruby
failshell has joined #ruby
iamjarvo has quit [Ping timeout: 260 seconds]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
MatthewsFace has joined #ruby
<diegoviola>
loincloth: ?
fullofcaffeine has quit [Remote host closed the connection]
zacts has joined #ruby
fullofcaffeine has joined #ruby
safeforge has quit [Remote host closed the connection]
bffff_ has quit [Quit: Connection closed for inactivity]
dgutierrez1287 has joined #ruby
tubuliferous_ has joined #ruby
zacstewart has quit [Remote host closed the connection]
RegulationD has joined #ruby
havenwood has joined #ruby
tubuliferous_ has quit [Ping timeout: 250 seconds]
failshell has quit []
baweaver has quit [Remote host closed the connection]
<loincloth>
diegoviola: nevermind
sdrew has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
centrx has quit [Ping timeout: 245 seconds]
jbw has quit [Ping timeout: 260 seconds]
_reset has quit [Ping timeout: 252 seconds]
RegulationD has quit [Remote host closed the connection]
DoubleMalt has quit [Ping timeout: 250 seconds]
sgambino has joined #ruby
centrx has joined #ruby
<havenwood>
hi all
EllisTAA has quit [Quit: EllisTAA]
<hays>
is there a simple/small web framework in ruby similar to pocoo/flask
sevenseacat has joined #ruby
<havenwood>
hays: Sinatra is quite popular (I think it inspired Flask) or Roda is a very, very nice alternative.
arooni-mobile has quit [Ping timeout: 244 seconds]
sdothum has quit [Ping timeout: 250 seconds]
<pontiki>
hihi again
tmtwd has quit [Ping timeout: 244 seconds]
paulcsmith___ has quit [Quit: Be back later ...]
mistermocha has joined #ruby
FernandoBasso has quit [Quit: May the force be with you.]
jbw has joined #ruby
<shevy>
yo pontiki - what greatness will you code today?
devoldmx_ has joined #ruby
baroquebobcat has joined #ruby
michael_mbp has quit [Excess Flood]
rodfersou has quit [Remote host closed the connection]
Ropeney has joined #ruby
michael_mbp has joined #ruby
<pontiki>
nothing today
<pontiki>
i'm working out some architecture
centrx has quit [Quit: 'Get out, you and all the people who follow you!' Then he went out from Pharaoh in hot anger.]
pietr0 has joined #ruby
mistermocha has quit [Ping timeout: 272 seconds]
freerobby has joined #ruby
jhack has quit [Ping timeout: 255 seconds]
centrx has joined #ruby
jackjackdripper1 has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
omegamike has joined #ruby
arooni-mobile has joined #ruby
cina has quit [Ping timeout: 260 seconds]
cina has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
<miah>
sinatra is neat so far
tkuchiki has joined #ruby
[k- has quit [Ping timeout: 246 seconds]
<shevy>
I am still at a level of noobness with sinatra... I tried to make a site that allows one to connect via a ftp-interface... so far I semi-failed
<shevy>
screenshots!
omegamike has quit [Ping timeout: 252 seconds]
<miah>
i am writing a user/group management interface for ldap
Rollabunna has joined #ruby
mdavid613 has quit [Quit: Leaving.]
Oka has quit [Quit: さようなら]
PaulCapestany has joined #ruby
centrx has quit [Quit: "You cannot fix a machine by just power-cycling it with no understanding of what is going wrong."]
towski_ has quit [Quit: Leaving...]
Rollabunna has quit [Ping timeout: 246 seconds]
grotewold has quit [Quit: ZZZzzz…]
j4cknewt_ has quit [Remote host closed the connection]
j4cknewt has joined #ruby
j4cknewt has quit [Remote host closed the connection]
<shevy>
I need to modify the original initialize to call the specific custom method
<shevy>
but when I re-define initialize, I get a warning: gtk_module.rb:42: warning: method redefined; discarding old initialize
<shevy>
any idea how to get rid of the warning?
zacstewart has joined #ruby
<diegoviola>
shevy: write GTK::Entry instead
baroquebobcat has quit [Quit: baroquebobcat]
<diegoviola>
I don't want to be pedantic, but GTK is an acronym
<pontiki>
does Rack speak FTP??
<havenwood>
pontiki: nope
fullofcaffeine has quit [Remote host closed the connection]
<havenwood>
diegoviola: Being pedantic, it's not an acronym it's an initialism.
<pontiki>
i didn't think so
allcentury has quit [Ping timeout: 265 seconds]
<havenwood>
diegoviola: It isn't pronounced.
apt-get_ has quit [Remote host closed the connection]
<pontiki>
shevy: how were you trying to get sinatra to connect via FTP?
devoldmx_ has quit [Ping timeout: 250 seconds]
<havenwood>
guhtehkuh
phutchins has joined #ruby
<shevy>
pontiki via my ftp wrapper; I don't know how to keep track of persistent data though, like "remain logged in" and continue to issue commands via that webinterface, and display that new thing in-page. I assume I may have to use javascript? no idea right now
<shevy>
diegoviola did you use ruby-gtk before?
bruno- has quit [Ping timeout: 246 seconds]
<pontiki>
shevy: i'm woefully confused. you have an FTP wrapper that emulates ftpd?
<diegoviola>
havenwood: I'm confused now
<shevy>
nono, I am using the ruby ftp stuff
<Aeyrix>
shevy: Yeah you're gonna need AJAX or something.
<shevy>
it works fine from the commandline and via ruby-gnome so far
<Aeyrix>
Because you're gonna need a backend-ish to keep a persistent connection via KEEPALIVE.
michaeldeol has quit [Ping timeout: 246 seconds]
<havenwood>
diegoviola: An acronym is pronounced. So like NATO.
<shevy>
ok
rbennacer has joined #ruby
<havenwood>
diegoviola: While an initialism isn't. So like IBM.
<diegoviola>
I'm still confused
<havenwood>
diegoviola: I-B-M
texasmade has joined #ruby
<Aeyrix>
>not pronouncing IBM "ibem"
<havenwood>
diegoviola: naahtoh
baroquebobcat has joined #ruby
<diegoviola>
oh
<sevenseacat>
scoooooba
<pontiki>
nay-toh
<Aeyrix>
^
rbennacer has quit [Remote host closed the connection]
<Aeyrix>
Nayto
<Aeyrix>
woot
<havenwood>
fermented soy beans..
<pontiki>
natto
oddmunds has quit [Ping timeout: 245 seconds]
<pontiki>
i'll see your natto and raise you a can of surstromming
<pontiki>
surstromming is registered as the worst smell ever
<shevy>
diegoviola you can be pedantic - however had, if you write GTK::Entry then it would not work. If you would know ruby-gtk then you would know why, so I assume you never used it
<havenwood>
pontiki: i believe
<pontiki>
natto is tactical; surstromming is strategic
blueOxigen has joined #ruby
<pontiki>
mind you , i never want to be near either one when they're opened
<diegoviola>
shevy: I never used it
phutchins has quit [Ping timeout: 244 seconds]
<diegoviola>
`/j ##english
fullofcaffeine has joined #ruby
bluOxigen has quit [Ping timeout: 260 seconds]
<diegoviola>
crap I made a mistake in a git commit message
<diegoviola>
about acronyms and initialism
rbennacer has joined #ruby
RegulationD has joined #ruby
<diegoviola>
:S
dimasg has joined #ruby
hj2007 has joined #ruby
wafflemachine has joined #ruby
<havenwood>
diegoviola: Out-pedanted you!
<diegoviola>
:(
<diegoviola>
that's fine at least I've learned something
hj2007 has quit [Client Quit]
bricker has quit [Ping timeout: 246 seconds]
<wafflemachine>
How beneficial to my upcoming compsci degree (going into freshman year of college) is spending a weekend hacking around with rails?
RegulationD has quit [Ping timeout: 250 seconds]
<pontiki>
a weekend? and then what?
<sevenseacat>
you won't learn much in a weekend
<pontiki>
no learning is wasted, though
<sevenseacat>
true.
<wafflemachine>
It's amazing how powerful rails is
<pontiki>
quanifying benefit for that is quite impossible though
<wafflemachine>
like actually, I'm used to Node-based crap
<wafflemachine>
and python-django/flask
<wafflemachine>
This gives me so much flexibility and customizability
<pontiki>
i'd be surprised if you used any of those in comp sci courses, though
<wafflemachine>
yeah... I know :/
nateberkopec has quit [Ping timeout: 265 seconds]
pietr0 has quit [Ping timeout: 272 seconds]
oo_ has quit [Remote host closed the connection]
<wafflemachine>
it gives me more leeway to ask to test out of intro, though. Only got a 3 on the AP test which means I actually have to take the class...
<pontiki>
i guess the question throws me off. who *cares* if it's of benefit to your comp sci degree? it's worth it anyway
<wafflemachine>
I mean, will it help me with any core concepts of compsci?
<wafflemachine>
I dunno
robbyoconnor has joined #ruby
<pontiki>
mainly cause it's *fun*
<pontiki>
no
<pontiki>
not any more than the other things you mentioned
<sevenseacat>
it doesnt relate to 'core concepts of comp sci'
<pontiki>
core concepts are algorithms, data structures
<pontiki>
representations, abstractions
oo_ has joined #ruby
<pontiki>
architecture, composition, ...
<pontiki>
gods, it's been decades
Jandre has joined #ruby
<wafflemachine>
Sounds like I'm in for a party...
Jandre is now known as Guest69331
<pontiki>
one of the early core classes in my program, called "fundamentals of computer science" was entirely about functional decomposition
texasmade has quit [Ping timeout: 240 seconds]
arescorpio has joined #ruby
<pontiki>
i.e., how to break problems into smaller and smaller bits until you have a set of easily solvable components
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<heftig>
methodology is a big part of any sci degree
<wafflemachine>
Okay
devoldmx has joined #ruby
dimasg has quit [Ping timeout: 246 seconds]
<wafflemachine>
What do you mean by methodology?
<wafflemachine>
Like, how one codes?
<wafflemachine>
how one abstracts things?
<wafflemachine>
all of the above?
poguez_ has quit [Quit: Connection closed for inactivity]
<Radar>
Programming: It Makes You Think.
<heftig>
learning how to solve problems generally; not solving certain problems
hj2007 has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
<heftig>
how to solve problems, conduct experiments, evaluate results, write papers
stardiviner has joined #ruby
hj2007 has quit [Client Quit]
hj2007 has joined #ruby
fgo has quit [Quit: WeeChat 1.1.1]
djbkd has quit [Quit: My people need me...]
Rollabunna has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
iateadonut has joined #ruby
workmad3 has joined #ruby
blue_deref has quit [Quit: bbn]
MIGGERS_SUCK has joined #ruby
<MIGGERS_SUCK>
hi
Rollabunna has quit [Ping timeout: 246 seconds]
havenwood has quit [Ping timeout: 260 seconds]
<Aeyrix>
yes hello
<Radar>
!mute MIGGERS_SUCK
<Aeyrix>
nice
* Ox0dea
is implementing some of the GNU coreutils in LOLCODE.
<Ox0dea>
It's a shame "LOLUtils" is the name of a virus. :/
workmad3 has quit [Ping timeout: 260 seconds]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
loincloth has joined #ruby
tenderlove has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
<wafflemachine>
Ox0dea: LOLTools?
<wafflemachine>
or coreLOLs
<wafflemachine>
... I can't do names.
fenjamin has joined #ruby
<fenjamin>
/msg NickServ identify a#%zS*S*b
<Ox0dea>
Whoops.
<fenjamin>
woops
<Ox0dea>
/msg nickserv identify hunter2
<Radar>
Big whoops.
<wafflemachine>
Oh man
tmtwd has joined #ruby
<fenjamin>
don't you touch my reputation!!
fenjamin has quit [Disconnected by services]
<wafflemachine>
fenjamin: consider changing your password asap
Ox0dea is now known as fenjamin
<al2o3-cr>
hi rublings
<Radar>
Someone didn't change their password in time.
fenjamin_ has joined #ruby
<wafflemachine>
oh jeeze...
oo_ has joined #ruby
<fenjamin_>
do you have any idea how hard i worked for this reputation on irc
<fenjamin_>
how dare you touch this username
<fenjamin>
Look at all this free reputation!
<Radar>
fenjamin_: You should change your original nick's password.
<wafflemachine>
Relax, man :)
<fenjamin_>
hours! hours! on irc!
<al2o3-cr>
dicks!
<wafflemachine>
fenjamin_, just do /msg nickserv help
<wafflemachine>
there are a few commands to help you reclaim your account
<fenjamin_>
wafflemachine i'm just joking. its a username. it doesn't matter.
<fenjamin>
But then I'll become a ghost...
<fenjamin_>
keep it!
<Radar>
fenjamin_: Well done for not using the same password on GitHub.
<wafflemachine>
There are some people who take IRC far too seriously
fenjamin has quit [Disconnected by services]
<Radar>
:D
tubuliferous_ has joined #ruby
<Radar>
This is fun.
<fenjamin_>
fenjamin knows more than me
Ox0dea has joined #ruby
<fenjamin_>
point i'm trying to make!
<al2o3-cr>
?ot
<ruboto>
this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<wafflemachine>
Radar: see if his FB username is the same
<Radar>
wafflemachine: Na I should do real work instead :)
<Radar>
Ox0dea: wb
<Ox0dea>
Danke.
<fenjamin_>
have at it. i'm the lifelock guy without lifelock
<wafflemachine>
fenjamin_ that's... not a good thing
wafflemachine is now known as tuxwaffle
<fenjamin_>
so the cs solution to the pretty right triangle where for every star printed on a new row a space is subtracted
<fenjamin_>
my gangsta rhyme line for bohemian lifestyle
<al2o3-cr>
joke!
PhantomSpank has joined #ruby
bmurt has quit []
countryHick has quit [Quit: Connection closed for inactivity]
<fenjamin_>
that's my only line
<Ox0dea>
Minecraft > /r/outside confirmed.
rakm has joined #ruby
<fenjamin_>
which is better said for python
<al2o3-cr>
fenjamin_: isthat you?
dimasg has joined #ruby
oo_ has joined #ruby
<al2o3-cr>
it's a bit dodgy fenjamin_ never spoke before, hmmm....
<al2o3-cr>
must think ya daft!
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
casadei_ has joined #ruby
dorei has quit []
<fenjamin_>
it would be wonderful to scope an entire song from that one line
omegamike has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
<al2o3-cr>
meh
tjbiddle has quit [Ping timeout: 265 seconds]
<fenjamin_>
"but yo im lookin hungry with my hair in a bun/but spend my time starving because i'm looking for something that smells good and cant escape my own odor"
braincrash has quit [Quit: bye bye]
<al2o3-cr>
:D
tjbiddle has joined #ruby
<tuxwaffle>
Wait, so, I know a bit of ruby. What should I code (somewhat practical) to get my skills from whack (bad) to whack (good)
<tuxwaffle>
Coming from Python with codecademy Ruby experience
<fenjamin_>
ok ask for an extension!
omegamike has quit [Ping timeout: 264 seconds]
charliesome has quit [Quit: zzz]
<fenjamin_>
codewars.com
<fenjamin_>
rubymonk.com
loincloth has quit [Remote host closed the connection]
braincrash has joined #ruby
<al2o3-cr>
Ox0dea: lol
<Aeyrix>
What the hell is going on in this channel?
<al2o3-cr>
Ox0dea: is trolling
<Aeyrix>
Are any of you actually speaking English, or just in incoherent image macros?
<Aeyrix>
Without the images.
tjbiddle has quit [Ping timeout: 245 seconds]
fella7s has joined #ruby
Rollabunna has joined #ruby
<willywos>
no speako any englisho
<al2o3-cr>
When English is good, easy to spot
arooni-mobile__ has joined #ruby
<fenjamin_>
ok back to research. you've been great!
fella6s has quit [Ping timeout: 244 seconds]
fenjamin_ has quit [Quit: 离开]
<sevenseacat>
mi ne parolas la anglan.
* Aeyrix
is not getting involved in language wars.
lannonbr has quit [Quit: WeeChat 1.2]
<al2o3-cr>
tuxwaffle: come on!
Rollabunna has quit [Ping timeout: 246 seconds]
banister has quit [Ping timeout: 244 seconds]
kfpratt has quit [Remote host closed the connection]
darkf has joined #ruby
aaeron has quit [Quit: Leaving.]
kfpratt has joined #ruby
Blaguvest has quit []
Musashi007 has joined #ruby
<al2o3-cr>
haha
<tuxwaffle>
al2o3-cr: que?
<tuxwaffle>
no hablo ingles, hombre...
oo_ has quit [Remote host closed the connection]
arooni-mobile__ has left #ruby ["Leaving"]
<al2o3-cr>
yeah, homie
<tuxwaffle>
Tried codewars with python
<tuxwaffle>
realized I like verbose, clear code more than one liners
<tuxwaffle>
got schooled by one-liners
ferock has joined #ruby
Chau has joined #ruby
<willywos>
but what about javascript
<willywos>
?
<al2o3-cr>
tuxwaffle: inconito heh
<willywos>
thats fun
s2013 has quit [Read error: Connection reset by peer]
<tuxwaffle>
willywoos: I have a particular disdain for JS
<willywos>
what! undefined isn't even a function
_blizzy_ has joined #ruby
jester13 has joined #ruby
myztic has quit [Ping timeout: 244 seconds]
<tuxwaffle>
More like I hate how Node has become the new Java
<tuxwaffle>
or something
<tuxwaffle>
... the caffeine is wearing off and my thoughts are less coherent
<willywos>
i thought everyone was leaving javascript for go
<tuxwaffle>
that and marathoning "Silicon Valley" isn't helping
<tuxwaffle>
Is Go webscale though? :P
ferock has left #ruby [#ruby]
scripore has quit [Quit: This computer has gone to sleep]
<willywos>
lol
<tuxwaffle>
I'm just gonna learn how to do everything in Ruby
<tuxwaffle>
and be a dual Ruby/Python god
<al2o3-cr>
weird, how 2 nicks trevor agaisnt each other?
Muhannad has quit [Ping timeout: 240 seconds]
<tuxwaffle>
?
Alayde has quit [Ping timeout: 255 seconds]
charliesome has joined #ruby
gix has quit [Ping timeout: 250 seconds]
<willywos>
i hate that trevor, such an ass
zacstewart has quit [Remote host closed the connection]
<tuxwaffle>
I think my brain is broken now
<tuxwaffle>
night
<tuxwaffle>
exit
tuxwaffle has quit [Quit: leaving]
scripore has joined #ruby
dgutierrez1287 has joined #ruby
avahey has quit [Quit: Connection closed for inactivity]
_blizzy_ has quit [Read error: Connection reset by peer]
<diegoviola>
I was talking with someone the other day and mentioned how expressive Ruby can be that you can do some really nice one-liners and make methods smaller, and then this person said "Really? Do you know code minification with JavaScript? Do you know how difficult that is to read?", I feel that he completely missed the point
gix has joined #ruby
jackjackdripper has joined #ruby
_blizzy_ has joined #ruby
<Ox0dea>
diegoviola: Properly utilizing Ruby's expressiveness has nothing to do with LOC.
<diegoviola>
Ox0dea: I know
<Ox0dea>
Clearly not.
<sevenseacat>
do you?
fullofcaffeine has quit [Remote host closed the connection]
dgutierrez1287 has quit [Ping timeout: 260 seconds]
havenwood has joined #ruby
<diegoviola>
it's why I said the other person was missing the point
oo_ has joined #ruby
<Ox0dea>
diegoviola: Why bother to mention LOC in defense of Ruby's expressiveness?
<diegoviola>
why not?
<Aeyrix>
Because semantics.
<diegoviola>
you're not making much sense
<diegoviola>
semantics?
<Aeyrix>
If we don't get our daily quota of arguing about semantics, this channel might start to look like a place where people can get help.
<Aeyrix>
Gotta make sure that doesn't happen.
ap4y has quit [Ping timeout: 246 seconds]
<diegoviola>
you just want someone to argue with, I'm not interested
<Aeyrix>
Oh, I don't. I was being sarcastic.
<Aeyrix>
The others, probably.
kfpratt has quit [Remote host closed the connection]
dopie has joined #ruby
ap4y has joined #ruby
kfpratt has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
<diegoviola>
code minification in JS and refactoring code to make methods smaller are different things
myztic has joined #ruby
<al2o3-cr>
>> >> self.class === BasicObject
<ruboto>
al2o3-cr # => /tmp/execpad-6a5f09dca00b/source-6a5f09dca00b:2: syntax error, unexpected >> ...check link for more (https://eval.in/413398)
<Aeyrix>
nice
Chau has quit [Ping timeout: 260 seconds]
<Aeyrix>
>> self.class === BaseObject
<ruboto>
Aeyrix # => uninitialized constant BaseObject (NameError) ...check link for more (https://eval.in/413399)
<Ox0dea>
havenwood: Euler's identity is pretty sexy.
<Ox0dea>
I don't know why it doesn't hold on 32-bit systems, though.
chu has joined #ruby
brendan- has joined #ruby
<al2o3-cr>
how many zero's 32bt?#
pietr0 has joined #ruby
<havenwood>
mathy!
<diegoviola>
Question please
<al2o3-cr>
ask ruby
MatthewsFace has quit [Remote host closed the connection]
blimpdev has joined #ruby
<diegoviola>
why is that when I do: 10**2000.class I get a: TypeError: Class can't be coerced into Fixnum, but when I do (10**2000).class I get a Bignum
<Aeyrix>
Yeah?
<Aeyrix>
Order of operations.
<havenwood>
diegoviola: 10**(2000.class)
s1kx has quit [Ping timeout: 264 seconds]
<diegoviola>
what is the meaning of the parens in this case
<diegoviola>
havenwood: ok that makes more sense
<havenwood>
diegoviola: an expression
<al2o3-cr>
precedence
<diegoviola>
10 is an object and ** is a method and you pass 2000.class as a parameter
Rollabunna has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
<diegoviola>
al2o3-cr: what is that supposed to mean?
<al2o3-cr>
the one and only :D
PhantomSpank has quit [Remote host closed the connection]
<Ox0dea>
diegoviola: Your elementary school deserves to have its funding revoked.
<Aeyrix>
I'm lucky I chose to stop drinking before I switched back to this channel.
<al2o3-cr>
drink, drink fackin drink lol
govg has quit [Ping timeout: 250 seconds]
<diegoviola>
Ox0dea: I'd rather not get into that discussion, can you also please stop with the belittling about education?
<al2o3-cr>
father ted, funny
<Ox0dea>
diegoviola: Check your privilege, mate.
<Aeyrix>
stop.mp3
charliesome has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
tkuchiki has quit [Remote host closed the connection]
tmtwd has quit [Read error: Connection reset by peer]
<al2o3-cr>
mpv stop.mp3
<Ox0dea>
Aeyrix: This song sounds a lot like 4'33".
<Ox0dea>
New favorite!
<diegoviola>
Ox0dea: not all countries have great education systems, that's one of the reasons I value the internet and open access to information a lot
<Ox0dea>
diegoviola: Let it go, dude.
Chau has quit [Quit: Leaving]
<al2o3-cr>
why's it not playing?
mistermocha has joined #ruby
<Aeyrix>
Ox0dea: It was brass
<Aeyrix>
playing
<diegoviola>
Ox0dea: Sure. You might also want to be less offtopic and less passive aggressive
willywos has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jackjackdripper has quit [Quit: Leaving.]
<Aeyrix>
1/4 1/4 1/2 1/2 1/4 1/4
<al2o3-cr>
awesomeness
<Aeyrix>
then someone saying "stop"
<Aeyrix>
and that was it
<Ox0dea>
diegoviola: When I joined the Internet, expression grouping was one of the first things they taught us during onboarding. We had to read SICP in the snow, uphill both ways.
texasmade has joined #ruby
texasmade has left #ruby [#ruby]
<blimpdev>
0x0dea: Can you please fuck off dude we all don't like you at all
<Ox0dea>
Yeah! Fuck off, 0x0dea!
<Aeyrix>
0x0
<Aeyrix>
0xO
<blimpdev>
dude i misspelled your shit because i fucking hate you
fullofcaffeine has quit [Remote host closed the connection]
<al2o3-cr>
Aeyrix: yeah, scrolled up, wow
loincloth has joined #ruby
loincloth has quit [Remote host closed the connection]
<al2o3-cr>
i should take joins/quits off
tubuliferous_ has quit [Ping timeout: 255 seconds]
mistermocha has quit [Ping timeout: 244 seconds]
pietr0 has quit [Quit: pietr0]
<al2o3-cr>
tune this
benlovell has quit [Ping timeout: 260 seconds]
Mendenhall has joined #ruby
blimpdev has quit [Quit: WeeChat 1.2]
kfpratt has quit [Remote host closed the connection]
zacstewart has joined #ruby
<al2o3-cr>
who's watched 'max'
halcyone3 has joined #ruby
<Aeyrix>
Is that like
<Aeyrix>
Mad Max
<Aeyrix>
before he went mad?
sepp2k has quit [Read error: Connection reset by peer]
<Ox0dea>
Mad Min is a pretty good show.
<al2o3-cr>
max (THE WAR DOG)
<Radar>
Ironic that the person who spams ?offtopic is now posting offtopic messages in this channel.
<Ox0dea>
I think that's just hypocrisy.
<al2o3-cr>
not bad film
* Ox0dea
just drank a fifth of dihydrogen monoxide.
kfpratt has joined #ruby
<al2o3-cr>
very much respect to the the veteran and dog (you need balls, big balls for that career)
<wmoxam>
zacstewart has quit [Ping timeout: 252 seconds]
GeissT has joined #ruby
casadei_ has quit [Remote host closed the connection]
kp666 has joined #ruby
<baweaver>
Aeyrix: you can always !.ops to get their attention too (without the dot)
<Aeyrix>
I know.
<Aeyrix>
But I try and remind everyone before using that.
<baweaver>
fair
<Ox0dea>
Plus nice memes.
<Aeyrix>
Ox0dea: I tried to get that as a command for #ror's bot.
<al2o3-cr>
so many young people dying, over a war that not be won
<Aeyrix>
Didn't work.
<Aeyrix>
Is al2o3-cr a Markov chain bot?
<Ox0dea>
He's just... different.
kfpratt has quit [Ping timeout: 260 seconds]
<al2o3-cr>
Aeyrix: no just speaking the truth
<wmoxam>
al2o3-cr: I agree. Programming language wars are the worst
<baweaver>
so just high then, ok.
<baweaver>
Java should die in a fire.
<al2o3-cr>
just fucking gets to me, not even lived and getting killed over a fucking war that's as beem going on for over a 1000 years (government pricks)
<al2o3-cr>
and this country is a JOKE
<Ox0dea>
/part #soapbox
<sevenseacat>
al2o3-cr: can you like, settle a little?
<wmoxam>
al2o3-cr: it's true that the Ruby community can be a bit tough on PHP and Java folk, but I'd say on a whole we're an accepting bunch
bruno- has joined #ruby
pdoherty has quit [Quit: Leaving]
<al2o3-cr>
grandmothers and grandfathers fought in world war 2 possibly 1 and can't get shit, it's wrong, it needs to change
<sevenseacat>
al2o3-cr: enough.
<al2o3-cr>
k
<Ox0dea>
"Be the change you wish to see in the world."
<Aeyrix>
thank mr philosophy
<wmoxam>
oh yes, I remember the text editor wars
<baweaver>
I'm just Mr Pun
<Radar>
!mute al2o3-cr
<wmoxam>
they were *brutal*
<Radar>
Anyone else?
<Aeyrix>
wmoxam: They still happen! :D
<baweaver>
Radar has spoken, so it shall be
<Aeyrix>
I'm like 80% sure one of my colleagues uses Emacs.
<Aeyrix>
idk what he uses as a text editor though
<wmoxam>
oh boy
<baweaver>
Just grew up administering headless servers so Vim is kinda second nature to me anymore.
<Aeyrix>
I always stuck to nano because I was just lazy and often was only doing very simple text editing.
<baweaver>
Would I tell a fresh newbie to use it? No, they have enough to learn as is.
<Aeyrix>
I can use vi/m, but I tend not to.
<Ox0dea>
baweaver: But that's the antithesis of indoctrination!
<baweaver>
It takes getting used to definitely.
<baweaver>
I'm far more a pragmatist, use what works best for you
<baweaver>
which of course can be overridden for the sake of greater pragmatism, ie style guides
<wmoxam>
baweaver: that attitude is what led to the end of the war
<wmoxam>
;)
<Aeyrix>
ONE
<Aeyrix>
HUNDRED
<Aeyrix>
YEARS
djbkd_ has joined #ruby
<Ox0dea>
OF
<Ox0dea>
SOLITUDE
<Aeyrix>
ALL FOR NOTHING
<Ox0dea>
Well, I think it won a Pulitzer or some such.
loincloth has joined #ruby
loincloth has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 272 seconds]
<Ox0dea>
Scratch that, but it did contribute to Márquez's Nobel Prize, so there's that.
<Aeyrix>
Vim?
<Ox0dea>
"One Hundred Years of Solitude".
<Aeyrix>
Oh.
<Ox0dea>
It's wunna dem book thangs.
<Aeyrix>
So, yeah, Vim.
<wmoxam>
and Vim as well
auzty has joined #ruby
<Aeyrix>
On the topic of software winning prizes, I wish I could do these reports in LaTeX.
<Aeyrix>
MSWord crashes so fucking frequently on OS X right now.
abcd1234 has quit [Read error: Connection reset by peer]
<wmoxam>
Ox0dea: HW exploit?
<wmoxam>
ie: microcode?
<wmoxam>
(just guessing)
loincloth has joined #ruby
abcd1234 has joined #ruby
<Ox0dea>
wmoxam: Well, yeah, but Ring -1 is the hypervisor; what's under that?
loincloth has quit [Remote host closed the connection]
<havenwood>
"we'll release proof-of-concept code exploiting the vast, unexplored wasteland of forgotten x86 features, to demonstrate how to jump malicious code from the paltry ring 0 into the deepest, darkest realms of the processor"
omegamike has quit [Ping timeout: 264 seconds]
armyriad has quit [Ping timeout: 265 seconds]
<wmoxam>
Ox0dea: turtles
<havenwood>
deep water turtles that like the dark
pawnbox has joined #ruby
<havenwood>
Ox0dea: ring super sekret
<sevenseacat>
computers, how do they work?
<sevenseacat>
we're all fooked
<wmoxam>
ring -2 is where they keep the magic smoke
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
psmolen has quit [Ping timeout: 246 seconds]
charliesome has joined #ruby
ramfjord has joined #ruby
<havenwood>
Ox0dea: System Management Mode (SMM) apparently.
pawnbox has quit [Remote host closed the connection]
<Aeyrix>
Basically x86 has a more privileged area beyond ring 0 - kernel - where things just go full MC Hammer and AV can't touch it.
shoutsid has quit [Remote host closed the connection]
<Aeyrix>
There's plenty of layers of protection over these areas with x86, but 40-odd years of code and models leave a really nice mess.
niemcu has quit [Ping timeout: 272 seconds]
<Aeyrix>
One of the key niceties of "ring -2" is the fact that it can bypass Intel's TXT (trusted execution tech), giving it tip-top tier privileges on even modern processors.
psy_ has quit [Ping timeout: 264 seconds]
<Aeyrix>
There's not a full paper yet because the talk hasn't happened afaik.
<Ox0dea>
Is it not technically feasible for whitehats (read: AV writers) to use the same principle for good?
<Aeyrix>
No.
<Aeyrix>
This attack isn't like
halcyone3 has quit [Ping timeout: 246 seconds]
renanoronfle has quit [Ping timeout: 246 seconds]
Rollabun_ has quit [Remote host closed the connection]
<Aeyrix>
it's not a punchhole vulnerability
<Aeyrix>
where you're just breaking a level of protection and can do anything
<Aeyrix>
it's actually quite limited in its first stage.
psy_ has joined #ruby
<Aeyrix>
It's more the second stage which is much, much more potent.
<Aeyrix>
Because it now has access to this ring -2.
crdpink2 has quit [Ping timeout: 244 seconds]
<Aeyrix>
The main problem with this vulnerability is at "ring -2" nobody, nothing can see what you're doing.
TvL2386 has joined #ruby
crdpink has joined #ruby
<Aeyrix>
It's kind of what most people imagine ring 0 is all about, by an order of magnitude
<Aeyrix>
I described it to someone else as like getting SYSTEM / root but for the hardware itself, not just the OS.
ascarter has joined #ruby
crdpink has quit [Client Quit]
tkuchiki has joined #ruby
<Ox0dea>
Aeyrix: I can't quite wrap my head around ring-2 residents not being able to see each other; how does that work?
crdpink has joined #ruby
<Ox0dea>
*Ring -2
<Aeyrix>
Because if malware gets there first, it runs the place.
pawnbox has joined #ruby
pawnbox has quit [Remote host closed the connection]
<Aeyrix>
This is amusingly all possible because of a miniscule patch to fix a small subset of systems two decades ago.
Ox0dea has quit [Ping timeout: 256 seconds]
fedexo has quit [Ping timeout: 246 seconds]
Gribo has joined #ruby
loincloth has joined #ruby
slackbotgz has quit [Remote host closed the connection]
htmldrum has quit [Ping timeout: 245 seconds]
htmldrum has joined #ruby
<[k->
>> 1 ^= 1
<ruboto>
[k- # => /tmp/execpad-b2168bdf8214/source-b2168bdf8214:2: syntax error, unexpected tOP_ASGN, expecting keywor ...check link for more (https://eval.in/413430)
<[k->
:o
<[k->
does it work for 1?
mistermocha has joined #ruby
Musashi007 has quit [Ping timeout: 246 seconds]
youch has quit [Ping timeout: 260 seconds]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
khebbie has quit [Remote host closed the connection]
Trynemjoel has joined #ruby
niiamon has joined #ruby
<irctc594>
can anyone help with my issue?
<Ox0dea>
irctc594: Do you have a local variable named object_id?
<sevenseacat>
what about it?
<irctc594>
yes i do have a local variable.
<sevenseacat>
and what is it?
bruno- has joined #ruby
<irctc594>
i dont know why its saying object not found for update when i have the column in parse
<irctc594>
object_id = session[:object_id]
<sevenseacat>
and what is it?
hewenhong has joined #ruby
hewenhong has quit [Client Quit]
<jhass>
meh, I want a way so that some_symbol.to_f_s returns a frozen string and always the same one for the same symbol
eGGsha has joined #ruby
<irctc594>
i just said what it was
<sevenseacat>
for all we know, session[:object_id] is nil, so
<sevenseacat>
thats why I asked what it is
eGGsha has quit [Max SendQ exceeded]
Iskarlar has joined #ruby
slash_nick has quit [Ping timeout: 256 seconds]
<Ox0dea>
irctc594: Whose code do you reckon is more likely to be wrong, Parse's or yours?
oo_ has joined #ruby
<irctc594>
obviously mine
niemcu has joined #ruby
krz has quit [Read error: Connection reset by peer]
bruno- has quit [Ping timeout: 244 seconds]
slash_nick has joined #ruby
Hounddog has joined #ruby
<Ox0dea>
irctc594: Good, then you've the sense to appreciate that "object not found for update" is a concise and accurate explanation for the problem you're having.
eGGsha has joined #ruby
<irctc594>
yeah
eGGsha has quit [Max SendQ exceeded]
<Ox0dea>
irctc594: I trust you realize that application ID and API key aren't the same thing?
Jandre_ has quit [Ping timeout: 272 seconds]
<Ox0dea>
Your code indicates that you're using the same value for both.
<irctc594>
yes
<irctc594>
but in my real code i have it differntly, i just changed it for posting on gist
f4cl3y__ has joined #ruby
<sevenseacat>
so..... did we work out what object_id was yet?
Iskarlar has quit [Client Quit]
Pupeno_ has quit [Remote host closed the connection]
<Ox0dea>
irctc594: Aye, you should confirm that session[:object_id] is what you think it is.
<Ox0dea>
According to Parse's API docs, it should be a ten alphanumerics.
<Ox0dea>
-a
krz has joined #ruby
<irctc594>
yeah the users objectid
<Ox0dea>
This guy.
<sevenseacat>
lol
blackmesa has joined #ruby
<sevenseacat>
I don't think we're asking a super-hard question here
<Ox0dea>
irctc594: You're *certain* you're not inadvertently invoking the #object_id method?
<sevenseacat>
what value is currently stored in the variable object_id ?
<Ox0dea>
That's PII, after a fashion.
eGGsha has joined #ruby
<sevenseacat>
so change some numbers or letters then
<sevenseacat>
but for all we know, they're calling the api with their ID from their own database, which is not the right ID
<irctc594>
whoever is logged in their user objectid is taken to use, so in this case its 6i9wY1E7pb
tomphp_ has joined #ruby
benlovell has quit [Ping timeout: 250 seconds]
<sevenseacat>
so thats what you got when you printed out object_id in the console when you made that request or something?
dgutierrez1287 has joined #ruby
<sevenseacat>
and you're 1000000% sure that matches a user record in the Parse database?
<adaedra>
that's a big number
<irctc594>
yes 1000000000% lol
ferhaty has joined #ruby
benlovell has joined #ruby
<irctc594>
yeah i have it right now so whoever is logged in, it outputs their objectid. and it matches
f4cl3y__ has quit [Ping timeout: 250 seconds]
<sevenseacat>
then you just broke the internet. god job.
<sevenseacat>
good even
ferhaty has quit [Client Quit]
pawnbox has joined #ruby
<irctc594>
not really helpful lol
dgutierrez1287 has quit [Ping timeout: 245 seconds]
symm- has quit [Ping timeout: 256 seconds]
stamina has joined #ruby
yeticry has quit [Read error: Connection reset by peer]
<sevenseacat>
well you said Parse isnt broken, and your code is perfect. what else are we supposed to say?
* apeiros
just rehashing what the others already said:
benlovell has quit [Ping timeout: 260 seconds]
<apeiros>
irctc594: store url & message body in a variable, print that url and the message body, use that variable. to make sure what you print is what you actually use
<apeiros>
the most likely reason for the break is your request being faulty. so that's where I'd spend time investigating.
benlovell has joined #ruby
zacstewart has joined #ruby
yeticry has joined #ruby
yh has joined #ruby
Iskarlar has joined #ruby
krzkrz has joined #ruby
<irctc594>
i mean i cant find any errors in my request
<apeiros>
well, then what sevenseacat said.
i8igmac has joined #ruby
f4cl3y__ has joined #ruby
zacstewart has quit [Ping timeout: 240 seconds]
krz has quit [Ping timeout: 272 seconds]
<irctc594>
so i just do nothing? haha
<apeiros>
no. you figure out where you went wrong with your assertions and/or testing methodology. we do nothing.
frem has quit [Quit: Connection closed for inactivity]
<apeiros>
mostly because there's nothing we could do - you didn't give us anything to work with.
Musashi007 has quit [Quit: Musashi007]
bodgix has joined #ruby
pawnbox has quit [Read error: Connection reset by peer]
platzhirsch has joined #ruby
matp has quit [Ping timeout: 256 seconds]
kedare has quit [Ping timeout: 246 seconds]
DoubleMalt has quit [Ping timeout: 246 seconds]
doertedev has joined #ruby
<irctc594>
how can i give u something to work with?
<Ox0dea>
It explicitly mentions its source as being that Document 9303.
bronson_ has joined #ruby
lokulin has joined #ruby
rakm has joined #ruby
tomphp_ has quit [Max SendQ exceeded]
yokel_ has joined #ruby
Iskarlar has joined #ruby
bhorn1|away has joined #ruby
ta has quit [Remote host closed the connection]
Contigi777 has joined #ruby
yokel has quit [Remote host closed the connection]
kadoppe_ has joined #ruby
bronson has quit [Ping timeout: 244 seconds]
<shock_one>
Hi, guys. I'm reading the Sandi Metz' book and she has an interesting approach to testing. The idea is that if a method call to the object you test causes a side effect, but by means of a different object, you shouldn't test the side effect, instead you should test that the second object has received the correct incoming message. What do you think of this and do you use it in everyday life?
<Ox0dea>
As an aside, Perl programmers really are strange: q!1 1...2 2! to delimit a multiline string.
tomphp_ has joined #ruby
khebbie has quit [Remote host closed the connection]
<Ox0dea>
Testing whether an object receives a given message is extremely common, yes.
Jandre has joined #ruby
Jandre is now known as Guest55542
<Ox0dea>
Mon_Ouie: Sure, but have you ever seen something like that in wild Ruby code?
<shock_one>
Ox0dea: I understand how to achieve it, but I'm wondering if it's a good idea. By the end of the day I don't care what methods my object calls, I only care if the side effect took place.
dionysus69 has joined #ruby
<Ox0dea>
shock_one: You mistook my intent; I meant to show you that it's "the done thing".
hays has joined #ruby
<Mon_Ouie>
Maybe not I guess
chthon has quit [Ping timeout: 244 seconds]
sshuff|gone has quit [Ping timeout: 244 seconds]
janno has quit [Quit: Lost terminal]
stan has quit [Ping timeout: 244 seconds]
Guest55542 has quit [Ping timeout: 272 seconds]
khebbie has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
cb__ has quit []
malcolmva has joined #ruby
hays has quit [Ping timeout: 244 seconds]
yokel_ has quit [Changing host]
yokel_ has joined #ruby
yokel_ is now known as yokel
M-mistake has joined #ruby
M-prosodyContext has joined #ruby
janno has joined #ruby
sshuff|gone has joined #ruby
mistermocha has joined #ruby
moshee has quit [Ping timeout: 244 seconds]
kadoppe_ has quit [*.net *.split]
Contigi777 has quit [*.net *.split]
Hounddog has quit [*.net *.split]
marr has quit [*.net *.split]
qiukun has quit [*.net *.split]
cornerman has quit [*.net *.split]
techsethi has quit [*.net *.split]
DifferentLambda has quit [*.net *.split]
araujo has quit [*.net *.split]
elton has quit [*.net *.split]
perrier has quit [*.net *.split]
joneshf-laptop has quit [*.net *.split]
michael_mbp has quit [*.net *.split]
Kruppe has quit [*.net *.split]
JimmyNeutron has quit [*.net *.split]
axisys has quit [*.net *.split]
akurilin has quit [*.net *.split]
hectortrope has quit [*.net *.split]
ccooke has quit [*.net *.split]
niko has quit [*.net *.split]
tercenya has quit [*.net *.split]
icedp has quit [*.net *.split]
ghormoon has quit [*.net *.split]
M-Technic has quit [*.net *.split]
Platini has quit [*.net *.split]
jso has quit [*.net *.split]
zenspider has quit [*.net *.split]
lhz has quit [*.net *.split]
gnarf has quit [*.net *.split]
Janusz1 has quit [*.net *.split]
devyn has quit [*.net *.split]
hfp_work has quit [*.net *.split]
slani has quit [*.net *.split]
jhass has quit [*.net *.split]
marsjaninzmarsa has quit [*.net *.split]
tommylommykins has quit [*.net *.split]
freeze has quit [*.net *.split]
lotherk has quit [*.net *.split]
nomadic has quit [*.net *.split]
DefV has quit [*.net *.split]
ejnahc has quit [*.net *.split]
fluchtreflex has quit [*.net *.split]
Matadoer has quit [*.net *.split]
drbrain has quit [*.net *.split]
nuck has quit [*.net *.split]
dling has quit [*.net *.split]
theRoUS has quit [*.net *.split]
`derpy has quit [*.net *.split]
Urocyon has quit [*.net *.split]
saaki has quit [*.net *.split]
ltd has quit [*.net *.split]
sindork has quit [*.net *.split]
uxp has quit [*.net *.split]
redondos has quit [*.net *.split]
finges has quit [*.net *.split]
Sp4rKy has quit [*.net *.split]
gregf_ has quit [*.net *.split]
lorn has quit [*.net *.split]
low-profile has quit [*.net *.split]
nwhirschfeld has quit [*.net *.split]
demophoon has quit [*.net *.split]
spectra_ has quit [*.net *.split]
pjaspers_ has quit [*.net *.split]
patronus has quit [*.net *.split]
rfi has quit [*.net *.split]
ericwood has quit [*.net *.split]
Roa has quit [*.net *.split]
dogeuira has quit [*.net *.split]
sarid has quit [*.net *.split]
Coraline has quit [*.net *.split]
DmitryM has quit [*.net *.split]
mhenrixon has quit [*.net *.split]
ironcamel has quit [*.net *.split]
jayne has quit [*.net *.split]
adam12 is now known as adam
luckyruby has joined #ruby
adam is now known as Guest63985
tylersmith has joined #ruby
eGGsha has quit [Ping timeout: 240 seconds]
stan has joined #ruby
hays has joined #ruby
<yardenbar>
How can I set root user to use ruby 2.0 instead of 1.9.3 ?
j4cknewt has quit [Remote host closed the connection]
bodie_ has quit [Ping timeout: 244 seconds]
oo__ has joined #ruby
kadoppe_ has joined #ruby
Contigi777 has joined #ruby
Hounddog has joined #ruby
Kruppe has joined #ruby
axisys has joined #ruby
marr has joined #ruby
ccooke has joined #ruby
JimmyNeutron has joined #ruby
perrier has joined #ruby
araujo has joined #ruby
hectortrope has joined #ruby
michael_mbp has joined #ruby
low-profile has joined #ruby
rfi has joined #ruby
ghormoon has joined #ruby
uxp has joined #ruby
ejnahc has joined #ruby
lhz has joined #ruby
tommylommykins has joined #ruby
ltd has joined #ruby
mhenrixon has joined #ruby
sindork has joined #ruby
patronus has joined #ruby
Platini has joined #ruby
nuck has joined #ruby
zenspider has joined #ruby
lorn has joined #ruby
drbrain has joined #ruby
ironcamel has joined #ruby
cornerman has joined #ruby
spectra_ has joined #ruby
jso has joined #ruby
icedp has joined #ruby
devyn has joined #ruby
nomadic has joined #ruby
jhass has joined #ruby
qiukun has joined #ruby
gnarf has joined #ruby
Roa has joined #ruby
Urocyon has joined #ruby
Janusz1 has joined #ruby
akurilin has joined #ruby
Coraline has joined #ruby
M-Technic has joined #ruby
niko has joined #ruby
joneshf-laptop has joined #ruby
hfp_work has joined #ruby
DefV has joined #ruby
tercenya has joined #ruby
jayne has joined #ruby
pjaspers_ has joined #ruby
redondos has joined #ruby
marsjaninzmarsa has joined #ruby
sarid has joined #ruby
freeze has joined #ruby
elton has joined #ruby
techsethi has joined #ruby
slani has joined #ruby
dling has joined #ruby
`derpy has joined #ruby
saaki has joined #ruby
gregf_ has joined #ruby
finges has joined #ruby
dogeuira has joined #ruby
DmitryM has joined #ruby
nwhirschfeld has joined #ruby
Matadoer has joined #ruby
demophoon has joined #ruby
theRoUS has joined #ruby
lotherk has joined #ruby
fluchtreflex has joined #ruby
Sp4rKy has joined #ruby
ericwood has joined #ruby
DifferentLambda has joined #ruby
pocketprotector has joined #ruby
axisys has quit [Max SendQ exceeded]
marr has quit [Max SendQ exceeded]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
axisys has joined #ruby
krzkrz has quit [Ping timeout: 244 seconds]
dualbus has joined #ruby
bodie_ has joined #ruby
mistermocha has quit [Ping timeout: 265 seconds]
marr has joined #ruby
krzkrz has joined #ruby
<shock_one>
yardenbar: just make sure that the folder with the correct ruby binary comes first in your PATH variable.
<yardenbar>
Checking
<apeiros>
Ox0dea: so: yay icao :-p
bjeanes has quit [Ping timeout: 244 seconds]
Guest85414______ has quit [Ping timeout: 244 seconds]
<apeiros>
but yes, of course, I'll see whether there's a ruby library, or a table for AS' transliteration according to icao.
shredding has quit [Ping timeout: 252 seconds]
startupality has joined #ruby
bjeanes has joined #ruby
sshuff|gone has quit [Read error: Connection refused]
Guest85414______ has joined #ruby
sshuff|gone has joined #ruby
<startupality>
how can i reference my application.scss (SASS file) for use with PDFkit? can i make it work with SASS files instead of CSS and can I use my web site's css styles?
lampshades has quit [Remote host closed the connection]
zenspider has quit [Ping timeout: 255 seconds]
moted has quit [Ping timeout: 250 seconds]
wookiehangover has quit [Ping timeout: 240 seconds]
ramfjord has quit [Read error: Connection reset by peer]
ramfjord has joined #ruby
drbrain has quit [Ping timeout: 255 seconds]
halcyone3 has joined #ruby
conor_ has quit [Remote host closed the connection]
freeze has quit [Ping timeout: 255 seconds]
zenspider has joined #ruby
renderful has quit [Ping timeout: 244 seconds]
zacts has quit [Ping timeout: 264 seconds]
pocketprotector has quit [Ping timeout: 244 seconds]
jds has quit [Quit: Connection closed for inactivity]
freeze has joined #ruby
rakm has quit [Ping timeout: 250 seconds]
niko has quit [Ping timeout: 624 seconds]
drbrain has joined #ruby
Lildirt has quit [Ping timeout: 260 seconds]
dgutierrez1287 has joined #ruby
jbw has quit [Ping timeout: 252 seconds]
qiukun has quit [Quit: qiukun]
eGGsha has joined #ruby
raz has left #ruby ["*fump*"]
Lildirt has joined #ruby
startupality has quit [Quit: startupality]
wookiehangover has joined #ruby
khebbie has quit [Remote host closed the connection]
rakm has joined #ruby
<apeiros>
um, Ox0dea - that lib you linked is a joke
<apeiros>
it defines maybe 3% of the transliteration table
lampshades has joined #ruby
zacts has joined #ruby
pocketprotector has joined #ruby
rodfersou has joined #ruby
niko has joined #ruby
renderful has joined #ruby
dgutierrez1287 has quit [Ping timeout: 244 seconds]
conor_ has joined #ruby
jenrzzz has joined #ruby
AlexRussia has joined #ruby
<[k->
buuuuurn
<[k->
side effects are bad! always work with pure code!
dionysus69 has quit [Remote host closed the connection]
<[k->
its not like ruby cant do it or anything
jenrzzz has quit [Ping timeout: 272 seconds]
matp has joined #ruby
rodfersou has quit [Ping timeout: 255 seconds]
platzhirsch has joined #ruby
<yorickpeterse>
clearly haskell is the answer
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<yorickpeterse>
I mean
renderfu_ has joined #ruby
<apeiros>
must never print, must never persist. it's all sideeffects!
lampshades has quit []
<[k->
clearly that is the way
ndrei has quit [Remote host closed the connection]
<[k->
it's all meaningless when you factor in the entire universe
rikkipitt has joined #ruby
renderful has quit [Ping timeout: 265 seconds]
jbw has joined #ruby
chills42 has joined #ruby
chills42 has quit [Remote host closed the connection]
chills42 has joined #ruby
preller has quit [Read error: Connection reset by peer]
omegamike has joined #ruby
blackmes1 has joined #ruby
niiamon has quit []
j4cknewt has joined #ruby
bazbing80 has joined #ruby
dionysus69 has joined #ruby
terlar has joined #ruby
<[k->
however, we need money
<[k->
haskell lets us do side effects too
greenarrow has quit [Quit: 500]
blackmesa has quit [Ping timeout: 265 seconds]
bruno- has joined #ruby
fgo has joined #ruby
chills42 has quit [Read error: Connection reset by peer]
rodfersou has joined #ruby
omegamike has quit [Ping timeout: 252 seconds]
<yorickpeterse>
and it doesn't give us money
chills42 has joined #ruby
<yorickpeterse>
:>
jonee has quit [Ping timeout: 264 seconds]
yeticry has quit [Ping timeout: 260 seconds]
<shevy>
what a useless language
greenarrow has joined #ruby
jbw has quit [Ping timeout: 255 seconds]
<[k->
more useful than you!
<[k->
ooooooo buuuuuuurn
<tuor>
hi, i need to do a tree traversal but not binary, it can have more then 2 child.
yeticry has joined #ruby
ta has joined #ruby
<tuor>
I'm looking for an example to see how I can do it.
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass>
sounds like homework :P
<tuor>
jhass, no work.
riotjone_ has quit [Remote host closed the connection]
<tuor>
^^. I mean I can do it, but I think it will be to comlicated and long if I try it just my self.. (and it takes much time).
<jhass>
the recursive approach is generally more elegant, but given no practical tail call optimization it easily overflows the stack in Ruby
but3k4 has joined #ruby
<jhass>
best is you come up with your own approach and post it here
<jhass>
and ask for alternatives/tips/improvements
<[k->
so you want us to do the work for you?!
jbw has joined #ruby
<[k->
u need a better excuse!
yeticry has quit [Ping timeout: 246 seconds]
dgutierrez1287 has joined #ruby
blackmes1 has quit [Ping timeout: 244 seconds]
<tuor>
[k-, no, I searched for examples in the inter but only found ones for binary trees. I'm just looking for an example how to do it. I'm not asking how to do it in my code. I think maybe someone knows one.
scroff has joined #ruby
yeticry has joined #ruby
tubuliferous_ has joined #ruby
qiukun has joined #ruby
fgo has quit [Quit: WeeChat 1.1.1]
<[k->
adapt the binary trees then
<jhass>
tuor: I mean it, show your own approach, that will make it easier for us to suggest something appropriate but more importantly improve your own learning experience tremendously if you really thought through your problem on your own first
<[k->
[19:30:19] <tuor> ^^. I mean I can do it, but I think it will be to comlicated and long if I try it just my self.. (and it takes much time).
<[k->
--- sounds very much like an excuse
benlovell has quit [Ping timeout: 252 seconds]
jackjackdripper has quit [Quit: Leaving.]
<apeiros>
tuor: start by traversing the first level of children
<apeiros>
when you've written that, show us the tree you traverse and the code you use
<apeiros>
the tree should contain more than one level of children, though. it's just that for the start you only traverse one level.
<maloik>
I'd love to try and program some of those game loop things, but the languages they have their aren't exactly my strong suits
govg has joined #ruby
tubuliferous_ has quit [Ping timeout: 255 seconds]
HoloIRCUser1 has joined #ruby
serivich has joined #ruby
edwinvdg_ has quit [Remote host closed the connection]
spider-mario has quit [Read error: Connection reset by peer]
<tuor>
apeiros, i have a try but didn't tested it for now. This is how I would do it. Just not ready to test it because not all code around (other methods) is done: https://gist.github.com/anonymous/1d05f61d961781cc74a0
edwinvdgraaf has joined #ruby
<apeiros>
tuor: I don't see a tree
HoloIRCUser1 has quit [Remote host closed the connection]
ledestin has joined #ruby
<tuor>
a template has multiple dependencies, each of them has dependencies again and so on.
<apeiros>
tuor: also if you're not sure how to traverse a tree yet, then leave away all code which is unrelated to traversing itself. solve traversal in isolation.
jbw has quit [Ping timeout: 260 seconds]
<apeiros>
tuor: I know what a tree is. I don't ask for an abstract. I want *your* *specific* tree
<jhass>
... in your specific datastructure
<[k->
but wouldn't that increase coupling
edwinvdg_ has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<shevy>
I am sure connor_goodwolf needs some love as well
<yorickpeterse>
(in order of their appearance)
<apeiros>
yorickpeterse: in order? why not pre order? or post order? :D
<apeiros>
or even breadth-first?
scripore has joined #ruby
<yorickpeterse>
apeiros: read docs
<yorickpeterse>
it's bread-first + depth-first
<yorickpeterse>
errr
<yorickpeterse>
breadth
<yorickpeterse>
heh, bread first
<apeiros>
yorickpeterse: uh, you should look up tree traversal terminology :-p
<canton7>
that's how my day starts
<yorickpeterse>
apeiros: I'm familiar with pre/post order
<yorickpeterse>
canton7: I'm more a fan of cereal-first order
* canton7
wonders whether there's a pun in first-order cereal
mistermocha has quit [Ping timeout: 256 seconds]
conor_ has quit [Remote host closed the connection]
<Mon_Ouie>
Wouldn't that be more efficient with #pop and #<< instead of #shift and #unshift which would both be O(n)?
rideh has joined #ruby
<[k->
it's the other way round in Haskell
jewel_ has joined #ruby
<[k->
the more you know!
<yorickpeterse>
Mon_Ouie: IIRC then the order is no longer correct
<Mon_Ouie>
For linked lists, not for arrays
tenderlove has joined #ruby
rikkipitt has quit [Remote host closed the connection]
jewel_ has left #ruby ["Leaving"]
<[k->
yeah? it is faster to remove the head or add the head
<[k->
not the back
conor_ has joined #ruby
krzkrz has quit [Read error: Connection reset by peer]
<yorickpeterse>
Mon_Ouie: Ah yes, if you use #<< and #pop the order goes bonkers
<yorickpeterse>
I actually remember trying something like that initially
doertedev has quit [Quit: Lost terminal]
<Mon_Ouie>
You're prepending elements and removing the first element. If you just swap the places where you reverse the array and instead append elements and remove them from the end, it should be strictly equivalent
dimasg has joined #ruby
<[k->
this is a LIFO right!
conor_ has quit [Remote host closed the connection]
<jhass>
[k-: for linked lists it is (given singly linked, no tail pointer), for arrays it's slower since it needs to shift all later elements in memory
<yorickpeterse>
Mon_Ouie: oh hm, seems it does do it in order when the initial array is in reverse _and_ the iteration is in reverse
eGGsha has joined #ruby
<yorickpeterse>
but I honestly doubt it would make much of a difference, Array#unshift isn't that bad performance wise
<[k->
yeah i know that, i read about it in algorasaurous
<yorickpeterse>
Mon_Ouie: Yeah, there's pretty much no performance difference
<yorickpeterse>
nevertheless shift/unshift shouldn't be needed so I'll get rid of that
jbw has joined #ruby
dimasg has quit [Ping timeout: 246 seconds]
devoldmx has joined #ruby
conor_ has joined #ruby
krzkrz has joined #ruby
rajatt has quit [Quit: Page closed]
conor_ has quit [Remote host closed the connection]
conor_ has joined #ruby
<jhass>
yorickpeterse: if you still have the benchmark open I'd be curios if visit.concat current.children.to_a.reverse would be faster or slower. Given that most arrays there should be relatively small I'd expect the allocation to be more expensive than the additional method calls, but still
<shevy>
concat!
<shevy>
a cat!
devoldmx has quit [Ping timeout: 260 seconds]
oo__ has quit [Remote host closed the connection]
[k-_ has joined #ruby
bronson_ has quit [Ping timeout: 246 seconds]
conor_ has quit [Remote host closed the connection]
nveselinov has joined #ruby
conor_ has joined #ruby
sideshowcoder has joined #ruby
oo_ has joined #ruby
<yorickpeterse>
jhass: why would #concat be faster than #<< ?
oo_ has quit [Remote host closed the connection]
_blizzy_ has quit [Ping timeout: 246 seconds]
conor_ has quit [Remote host closed the connection]
<jhass>
because it can expand the array to the target size and because you have less method calls / transitions between Ruby / C land
s83941 has quit [Ping timeout: 240 seconds]
<yorickpeterse>
Well, #<< doesn't re-allocate on every call IIRC
<yorickpeterse>
it only re-allocates when needed and last I checked re-allocates in chunks
safeforge has quit [Remote host closed the connection]
<connor_goodwolf>
tuor: lazy tabber!!! *polishes his big teeth*
<jhass>
yeah it does, but that's a heuristic while with concat you can guarantee it
vt102 has joined #ruby
Schmidt has joined #ruby
<jhass>
idk whether MRI does it but in theory concat could also do a single memcopy
<tuor>
sry.
j4cknewt has quit [Remote host closed the connection]
<Mon_Ouie>
If you need to insert 1000 elements in an array whose capacity was initially 16 it will have to increase the buffer's size several times. #concat should only need to do it once.
shredding has joined #ruby
omegamike has joined #ruby
doertedev has joined #ruby
jbw has quit [Ping timeout: 246 seconds]
<yorickpeterse>
Computer says no
<yorickpeterse>
it's actually a tad slower
ldnunes has joined #ruby
<yorickpeterse>
as in, using reverse_each it runs at 3258 iterations/sec
<yorickpeterse>
using visit.concat(current.children.to_a.reverse) it runs at 3033 iterations/sec
<jhass>
as said there's an expected transition point, you probably bench with small arrays
<yorickpeterse>
No, it's 10 MB of XML with in total....
<jhass>
and thus the .reverse becomes more expensive
lele|w has quit [Remote host closed the connection]
<tuor>
[k-_, ^^ o man. yeas this would have save some time^^
DaniG2k has quit [Ping timeout: 250 seconds]
bronson has quit [Ping timeout: 252 seconds]
juanpaucar has joined #ruby
thisirs has joined #ruby
freerobby1 has joined #ruby
<[k-_>
tuor: you already used the unless modifier in line 10, why not for line 8 too?
dgutierrez1287 has quit [Remote host closed the connection]
freerobby has quit [Read error: Connection reset by peer]
hinbody has quit [Read error: Connection reset by peer]
<jhass>
tuor: .each on an empty array shouldn't be more expensive than comparing it to an empty array or even calling .empty?, just get rid of that silly unless there
freerobby1 has quit [Client Quit]
<tuor>
ok.
<tuor>
-> jhass
<tuor>
[k-_, the line would be longer the 80 letters...
<jhass>
tuor: so, that's the elegant recursive solution, but not it'll blow up if your tree depth exceeds your stack size
<jhass>
*note
<tuor>
jhass, the tree depth should normaly be max at 3 level or very max 5
<[k-_>
use a λ!
<jhass>
then it's fine
<[k-_>
ugh the macro striked again!
<jhass>
[k-_: what for?
<[k-_>
recursive!
<jhass>
[k-_: stop blabbering nonesense
blackmes1 has joined #ruby
<yorickpeterse>
They did too much Haskell
<tuor>
[k-_, I don't get what you say. Can you tell me what I have to search online for understanding what you write?
<yorickpeterse>
They've gone mad
dorei has joined #ruby
<[k-_>
dont lambdas not produce so much stack
danzilio_ has joined #ruby
<jhass>
tuor: I'd move the already imported check into import_template
danzilio has quit [Quit: Baiii!]
danzilio_ is now known as danzilio
jbw has quit [Ping timeout: 255 seconds]
<tuor>
jhass, ah nice idea! thx
lele|w has joined #ruby
<adaedra>
[k-_: lambda
jbw has joined #ruby
<jhass>
or as return if to the start, you probably don't need to bother checking deps if you already imported
whippythellama has joined #ruby
<jhass>
[k-_: no, Proc#call is a normal method call
tubuliferous_ has joined #ruby
<jhass>
no TCO at all in a normal MRI build
<tuor>
jhass, yes. Then i does a litle less disk IO. But I don't realy know which would be faster. Both is ok.
<Mon_Ouie>
And those recursive calls aren't tail calls anyway
<tuor>
To have it in import_template is nice.
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<[k-_>
i used to think that if checks were expensive
<[k-_>
and rescuing was not
<[k-_>
¯\_(ツ)_/¯
ndrei has quit [Quit: Lost terminal]
sdrew has quit [Ping timeout: 244 seconds]
ndrei has joined #ruby
<tuor>
[k-_, no checks aren't but when there is code which is not need, then why not remove it.
<havenwood>
apeiros: i guess i should make it an executable ping
nateberkopec has joined #ruby
<yorickpeterse>
Though there are only 6 for a vanilla ruby -e
definiv_ has quit [Quit: Out]
raypulver has quit [Ping timeout: 260 seconds]
mistermocha has quit [Ping timeout: 264 seconds]
<havenwood>
since it can point at itself for executables=
<mikecmpbll>
could you add gem.require_paths = ['.'] ?
<mikecmpbll>
never known exactly what require_paths does :p
<havenwood>
mikecmpbll: yeah, i guess that instead of the normal `require_paths = ["lib"]` would make sense
<mikecmpbll>
bundle gem bootstrapping ftw
benlovel1 has quit [Quit: leaving]
dopamean_ has joined #ruby
definiv_ has joined #ruby
jeremy04 has quit [Read error: Connection reset by peer]
dionysus69 has quit [Ping timeout: 244 seconds]
jeremy04 has joined #ruby
Coldblackice has quit [Ping timeout: 246 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
definiv_ has quit [Client Quit]
axl__ has joined #ruby
<mikecmpbll>
speaking of rubygems and such. are there still plans for a bundler/rubygems unification?
<mikecmpbll>
pretty sure i read that once, unless it was one of those crazy dreams i have.
chouhoulis has joined #ruby
<mikecmpbll>
after a few cloudy ciders.
<apeiros>
mikecmpbll: afaik a lot of functionality of bundler has been rolled into rubygems already
<apeiros>
e.g. it can handle gemfiles
chills42 has quit [Remote host closed the connection]
<apeiros>
and .lock files
<apeiros>
and afaik they'll use the same dependency resolver (any time soon™)
<workmad3>
apeiros: ah, it can handle lock files now too... fun... I think rubygems still resolves Gemfiles differently to bundler tho... yeah
<mikecmpbll>
apeiros: really! hmpf. nice.
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
niemcu has quit [Ping timeout: 250 seconds]
<workmad3>
apeiros: can rubygems handle things like git: and path: options in Gemfile syntax?
<apeiros>
workmad3: no idea
<apeiros>
I didn't have a chance to get up to speed what gem can do
<apeiros>
or how it does it
mattwildig has joined #ruby
<workmad3>
tbh, that's the sort of thing I wouldn't expect to be rolled into rubygems, as that's really part of app provisioning rather than package/dependency management
<apeiros>
well, you can view it as just sources for your repositories
<workmad3>
it would be nice if that separation between bundler & rubygems became shaper though... shift the hardcore dependency management out into rubygems, keep the provisioning in bundler
<apeiros>
similarly how it can handle mirrors
loincloth has joined #ruby
<workmad3>
*sharper
<workmad3>
apeiros: sure, but there's then still the issue of how to pick which repo to grab from, which is the provisioning aspect ;)
abcd1234 has quit [Read error: Connection reset by peer]
<apeiros>
not sure I follow
<apeiros>
hm, no. I'm sure I don't follow. there :D
conor_ has quit [Remote host closed the connection]
shock_one has joined #ruby
rodfersou has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<workmad3>
apeiros: ok... so how would you expect something like "Grab this gem from my local gemfury fork, this one from github, and this one from rubygems, and ignore the copies that have the same 'version' in the other repos you see" in rubygems?
<workmad3>
apeiros: that's the provisioning aspect (where exactly do I get stuff from) as opposed to the dependency aspect (what do I need)
abcd1234 has joined #ruby
<workmad3>
apeiros: systems that try to do both well tend to end up sucking (maven, earlier versions of bundler, etc.)
chouhoulis has quit [Remote host closed the connection]
<apeiros>
I'm not really sure I see a reasonable distinction there
<apeiros>
something which wants to resolve dependencies must need to know where to find those dependencies in order to traverse the full tree.
chouhoulis has joined #ruby
govg has joined #ruby
<workmad3>
apeiros: sure... but it's really about saying "I know this thing can be gotten from X, Y and Z" and a dependency manager doesn't really care which... provisioning is about saying "Ignore X and Y for this package, I need to get it from Z"
abcd1234 has quit [Read error: Connection reset by peer]
saddad has joined #ruby
<workmad3>
apeiros: and then delegating to the dependency manager to resolve the dependencies of that package
<mikecmpbll>
just give me what i want
Oka has joined #ruby
decoponio has joined #ruby
abcd1234 has joined #ruby
<havenwood>
mikecmpbll: `gem install --file ./Gemfile` or shorthand `gem i -g` to create a Gemfile.lock
<workmad3>
apeiros: the distinction is much less distinct in ruby than with maven tbh... with the java setup, you can (and frequently need to) say shit like "Make this package available during compilation, make this package available during testing, include this package in a jar, but exclude these dependencies from the jar because they'll be provided by the servlet"
govg has quit [Client Quit]
Guest50 has joined #ruby
<havenwood>
mikecmpbll: To activate Gemset gems set: RUBYGEM_GEMDEPS="-"
<[spoiler]>
dopie: if you want "a" available as soon as possible, then you'd print "a" and flush, then print "b"
<[spoiler]>
if it's not that important (which it shouldn't be in most cases), then there's no need to flush
<dopie>
[spoiler], ok thank you I get it now just ran into it reading the ruby way 3rd edition and was like what is .flush !
_joes__ has joined #ruby
<[spoiler]>
Although, sometimes[citation needed] the OS might be unreasonable with how it caches the output, so some people add a flush for good measure
<dopie>
[k-_, [spoiler] thank you for explaining that
sepp2k has joined #ruby
nalley has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
luckyruby has quit [Quit: Leaving...]
<[spoiler]>
I find it somewhat ironic my IRC client can't autocomplete names with [ when my own nick contains it, lol
tubuliferous_ has joined #ruby
<dopie>
[spoiler], which client is that?
<[spoiler]>
Well, the CLI version of WeeChat does it fine (I think) I am using GlowingBear as a frontend for it though
ponga has quit [Quit: Connection closed for inactivity]
<ashleyhindle>
Harry Potter _IS_ ginny weasley
<[spoiler]>
ashleyhindle: wat
<bradland>
[spoiler]: irssi manages it fine
<[spoiler]>
works fine in cli version
<[spoiler]>
I just tested it
<dopie>
in a expression like this
snockerton has joined #ruby
bffff_ has joined #ruby
<dopie>
if foo !~ /-?\d+/ basically reads if foo does not match /-?\d+/ than do something .... what is the ~ after the !
<dopie>
do?
<bradland>
dopie: it's part of the operator
<bradland>
!~ is the operator
tubuliferous_ has quit [Ping timeout: 246 seconds]
dr3w has joined #ruby
<dopie>
ahhh ok
charliesome has quit [Quit: zzz]
<dopie>
so just ! wouldn't do antying
<dopie>
anything
<mikecmpbll>
dopie: like !=, but ~ for regex comparison rather ;)
gamename has joined #ruby
* jhass
prefers if foo[/-?\d+/].nil?
<dopie>
mikecmpbll, ahhh ok :)
<dopie>
jhass, just going through the book
<mikecmpbll>
dopie: !~ is to != as ~= is to ==
<mikecmpbll>
=~ ****
<bradland>
dopie: when you see !, you can interpret it as "not"
<bradland>
so != is "not equal"
<mikecmpbll>
i always get that operator the wrong way around.
<[spoiler]>
I think `!//` returns true
gamename has quit [Remote host closed the connection]
<[spoiler]>
#random-trivia
<dopie>
bradland, correct i just didn't know what ~ mean
<jhass>
mikecmpbll: me too, just stopped using it, there's no actual need :P
<dopie>
meant
<bradland>
!~ "not match"
niemcu has joined #ruby
gamename has joined #ruby
cschneid_ has joined #ruby
<dopie>
So I read it right even though I didn't know what the ~ was for ok cool :)
elperdut has joined #ruby
<bradland>
yep :)
<[k-_>
could not deduce a ~ Infinity
lannonbr has quit [Quit: WeeChat 1.2]
<[k-_>
dunno some shit the haskell compiler throws!
<mikecmpbll>
jhass: indeed. you can define your own =~ method on your own classes though iirc :p
marr has joined #ruby
<jhass>
no idea why that would be a reason to use it ;)
tubuliferous_ has joined #ruby
rbennacer has quit [Remote host closed the connection]
malcolmva has joined #ruby
<mikecmpbll>
me neither :/
benlovell has quit [Ping timeout: 265 seconds]
rbennacer has joined #ruby
<[spoiler]>
I thought I was the only one who confuses the ~ operators
raypulver has joined #ruby
JoshL has quit [Read error: Connection reset by peer]
snath has joined #ruby
fantasticsid has joined #ruby
hectorsq has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JoshL has joined #ruby
<elperdut>
hello all. i have been googling around for this but haven't found exactly what i'm after. . is there a 'canonical' way to make it clear that a given variable is being called from a module (mixin)? e.g. if I am calling a logger from a Logging module, I want to make it clear in my code that the log method is coming from a module, maybe something like
<elperdut>
include Logging
<elperdut>
…
<elperdut>
…
<elperdut>
logger = Logging::logger
<elperdut>
i know it's not necessary to do this in order for `logger` to be in scope. just wondering if this is a good way to make it clear.
nalley has joined #ruby
buub has quit [Ping timeout: 260 seconds]
snath has left #ruby [#ruby]
<jhass>
sounds like you shouldn't include it in the first place
<jhass>
and make the module work standalone
fullofcaffeine has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
<[spoiler]>
guys, maybe we can remember the `=~` as "equal-ish" :D
<[spoiler]>
yes, that's a good menmonic
<jhass>
why not just stop using it?
thisirs has quit [Ping timeout: 252 seconds]
<elperdut>
the purpose of including it is to access it from several classes, sort of as a singleton
tvw has quit []
<elperdut>
the old 'access one logger and config from several classes' thing
krzkrz has quit [Read error: Connection reset by peer]
allcentury has joined #ruby
<jhass>
elperdut: doesn't sound like it needs to be included?
<[spoiler]>
jhass: I rarely use it anyway, but I just wanted to have a method of remembering it :D
<[spoiler]>
elperdut: since it's a constant, you can access it from anywhere anyway
imperator has joined #ruby
catphish has joined #ruby
<elperdut>
my module is in a file called 'logging.rb', the module name is Logging inside of it. so if i do `require 'logging'` and omit the `include Logging`. then do something like `logger = Logging::logger`, i get NameError: undefined local variable or method
youch has joined #ruby
dr3w has quit [Quit: WeeChat 1.2]
ssb123 has joined #ruby
<[spoiler]>
`def self.logger`
<catphish>
when i run "gem install bundler" i don't get a "bundle" binary in by ruby bin directory, is there something i need to do to make this happen?
<[spoiler]>
catphish: did it get installed someplace else? check the environment variables gem uses, and ~/.gemrc
<imperator>
catphish, gem env ?
<jhass>
catphish: ^ gist it
ssb123 has left #ruby [#ruby]
<catphish>
oh, i think it might be because my PATH is wrong, ie i'm accessing gem by its full path and its not in my path, or even worse, a different "gem" is in my path
<elperdut>
oh crap. I am doing something stupid I think.
centrx has quit [Quit: "You cannot fix a machine by just power-cycling it with no understanding of what is going wrong."]
h4ckurate has joined #ruby
thisirs has joined #ruby
<[spoiler]>
elperdut: then you don't need to do what you're doing tho
lapide_viridi has quit [Quit: Leaving]
<elperdut>
jhass, spoiler: thanks for your input. this disambiguates things.
chills42 has quit [Remote host closed the connection]
<elperdut>
basically just assigning logger = Logging::logger instead of using the include
<catphish>
imperator: jhass: i think i see the problem, i have an RVM installation, gem is using that "INSTALLATION DIRECTORY: /home/charlie/.rvm/gems/ruby-2.1.5" instead of the version of ruby i'm actually executing
<elperdut>
(that makes me wonder - what is the value of the include statement over simply doing a 'require' and then using a qualified variable name instead?)
<jhass>
elperdut: include is essentially Ruby's way to do multiple inheritance
<catphish>
the shell path points to a clean new version of ruby, but gem is picking up some RVM paths
dgutierrez1287 has quit [Ping timeout: 255 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
[Butch] has joined #ruby
dr3w has quit [Remote host closed the connection]
<jhass>
elperdut: module CommonBehavior; end; module MoreCommonBehavior; end; class A; include CommonBehavior; end, class B; include CommonBehavior; include MoreCommonBehavior; end;
dr3w has joined #ruby
<[k-_>
please no
h4ckurate has quit [Client Quit]
<catphish>
why would my RVM environment be leaking into my new ruby environment? environment variables?
shock_one has quit [Remote host closed the connection]
apofis has joined #ruby
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest50 has joined #ruby
halcyone3 has quit [Ping timeout: 246 seconds]
<brain_shim>
If I have #<MyClass:0x401b3bc8>, how can I get the instance from that?
<jhass>
brain_shim: that's not a valid ruby literal
<jhass>
what do you really have
<jhass>
or elaborate on what makes you say you "have #<MyClass..."
<brain_shim>
A stack trace saying that: undefined method `my_attribute' for #<ActiveSupport::HashWithIndifferentAccess:0x007fc9563ce8b8> and I'm trying to pin down the object it's associated to.
<jhass>
it should have a line number and a filename
<brain_shim>
ah yes
mdavid613 has joined #ruby
<[k-_>
it is not possible to trace it down since errors crash the interpreter (unless you rescue it). if you do rescue it, you have to do it programmatically.
einarj has joined #ruby
bhorn1|away is now known as bhorn1
withnale_ has quit [Ping timeout: 256 seconds]
rikkipitt has joined #ruby
plains has joined #ruby
darkf has quit [Quit: Leaving]
conor_ has quit [Remote host closed the connection]
rehat_ has joined #ruby
einarj has quit [Ping timeout: 250 seconds]
conor_ has joined #ruby
lannonbr has quit [Quit: WeeChat 1.2]
sarkyniin has joined #ruby
Yiota has joined #ruby
tjohnson has joined #ruby
greenarrow has quit [Quit: 500]
xxneolithicxx has joined #ruby
xxneolithicxx has quit [Max SendQ exceeded]
CanTonic has quit [Read error: Connection reset by peer]
amclain has joined #ruby
dr3w has quit [Remote host closed the connection]
dr3w has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
paulcsmith___ has quit [Quit: Be back later ...]
terlar has quit [Ping timeout: 245 seconds]
xxneolithicxx has joined #ruby
mikecmpbll has quit [Ping timeout: 245 seconds]
renderfu_ has quit [Remote host closed the connection]
renderful has joined #ruby
rideh has quit [Quit: zap]
troyready has quit [Quit: Leaving]
loincloth has joined #ruby
Zai00 has quit [Quit: Zai00]
flegercovateam has quit [Ping timeout: 246 seconds]
hectorsq has joined #ruby
anisha has quit [Quit: Leaving]
baroquebobcat has joined #ruby
casadei_ has quit [Remote host closed the connection]
platzhirsch has joined #ruby
CorySimmons has quit [Quit: Bye!]
wheresmyjetpack has joined #ruby
apofis has quit [Remote host closed the connection]
flegercovateam has joined #ruby
pdoherty has joined #ruby
stan has quit [Ping timeout: 244 seconds]
c0m0 has quit [Ping timeout: 265 seconds]
baroquebobcat has quit [Client Quit]
polpak has joined #ruby
_blizzy_ has quit [Ping timeout: 246 seconds]
hanmac has quit [Ping timeout: 246 seconds]
rideh has joined #ruby
DroidBurgundy has joined #ruby
tkuchiki has quit [Remote host closed the connection]
atomical has joined #ruby
tkuchiki has joined #ruby
mikecmpbll has joined #ruby
troyready has joined #ruby
ssb123 has quit []
jschoolcraft has joined #ruby
The_Phoenix has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
fantazo has joined #ruby
conor__ has joined #ruby
nveselinov has quit [Quit: Connection closed for inactivity]
skade has quit [Quit: Computer has gone to sleep.]
pietr0 has joined #ruby
paulcsmith___ has joined #ruby
casadei_ has joined #ruby
dimasg has joined #ruby
hanmac has joined #ruby
fullofcaffeine has joined #ruby
gambl0re has joined #ruby
ferhaty has joined #ruby
Violentr has quit [Ping timeout: 264 seconds]
conor_ has quit [Ping timeout: 255 seconds]
sdwrage has joined #ruby
swills has quit [Quit: leaving]
dr3w has quit [Read error: Connection reset by peer]
serivich has quit [Ping timeout: 250 seconds]
paulcsmith___ has quit [Quit: Be back later ...]
tomphp_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hectorsq has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
paulcsmith___ has joined #ruby
paulcsmith___ has quit [Client Quit]
apofis has joined #ruby
kriskropd has quit [Ping timeout: 240 seconds]
dopie has quit [Quit: This computer has gone to sleep]
d2dchat has joined #ruby
chuy has quit [Ping timeout: 256 seconds]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
milesforrest has joined #ruby
tkuchiki has quit [Remote host closed the connection]
c0m0 has joined #ruby
ex0ns has quit [Quit: leaving]
apofis has quit [Ping timeout: 264 seconds]
ex0ns has joined #ruby
kriskropd has joined #ruby
NeverDie has joined #ruby
devoldmx has joined #ruby
saddad has quit [Ping timeout: 265 seconds]
sphex has quit [Ping timeout: 246 seconds]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
colstrom has joined #ruby
* colstrom
waves.
keeguon has quit [Quit: keeguon]
<adaedra>
friend \o/
malconis has joined #ruby
<havenwood>
hellooo
malconis has quit [Remote host closed the connection]
sphex has joined #ruby
chuy has joined #ruby
malconis has joined #ruby
bricker has joined #ruby
omfgtora is now known as Va1eness
<colstrom>
\o/
<shevy>
time to party
<havenwood>
\o /o o/
devoldmx has quit [Ping timeout: 246 seconds]
safeforge has joined #ruby
crankharder has quit [Ping timeout: 250 seconds]
hectorsq has joined #ruby
lannonbr has joined #ruby
blackmes1 has joined #ruby
iamjarvo has joined #ruby
Va1eness is now known as omFgtora
omFgtora is now known as omfgtora
omfgtora is now known as omfgToRA
khebbie has joined #ruby
DLSteve has joined #ruby
lwu has quit [Ping timeout: 252 seconds]
lwu has joined #ruby
gamename has quit []
dr3w has joined #ruby
MatthewsFace has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
scottschecter has quit [Quit: Leaving]
f4cl3y__ has quit [Ping timeout: 260 seconds]
safeforge has quit [Remote host closed the connection]
stryek has joined #ruby
gambl0re has quit [Ping timeout: 240 seconds]
gambl0re has joined #ruby
ferhaty has quit []
fullofcaffeine has joined #ruby
Agoldfish has joined #ruby
khebbie has quit [Remote host closed the connection]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
TheBrayn has joined #ruby
TheBrayn has quit [Remote host closed the connection]
kies^ has quit [Ping timeout: 260 seconds]
mistermocha has joined #ruby
vickleton has joined #ruby
dgutierrez1287 has joined #ruby
conor__ has quit [Remote host closed the connection]
gix has joined #ruby
oleksandriuzikov has joined #ruby
conor_ has joined #ruby
<miah>
yay friday-hugs
skade has joined #ruby
juanpaucar has quit [Remote host closed the connection]
jwaldrip has joined #ruby
JoshL has quit [Ping timeout: 265 seconds]
einarj has quit [Remote host closed the connection]
mistermocha has quit [Ping timeout: 256 seconds]
jerius has quit [Quit: /quit]
jenrzzz has joined #ruby
Jackneill has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
xelim has quit [Remote host closed the connection]
jwaldrip has quit [Ping timeout: 250 seconds]
dimasg has quit [Ping timeout: 260 seconds]
jwaldrip has joined #ruby
rakm has joined #ruby
yh has quit [Ping timeout: 245 seconds]
elperdut has joined #ruby
TheBrayn has joined #ruby
JoshL has joined #ruby
riffraff has quit [Quit: Leaving]
matugm has joined #ruby
iamninja has joined #ruby
jwaldrip has quit [Ping timeout: 256 seconds]
dgutierrez1287 has quit [Remote host closed the connection]
imperator has left #ruby ["Leaving"]
cmisenas has joined #ruby
jwaldrip has joined #ruby
conor_ has quit [Remote host closed the connection]
jschoolcraft has quit [Quit: peace]
skade has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dstarh has joined #ruby
skade has quit [Client Quit]
dgutierrez1287 has joined #ruby
leafybasil has quit [Remote host closed the connection]
safeforge has joined #ruby
Iskarlar has joined #ruby
AlexRussia has quit [Read error: Connection reset by peer]
jwaldrip has quit [Ping timeout: 256 seconds]
postmodern has joined #ruby
freerobby has quit [Quit: Leaving.]
relix has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
rideh has quit [Quit: zap]
DoubleMalt has quit [Remote host closed the connection]
graydot has joined #ruby
dgutierrez1287 has joined #ruby
jwaldrip has joined #ruby
rideh has joined #ruby
thisirs has quit [Ping timeout: 252 seconds]
<colstrom>
So... brain fuzz today leaves me with a question: how do I call `.methods` on the `main` object?
halcyone3 has joined #ruby
ramfjord has joined #ruby
<colstrom>
For instance, if I `def foo`, outside of a module or class, it gets defined on something... `self.to_s` in pry returns 'main', which makes sense as the top-level object.
<[k-_>
>> self.methods
<ruboto>
[k-_ # => [:to_s, :inspect, :nil?, :===, :=~, :!~, :eql?, :hash, :<=>, :class, :singleton_class, :clone, :dup, ...check link for more (https://eval.in/413829)
<[k-_>
tada!
<colstrom>
And I can call `self.methods` from that context.
bronson has joined #ruby
<colstrom>
But... if I'm calling that from inside a class, `self` changes scope, right?
AlexRussia has joined #ruby
<colstrom>
So how to explicitly reference `main` from another scope?
Blaguvest has joined #ruby
<[k-_>
>> $a = self; class Foo; def bar; puts $a; end end; Foo.new.bar
<colstrom>
Bingo. That's what I was looking for, I think.
<apeiros>
though, IMO if you want to reference main, you're doing something bad.
noethics has joined #ruby
jwaldrip has quit [Ping timeout: 256 seconds]
<apeiros>
(and it'd be TOPLEVEL_BINDING.receiver)
<colstrom>
apeiros: Wanting to trace changes to that object over the life of a program, for curiousity.
<[k-_>
set_trace_func ( ͡° ͜ʖ ͡°)
<colstrom>
Sure, I could use TracePoint to do it.
<colstrom>
And normally that's where I'd go.
basmoura has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
devoldmx has joined #ruby
<colstrom>
But I'm exploring right now, and figured I'd look at other options.
<colstrom>
Adventure time, right? ^_^
* apeiros
draws unicode+xterm256color boxes in the terminal - because friday :D
dopie has joined #ruby
<miah>
<colstrom>
Thanks for the direction. Not enough sleep last night, brain super fuzzy today.
<colstrom>
:highfive:
jwaldrip has joined #ruby
AlexRussia has quit [Read error: Connection reset by peer]
bruno- has quit [Ping timeout: 260 seconds]
towski_ has quit [Remote host closed the connection]
towski_ has joined #ruby
devoldmx has quit [Ping timeout: 244 seconds]
frem has joined #ruby
jwaldrip has quit [Ping timeout: 244 seconds]
eL_bAmba has joined #ruby
jwaldrip has joined #ruby
aeontech has joined #ruby
Marsupermammal has joined #ruby
momomomomo has joined #ruby
Mendenhall has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
jwaldrip has quit [Ping timeout: 240 seconds]
jwaldrip has joined #ruby
Marsupermammal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lukas has joined #ruby
triangles has quit [Ping timeout: 260 seconds]
_blizzy_ has joined #ruby
<lukas>
hi, i was watching the talk RedDotRuby 2015 - Keynote: Super Dry Ruby by Yukihiro 'Matz' Matsumoto and it mentioned that ruby will have new concurrency models. will the borrow/share be similar to what rust has? will the pipe/channel one be similar to go?
hectorsq has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rodferso1 has joined #ruby
rbennacer has joined #ruby
iamjarvo has joined #ruby
hectorsq has joined #ruby
halcyone3 has quit [Ping timeout: 240 seconds]
Give_it_a_lick has joined #ruby
cmisenas has quit [Quit: cmisenas]
ThaDick has quit [Quit: ThaDick]
rbennacer has quit [Remote host closed the connection]
snockerton has quit [Quit: Leaving.]
jerius has joined #ruby
momomomomo_ has joined #ruby
baweaver has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
momomomomo has quit [Ping timeout: 240 seconds]
momomomomo_ is now known as momomomomo
rodfersou has quit [Ping timeout: 272 seconds]
rbennacer has joined #ruby
buub has joined #ruby
framling has quit [Ping timeout: 246 seconds]
eL_bAmba has quit [Remote host closed the connection]
nofxx has joined #ruby
_blizzy_ has joined #ruby
jwaldrip has quit [Ping timeout: 260 seconds]
eL_bAmba has joined #ruby
jwaldrip has joined #ruby
juanpaucar has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
baweaver has quit [Ping timeout: 240 seconds]
snockerton has joined #ruby
juanpaucar has joined #ruby
casadei_ has quit [Remote host closed the connection]
jeremy04_ has quit [Remote host closed the connection]
Give_it_a_lick has quit [Quit: Page closed]
jeremy04 has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
platzhirsch has quit [Remote host closed the connection]
<nofxx>
Use each_with_object instead of reduce. Why rubocop?
jwaldrip has quit [Ping timeout: 264 seconds]
<jhass>
nofxx: because your block returns the accumulator?
<lannonbr>
Question, would it be a reasonable to ask about an issue with the default theme that comes with Jekyll here?
<nofxx>
jhass, makes sense now, ty ;)
<jhass>
there's a #jekyll
<lannonbr>
Okay thanks
lannonbr has quit [Quit: WeeChat 1.2]
stan has joined #ruby
gambl0re has quit [Read error: Connection reset by peer]
lannonbr has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
jwaldrip has joined #ruby
skade has joined #ruby
gambl0re has joined #ruby
mistermocha has joined #ruby
thisirs has joined #ruby
radgeRayden has joined #ruby
blue_deref has joined #ruby
freerobby has joined #ruby
Violentr has joined #ruby
einarj has joined #ruby
scripore has joined #ruby
jwaldrip has quit [Ping timeout: 260 seconds]
Zai00 has joined #ruby
hazelux has joined #ruby
JoshL has quit []
DoubleMalt has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
reset has joined #ruby
peterhu has quit [Ping timeout: 265 seconds]
einarj has quit [Ping timeout: 246 seconds]
arup_r has joined #ruby
mistermocha has quit [Ping timeout: 255 seconds]
<bnagy>
is #jruby still alive or is here a better bet?
thisirs has quit [Ping timeout: 256 seconds]
<bnagy>
drb is buggy under windows 32 vs 64 bit jre
<bnagy>
which I'm sure is just going to be oodles of fun to debug
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bradland has joined #ruby
safeforge has quit [Remote host closed the connection]
bradland has quit [Client Quit]
baweaver has joined #ruby
omegamike has quit [Remote host closed the connection]
vdamewood has joined #ruby
bradland has joined #ruby
aaeron1 has joined #ruby
bradland has quit [Client Quit]
radgeRayden_ has joined #ruby
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood>
lukas: I don't think it's been decided yet. Another possibility is something along the lines of Matz' Streem language: https://github.com/matz/streem#readme
cmisenas has joined #ruby
bradland has joined #ruby
aaeron has quit [Ping timeout: 244 seconds]
<lukas>
havenwood: i saw that
s2013 has joined #ruby
<lukas>
what seems more likely, and is there some sort of timeline?
eL_bAmba has quit [Ping timeout: 272 seconds]
nux443 has joined #ruby
rakm has joined #ruby
<eam>
darceee: you're sending two different queries
<eam>
uri != uri.path
radgeRayden has quit [Ping timeout: 246 seconds]
<eam>
your first and last queries don't send any GET args
<eam>
(so they don't appear in the redirect either)
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
how about dos
elperdut has quit [Quit: Leaving.]
momomomomo has quit [Quit: momomomomo]
last_staff has quit [Read error: Connection reset by peer]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skade has joined #ruby
rdark has quit [Quit: leaving]
banister has joined #ruby
cmisenas has quit [Quit: cmisenas]
rodferso1 has quit [Ping timeout: 255 seconds]
<eam>
shevy: totes supports dos
wheresmyjetpack has quit [Quit: Konversation terminated!]
aaeron1 has quit [Quit: Leaving.]
gix has joined #ruby
Jarboe has joined #ruby
rodfersou has joined #ruby
<eam>
mabye only via llvm -> djgpp though
<shevy>
what is a totes
<shevy>
sounds like something to eat
allcentury has quit [Ping timeout: 265 seconds]
rikkipitt has quit [Remote host closed the connection]
Musashi007 has joined #ruby
iateadonut has quit [Quit: Leaving.]
phutchins has quit [Ping timeout: 245 seconds]
allcentu1 has joined #ruby
rikkipitt has joined #ruby
allcentu1 has quit [Client Quit]
hazelux has quit []
decaff has joined #ruby
elperdut has joined #ruby
cornerma1 has joined #ruby
scroff has quit [Quit: scroff]
robbyoconnor has quit [Ping timeout: 264 seconds]
cornerman has quit [Read error: Connection reset by peer]
cornerma1 is now known as cornerman
rbennacer has quit [Remote host closed the connection]
suchness has quit [Ping timeout: 264 seconds]
leafybasil has joined #ruby
Musashi007 has quit [Quit: Musashi007]
hinbody has quit [Ping timeout: 246 seconds]
jackjackdripper has joined #ruby
safeforge has quit [Remote host closed the connection]
hazelux has joined #ruby
fantazo has quit [Ping timeout: 244 seconds]
Guest50 has joined #ruby
mistermocha has joined #ruby
Zai00 has joined #ruby
momomomomo has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
Max-P has joined #ruby
momomomomo has quit [Client Quit]
Max-P has left #ruby ["undefined"]
jackjackdripper has quit [Client Quit]
jackjackdripper has joined #ruby
mistermocha has quit [Ping timeout: 255 seconds]
scroff has joined #ruby
hinbody has joined #ruby
blackmes1 has joined #ruby
apofis has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
rikkipitt has quit [Remote host closed the connection]
khebbie has joined #ruby
pawnbox has joined #ruby
HoloIRCUser5 has joined #ruby
Aderium has joined #ruby
<lukas>
it's totally but in a white girl way
dimasg has joined #ruby
<lukas>
*basic white girl
HoloIRCUser5 has quit [Read error: Connection reset by peer]
baweaver has quit [Remote host closed the connection]
scroff has quit [Quit: WeeChat 0.4.2]
vdamewood has quit [Ping timeout: 250 seconds]
skade has quit [Ping timeout: 255 seconds]
decaff has quit [Quit: Leaving...]
arooni-mobile has joined #ruby
arooni has joined #ruby
dimasg has quit [Ping timeout: 246 seconds]
pawnbox has quit [Remote host closed the connection]
jwaldrip has joined #ruby
drbrain has quit [Remote host closed the connection]
pawnbox has joined #ruby
scroff has joined #ruby
atomical has joined #ruby
scroff has quit [Client Quit]
devoldmx has joined #ruby
aaeron has joined #ruby
j4d has joined #ruby
scroff has joined #ruby
drbrain has joined #ruby
freerobby has joined #ruby
Mendenhall has quit [Ping timeout: 265 seconds]
conor_ has joined #ruby
j4d has quit [Client Quit]
nux443 has quit [Quit: leaving]
devoldmx has quit [Ping timeout: 265 seconds]
umgrosscol has quit [Quit: Quit]
aeontech has quit [Quit: aeontech]
Cust0sLim3n has joined #ruby
EllisTAA has joined #ruby
myztic has quit [Ping timeout: 250 seconds]
<EllisTAA>
does anyone know if there is a materialize channel?
Mendenhall has joined #ruby
aeontech has joined #ruby
kies^ has quit [Remote host closed the connection]
j4d has joined #ruby
buub has joined #ruby
<Ox0dea>
EllisTAA: No one here is particularly incorporeal?
freerobby has quit [Quit: Leaving.]
chouhoulis has quit [Remote host closed the connection]
hectorsq has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cball has quit [Quit: Leaving]
uber has quit [Ping timeout: 244 seconds]
DoubleMalt has quit [Ping timeout: 260 seconds]
scripore has quit [Quit: This computer has gone to sleep]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gard has joined #ruby
j4d has quit [Client Quit]
Synthead has joined #ruby
DoubleMalt has joined #ruby
robbyoconnor has joined #ruby
<eam>
lukas: embrace my culture
apofis has quit [Read error: Connection reset by peer]
<lukas>
eam: wanna get some uggs and go to starbucks?
apofis has joined #ruby
<eam>
do I ever
<Ox0dea>
EllisTAA: Well, no, I suppose we all are, after a fashion.
darceee has quit [Quit: Page closed]
scripore has joined #ruby
<EllisTAA>
ox0dea: so opaque
khebbie has quit [Remote host closed the connection]
<Ox0dea>
EllisTAA: Most dictionaries are open 24/7.
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
millerti has joined #ruby
<lukas>
eam: pumpkin spice season is coming!
jgpawletko has joined #ruby
but3k4 has quit [Read error: Connection reset by peer]
<millerti>
In Ruby, can I index an enumerable? I want to get the n'th element. I can convert it to an array and index that, but is there a more direct way?
<millerti>
Ox0dea: In C, I'd write a loop over the array, keeping track of which index has the highest value. However, in Ruby, other approaches are faster and more compact.
<Ox0dea>
Yes, see above. :)
<Ox0dea>
You can't determine the maximum without checking every element.
cmisenas has joined #ruby
<millerti>
Ox0dea: But then I realized that I wanted to max among the even indices and the max among the odd indices.
r0bby_ has joined #ruby
chipotle has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
rbennacer has joined #ruby
apofis has quit [Remote host closed the connection]
<millerti>
Ox0dea: I'm sure I'm doing it stupidly. :)
<shevy>
you like global variables like $10 after all
snockerton has quit [Quit: Leaving.]
gard has quit [Ping timeout: 256 seconds]
ddv has quit [Ping timeout: 245 seconds]
towski_ has quit [Remote host closed the connection]
ddv has joined #ruby
<postmodern>
what is a good library to validate correctness of markdown? kramdown seems to silently give up on malformed markdown
pauly_oc has quit [Ping timeout: 244 seconds]
towski_ has joined #ruby
cschneid_ has quit [Remote host closed the connection]
myztic has joined #ruby
matugm has joined #ruby
towski_ has quit [Remote host closed the connection]
juanpaucar has joined #ruby
juanpaucar has quit [Remote host closed the connection]
juanpauc_ has joined #ruby
Mendenhall has joined #ruby
towski_ has joined #ruby
<bazbing80>
Syntax for Thor's no method is no?(statement, color=nil) and yet no? 'hello', 'yellow' prints yellowhello to the console and it's white, not yellow
axl_ has quit [Quit: axl_]
axl_ has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
MyMind has joined #ruby
niemcu has quit [Ping timeout: 252 seconds]
duderonomy has joined #ruby
gh1jk789 is now known as nerdthattwerks
Matthews_ has quit [Ping timeout: 265 seconds]
_blizzy_ has quit [Ping timeout: 246 seconds]
Sembei has quit [Ping timeout: 252 seconds]
rehat_ has quit [Remote host closed the connection]
<Ox0dea>
Is there some clever way to implement to_base(n) tail-recursively without #unshift?
<BraddPitt>
w 4
<darix>
Ox0dea: to_i(n) ?
c0m0 has quit [Ping timeout: 244 seconds]
DifferentLambda has quit [Remote host closed the connection]
bmurt has quit []
centrx has quit [Quit: "You cannot fix a machine by just power-cycling it with no understanding of what is going wrong."]
<Ox0dea>
darix: I'm asking about to_s(n) in this case.
clarkenciel has joined #ruby
Yiota has joined #ruby
Yiota has quit [Max SendQ exceeded]
canternet has joined #ruby
symm- has quit [Read error: Connection reset by peer]