<ght>
I suppose the question is, if ruby executes a comparison statement with logical ORs, if the first parameter is true, does it continue to evaluate the further statements?
<dorei>
ght: if the left side of || is true then the right side is not evaluated
<ght>
dorei: Thank you.
pengin_ has quit [Remote host closed the connection]
DEA7TH has quit [Ping timeout: 276 seconds]
jonatin has joined #ruby
FernandoBasso has quit [Quit: leaving]
Rickmasta has joined #ruby
Lewix has quit [Remote host closed the connection]
Spami has joined #ruby
lidenskap has quit [Remote host closed the connection]
Synthead has quit [Quit: Leaving]
vivekananda has quit [Quit: Leaving]
ascarter has joined #ruby
vivekananda has joined #ruby
mleung has quit [Quit: mleung]
quimrstorres has joined #ruby
laurentide has joined #ruby
mistermocha has quit [Remote host closed the connection]
djmittens has joined #ruby
nfk has joined #ruby
mr_rich101 has quit [Ping timeout: 255 seconds]
felipecvo has joined #ruby
quimrstorres has quit [Ping timeout: 272 seconds]
djmittens has quit [Ping timeout: 256 seconds]
phutchins has quit [Ping timeout: 245 seconds]
dopie has joined #ruby
ag4ve_ has joined #ruby
havenwood has joined #ruby
yaw has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MasterPiece has quit [Quit: Leaving]
DEA7TH has joined #ruby
mr_rich101 has joined #ruby
sevvie has joined #ruby
fgo has joined #ruby
yfeldblum has quit [Remote host closed the connection]
Guest44041 has quit [Remote host closed the connection]
yaw has quit [Ping timeout: 250 seconds]
yfeldblum has joined #ruby
nobitanobi has joined #ruby
zz_barkerd427 is now known as barkerd427
nobitanobi has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 250 seconds]
rodfersou has quit [Quit: leaving]
tomphp_ has joined #ruby
_blizzy_ has joined #ruby
redlegion has quit [Quit: leaving]
chrishough has joined #ruby
chrishough has quit [Client Quit]
bricker has quit [Ping timeout: 264 seconds]
dopie has quit [Quit: This computer has gone to sleep]
bim has joined #ruby
Lewix has joined #ruby
DEA7TH has quit [Ping timeout: 252 seconds]
bim is now known as Guest44350
dvlwrk has quit [Quit: Leaving]
gregf has quit [Quit: WeeChat 1.0.1]
ebbflowgo has quit [Read error: Connection reset by peer]
ebbflowgo has joined #ruby
felipecvo has quit [Quit: Leaving...]
ascarter has joined #ruby
gregf has joined #ruby
nfk|laptop has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
baweaver has quit [Remote host closed the connection]
Spami has joined #ruby
yfeldblum has quit [Remote host closed the connection]
RegulationD has joined #ruby
baweaver has joined #ruby
tomphp_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood>
TheMysticWyvern: Ask if a Fixnum is greater than another Numeric, or ask a String if it's greater than another String. But a String doesn't know if it's greater than a Fixnum or vice versa.
<user121212>
I'm learning about closures and I would like see the use cases which I solve using it, Can anybody point me some code sample of the usage of closures?
<shevy>
apparently it is useful somewhere, somehow
<mozzarella>
I use them quite often
<user121212>
@shevy okay, recently I talked JavaScripter and he talk about lot about closures, I thought I was the only guy who didn't used closures in the code.
Spami has quit [Quit: This computer has gone to sleep]
tcrypt has quit [Remote host closed the connection]
<mozzarella>
sometimes I have to make multiple function calls and they're very similar, except for a few arguments, I'll just create a closure and use that
<mozzarella>
sometimes I return them from functions
<shevy>
an abstract explanation
<shevy>
note that he did not provide us with code here user121212 :)
<shevy>
user121212 I guess rack is built around the wholeness of an API that can be .call()-ed
ramfjord has quit [Ping timeout: 248 seconds]
<mozzarella>
just use them when you need them user121212
<user121212>
thank you shevy and mozzarella, I will digg more into it. thank you!
Lewix_ has quit [Remote host closed the connection]
tonyhb has quit [Quit: peace]
bim has joined #ruby
bim is now known as Guest78573
connor_goodwolf has joined #ruby
elaptics_away is now known as elaptics
riotjones has joined #ruby
chinmay_dd_ has joined #ruby
tvw has joined #ruby
Guest78573 has quit [Ping timeout: 245 seconds]
loadhigh has quit [Quit: Disconnecting]
loadhigh has joined #ruby
chinmay_dd has quit [Ping timeout: 255 seconds]
Channel6 has quit [Quit: Leaving]
<shevy>
hanmac what are you doing lately
<shevy>
any new code? aside from gemtree
riotjones has quit [Ping timeout: 265 seconds]
<pipework>
hanmac: Any gnu code?
<hanmac>
shevy learning for driver licence ... after i publish some new decks i did with forge, i might work on rwx again ... there is a new widget i want to add
Limix has quit [Quit: Limix]
icebourg has quit []
Alina-malina has joined #ruby
mikekellyio has quit [Quit: Connection closed for inactivity]
thatslifeson has quit [Remote host closed the connection]
armyriad has joined #ruby
Spami has joined #ruby
lidenskap has quit [Remote host closed the connection]
Limix has joined #ruby
Limix has quit [Client Quit]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
swgillespie has joined #ruby
_blizzy_ has joined #ruby
Fingel has joined #ruby
scruple has quit [Ping timeout: 256 seconds]
<shevy>
cool
<shevy>
drive safely
<shevy>
if you car crash, nobody will be able to understand the ruby code to wxwidgets
agent_white has quit [Quit: nght]
dfinninger has quit [Remote host closed the connection]
AlexRussia has joined #ruby
chinmay_dd_ has quit [Quit: Leaving]
serivich has joined #ruby
simonewestphal has joined #ruby
<simonewestphal>
question to blocks : is it right that 1) block refers to variables in the context it was defined
<simonewestphal>
# 1) block refers to variables in the context it was defined
<simonewestphal>
# 2) block introduce their own scope for the block parameters
<simonewestphal>
# 2) no return from block, only from method ?
<shevy>
you can not use a return yeah
yfeldblum has quit [Read error: Connection reset by peer]
<ruboto>
shevy # => unexpected return (LocalJumpError) ...check link for more (https://eval.in/318508)
<shevy>
btw simonewestphal why did you use "# 2)" twice ;)
<simonewestphal>
But how can I pass the value from the block to the method and return this ?
yfeldblum has joined #ruby
<shevy>
many ways. you could always store results in a variable defined outside the scope of the block
dvlwrk has quit [Ping timeout: 245 seconds]
<shevy>
or use a method, and return something from it
<simonewestphal>
@shevy was late last night….. ;-)
<shevy>
you might even use a proc object and use .call on it
<shevy>
might be easier if you have a specific use case, like input and -> desired output
fedexo has quit [Ping timeout: 245 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
slackbotgz has quit [Remote host closed the connection]
Fingel has quit [Ping timeout: 245 seconds]
EasyCo has quit [Quit: Connection closed for inactivity]
Ellis has joined #ruby
<hanmac>
simonewestphal: if you want to "return" from a block, use "break" ... (except its a lambda)
<simonewestphal>
But if I want to make it with a block how does it work ?
<Ellis>
i want to write a program that takes an audiofile and returns how many seconds in the file don’t have any sound, is this doable with ruby and is it relatively easy?
<simonewestphal>
def output(&block)
<simonewestphal>
c = yield
<simonewestphal>
return c
<simonewestphal>
end
<simonewestphal>
var = 2
<simonewestphal>
c = output {var*=var;puts "now #{var}"}
<simonewestphal>
puts "#{c}"
<simonewestphal>
This don’t work
klaas_ has joined #ruby
<shevy>
simonewestphal you use yield to tap into a block
robert_|disconne has joined #ruby
A205B064 has joined #ruby
<shevy>
I think you possibly get confused by yield versus &
musashi1 has quit [Ping timeout: 265 seconds]
ebbflowgo_ has joined #ruby
<shevy>
yield is much easier to understand
<simonewestphal>
Before I tried this
<shevy>
nono
<simonewestphal>
def output(&block) # !> method redefined; discarding old output
<simonewestphal>
@b = block# turns a block into a closure of sorts
<zotherstupidguy>
slax was one of the first linux i used, on usb it rocks
<shevy>
it does not matter if you use SLAX or something else btw, I simply found the approach from SLAX technically superior to old-school remastering of an .iso
colorisco has quit [Ping timeout: 250 seconds]
<shevy>
yeah
<shevy>
slax rocks
<zotherstupidguy>
but i want ubuntu as its easy to install stuff, otherwise i might go for a radically diff approach archlinux or gentoo, and have my chances
jimms has joined #ruby
<shevy>
:)
jimms_ has quit [Read error: Connection reset by peer]
<shevy>
I guess ubuntu is simple enough, as long as you remain in it
hanmac has joined #ruby
<shevy>
it gets more complicated when you wish to have multiple versions of the same program, like multiple different ruby versions
<zotherstupidguy>
its feels wrong to stay in the ubuntu realem while others are playing with cool stuff
<zotherstupidguy>
we got rbenv for this
<shevy>
dunno, it's like a trade off - things that work, versus bleeding edge
jimms has quit [Read error: Connection reset by peer]
<shevy>
right
<shevy>
but this is just for ruby
lidenskap has joined #ruby
<shevy>
what if you want to have this for all programs instead?
jimms has joined #ruby
<zotherstupidguy>
i am sure there is away, just a couple of jokes away on IRC after they help you
jeromelanteri has quit [Ping timeout: 250 seconds]
<zotherstupidguy>
i learned RTFM today
<zotherstupidguy>
and WABM :)
<shevy>
well yeah
<shevy>
gobolinux made it possible for all programs
lidenskap has quit [Remote host closed the connection]
<shevy>
unfortunately it lost its momentum when the main guys behind it, who were students from brazil, moved onto working full time, and other things :(
<shevy>
I still dream of combining (1) gobolinux (2) SLAX and (3) NixOS
<shevy>
all into one thing!
<zotherstupidguy>
cool idea!
Spami has quit [Quit: This computer has gone to sleep]
dling` has quit []
<shevy>
hehe
gagrio has joined #ruby
<shevy>
that is the problem... great ideas, but lack of implementation-momentum :)
towski__ has quit [Remote host closed the connection]
<zotherstupidguy>
well, we are just nodes in a greater brain, all we can really do is pulse! :)
<zotherstupidguy>
i am amazed how ppl in BSD survived!
<zotherstupidguy>
it is so demanding, and they are not friendly :) kinda sadistic
Brozo has quit [Remote host closed the connection]
<shevy>
well
<shevy>
BSD has another philosophy
<shevy>
I think they sort of got overwhelmed by the speed of the linux kernel development
<shevy>
and there are too many different BSD flavours too :\
<shevy>
I liked the netbsd philosophy
<shevy>
run everywhere, even your toaster
<zotherstupidguy>
netbsd seems nice
<shevy>
I remember some years ago, some mail on the mailing list where one guy said that linux took over
<zotherstupidguy>
they say it is used in toasters :D
qua has quit []
<zotherstupidguy>
clicks, you are not using irssi? :P
<shevy>
remember, I am a hybrid person... half-windows GUI, half-commandline
<shevy>
with irssi, I always ended up mispasting stuff
<shevy>
then people got mad when I pasted like 20 lines in a row
<zotherstupidguy>
lol
<shevy>
does this not happen to you? that you sometimes fail to adjust to a program?
lidenskap has joined #ruby
<zotherstupidguy>
it always bugged me that i can't copy paste using keyboard only in terminal
plutonic has quit [Quit: plutonic]
keen_ has joined #ruby
<shevy>
aha
jeromelanteri has joined #ruby
<shevy>
I like the mouse too
<shevy>
what editor do you use?
<zotherstupidguy>
i which there is a solution to that
<zotherstupidguy>
i use vim, but i hear emacs is better, Jim(RIP)
<zotherstupidguy>
i customized my vim, so i am kinda lazy to move on
<shevy>
aha
<shevy>
I tried to adapt to vim but I gave up
<shevy>
when my config was too long
<shevy>
I use the ancient bluefish 1.0.7 but I have finally decided to bite the bullet and maintain that branch
<shevy>
and learn C in the process as well
simonewestphal has left #ruby [#ruby]
jheg has quit [Quit: jheg]
<zotherstupidguy>
you know i have this project that i would love to kickstart, i think it is a really cool idea.
<zotherstupidguy>
bluefish!?
<shevy>
yeah
<zotherstupidguy>
neverheard of it, i am checking the website
<shevy>
I already have lots of things to do
<shevy>
like combine the best parts from other editors
vickleton has joined #ruby
<shevy>
geany has added a VTE terminal; this is cool, it's on my todo list
<shevy>
zotherstupidguy the ironic part is that the bluefish 2.x branch is worse than bluefish 1.x :\
<zotherstupidguy>
lol
<shevy>
perhaps it may be a difference in taste. people who never knew bluefish 1.x may prefer bluefish 2.x
<shevy>
like when they start to use it, and adjust to it, you see?
<zotherstupidguy>
but i think textbased editors are better
<shevy>
you mean like vim?
<zotherstupidguy>
just faster
<zotherstupidguy>
keyboard only usage! like 99%
<shevy>
I dunno, you mean faster how or where
<zotherstupidguy>
hands on the keyboard only
<shevy>
but I can copy paste with the cursor buffer much faster
<zotherstupidguy>
thats awesome
<zotherstupidguy>
you are using a terminal emulator which you can configure, and in side on of the tabs or windows or whtever u have your text editor
<shevy>
strg+g, 4,shift+arrow down to 80% of the page, strg+c - buffer is copied from line 4 to 80% of the page (I think strg is control)
<zotherstupidguy>
and near it somewhere (a keystroke away) your terminal
<shevy>
on vim this is... :4 ... and then yy or so, and the amount of lines, right? which I have to know beforehand I assume
swgillespie has joined #ruby
<zotherstupidguy>
you configure and its in your muscle memory and never care to think of it again,
<shevy>
well, I am fine with using keyboard-instructions to switch
MissionCritical has quit [Ping timeout: 272 seconds]
<shevy>
that was one part I hated - the muscle memory part
<shevy>
I want to focus on ruby code, not vim usage
<zotherstupidguy>
it takes like 2 days
<zotherstupidguy>
but you need to keep your config files with you
<shevy>
I felt that vim always tampers with my mind, even after years :)
ponga has joined #ruby
<shevy>
yeah, the config file of vim is quite big
<shevy>
lemme find my current vimrc
<zotherstupidguy>
its just awesome to have your wireless keybaord and relax and do everything you want, mouse is annoying, you have to reach for it and then see where the cursor is and then try to go ..........
<shevy>
zotherstupidguy this one but I have not updated it in 10 years, and I only ported like 10% of my old vimrc so far http://pastie.org/pastes/10112959/text - a ruby script autogenerates this
<shevy>
I am still porting my old vimrc step by step though
<shevy>
one day I will have a fully working vimrc again
dfinninger has joined #ruby
relix has joined #ruby
<zotherstupidguy>
are u contributing to bluefish? C ?
<zotherstupidguy>
wow, thats a big file
<shevy>
on my modified branch yeah
<zotherstupidguy>
well commented though!
<shevy>
but I am still not good at all in C
jheg has joined #ruby
<shevy>
I made minor modifications,
<shevy>
mostly just disabling annoying widgets that I hate :D
<shevy>
gtk c is quite messy
<zotherstupidguy>
a good C project would be a terminal emulator :)
<zotherstupidguy>
lol
<shevy>
well, can't you use vte?
juanpablo___ has joined #ruby
<shevy>
there are ruby bindings to gnome, I remember having used vte terminals from ruby code alone
keen_ has quit [Ping timeout: 264 seconds]
_2_rosa has joined #ruby
<zotherstupidguy>
i will install
<_2_rosa>
holaa;)
<shevy>
the ruby bindings are quite ok
<shevy>
if you use ruby, and also want GUIs, consider using either ruby-gnome, ruby-qt, or hanmac's new ruby-wxwidgets port (rxw)
<hanmac>
"everything i did, i did for the instances of my classes"
<Nilium>
I still haven't finished watching that.
<zotherstupidguy>
its epic
nobitanobi has joined #ruby
<Nilium>
It's kind of a slog 'cause it keeps trying to mix annoying family drama with actually interesting crime drama.
<zotherstupidguy>
bryan cranston is amazing
<zotherstupidguy>
the director exceptional
<Nilium>
Yeah, although I occasionally have trouble with it because I just see the dad from Malcom in the Middle.
DerisiveLogic has quit [Ping timeout: 250 seconds]
<zotherstupidguy>
i watched the whole series and i can say he did a great job,
Mission-Critical is now known as MissionCritical
lidenskap has quit [Ping timeout: 250 seconds]
RegulationD has joined #ruby
<zotherstupidguy>
he was great in minm, but breakingbad and aaron paul, its a story about survival
ramfjord has joined #ruby
<zotherstupidguy>
you know ppl get sick when they are least expecting it
<zotherstupidguy>
and your world is changed forever
bkxd has quit [Ping timeout: 250 seconds]
<zotherstupidguy>
it happens, its a fact of life
shoutsid has joined #ruby
<zotherstupidguy>
you know when i first saw fightclub i thought it is not a good action movie! and i was kinda right, because it is not an action movie
<wasamasa>
lol
<zotherstupidguy>
same, breakingbad is not about the criminal story
C1V0 has joined #ruby
keen_ has joined #ruby
* wasamasa
gasps
<zotherstupidguy>
:P
<wasamasa>
next thing you're gonna tell me is that Training Day is not an instructional movie for law enforcement
<wasamasa>
"When Cascioli said yes, Cascioli says Liciardello looked him in the eyes and said: "This is Training Day for f—ing real," and then instructed officers Norman and Jeffrey Walker to take him to the balcony."
<zotherstupidguy>
evil exists, yeah
<zotherstupidguy>
dont fight it,
icarus_ has quit [Ping timeout: 252 seconds]
icarus has joined #ruby
<shevy>
damn cops
<shevy>
thugs in uniform
<shevy>
you become what you fight
<shevy>
that's the story of batman The Dark Knight right?
<zotherstupidguy>
yeah ceaser
ki0 has quit [Ping timeout: 264 seconds]
<zotherstupidguy>
i always wondered if tragedy was first orginated in ancient greece, the philosphy dialogoues
* wasamasa
has watched neither movie
<zotherstupidguy>
i wonder if ppl who study acting learn or know that or not
<zotherstupidguy>
darama not tragedy
<shevy>
hmm
sagittarian has quit [Ping timeout: 252 seconds]
<shevy>
did the ancient greeks invent tragedy?
shoutsid has quit [Remote host closed the connection]
<shevy>
I am sure when you study acting, you also have to study rhetorics too, and the theater thingy of the old greeks surely is also taught, at least as the historic basis
shoutsid has joined #ruby
<Nilium>
I feel like the best burn-response to that is "no, they foresaw you."
workmad3 has joined #ruby
<zotherstupidguy>
well, i read a lot about plato and i know that his writing is like a play
<zotherstupidguy>
dialogue style
<zotherstupidguy>
so, my guess its kinda important, not only because of the style but because of the fact that philosphy can help actors idolize the world
<zotherstupidguy>
the idea of "you become what you fight"
<zotherstupidguy>
wasamasa thank you for letting me know about Absurdism
piotrj has quit [Remote host closed the connection]
<zotherstupidguy>
=)
<wasamasa>
albert camus, friedrich nietzsche and ludwig wittgenstein are the hottest philosophers
<wasamasa>
zotherstupidguy: it's derived from existentialism
lidenskap has joined #ruby
<shevy>
wasn't nietzsche insane?
<zotherstupidguy>
i have a theory about relegion related to this
<wasamasa>
zotherstupidguy: I assumed its creator to be some fed up guy, but apparently he's the french equivalent of james dean!
<zotherstupidguy>
yeah similar to nietzsche ideas
tubuliferous has quit [Ping timeout: 256 seconds]
<wasamasa>
shevy: doesn't matter, he's got an awesome mustache
<shevy>
lol
<zotherstupidguy>
nietzsche was not so hansome
<zotherstupidguy>
lol
<wasamasa>
zotherstupidguy: they had different outcomes regarding how to get something meaningful out of life
<wasamasa>
one thought it's all about keeping up the struggle, the other that it's all about being an übermensch
<zotherstupidguy>
i think that religion was the result of not being able to face challanges with the tools at hand :)
<zotherstupidguy>
thas my philopshy
systemd0wn has quit [Remote host closed the connection]
<shevy>
religion was used to explain things
<shevy>
- meteorites smashing down on earth
<shevy>
- the sadness and emptiness after the death of a loved one
<shevy>
and of course also to use as tool to expand
<shevy>
smite the infidels!
systemd0wn has joined #ruby
<shevy>
and myth building
<shevy>
like the trojan horse
<shevy>
that was such a fake story :)
<zotherstupidguy>
i think it was more like, you get sick and you can't find cure, so create the idea of a god, and idolize it as the solution to the problem and if you pray you will be ok. somthing like that
<shevy>
oh yeah that too
<shevy>
the aspect of hope
BradPitt has quit [Ping timeout: 245 seconds]
<zotherstupidguy>
you just create a magical tool that fixes your problem,
<shevy>
now we live in the age of being able to CURE EVERYTHING
<zotherstupidguy>
even if it doesnt really work, like java
<shevy>
omg java
<shevy>
it's now ranked #1 on TIOBE
<zotherstupidguy>
yeah, never underestimate hope
<zotherstupidguy>
*joking
sagittarian has joined #ruby
<shevy>
I hope java will rule the world
<shevy>
*joking
<Nilium>
I only hope that Intercal will rise up.
<zotherstupidguy>
anybody read The Singularity Is Near
<zotherstupidguy>
i just skimmed through it, but i hope to read somthing like virtual gods is the future :)
bluOxigen has quit [Ping timeout: 245 seconds]
<wasamasa>
nah
<wasamasa>
I find singularity a silly concept
piotrj has joined #ruby
<zotherstupidguy>
just the same way, in greek methology there was the god of war, god of love, god of blahblah, with the internet we can have electronic god of medicine, electronic god of politics :)
<zotherstupidguy>
we build a tool
Dude007 has quit [Read error: Connection reset by peer]
<zotherstupidguy>
god of economics,
colorisco has joined #ruby
shoutsid has joined #ruby
Dude007 has joined #ruby
piotrj has quit [Remote host closed the connection]
piotrj has joined #ruby
BradPitt has joined #ruby
startupality has joined #ruby
dfinninger has joined #ruby
<zotherstupidguy>
any idea where the ruby tokyo guys hangout on irc?
<zotherstupidguy>
anyone going to ruby kaigi this year?
Dude007 has quit [Remote host closed the connection]
dfinninger has quit [Ping timeout: 252 seconds]
sagittarian has quit [Ping timeout: 252 seconds]
icarus has quit [Ping timeout: 256 seconds]
icarus has joined #ruby
BradPitt has quit [Ping timeout: 245 seconds]
jheg has quit [Quit: jheg]
zotherstupidguy has quit [Ping timeout: 256 seconds]
AlphaAtom has joined #ruby
zotherstupidguy has joined #ruby
shoutsid has quit [Remote host closed the connection]
nhhagen has joined #ruby
BradPitt has joined #ruby
systemd0wn has quit [Read error: Connection reset by peer]
systemd0wn has joined #ruby
zotherstupidguy has quit [Ping timeout: 256 seconds]
_blizzy_ has joined #ruby
lidenskap has quit [Remote host closed the connection]
sagittarian has joined #ruby
blackmesa has joined #ruby
SouL_|_ has quit [Ping timeout: 256 seconds]
joonty has joined #ruby
_blizzy_ has quit [Ping timeout: 248 seconds]
jimms has quit [Read error: Connection reset by peer]
jimms has joined #ruby
jimms has quit [Read error: Connection reset by peer]
jimms has joined #ruby
jimms has quit [Read error: Connection reset by peer]
sagittarian has quit [Ping timeout: 252 seconds]
superspring_ is now known as superspring
Timba-as has quit [Quit: Be back later ...]
jimms has joined #ruby
bruno- has joined #ruby
bruno- is now known as Guest60291
<shevy>
to make a conditional include
<shevy>
is this syntax ok?
<shevy>
gem project: foo
<shevy>
top namespace: module Foo
decoponio has joined #ruby
<shevy>
class Bar; include Foo if Object.const_defined? :Foo; end
<shevy>
[End of Question]
ndrei has quit [Ping timeout: 252 seconds]
havenwood has quit [Remote host closed the connection]
predator117 has quit [Ping timeout: 245 seconds]
bkxd has quit [Ping timeout: 256 seconds]
<jhass>
you seem to have an awful lot of these optional dependencies, you ask about optionally loading and including stuff all the time
<jhass>
anyway, how do Foo and Bar relate? Does Foo know about Bar? Does Foo make sense without Bar?
<ytti>
maybe he's doing some sort of plugin system
<jhass>
hence my last question
bkxd has joined #ruby
Guest60291 has quit [Ping timeout: 245 seconds]
gaussblurinc1 has joined #ruby
sagittarian has joined #ruby
dvlwrk has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
predator117 has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
Mezjin has joined #ruby
IronKoopa has joined #ruby
<shevy>
I love being optional
<shevy>
why should anything fail if it could well work in both cases?
edwinvdgraaf has quit [Remote host closed the connection]
FernandoBasso has joined #ruby
<jhass>
working != being useful
<apeiros>
why would you depend on something if you don't really need it?
ndrei has joined #ruby
<shevy>
for instance, because I may want to use coloured output - or I may not
joonty has quit [Quit: joonty]
<apeiros>
and you want to detect presence and if it's present, use it, and if it's not present, then not use it?
<shevy>
that would constitute one use case
BradPitt has quit [Ping timeout: 245 seconds]
edwinvdgraaf has joined #ruby
<apeiros>
ok. const_defined? is indeed a way to detect presence.
<shevy>
take colours on KDE konsole - the ansii escape sequences used for it won't work on a default xterm
ebbflowgo has quit [Read error: Connection reset by peer]
ebbflowgo has joined #ruby
lavros_ has joined #ruby
doertedev has quit [Quit: Lost terminal]
lavros has quit [Ping timeout: 245 seconds]
juanpablo___ has joined #ruby
fgo_ has quit [Ping timeout: 264 seconds]
ndrei has quit [Ping timeout: 264 seconds]
Stalkr_ has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
juanpablo___ has quit [Ping timeout: 245 seconds]
edwinvdg_ has joined #ruby
nszceta has joined #ruby
edwinvdgraaf has quit [Ping timeout: 250 seconds]
sagittarian has quit [Ping timeout: 252 seconds]
joonty has joined #ruby
dfinninger has joined #ruby
<lxsameer>
guys, how can I get a list of all gems in current project without requiring them?
toretore has joined #ruby
dfinninger has quit [Ping timeout: 252 seconds]
<jhass>
lxsameer: bundler?
<lxsameer>
jhass: yeah, I forgot to mention that
<jhass>
oh
iasoon has joined #ruby
<jhass>
?crosspost lxsameer
<ruboto>
lxsameer, Please do not crosspost without at least telling so and mentioning provided suggestions and their outcome in all channels. Experience shows that people don't do either, and not doing so is considered rude.
<jhass>
and rtfm: bundle help
<lxsameer>
jhass: hmm I meant via Bundler interface not command line
<lxsameer>
eah I saw that, and it's not a document at all
<jhass>
read the source of the cli command if you can't find anything
RegulationD has joined #ruby
sagittarian has joined #ruby
RegulationD has quit [Ping timeout: 276 seconds]
lkba has joined #ruby
lidenskap has joined #ruby
sdothum has joined #ruby
mtakkman has joined #ruby
AlexRussia has quit [Ping timeout: 264 seconds]
AlexRussia has joined #ruby
joonty has quit [Quit: joonty]
Guest9631 has quit [Ping timeout: 240 seconds]
rshetty has joined #ruby
lidenskap has quit [Ping timeout: 250 seconds]
joonty has joined #ruby
Mohan has joined #ruby
Mohan is now known as Guest37206
rshetty has quit [Remote host closed the connection]
workmad3 has joined #ruby
tkuchiki has joined #ruby
rshetty has joined #ruby
sameerynho has joined #ruby
tubuliferous has joined #ruby
lxsameer has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 246 seconds]
mtakkman has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
bkxd has quit [Ping timeout: 252 seconds]
tubuliferous has quit [Ping timeout: 250 seconds]
piotrj has quit [Remote host closed the connection]
piotrj has joined #ruby
ta_ has joined #ruby
Deele has quit [Ping timeout: 256 seconds]
quimrstorres has joined #ruby
rshetty has quit [Remote host closed the connection]
Guest37206 has quit [Ping timeout: 265 seconds]
ta_ has quit [Client Quit]
rshetty has joined #ruby
Mohan_ has joined #ruby
KnownSyntax has joined #ruby
joonty has quit [Quit: joonty]
joonty has joined #ruby
joonty has quit [Client Quit]
OnBrokenWings has quit [Read error: Connection reset by peer]
tvw has joined #ruby
jimms has quit [Ping timeout: 244 seconds]
jimms has joined #ruby
ramfjord has quit [Ping timeout: 276 seconds]
Kilobyte|StupidC has quit [Ping timeout: 250 seconds]
shoutsid has joined #ruby
startupality_ has joined #ruby
A205B064 has quit [Ping timeout: 264 seconds]
kstuart has joined #ruby
tkuchiki has quit [Remote host closed the connection]
PaulCape_ has joined #ruby
tkuchiki has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
tkuchiki_ has joined #ruby
rshetty has quit [Remote host closed the connection]
startupality has quit [Ping timeout: 245 seconds]
startupality_ is now known as startupality
rejerson69_ has joined #ruby
FernandoBasso has quit [Quit: leaving]
PaulCapestany has quit [Ping timeout: 264 seconds]
edwinvdg_ has quit [Remote host closed the connection]
platzhirsch has joined #ruby
edwinvdgraaf has joined #ruby
rshetty has joined #ruby
dfinninger has joined #ruby
Dude007 has joined #ruby
kyrylo has quit [Remote host closed the connection]
rshetty has quit [Remote host closed the connection]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rshetty has joined #ruby
Zai00 has quit [Quit: Zai00]
piotrj_ has joined #ruby
dfinninger has quit [Ping timeout: 256 seconds]
charliesome has quit [Quit: zzz]
tkuchiki_ has quit [Remote host closed the connection]
sevenseacat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rshetty has quit [Remote host closed the connection]
tkuchiki has joined #ruby
piotrj has quit [Ping timeout: 248 seconds]
kyrylo has joined #ruby
jimms has quit [Read error: Connection reset by peer]
jimms has joined #ruby
quimrstorres has quit [Remote host closed the connection]
ndrei has joined #ruby
jimms has quit [Read error: Connection reset by peer]
jimms has joined #ruby
tkuchiki has quit [Ping timeout: 256 seconds]
cablanchard has joined #ruby
Kilo`byte has joined #ruby
luser has joined #ruby
jimms has quit [Read error: Connection reset by peer]
jimms has joined #ruby
roshanavand1 has joined #ruby
cablanchard has quit [Client Quit]
Mezjin has quit [Remote host closed the connection]
roshanavand has quit [Ping timeout: 252 seconds]
<luser>
Hi guys, got a question (quite simple I think, but cannot figure it out). Having this piece of code: https://gist.github.com/luseerr/9c57b7d802e07b582fa7 I want to check if any of order.suppliers_orders (suppliers_orders is an array also) has supplier_id that I will provide -if yes, push order to orders array. Code will probably clear up what I want to achieve. Now I get an error saying that stack level is too deep (same happened when I tried .selec
<luser>
t{} instead of .where
<jhass>
luser: add a file to your gist with as much of the backtrace as you can get
piotrj_ has quit [Remote host closed the connection]
<luser>
jhass: What data do you want me to provide in there?
hiyosi has joined #ruby
sevenseacat has joined #ruby
<jhass>
the backtrace
<jhass>
as much of it as possible
jimms has quit [Ping timeout: 264 seconds]
fo2x has quit [Ping timeout: 244 seconds]
Spami has joined #ruby
jottr has joined #ruby
Tak-t has joined #ruby
<Tak-t>
hello
<luser>
Sure, one second.
n008f4g_ has joined #ruby
rejerson69_ has quit [Remote host closed the connection]
<Tak-t>
is any tutorial how run bitcode ? for example "a=10; a+=3" run vm and read a variable at end
rejerson69_ has joined #ruby
codecop has quit [Remote host closed the connection]
iasoon has quit [Ping timeout: 252 seconds]
Snowstormer is now known as cats
piotrj has joined #ruby
codecop has joined #ruby
banister has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
<hfp>
Hi all!
<shevy>
yo hfp
dreinull75 has joined #ruby
<dreinull75>
've written a module that hosts some Sequel subclasses to access a db. How would I extend those subclasses so that when initialized they get some extra features added? Specifically I want to add Null Object model to these subclasses and don't want to keep my code DRY.
The_Phoenix1 has quit [Read error: Connection reset by peer]
<hfp>
I love Ruby but we are using NodeJS at work. I'm not a big fan of JS but I love the asynchronicity of it. Are there any languages that are beautiful like Ruby, async like JS and used enough that finding a position using it won't be a challenge?
codecop has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
fo2x has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
<jhass>
due to lambdas and blocks, an asynchronous programming style isn't too hard to do in Ruby, just saying
lolmaus has joined #ruby
The_Phoenix has joined #ruby
juanpablo___ has joined #ruby
edwinvdg_ has joined #ruby
RegulationD has joined #ruby
<hfp>
jhass: is there something about it to read that you'd recommend?
<jhass>
no. eventmachine seems popular though
quimrstorres has joined #ruby
juanpablo___ has quit [Ping timeout: 256 seconds]
a5i has joined #ruby
<jhass>
luser: since providing a backtrace seems to be very hard for you, I'm going to assume you asked in #RubyOnRails: SupplierOrder.joins(:client_order).where(client_order: {id: params[:client_order_ids]}, supplier_id: @current_user.id).all # or something like that, I have to guess since I don't know your datamodel
Dude007 has quit []
<luser>
jhass: Sorry, I had to leave for five. I was using .where correctly, just made a typo in variable name and that's why it wasn't working as intended. Sorry for taking your time.
RegulationD has quit [Ping timeout: 272 seconds]
<jhass>
luser: still, I'm 80% sure what you want can be done in a single query like above
jimms has joined #ruby
quimrstorres has quit [Ping timeout: 264 seconds]
tvw has quit []
<shevy>
I really love .end_with?
_blizzy_ has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
hgl has quit [Max SendQ exceeded]
hgl has joined #ruby
Mohan_ has quit [Ping timeout: 244 seconds]
icarus has quit [Ping timeout: 256 seconds]
keen_ has quit [Read error: Connection reset by peer]
piotrj has quit [Remote host closed the connection]
Mohan has joined #ruby
Mohan is now known as Guest50211
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
keen_ has joined #ruby
Peetooshock has joined #ruby
lavros_ has quit [Ping timeout: 250 seconds]
lavros has joined #ruby
Deele has joined #ruby
keen_ has quit [Read error: Connection reset by peer]
relix has joined #ruby
jimms has quit [Ping timeout: 250 seconds]
keen_ has joined #ruby
relix has quit [Client Quit]
dfinninger has joined #ruby
relix has joined #ruby
lidenskap has joined #ruby
<jokke>
hi
<jokke>
i'm having some trouble with bundler
plutonic has joined #ruby
<jokke>
Your Gemfile requires gems that depend on each other, creating an infinite loop. Please remove gem 'barrb' and try again.
<jokke>
but the gem barrb does not depend on my gem
<Merdam>
Hi guys. I am looking for gay japanese foot fetish porn
<jhass>
!kick Merdam almost funny
Merdam was kicked from #ruby by ruboto [almost funny]
Merdam has joined #ruby
<Merdam>
I want to see a bunch of naked japanese guys jerking off while looking at eachother's feet. Then as they start shooting their jizz and hitting their counterparts on the legs, stomach, and chest, I want to see them licking up the cum perls off of each other
<apeiros>
!mute Merdam
<apeiros>
I think we should make !kick ban for 5min
<jhass>
Oog: so as said %e, I don't see an example for %-d in the docs you linked either
<ytti>
i thikn the XML format of YANG is called YIN, but not 100% sure
<shevy>
eeks XML
bruno- has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
bruno- is now known as Guest44111
iamninja_ has quit [Read error: Connection reset by peer]
iamninja_ has joined #ruby
ramfjord has joined #ruby
sgambino has joined #ruby
goggy has joined #ruby
Mohan_ has quit [Ping timeout: 264 seconds]
jottr has quit [Ping timeout: 276 seconds]
rshetty has joined #ruby
Mohan_ has joined #ruby
Feyn has quit [Quit: Leaving]
rshetty has quit [Remote host closed the connection]
Rhainur has joined #ruby
Merdam has quit [Quit: Saliendo]
soulcake has quit [Quit: Quack.]
soulcake has joined #ruby
jottr has joined #ruby
Squarepy has joined #ruby
rshetty has joined #ruby
Pupeno has quit [Quit: Leaving...]
juanpablo___ has joined #ruby
RegulationD has joined #ruby
Mohan_ has quit [Ping timeout: 256 seconds]
iasoon has quit [Quit: WeeChat 1.1.1]
iasoon has joined #ruby
Mohan has joined #ruby
DEA7TH has joined #ruby
Mohan is now known as Guest60459
juanpablo___ has quit [Ping timeout: 250 seconds]
ramfjord has quit [Ping timeout: 245 seconds]
Spami has joined #ruby
psy__ has quit [Ping timeout: 256 seconds]
RegulationD has quit [Ping timeout: 255 seconds]
freerobby has joined #ruby
rshetty has quit [Remote host closed the connection]
Devoth has joined #ruby
Aryasam has joined #ruby
rshetty has joined #ruby
panga has joined #ruby
psy__ has joined #ruby
Aryasam has quit [Read error: Connection reset by peer]
Aryasam has joined #ruby
iasoon has quit [Ping timeout: 265 seconds]
Aryasam has quit [Client Quit]
tus has joined #ruby
ponga has quit [Ping timeout: 256 seconds]
rshetty has quit [Ping timeout: 256 seconds]
aryaching has joined #ruby
Guest60459 has quit [Ping timeout: 252 seconds]
BigRonnieRon has joined #ruby
chinmay_dd has joined #ruby
<gr33n7007h>
class Foo; attr_accessor :arg; def initialize &b; instance_eval &b; end; end; Foo.new { arg = "whatever" } <=# How can I do this with doing self.arg?
iasoon has joined #ruby
Mohan_ has joined #ruby
thumpba has joined #ruby
<jhass>
you can't
<gr33n7007h>
jhass: ok wasn't sure if it was possible or not thanks
<jhass>
no, lvar always wins over method call
<Devoth>
How can you test and assign in one statement in Ruby, equivalent of PHP's: $a = (condition) ? b : c ;
<apeiros>
jhass: can. but only with cheating. use *send ;-)
goggy has quit [Ping timeout: 264 seconds]
* jhass
sighs
<apeiros>
little known fun fact - private foo= methods can be invoked with self.foo= (unlike almost all other private methods)
kirun has joined #ruby
<apeiros>
(that's where I used to use send until I learned that little fact)
<gr33n7007h>
ah, didn't know that :)
lavros has quit [Ping timeout: 256 seconds]
lavros has joined #ruby
ta has quit [Remote host closed the connection]
iasoon has quit [Ping timeout: 276 seconds]
sankaber has joined #ruby
Mohan_ has quit [Ping timeout: 256 seconds]
<apeiros>
Devoth: ternary expression exists in quite a lot of languages
<apeiros>
Devoth: in ruby you can even use plain if/else for that: a = if condition then b else c end
astrobunny has joined #ruby
<apeiros>
personally with concise condition and expression, I prefer ternary, though.
<Devoth>
apeiros: nice, thanks
lidenskap has joined #ruby
Mohan_ has joined #ruby
Lingos has joined #ruby
ta has joined #ruby
vickleton has quit [Ping timeout: 240 seconds]
sagittarian has quit [Ping timeout: 252 seconds]
dkphenom has joined #ruby
astrobunny has quit [Ping timeout: 265 seconds]
lidenskap has quit [Ping timeout: 276 seconds]
Oog has quit []
sankaber has quit [Ping timeout: 265 seconds]
thatslifeson has joined #ruby
tomphp has joined #ruby
Mohan_ has quit [Ping timeout: 264 seconds]
DigitallyBorn has joined #ruby
DigitallyBorn is now known as Guest49970
mgberlin has joined #ruby
rshetty has joined #ruby
Mohan_ has joined #ruby
dfinninger has joined #ruby
workmad3 has joined #ruby
soulcake has quit [Quit: Quack.]
piotrj has quit [Remote host closed the connection]
lavros_ has joined #ruby
soulcake has joined #ruby
Soda has quit [Remote host closed the connection]
lavros has quit [Ping timeout: 248 seconds]
banister has joined #ruby
tubuliferous has joined #ruby
sagittarian has joined #ruby
dfinninger has quit [Ping timeout: 248 seconds]
stef204 has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sankaber has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
rocknrollmarc has joined #ruby
ag4ve_ has quit [Ping timeout: 245 seconds]
edwinvdg_ has quit [Remote host closed the connection]
ki0 has joined #ruby
edwinvdgraaf has joined #ruby
tonyhb has joined #ruby
tubuliferous has quit [Ping timeout: 245 seconds]
edwinvdg_ has joined #ruby
Rennex_ is now known as Rennex
doodlehaus has joined #ruby
ndrei has quit [Ping timeout: 255 seconds]
rshetty has quit [Remote host closed the connection]
tus has quit [Read error: Connection reset by peer]
sankaber has quit [Ping timeout: 256 seconds]
fo2x has quit [Ping timeout: 265 seconds]
sankaber has joined #ruby
ndrei has joined #ruby
edwinvdgraaf has quit [Ping timeout: 245 seconds]
a5i has quit [Quit: Connection closed for inactivity]
joonty has joined #ruby
rshetty has joined #ruby
Mohan_ has quit [Ping timeout: 245 seconds]
elaptics` is now known as elaptics
i8igmac has joined #ruby
Mohan has joined #ruby
Mohan is now known as Guest20802
JDiPierro has joined #ruby
PaulCapestany has joined #ruby
tomphp_ has joined #ruby
rshetty has quit [Remote host closed the connection]
PaulCape_ has quit [Ping timeout: 264 seconds]
piotrj has joined #ruby
rshetty has joined #ruby
thatslifeson has quit [Remote host closed the connection]
tomphp has quit [Ping timeout: 252 seconds]
twistedpixels is now known as zz_twistedpixels
sagittarian has quit [Ping timeout: 252 seconds]
ki0 has quit [Remote host closed the connection]
joonty has quit [Quit: joonty]
plutonic has quit [Quit: plutonic]
fo2x has joined #ruby
zz_twistedpixels is now known as twistedpixels
rshetty has quit [Ping timeout: 256 seconds]
_2_Ajanay has joined #ruby
nhhagen has quit [Remote host closed the connection]
<_2_Ajanay>
sup
<jhass>
?whatschat _2_Ajanay
<ruboto>
_2_Ajanay, WhatsChat is a crappy app that abuses IRC for something it is not: a dating chat. Please remove this app.
<dreinull75>
I added a null object to a class when there's nil. So instead of User.address.street and getting Nil I get a Null object. However, I want a default String instead if nothing else is requested. Any ideas?
Guest20802 has quit [Ping timeout: 250 seconds]
<_2_Ajanay>
u can tell me what to do
<jhass>
_2_Ajanay: please remove the app you're currently using and give it a 1-star rating
<_2_Ajanay>
lol
<_2_Ajanay>
s lol
<jhass>
_2_Ajanay: or are you here because you have a quesiton about the Ruby programming language?
Mohan_ has joined #ruby
<_2_Ajanay>
no
<jhass>
see, no you got the reason why you should do that
<jhass>
*now
bkxd has joined #ruby
<_2_Ajanay>
k lol lol lol
sevenseacat has quit [Quit: Me dun like you no more.]
<_2_Ajanay>
I will come back to u l going and give my sister my ipad
<jhass>
no, we're going to more effectively ban that client now
tkuchiki has quit [Remote host closed the connection]
goggy has joined #ruby
tkuchiki has joined #ruby
JDiPierro has quit [Remote host closed the connection]
sagittarian has joined #ruby
elaptics is now known as elaptics_away
thumpba has quit [Remote host closed the connection]
_2_Ajanay has quit [Remote host closed the connection]
<sjuxax>
Hi. I have a deeply nested hash like {a: 1, b: {c: {d: {val: 1, cal: 2}}}}. I want a loop that will take that and give me a dotted path to each individual terminus, so in this case, ['a', 'b.c.d.val', 'b.c.d.cal']. Here's what I have so far. http://dpaste.com/07WF9HE
lidenskap has quit [Ping timeout: 245 seconds]
sagittarian has joined #ruby
<shevy>
jhass I can see that you no longer accept dating here :(
<shevy>
sjuxax that yields the desired output?
Mohan_ has quit [Ping timeout: 248 seconds]
<sjuxax>
shevy, no, because it shows the whole trail; i just want the final terminal points
goggy has joined #ruby
roshanavand1 has quit [Quit: roshanavand1]
Mohan_ has joined #ruby
<shevy>
hmm
gagrio has quit [Ping timeout: 264 seconds]
dfinninger has joined #ruby
Asher has quit [Ping timeout: 245 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sagittarian has quit [Ping timeout: 252 seconds]
dfinninger has quit [Ping timeout: 276 seconds]
workmad3 has joined #ruby
lukequaint has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
lukequaint has quit [Read error: Connection reset by peer]
sankaber has quit [Read error: Connection reset by peer]
doodlehaus has quit [Remote host closed the connection]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rejerson69 has quit [Remote host closed the connection]
qwertme has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
ki0 has joined #ruby
hollywood has joined #ruby
fred1807 has joined #ruby
piotrj has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 264 seconds]
aryaching has quit [Read error: No route to host]
piotrj has joined #ruby
<fred1807>
I am trying to install this ruby app, on my debian machine: https://github.com/sunny/so-nice I apt-get installed Ruby and then Rubygems. Now If I write $gem install sonice I just get no response at all
ndrei has joined #ruby
postmodern has quit [Quit: Leaving]
<jhass>
fred1807: the $ is meant to indicate your shell prompt, it's not part of the command
starless has joined #ruby
<jhass>
press Ctrl+C a couple of times and try gem install sonice
<fred1807>
yes, I am going directly for: gem install sonice
mhib has joined #ruby
aryaching has joined #ruby
jottr has joined #ruby
havenwood has joined #ruby
ki0 has quit [Ping timeout: 265 seconds]
<fred1807>
ERROR: Error installing sonice:
<fred1807>
ERROR: Failed to build gem native extension.
rshetty has quit [Remote host closed the connection]
<fred1807>
i did : sudo gem install sonice
<gr33n7007h>
fred1807: ruby-dev installed?
Guest84436 has quit [Ping timeout: 250 seconds]
Asher has joined #ruby
n008f4g_ has quit [Ping timeout: 264 seconds]
chinmay_dd has quit [Ping timeout: 256 seconds]
<fred1807>
installed ruby dev now.... trying again
nobitanobi has joined #ruby
Mohan_ has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
rbennacer has quit [Remote host closed the connection]
jottr has joined #ruby
sevvie has joined #ruby
Devoth has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
noname3 has quit [Ping timeout: 256 seconds]
noname2 has quit [Ping timeout: 255 seconds]
n008f4g_ has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ponga has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ghr has joined #ruby
<fred1807>
Nice it is runing, thank you
<fred1807>
Do you belive I could get this running on a raspberry pi, without any problems with dependencies?
panga has quit [Ping timeout: 245 seconds]
sevvie has quit [Ping timeout: 252 seconds]
piotrj has quit [Remote host closed the connection]
mitchellhenke has joined #ruby
sevvie has joined #ruby
ascarter has joined #ruby
freerobby has quit [Quit: Leaving.]
Meow-J has joined #ruby
rbennacer has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
sevvie has quit [Ping timeout: 264 seconds]
balazs has joined #ruby
ebbflowgo has quit [Quit: ebbflowgo]
Mohan_ has quit [Ping timeout: 272 seconds]
Mohan_ has joined #ruby
tubuliferous has joined #ruby
balazs has quit [Remote host closed the connection]
icarus has joined #ruby
psy__ has quit [Ping timeout: 248 seconds]
sagittarian has quit [Ping timeout: 252 seconds]
thatslifeson has joined #ruby
piotrj has joined #ruby
noname3 has joined #ruby
tubuliferous has quit [Ping timeout: 276 seconds]
Matachines has joined #ruby
rbennacer has quit [Remote host closed the connection]
sevvie has joined #ruby
mhib has quit [Ping timeout: 250 seconds]
dopie has joined #ruby
Fingel has joined #ruby
qwertme has joined #ruby
coderhs has joined #ruby
tus has joined #ruby
dfinninger has joined #ruby
rkazak has joined #ruby
julian-delphiki has joined #ruby
Filete has quit [Read error: Connection reset by peer]
rocknrollmarc has quit [Ping timeout: 240 seconds]
Axy has joined #ruby
Axy has joined #ruby
Joufflu_ has joined #ruby
flak has joined #ruby
Contigi777 has joined #ruby
laurentide_ has joined #ruby
flak is now known as Guest30368
mhib has joined #ruby
tonyhb_ has joined #ruby
Spami_ has joined #ruby
ahmetkapikiran has joined #ruby
adzuci has joined #ruby
workmad3 has joined #ruby
fred1807 has quit [Quit: fred1807]
Mohan_ has quit [Ping timeout: 256 seconds]
decoponyo has joined #ruby
relix has joined #ruby
dfinninger has quit [Ping timeout: 255 seconds]
Matachines has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zachrab_ has joined #ruby
Mohan has joined #ruby
rgs_ has joined #ruby
soulcake has quit [Read error: Connection reset by peer]
jasonmit has joined #ruby
Mohan is now known as Guest41039
soulcake has joined #ruby
soulcake has quit [Changing host]
soulcake has joined #ruby
rbennacer has joined #ruby
cjk101010_ has joined #ruby
kstuart_ has joined #ruby
oz` has joined #ruby
justinmcp_ has joined #ruby
bennyklo2z has joined #ruby
DEA7TH_ has joined #ruby
ixx has joined #ruby
cloaked1_ has joined #ruby
crazysim_ has joined #ruby
contradictioned_ has joined #ruby
sagittarian has joined #ruby
multi_io_ has joined #ruby
cescalante has joined #ruby
ixx is now known as Guest72244
balazs has joined #ruby
Squarepy has quit [Quit: Leaving]
matu has joined #ruby
Fingel has quit [Ping timeout: 240 seconds]
programm1 has joined #ruby
tskogber1 has joined #ruby
sirecote_ has joined #ruby
_jasonmit has quit [Ping timeout: 246 seconds]
moted has quit [Ping timeout: 246 seconds]
patronus has quit [Read error: Connection reset by peer]
cjk101010 has quit [Ping timeout: 246 seconds]
galeido has quit [Ping timeout: 246 seconds]
lloyd has quit [Ping timeout: 246 seconds]
sirecote has quit [Ping timeout: 246 seconds]
crazysim has quit [Excess Flood]
zachrab has quit [Ping timeout: 246 seconds]
vifino has quit [Ping timeout: 246 seconds]
DarthGandalf has quit [Ping timeout: 246 seconds]
programmerq has quit [Ping timeout: 246 seconds]
meshugga1 has quit [Ping timeout: 246 seconds]
Lildirt has quit [Ping timeout: 246 seconds]
kiki_lamb has quit [Ping timeout: 246 seconds]
dreinull75 has quit [Ping timeout: 246 seconds]
decoponio has quit [Ping timeout: 246 seconds]
Mekkis_ has quit [Ping timeout: 246 seconds]
oz has quit [Ping timeout: 246 seconds]
anekos has quit [Ping timeout: 246 seconds]
justinmcp has quit [Ping timeout: 246 seconds]
vifino has joined #ruby
bkutil has quit [Ping timeout: 246 seconds]
cescalante_ has quit [Ping timeout: 246 seconds]
matugm has quit [Ping timeout: 246 seconds]
contradictioned has quit [Ping timeout: 246 seconds]
patteh has quit [Ping timeout: 246 seconds]
tskogberg has quit [Ping timeout: 246 seconds]
madhatter has quit [Ping timeout: 246 seconds]
_5moufl has quit [Ping timeout: 246 seconds]
sarlalian has quit [Ping timeout: 246 seconds]
kstuart has quit [Ping timeout: 246 seconds]
flori_ has quit [Ping timeout: 246 seconds]
jamo_ has quit [Ping timeout: 246 seconds]
nitrix has quit [Ping timeout: 246 seconds]
n3b- has quit [Ping timeout: 246 seconds]
crazysim_ is now known as crazysim
oz` is now known as oz
raddazong has joined #ruby
kloeri has quit [Read error: Connection reset by peer]
n3b has joined #ruby
meshugga has joined #ruby
galeido has joined #ruby
blizzy has joined #ruby
kloeri_ has joined #ruby
bkutil has joined #ruby
flori has joined #ruby
_5moufl has joined #ruby
cranq has quit [Read error: Connection reset by peer]
jamo_ has joined #ruby
anekos has joined #ruby
patteh has joined #ruby
DarthGandalf has joined #ruby
cranq has joined #ruby
Lildirt has joined #ruby
sarlalian has joined #ruby
lloyd has joined #ruby
ujjain- has joined #ruby
Spami_ has quit [Quit: This computer has gone to sleep]
kadoppe_ has joined #ruby
opes_ has joined #ruby
aytch_ has joined #ruby
yosafbridge` has joined #ruby
soosfarm_ has joined #ruby
_blizzy_ has quit [Ping timeout: 240 seconds]
Urocyon_ has joined #ruby
m8 has quit [Quit: Sto andando via]
scottyme- has joined #ruby
Joufflu_ has quit [*.net *.split]
starless has quit [*.net *.split]
tonyhb has quit [*.net *.split]
Spami has quit [*.net *.split]
DEA7TH has quit [*.net *.split]
rippa has quit [*.net *.split]
Hijiri has quit [*.net *.split]
d[^_^]b has quit [*.net *.split]
vikram_ has quit [*.net *.split]
cbetta has quit [*.net *.split]
ballPointPenguin has quit [*.net *.split]
vcoinminer has quit [*.net *.split]
bestie has quit [*.net *.split]
n1ftyn8 has quit [*.net *.split]
yo61 has quit [*.net *.split]
scottymeuk has quit [*.net *.split]
danoo_ has quit [*.net *.split]
multi_io has quit [*.net *.split]
njection has quit [*.net *.split]
nahtnam has quit [*.net *.split]
laurentide has quit [*.net *.split]
cloaked1 has quit [*.net *.split]
Joufflu has quit [*.net *.split]
crdpink has quit [*.net *.split]
Nowaker has quit [*.net *.split]
kadoppe has quit [*.net *.split]
mjmac has quit [*.net *.split]
Contigi has quit [*.net *.split]
kwd has quit [*.net *.split]
hostess has quit [*.net *.split]
Vile` has quit [*.net *.split]
bean has quit [*.net *.split]
psmolen has quit [*.net *.split]
akkad has quit [*.net *.split]
exadeci has quit [*.net *.split]
niko has quit [*.net *.split]
cschneid has quit [*.net *.split]
Mia has quit [*.net *.split]
neektza has quit [*.net *.split]
wookiehangover has quit [*.net *.split]
xxneolithicxx has quit [*.net *.split]
swills has quit [*.net *.split]
rgs has quit [*.net *.split]
psyprus has quit [*.net *.split]
soosfarm has quit [*.net *.split]
larissa has quit [*.net *.split]
Ikri has quit [*.net *.split]
adzuci_ has quit [*.net *.split]
sanguisdex has quit [*.net *.split]
ujjain has quit [*.net *.split]
aytch has quit [*.net *.split]
ping-pong has quit [*.net *.split]
xxi has quit [*.net *.split]
arminius has quit [*.net *.split]
jouty has quit [*.net *.split]
jalcine has quit [*.net *.split]
Urocyon has quit [*.net *.split]
yosafbridge has quit [*.net *.split]
bennyklo1z has quit [*.net *.split]
skarn_ has quit [*.net *.split]
Paradox has quit [*.net *.split]
daxroc has quit [*.net *.split]
Seich has quit [*.net *.split]
roqo has quit [*.net *.split]
lpaste has quit [*.net *.split]
opes has quit [*.net *.split]
tobiasvl has quit [*.net *.split]
sfr^ has quit [*.net *.split]
waxjar has quit [*.net *.split]
ChasedSpade has quit [*.net *.split]
blackjid has quit [*.net *.split]
amitchellbullard has quit [*.net *.split]
LBRapid has quit [*.net *.split]
universa1 has quit [*.net *.split]
johnhamelink has quit [*.net *.split]
Nightmare has quit [*.net *.split]
tylersmith has quit [*.net *.split]
pskosinski has quit [*.net *.split]
incomprehensibly has quit [*.net *.split]
zzak has quit [*.net *.split]
terrellt has quit [*.net *.split]
Klumben has quit [*.net *.split]
barkerd427 has quit [*.net *.split]
scottyme- is now known as scottymeuk
aytch_ is now known as aytch
Urocyon_ is now known as Urocyon
Mekkis has joined #ruby
coderhs has quit [Ping timeout: 255 seconds]
Nowaker has joined #ruby
DerisiveLogic has joined #ruby
swills has joined #ruby
Guest30368 has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
skarn has joined #ruby
rippa has joined #ruby
Vile` has joined #ruby
Guest41039 has quit [Ping timeout: 248 seconds]
rshetty has joined #ruby
Guest26031 has joined #ruby
akkad has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Lingos has quit [Quit: Be back later ...]
Mohan_ has joined #ruby
fo2x has quit [Ping timeout: 276 seconds]
kloeri_ is now known as kloeri
jeramy_s has joined #ruby
cschneid has joined #ruby
Squarepy has joined #ruby
patronus has joined #ruby
goggy has quit [Ping timeout: 248 seconds]
ghr has quit [Ping timeout: 250 seconds]
ping-pong has joined #ruby
xlii has joined #ruby
decoponyo is now known as decoponio
programm1 is now known as programmerq
jouty has joined #ruby
programmerq has quit [Changing host]
programmerq has joined #ruby
niko has joined #ruby
synfin_ has joined #ruby
spacemud_ has joined #ruby
ebbflowgo has joined #ruby
sanguisdex has joined #ruby
diegoviola has joined #ruby
soulcake has quit [Ping timeout: 276 seconds]
ebbflowgo has quit [Read error: Connection reset by peer]
xsdg has joined #ruby
smooth_p1nguin has joined #ruby
crowell_ has joined #ruby
kke has joined #ruby
balazs has quit [Remote host closed the connection]
atomi_ has joined #ruby
Cope_ has joined #ruby
thatslif_ has joined #ruby
greenbagels has joined #ruby
peterhu_ has joined #ruby
Exlee_ has quit [Ping timeout: 246 seconds]
ixti has quit [Ping timeout: 246 seconds]
zz_Outlastsheep has quit [Ping timeout: 246 seconds]
atomi has quit [Ping timeout: 246 seconds]
xsdg_ has quit [Ping timeout: 246 seconds]
spacemud has quit [Ping timeout: 246 seconds]
synfin has quit [Ping timeout: 246 seconds]
aep has quit [Ping timeout: 246 seconds]
smooth_penguin has quit [Ping timeout: 246 seconds]
_5moufl has quit [Ping timeout: 246 seconds]
kke_ has quit [Ping timeout: 246 seconds]
Adran has quit [Ping timeout: 246 seconds]
Cope has quit [Ping timeout: 246 seconds]
peterhu has quit [Ping timeout: 246 seconds]
v0n has quit [Ping timeout: 246 seconds]
mnemon has quit [Ping timeout: 246 seconds]
gf3 has quit [Ping timeout: 246 seconds]
crowell has quit [Ping timeout: 246 seconds]
marcellu1 has quit [Ping timeout: 246 seconds]
evident has quit [Ping timeout: 246 seconds]
n3b has quit [Ping timeout: 246 seconds]
spacemud_ is now known as spacemud
dopie has quit [Ping timeout: 256 seconds]
mnemon has joined #ruby
n3b has joined #ruby
marcellus has joined #ruby
evident has joined #ruby
Adran has joined #ruby
aep has joined #ruby
arcanez has quit [Ping timeout: 246 seconds]
arcanez has joined #ruby
doodlehaus has joined #ruby
_5moufl has joined #ruby
psy_ has joined #ruby
gf3 has joined #ruby
ixti has joined #ruby
ki0 has joined #ruby
v0n has joined #ruby
thatslifeson has quit [Ping timeout: 265 seconds]
Brozo has joined #ruby
juanpablo___ has joined #ruby
workmad3 has quit [Ping timeout: 250 seconds]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nhhagen has quit [Remote host closed the connection]
soulcake has joined #ruby
cscheib_ is now known as cscheib
RegulationD has joined #ruby
fo2x has joined #ruby
ki0 has quit [Ping timeout: 246 seconds]
rbennacer has quit [Remote host closed the connection]
coderhs has joined #ruby
Mohan_ has quit [Ping timeout: 256 seconds]
juanpablo___ has quit [Ping timeout: 252 seconds]
rbennacer has joined #ruby
icarus has quit [Ping timeout: 264 seconds]
zz_Outlastsheep has joined #ruby
Mohan_ has joined #ruby
icarus has joined #ruby
mitchellhenke has quit [Quit: Computer has gone to sleep.]
RegulationD has quit [Ping timeout: 245 seconds]
serivich has quit [Ping timeout: 272 seconds]
Spami has joined #ruby
tvl has joined #ruby
mjmac has joined #ruby
universa1 has joined #ruby
waxjar has joined #ruby
danoo_ has joined #ruby
tvl is now known as tobiasvl
psmolen has joined #ruby
LBRapid has joined #ruby
d[^_^]b has joined #ruby
tkuchiki has joined #ruby
tylersmith has joined #ruby
Joufflu__ has joined #ruby
starless has joined #ruby
Seich has joined #ruby
sfr^ has joined #ruby
lpaste has joined #ruby
larissa has joined #ruby
wookiehangover has joined #ruby
Nightmare has joined #ruby
LBRapid is now known as Guest76504
Paradox has joined #ruby
ChasedSpade has joined #ruby
Hijiri has joined #ruby
sevvie has quit [Ping timeout: 250 seconds]
zzak has joined #ruby
Ikri has joined #ruby
terrellt has joined #ruby
nahtnam has joined #ruby
sevvie has joined #ruby
relix has joined #ruby
n1ftyn8 has joined #ruby
kiki_lamb has joined #ruby
jalcine has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Klumben has joined #ruby
blackjid has joined #ruby
Fingel has joined #ruby
kwd has joined #ruby
vcoinminer has joined #ruby
centrx has quit [Ping timeout: 272 seconds]
neektza has joined #ruby
amitchellbullard has joined #ruby
ballPointPenguin has joined #ruby
soulcake has quit [Quit: Quack.]
Mohan_ has quit [Ping timeout: 276 seconds]
hostess has joined #ruby
soulcake has joined #ruby
tkuchiki has quit [Ping timeout: 272 seconds]
cbetta has joined #ruby
bestie has joined #ruby
Mohan_ has joined #ruby
rshetty has quit [Ping timeout: 252 seconds]
Joufflu__ has quit [Read error: Connection reset by peer]
yo61 has joined #ruby
rshetty has joined #ruby
pskosinski has joined #ruby
vikram_ has joined #ruby
exadeci has joined #ruby
ascarter has joined #ruby
johnhamelink has joined #ruby
incomprehensibly has joined #ruby
daxroc has joined #ruby
Fingel has quit [Ping timeout: 276 seconds]
ascarter has quit [Max SendQ exceeded]
Guest44111 has quit [Ping timeout: 244 seconds]
ascarter has joined #ruby
a5i has joined #ruby
ascarter has quit [Max SendQ exceeded]
<a5i>
If I have a file with an array init
ascarter has joined #ruby
<a5i>
how can I assign whats in that file as an array in other ruby file ?
The_Phoenix has joined #ruby
<apeiros>
a5i: assign that array to a constant in that file. use the constant in other files.
ahmetkapikiran has quit [Quit: ahmetkapikiran]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
balazs has joined #ruby
jottr has quit [Ping timeout: 256 seconds]
Oka has joined #ruby
Mohan_ has quit [Ping timeout: 265 seconds]
giuseppesolinas has joined #ruby
Mohan has joined #ruby
Mohan is now known as Guest34667
balazs has quit [Ping timeout: 255 seconds]
Igorshp has joined #ruby
platzhirsch has quit [Quit: Leaving.]
jeramy_s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Igorshp has quit [Read error: Connection reset by peer]
Igorshp has joined #ruby
crowell_ is now known as crowell
crowell has quit [Changing host]
crowell has joined #ruby
r0x has joined #ruby
n008f4g_ has quit [Ping timeout: 245 seconds]
Lewix has joined #ruby
Guest34667 has quit [Ping timeout: 256 seconds]
Mohan_ has joined #ruby
doodlehaus has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
vickleton has joined #ruby
ghr has joined #ruby
daynaskully has quit [Ping timeout: 240 seconds]
<a5i>
hmm
nobitanobi has quit [Remote host closed the connection]
chinmay_dd has joined #ruby
jalcine has quit [Ping timeout: 256 seconds]
DEA7TH_ is now known as DEA7TH
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
mikekellyio has joined #ruby
dfinninger has joined #ruby
mhib has quit [Ping timeout: 264 seconds]
jalcine has joined #ruby
sak has joined #ruby
DEA7TH has quit [Remote host closed the connection]
Mohan_ has quit [Ping timeout: 256 seconds]
joonty has joined #ruby
thatslif_ is now known as thatslifeson
Mohan_ has joined #ruby
Hijiri has quit [Quit: WeeChat 1.0.1]
Hijiri has joined #ruby
joonty has quit [Client Quit]
sak has quit [Ping timeout: 245 seconds]
arminius has joined #ruby
CloCkWeRX has joined #ruby
zz_Outlastsheep is now known as Outlastsheep
Ellis has joined #ruby
nobitanobi has joined #ruby
simonewestphal has quit [Ping timeout: 248 seconds]
<Ellis>
how can i create this array without manually typing out all the elements: [[r],[b],[r],[b],r],[b],[r],[b],r],[b],[r],[b],r],[b],[r],[b],r],[b],[r],[b],r],[b],[r],[b],r],[b],[r],[b]]
gaussblurinc1 has quit [Quit: Leaving.]
nobitanobi has quit [Remote host closed the connection]
CloCkWeRX has quit [Ping timeout: 272 seconds]
mhib has joined #ruby
nobitanobi has joined #ruby
piotrj has quit [Remote host closed the connection]
<apeiros>
Ellis: that array is invalid?
<Ellis>
why
<Ellis>
oh the r?
<Ellis>
that’s a typo
<apeiros>
did you mean just [r],[b],… repeating?
<Ellis>
yeah
<Ellis>
i tried Array.new((['b'],['r'])*100) but that didn’t work
<apeiros>
yupp. though I'd only use it for indefinite repetitions.
<apeiros>
hm, actually not true
<Ellis>
apeiros: why does that work but not [[‘b’],[‘r’]]*100 work?
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros>
Ellis: that certainly works too
thatslif_ is now known as thatslifeson_
<Ellis>
it doesn't
<jhass>
(if you use proper quotes)
<Ellis>
oh!
gaussblurinc1 has joined #ruby
gaussblurinc1 has quit [Remote host closed the connection]
<Ellis>
nice
<apeiros>
and for future reference, "doesn't work" is a useless problem description.
<Ellis>
word
<gr33n7007h>
>> [*[[?r],[?b]].cycle(10)]
<ruboto>
gr33n7007h # => [["r"], ["b"], ["r"], ["b"], ["r"], ["b"], ["r"], ["b"], ["r"], ["b"], ["r"], ["b"], ["r"], ["b"], [ ...check link for more (https://eval.in/318825)
<jhass>
gr33n7007h: -1 to ?-literals
thatslifeson has quit [Ping timeout: 240 seconds]
* gr33n7007h
hangs head in shame
Igorshp has quit [Remote host closed the connection]
soulcake has quit [Quit: Quack.]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
soulcake has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
bkxd has joined #ruby
metalic has joined #ruby
thatslifeson_ is now known as thatslifeson
metalic has quit [Client Quit]
nhhagen has quit [Ping timeout: 276 seconds]
thumpba has joined #ruby
CloCkWeRX has joined #ruby
Ellis has quit [Quit: Ellis]
icarus has quit [Ping timeout: 250 seconds]
soulcake has quit [Quit: Quack.]
bkxd has quit [Ping timeout: 250 seconds]
<havenwood>
gr33n7007h: +1 char literal ;P
<havenwood>
1.8 is dead!
tubuliferous has joined #ruby
bruno- has joined #ruby
bruno- is now known as Guest50227
thumpba has quit [Ping timeout: 256 seconds]
mleung has joined #ruby
BLuEGoD has quit [Remote host closed the connection]
yvemath has quit [Remote host closed the connection]
<xxneolithicxx>
the telomeres are long on that one unfortunately, it aint dead yet
tubuliferous has quit [Ping timeout: 256 seconds]
_whitelogger has joined #ruby
<apeiros>
autoload's concurrency issue has apparently been fixed
<waxjar>
apeiros: oh? wasn't aware of that
tonyhb_ has quit [Quit: peace]
<apeiros>
happened in 2.0 or 2.1 I think
soulcake has joined #ruby
lordkryss has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shoutsid has quit [Remote host closed the connection]
shoutsid has joined #ruby
<fred1807>
any help for this? ERROR: Could not find a valid gem 'cuba:3.1.0' (>= 0) in any repository
mnemon2 has joined #ruby
<apeiros>
fred1807: looks like you shoved gemname and version together
_whitelogger has joined #ruby
<xxneolithicxx>
does gem really support "gem install pkg:version" ?
zorak8 has joined #ruby
Mohan_ has joined #ruby
dfoolz has joined #ruby
CloCkWeRX has quit [Ping timeout: 264 seconds]
Muz_ is now known as Muz
workmad3 has joined #ruby
rocknrollmarc has joined #ruby
DerisiveLogic has quit [Ping timeout: 245 seconds]
paulcsmith has joined #ruby
<apeiros>
xxneolithicxx: no
paulcsmith has quit [Client Quit]
<apeiros>
fred1807: look, if you want help, provide information which actually enables us to help. and I still won't go and read that website.
<IceDragon>
It should be: gem install cuba --version 3.1.0
<fred1807>
I am so far from ruby I wont botther you guys, just toughr it could be a onliner
banister has joined #ruby
<apeiros>
IceDragon: we don't even know whether they're installing via gem command or e.g. bundler.
<fred1807>
ok Ice, Will try, thanks
tenseiten has joined #ruby
juanpablo___ has joined #ruby
balazs_ has joined #ruby
thatslifeson has quit [Read error: Connection reset by peer]
ghr has joined #ruby
gazay has joined #ruby
thatslifeson has joined #ruby
<xxneolithicxx>
fred1807: change the install script to "while read curLine; do gem install ${curLine}; done < .gems" for a ugly hack fix
Joufflu has joined #ruby
Guest78038 has quit [Ping timeout: 264 seconds]
workmad3 has quit [Ping timeout: 276 seconds]
<fred1807>
ok, thx
simpleirc has joined #ruby
seitensei has quit [Ping timeout: 248 seconds]
RegulationD has joined #ruby
<xxneolithicxx>
not sure if that will interpolate correctly though i havent tried, you may have to do an eval
<IceDragon>
you know what damn it to hell, JUST USE A GEMFILE
<IceDragon>
apeiros: The last time I had to use gem directly was to update my system gems
<xxneolithicxx>
^
dopie has joined #ruby
simpleirc has quit [Remote host closed the connection]
yvemath has joined #ruby
rocknrollmarc has quit [Ping timeout: 265 seconds]
Lissie has joined #ruby
juanpablo___ has quit [Ping timeout: 240 seconds]
havenwood has quit []
bruno- has joined #ruby
bruno- is now known as Guest25200
<nobitanobi>
morning
<shevy>
nobitanobi you are my katana
<nobitanobi>
I know I am
<nobitanobi>
but thanks for reminding
RegulationD has quit [Ping timeout: 264 seconds]
yuung has joined #ruby
<yuung>
how can i use a variable in a regex, and then capture a match in that regex? for example, something like: /#{var}=(.*?)/, where 'var' is a variable and (.*?) is the group I'd like to capture
<fred1807>
why would someone add another layer on top of html?
davedev2_ has quit [Client Quit]
<pipework>
Because HTML is just another layer on top of another thing. Turtles, my friend, turtles the whole way down.
digifiv5e_ has quit [Changing host]
digifiv5e_ has joined #ruby
digifiv5e_ is now known as daynaskully
davedev24_ has quit [Ping timeout: 272 seconds]
daynaskully is now known as digifiv5e
lfox has joined #ruby
fred1807 has quit [Quit: fred1807]
jottr has quit [Ping timeout: 256 seconds]
nobitanobi has joined #ruby
JDiPierro has joined #ruby
atmosx has joined #ruby
Mohan_ has quit [Ping timeout: 256 seconds]
argoneus is now known as Maruinslun
Maruinslun is now known as argoneus
platosha has joined #ruby
bluOxigen has joined #ruby
tubuliferous has joined #ruby
<atmosx>
aloha
Mohan_ has joined #ruby
mhib has quit [Quit: Leaving]
nobitanobi has quit [Remote host closed the connection]
nobitanobi has joined #ruby
Asher has quit [Ping timeout: 256 seconds]
RegulationD has joined #ruby
fred1807 has joined #ruby
tubuliferous has quit [Ping timeout: 264 seconds]
<fred1807>
Turtles?
<fred1807>
whats beneath html?
<pipework>
turtles.
nobitanobi has quit [Remote host closed the connection]
mtakkman has joined #ruby
Asher has joined #ruby
<apeiros>
fred1807: depends on how you look at it. SGML for example.
RegulationD has quit [Ping timeout: 250 seconds]
<fred1807>
ok, lets go down to memory language
<fred1807>
html is what the browser will read. This app gotta generate html a some point
<pipework>
'memory language'?
<fred1807>
hardware
Mohan_ has quit [Ping timeout: 272 seconds]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
<fred1807>
is it tru or not? how the browser see the web interface generated by this app?
cornfeedhobo has joined #ruby
<pipework>
I don't think all the participants in this discussion are well informed enough on the topic to be discussing it with any modicum of clarity.
<pipework>
But yeah, an HTTP server might serve HTML, and it has to get it from somewhere.
ghr has quit [Ping timeout: 240 seconds]
<fred1807>
if you say HTML is on top of SGML, we could het down to say SGML is on top of the wedtern alphabet
Mohan_ has joined #ruby
<fred1807>
but no, the browser reads html
<apeiros>
there was an awesome video about how things are simple - or actually not, if you go down far enough. and far enough is usually just two or three layers of abstraction away… stuff like typing on a keyboard…
<fred1807>
so this haml thing , is a layer on my way
<fred1807>
apeiros: Sure,
<fred1807>
but for web, we have a specific reader, the brwoser
scruple has joined #ruby
<fred1807>
browser want html, whats .js
<fred1807>
*wants
<fred1807>
browser can read .jpg
<fred1807>
browser commands
<fred1807>
this haml thing, browser dont like
<apeiros>
"to say SGML is on top of the wedtern alphabet" ¿que?
<fred1807>
browser gets mad
<apeiros>
the browser never sees haml
<fred1807>
western alphabet
<fred1807>
abcdefgijhlmn
<fred1807>
it is a code/language too
<apeiros>
haml is a template language and is rendered to html
<pipework>
Perhaps if we didn't wax philosophical, it might lead to a more productive conversation about what you're really wanting to learn.
<apeiros>
(or xml)
chinmay_dd has joined #ruby
mtakkman has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
serivich has joined #ruby
yuung has quit [Ping timeout: 248 seconds]
yuung has joined #ruby
<fred1807>
ok, This So Nice Interface https://github.com/sunny/so-nice Is really so nice. And I want to use it with my MPD (music player server) on a raspberry. But I am trying to get only what I really need on my raspberry image, to make it sleek, small footprint and nice. I already have a nginx on it, I dont want to install this monster hunger for dependecies, like this app is. I just want its HTML files, so I can adapt all its commands to MPD-PHP.class, wich is a
<fred1807>
file class to control the MPD player (This So-Nice app so far uses 2 complete dependencies to talk with MPD, and It is made to talk to many other music players at the same time) I just juse mpd. So I want to get this cool, and nice, minimal interface, with its nice auto backround effect, and use it for my raspberry to serve, via nginx, a nice a sleek mpd interface :)
lidenskap has joined #ruby
<fred1807>
It has the full css on it. But I cant understand the html/haml code, to try to recreated it
<apeiros>
you're out of luck
<apeiros>
this is not some static html you can copy
dfinninger has joined #ruby
<apeiros>
it's an app. the html is dynamically generated.
<fred1807>
Yes, but all we got is a play/stop/next buttons and a backround with auto fecth image . So why make things hard likes this? It could be just a html
<fred1807>
with .js
<apeiros>
oh so you know how one can simply do this? then go and write that simple software.
mitchellhenke has joined #ruby
<fred1807>
and node.js or py or php or whatever on server
JDiPierro has quit [Remote host closed the connection]
<fred1807>
apeiros: There are many MPD controlers, made with mpd-php.class, that need 3 files (and php dependencie) the same with python, node.js.... But they are all ugly
<fred1807>
and full of controls
tessi_zz has quit [Ping timeout: 256 seconds]
<fred1807>
This one is just what I need: play, stop, forward, volume
Lucky__ has joined #ruby
Lucky__ has quit [Client Quit]
havenwood has joined #ruby
Lucky__ has joined #ruby
jeramy_s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jeramy_s has joined #ruby
<fred1807>
it is the most beautiful MPD web interface ever
<havenwood>
fred1807: MPD?
<fred1807>
Music Player Deamon
tessi_zz has joined #ruby
<fred1807>
the one and only music player and databse you will ever need in your life
<havenwood>
Ah, not Model, Pudding, Controller.
<havenwood>
Err, D.
Guest49970 has quit [Changing host]
Guest49970 has joined #ruby
Guest49970 is now known as DigitallyBorn
<pipework>
havenwood: Mountaindew, Pudding, Cake.
<wasamasa>
doofus
<havenwood>
Oh how I prefer Pie to Cake.
<havenwood>
Pie!
<havenwood>
Let them eat pie...
<pipework>
havenwood: Pie or pudding?
<havenwood>
pipework: Pie!
<pipework>
havenwood: I guess if it's banana cream...
Diabolik has quit [Excess Flood]
<havenwood>
pipework: I like the word pudding better than the substance. Like pudd'n!
Diabolik has joined #ruby
<pipework>
havenwood: puddin' the lime in the coconut?
vifino has joined #ruby
<havenwood>
Drink the bowl up!
<fred1807>
lime and cononut
bluOxigen has quit [Ping timeout: 265 seconds]
bluOxigen has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gmas has quit [Quit: WeeChat 1.1.1]
f3lp has joined #ruby
<fred1807>
this So-Nice also looks shit in mobile Io. Another reason to stay with propoer html/js
<havenwood>
So-Nice?
goggy has joined #ruby
<fred1807>
So-Nice MPD interface made in Ruby Sinitra Haml
Igorshp has joined #ruby
swgillespie has joined #ruby
Igorshp has quit [Remote host closed the connection]
<wasamasa>
I bet you could have written "the most beautiful MPD web interface ever" in the time you've ranted about the other existing ones
swgillespie has quit [Read error: Connection reset by peer]
nhhagen has joined #ruby
swgillespie has joined #ruby
soulcake has quit [Quit: Quack.]
hollywood has quit [Quit: Leaving]
swgillespie has quit [Read error: Connection reset by peer]
<vasilakisfil>
because I read in another redis ruby library "This is not an ORM. People that are wrapping ORM’s around Redis are missing the point."
<apeiros>
did they also provide a reason or was it all just ominous hand waving?
<vasilakisfil>
"The killer feature of Redis is that it allows you to perform atomic operations on individual data structures, like counters, lists, and sets. The atomic part is HUGE. Using an ORM wrapper that retrieves a "record", updates values, then sends those values back, removes the atomicity, cutting the nuts off the major advantage of Redis. Just use MySQL, k?"
decoponio has quit [Read error: Connection reset by peer]
nszceta has joined #ruby
decoponio has joined #ruby
juanpablo___ has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
LJT has joined #ruby
Rhainur1 has joined #ruby
<pipework>
Have a single object responsible for writing and use a queue or something to send messages to that object.
Rhainur has quit [Ping timeout: 265 seconds]
<sohrab>
i am creating a class and i want to gather instances of it somewhere. i need to look through all the objects and see if they meet a requirement, and if they do i'd add information to them. what's the best way? i was thinking of using a set but idk how to do this with a set, i guess i could just iterate throgh it with each. should i do that?
juanpablo___ has quit [Ping timeout: 256 seconds]
MyMind has quit [Quit: WeeChat 1.2-dev]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ohaibbq has joined #ruby
icarus has joined #ruby
mleung has joined #ruby
dcarper has quit [Remote host closed the connection]
mleung has quit [Client Quit]
soulcake has quit [Ping timeout: 276 seconds]
kyrylo has quit [Ping timeout: 256 seconds]
nhhagen has joined #ruby
MatthewsFace has joined #ruby
doodlehaus has joined #ruby
nszceta has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
peterhu_ is now known as peterhu
dcarper has joined #ruby
soulcake has joined #ruby
f3lp has quit [Ping timeout: 250 seconds]
dcarper has quit [Remote host closed the connection]
yfeldblum has quit [Read error: Connection reset by peer]
mitchellhenke has joined #ruby
yfeldblum has joined #ruby
nhhagen has quit [Ping timeout: 252 seconds]
lidenskap has quit [Remote host closed the connection]
dopie has quit [Quit: This computer has gone to sleep]
Alina-malina has joined #ruby
workmad3 has joined #ruby
<apeiros>
hm, ok, so we can have trailing , in all lists except in parameter definitions :<
lfox has joined #ruby
rdema has quit [Changing host]
rdema has joined #ruby
* xxneolithicxx
looks at apeiros wondering why trailing ,'s is a standard to look up to
CloCkWeRX has left #ruby [#ruby]
jwinder has joined #ruby
Igorshp has joined #ruby
doodlehaus has quit [Remote host closed the connection]
doodlehaus has joined #ruby
<apeiros>
with somewhat long lists, you'll spread it to multiple lines. and then you just have a , at the end of all lines.
<apeiros>
makes it easier to add another line
<apeiros>
and while it's bad to have too many arguments in a method definition, there's cases where it's not reasonably avoidable. in my case a configuration class which takes all config options as named arguments.
<Devoth>
if @@patches is a #, how can I get X to be a number indicating cycle of each in this piece:
nhhagen has quit [Ping timeout: 252 seconds]
<Devoth>
@@patches.each do |key, desc|
<Devoth>
say("X. #{desc}", :red)
<Devoth>
end
nux443 has quit [Ping timeout: 256 seconds]
<Devoth>
should I define a variable before the loop, and increment (e.g. like in PHP: $i=0, then $i++) or is ther a smarter way in Ruby?
<xxneolithicxx>
each_index ?
<xxneolithicxx>
but it looks like you have a hash not array
RegulationD has quit [Ping timeout: 244 seconds]
<Devoth>
yes, hash
<mozzarella>
each_with_index
<Devoth>
thanks, will check it out
nux443 has joined #ruby
duckpunch has quit [Ping timeout: 256 seconds]
davedev24_ has quit [Ping timeout: 244 seconds]
nfk has quit [Quit: yawn]
davedev24_ has joined #ruby
duckpunch has joined #ruby
sankaber has joined #ruby
sohrab has quit [Ping timeout: 264 seconds]
Matachines has joined #ruby
vickleton has quit [Ping timeout: 240 seconds]
nux443 has quit [Ping timeout: 245 seconds]
<Devoth>
mozzarella: works awesome now, thanks
<Devoth>
@@patches.each_with_index do |item, i|
<Devoth>
say("#{i+1}. #{item[1]}", :red)
<Devoth>
end
<Devoth>
Ruby's awesome :)
<Devoth>
and you guys rock :))
<mozzarella>
there's also .with_index, and you could use .each.with_index
<mozzarella>
you can use .with_index with other stuff, such as .map, which is great
nux443 has joined #ruby
mgberlin has quit [Remote host closed the connection]
<apeiros>
with_index allows you to drop the +1
<apeiros>
@@patches.each.with_index(1) do |(key, desc), i| say "#{i}. #{desc}", :red; end
sohrab has joined #ruby
<Devoth>
wow, really nice
<Devoth>
but somehow I can't find it in docs
<mozzarella>
didn't know that, I guess that's a good reason to use .with_index instead of .each_with_index
<Devoth>
ok, nvm, got it
<apeiros>
Devoth: Hash#each without a block returns an Enumerator
<apeiros>
so with_index is Enumerator#with_index
<apeiros>
mozzarella: yeah, really sad that each_with_index doesn't take an arg. I see no reason why it wouldn't :-/
<mozzarella>
do you know which one came first? each_with_index or with_index?
jenrzzz has quit [Ping timeout: 250 seconds]
<Devoth>
apeiros: that oop approach of Ruby is awesome and mind bending at the same time
* gr33n7007h
though that was going to chicken/egg question
<Devoth>
so hard for me to get my head around it tbh :)
jenrzzz has joined #ruby
<Devoth>
wasn't really deep in PHP's oop, guess I need to read/watch some good tuts on the subject :)
duckpunch has quit [Ping timeout: 240 seconds]
<apeiros>
mozzarella: not sure, no
workmad3 has joined #ruby
soulcake has quit [Quit: Quack.]
duckpunch has joined #ruby
<gr33n7007h>
mozzarella: each_with_index was introduced into Ruby earlier. with_index was introduced later (i) to allow wider usage with various enumerators, and (ii) to allow index to start from a number other than 0.
soulcake has joined #ruby
zachrab_ has quit [Remote host closed the connection]
RandyT has quit [Ping timeout: 255 seconds]
zachrab has joined #ruby
yaw has joined #ruby
<mozzarella>
maybe they didn't want to change the api, hence why each_with_index still doesn't take any argument
<sohrab>
i want to iterate through something a bunch of hashes, and if there's a particular value i want to lower it by 1, but if the value is something els ei want to delete the hash entirely.
<sohrab>
is that possible?
<qua>
hi
<qua>
how long would you say is long enough to have given a problem a stab at on your own before looking up solutions for it or asking someone for help?