<shevy>
if you have an array like array = %w( abc def ghi ), how can you obtain all elements that match to 'ef', and also obtain the index?
dc has quit [Remote host closed the connection]
mg^^ has quit [Quit: Leaving]
<ehc>
I'm using rbenv and bundler to install gems into a .gems/ dir. I'm wondering if it's recommended to add the .gems to my gitignore or keep in the repo. Are the gems in .gems being compiled in any system specific way (don't add to git) or just specific to the ruby version (then add to git)?
<shevy>
hmm I'll just use .find_index
<Ionian>
agent_white, Where would I put this?
TgMts has quit [Read error: Connection reset by peer]
blasius has quit [Remote host closed the connection]
pu22l3r has quit [Remote host closed the connection]
hyperdrive has quit [Ping timeout: 240 seconds]
robustus has joined #ruby
<shevy>
it scares me
<shevy>
it's right from the Matrix
<shevy>
it transforms people
thumpba has joined #ruby
ringarin has joined #ruby
josh_ has joined #ruby
jshultz has quit [Quit: Connection closed for inactivity]
thumpba has quit [Client Quit]
<josh_>
exit
gsd has joined #ruby
thumpba has joined #ruby
kalusn has joined #ruby
mloveless has joined #ruby
<agent_white>
shevy: I know, I shouldn't go back :(
josh_ has left #ruby [#ruby]
sea_local has quit [Remote host closed the connection]
uber_hulk has joined #ruby
samuel02 has joined #ruby
beef-wellington has quit [Ping timeout: 258 seconds]
jcdesimp has quit [Remote host closed the connection]
claptor has joined #ruby
kiyote23 has joined #ruby
rshetty has joined #ruby
claudio_ has quit [Ping timeout: 260 seconds]
kiyote23 has quit [Remote host closed the connection]
quazimodo has joined #ruby
<quazimodo>
anyone know how to write to the master of a PTY and not have it show up in the read of master?
jaequery has joined #ruby
thumpba_ has joined #ruby
thumpba has quit []
thumpba_ has quit [Client Quit]
<quazimodo>
eg if my subprocess's stdin/out are set to slave from master, slave = PTY.open, and I write to master from my parent process, then it is output from slave into the child process. But that same input shows up when I read from master
thumpba has joined #ruby
<quazimodo>
just like I'd see it in a regular terminal
<quazimodo>
any way to disable that (kind of similar to when you type in a password and you don't see it echo'd back)
valeriansaliou has joined #ruby
alekst has quit [Quit: Computer has gone to sleep.]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ionian>
agent_white, im confused a bit :S
samuel02 has quit [Ping timeout: 244 seconds]
<agent_white>
Ionian: Hm?
<Ionian>
Idk how I can integrate your snippet into my code correctly
wjimenez5271 has quit [Remote host closed the connection]
<Ionian>
im a noob
<Ionian>
a 2day noob
maestrojed has quit [Ping timeout: 256 seconds]
josh_ has joined #ruby
wjimenez5271 has joined #ruby
kayloos has joined #ruby
<shevy>
2 days
<shevy>
you are learning
<shevy>
you will get better
<shevy>
look back when you are at day 10
<Ionian>
I know
<Ionian>
Im just confused on this part :S
<agent_white>
Ionian: Paste your code again, and explain which part you are confused about!
<Ionian>
agent_white, its the same, I just dont how to integrate your code with mine
rshetty has quit [Remote host closed the connection]
<shevy>
yeah agent_white's code is kinda alien
<shevy>
he is not of this world
fabrice31 has joined #ruby
<agent_white>
Ionian: So first things first, you read in the string. Right?
<agent_white>
\o/
valeriansaliou has quit [Ping timeout: 244 seconds]
<agent_white>
Agent white calling from planet earth!
<Ionian>
calling to*
kalusn has quit [Ping timeout: 265 seconds]
<agent_white>
;D
<pipework>
agent_white: you should have made it do something like `next unless <condition>\n the_rest_here`
<Ionian>
Yes
josh_ is now known as rotti_love
lucyinthesky has joined #ruby
<Ionian>
agent_white
<pipework>
And do select instead of collec+compact
thumpba has quit [Quit: AFK]
hyperdrive has joined #ruby
<agent_white>
pipework: Ahhh! Rad thank you for the correction :D
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
thumpba has joined #ruby
thumpba has quit [Client Quit]
lucyinthesky has left #ruby ["Leaving"]
<agent_white>
Ionian: So lets assume the input you read in was "!say some string to say"
<pipework>
>> %w|ef no effer|; |arr.select { |i| next unless i.include?("ef"); [i, arr.index(i)]}
<apeiros_>
`arr.select { |i| next unless i.include?("ef"); [i, arr.index(i)]}`, regarding `[i, arr.index(i)]` - you know that select only cares about truthiness, right? i.e. it's completely irrelevant that you return an array?
<pipework>
apeiros_: correct
<agent_white>
pipework: That looks much neater than my code haha
thumpba has joined #ruby
<pipework>
Yeah, just a little refactor.
<apeiros_>
why not just
<agent_white>
Ionian: Aye? -- Well do that first thing before checking the command in the case conditions.
<apeiros_>
>> %w|ef no effer|.select { |e| e.include?("ef") }
<pipework>
Though select works fine, this allows you to change from just true/false to actually being able to manipulate what you get back in teh array.
<apeiros_>
>> result = []; %w|ef no effer|.each_with_index { |e, i| result << [e, i] if e.include?("ef") }
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<apeiros_>
>> result = []; %w|ef no effer|.each_with_index { |e, i| result << [e, i] if e.include?("ef") }; result # just to be clear that you get the right result
<pawprint>
pipework: you typed the literal string "foo"? without a dash? and it worked?
<pipework>
pawprint: You saw exactly what I typed above.
<pipework>
Also, I don't know anything about puppet.
karmatr0n has quit [Remote host closed the connection]
karmatr0n has joined #ruby
red_horned_rihno has quit [Read error: Connection reset by peer]
<pawprint>
oh
<pawprint>
ok
<pawprint>
thanks
pawprint has left #ruby ["Leaving"]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
CpuID has quit [Quit: This computer has gone to sleep]
<shevy>
does one of you know of a ruby gem that converts a given case/when menu into a ruby hash?
jcdesimp has joined #ruby
djbkd has quit [Remote host closed the connection]
<shevy>
like ... case x; when 'a','b'; 'bla' -> {'a' => 'bla', 'b' => 'bla' }
<shevy>
all string entries there
djbkd has joined #ruby
red_horned_rihno has joined #ruby
timonv_ has joined #ruby
djbkd has quit [Remote host closed the connection]
red_horned_rihno has quit [Client Quit]
Vile` has quit [Remote host closed the connection]
djbkd has joined #ruby
Megtastique has quit []
icbm has quit [Quit: Computer sleeping]
Vile` has joined #ruby
laudo has quit [Ping timeout: 246 seconds]
coderhs has quit [Ping timeout: 255 seconds]
djbkd has quit [Read error: Connection reset by peer]
jcdesimp has quit [Quit: Leaving...]
timonv_ has quit [Ping timeout: 272 seconds]
theberlin has joined #ruby
fedexo has joined #ruby
dc has joined #ruby
lw has quit [Quit: s]
theberlin has quit [Remote host closed the connection]
<pontiki>
hi, folks
<pontiki>
why would a gem do that?
<pontiki>
seems like an editor macro would be the thing to use
fedexo has quit [Read error: Connection reset by peer]
Takle has joined #ruby
fedexo has joined #ruby
hiyosi has joined #ruby
hightower4 has joined #ruby
dc_ has joined #ruby
hgl- has joined #ruby
dc has quit [Read error: Connection reset by peer]
Takle has quit [Ping timeout: 250 seconds]
hgl has quit [Ping timeout: 240 seconds]
hgl- is now known as hgl
Riking has joined #ruby
_mtr has quit [Ping timeout: 245 seconds]
Klumben has quit [Ping timeout: 258 seconds]
lemur has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<hightower4>
Hey, if I have def x arg= {}, how do I pass parameters like ( :a => 1, :b => 2, c ) to it, where "c" is a complete hash? Just saying "c" tells me "=>" is expected, and if I use *c I also get error
ehc has quit [Quit: Connection closed for inactivity]
braincrash has quit [Quit: bye bye]
<pipework>
hightower4: You can't pass c like that, you specified one arg.
<pipework>
You either need to decide if you want to merge c into the first hash, make it a second optional or required arg, or make it so that your method globs args.
<pipework>
Maybe it globs all, or it globs after the optional first hash.
Akuma has joined #ruby
<hightower4>
Oh right, a glob would do, thanks
doritostains has quit [Quit: doritostains]
dc_ has quit [Remote host closed the connection]
braincrash has joined #ruby
<abs{CrazyM4n}>
Does Array#choose use the seed set by Random#srand ?
rshetty has joined #ruby
<hightower4>
pipework, I still get error though. If I have def x *arg , and I call x( :a => 1, :b => 2, c), I get error on both "c" and *C
konsolebox has quit [Ping timeout: 265 seconds]
chu has joined #ruby
<pipework>
hightower4: You'll have to put this into a nicer form.
lw has joined #ruby
lw has quit [Read error: Connection reset by peer]
rshetty has quit [Remote host closed the connection]
jaequery has joined #ruby
st0mar has quit [Ping timeout: 250 seconds]
kobain has quit [Read error: Connection reset by peer]
pontiki is now known as pontiki_zzz
<agent_white>
pontiki: \o
_mtr has joined #ruby
karmatr0n has quit [Remote host closed the connection]
Caius has joined #ruby
Caius has joined #ruby
testin has joined #ruby
jlast has quit [Remote host closed the connection]
jlast has joined #ruby
red_horned_rihno has quit [Quit: Leaving]
samuel02 has joined #ruby
kobain has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
_mtr has quit [Ping timeout: 240 seconds]
charliesome_ has joined #ruby
pwnz0r_ has joined #ruby
valeriansaliou has joined #ruby
Varun_Krishna has left #ruby [#ruby]
testin has quit [Ping timeout: 250 seconds]
mikepack has joined #ruby
jlast has quit [Remote host closed the connection]
pwnz0r has quit [Ping timeout: 258 seconds]
jlast has joined #ruby
oo_ has quit [Remote host closed the connection]
samuel02 has quit [Ping timeout: 244 seconds]
charliesome has joined #ruby
jxf has joined #ruby
chinmay_dd has joined #ruby
Takle has joined #ruby
fabrice31 has joined #ruby
charliesome_ has quit [Ping timeout: 264 seconds]
valeriansaliou has quit [Ping timeout: 265 seconds]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dotsspwe has quit [Quit: Leaving.]
momomomomo has quit [Quit: momomomomo]
jlast has quit [Ping timeout: 244 seconds]
craigp has joined #ruby
lampd1 has joined #ruby
hmsimha has joined #ruby
fabrice31 has quit [Ping timeout: 245 seconds]
Takle has quit [Ping timeout: 245 seconds]
Takle has joined #ruby
kapil__ has quit [Quit: Connection closed for inactivity]
mitt3ns has joined #ruby
agent_white has quit [Disconnected by services]
ringarin has quit [Ping timeout: 255 seconds]
mitt3ns is now known as agent_white
Takle has quit [Ping timeout: 245 seconds]
parabolize has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
DonOtreply has joined #ruby
shreddor has joined #ruby
AndroUser466 has joined #ruby
faitswulff has left #ruby [#ruby]
hamakn has joined #ruby
Abhijit has quit [Quit: Leaving]
arup_r has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
Azure has joined #ruby
DonOtreply has quit [Quit: DonOtreply]
AndroUser466 has quit [Quit: good bye]
Pupeno_ has joined #ruby
kl has joined #ruby
Axy has joined #ruby
Axy has joined #ruby
tkuchiki has joined #ruby
hiyosi has joined #ruby
konsolebox has quit [Remote host closed the connection]
hagarelvikingo has joined #ruby
Mia has quit [Ping timeout: 244 seconds]
kobain has quit [Ping timeout: 240 seconds]
Photism_ has joined #ruby
Pupeno has quit [Ping timeout: 244 seconds]
Hobogrammer_ has joined #ruby
Photism has quit [Read error: Connection reset by peer]
jlast has joined #ruby
kl has quit [Ping timeout: 245 seconds]
dotsspwe has joined #ruby
dotsspwe has quit [Max SendQ exceeded]
momomomomo has joined #ruby
dotsspwe has joined #ruby
dotsspwe has quit [Max SendQ exceeded]
dotsspwe has joined #ruby
dotsspwe has quit [Max SendQ exceeded]
Hobogrammer has quit [Ping timeout: 258 seconds]
sk87 has joined #ruby
agit0 has quit [Quit: This computer has gone to sleep]
dotsspwe has joined #ruby
dotsspwe has quit [Client Quit]
armyriad has quit [Ping timeout: 244 seconds]
AndroUser466 has joined #ruby
AndroUser466 has quit [Client Quit]
havenwood has joined #ruby
lukeholder has joined #ruby
jnollette has quit [Remote host closed the connection]
armyriad has joined #ruby
oo_ has joined #ruby
jnollette has joined #ruby
momomomomo has quit [Quit: momomomomo]
hamakn has quit [Remote host closed the connection]
Channel6 has quit [Quit: Leaving]
kapil__ has joined #ruby
hagarelvikingo has quit [Read error: Connection reset by peer]
oo_ has quit [Ping timeout: 240 seconds]
Photism_ has quit [Quit: Leaving]
testin has joined #ruby
pwnz0r_ has quit [Remote host closed the connection]
rshetty has joined #ruby
testin has quit [Ping timeout: 272 seconds]
thumpba has joined #ruby
teddyp1cker has joined #ruby
rshetty has quit [Ping timeout: 250 seconds]
shreddor has quit [Ping timeout: 265 seconds]
samuel02 has joined #ruby
arup_r has quit [Quit: Leaving.]
ARCADIVS has joined #ruby
arup_r has joined #ruby
<benzrf>
who pingt me
samuel02 has quit [Ping timeout: 244 seconds]
Snarkz has joined #ruby
ndrei has joined #ruby
_mtr has joined #ruby
JoshGlzBrk has joined #ruby
Morkel has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
sk87 has joined #ruby
agit0 has joined #ruby
Takle has joined #ruby
_mtr has quit [Ping timeout: 250 seconds]
DonOtreply has joined #ruby
josephndenton has joined #ruby
testin has joined #ruby
rurban_ has joined #ruby
mikepack has quit [Remote host closed the connection]
<hightower4>
Hey, I would like to define "class X::Y::Z", but the problem is that "X::Y" is not defined at that point (and defining "X::Y::Z" does not implicitly define "X::Y"), so I get an error. How would I most conveniently create "X::Y" as a dummy/placeholder?
<arup_r>
shevy: You there ?
Takle has quit [Ping timeout: 245 seconds]
rurban_ has left #ruby [#ruby]
<hightower4>
I was thinking of simply saying class X::Y; end , but I cannot do that because X::Y can be defined in some scenarios, and it inherits from some other classes so I get a mismatch between "Class X::Y" and "Class X::Y < A" used elsewhere
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
craigp has quit []
josephndenton has quit [Ping timeout: 256 seconds]
testin has quit [Ping timeout: 256 seconds]
charliesome has quit [Quit: zzz]
momomomomo has joined #ruby
<hightower4>
Hm, actually class X::Y; class Z; end; end worked, if class X::Y < A was seen before that. Ok, all good.
momomomomo has quit [Client Quit]
wjimenez5271 has joined #ruby
tkuchiki has quit [Ping timeout: 272 seconds]
charliesome has joined #ruby
kiyote23 has quit [Remote host closed the connection]
kiyote23 has joined #ruby
chinmay_dd has quit [Ping timeout: 250 seconds]
jlast has quit [Ping timeout: 258 seconds]
kiyote23 has quit [Ping timeout: 265 seconds]
Stalkr_ has joined #ruby
mijicd has joined #ruby
bears_ has joined #ruby
vt102 has quit [Ping timeout: 260 seconds]
jack_rabbit has quit [Ping timeout: 265 seconds]
wjimenez5271 has quit [Remote host closed the connection]
ringarin has joined #ruby
green-big-frog has quit [Ping timeout: 258 seconds]
decoponio has joined #ruby
sigurding has joined #ruby
mijicd has quit [Remote host closed the connection]
oo_ has joined #ruby
kl has joined #ruby
Stoge88 has joined #ruby
russt has quit [Quit: russt]
<agent_white>
Why can I save `eval("p 'hello'")` into a variable but not `print` or `puts` ?
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
sinkensabe has quit [Remote host closed the connection]
bartj3 has joined #ruby
kiyote23 has quit [Ping timeout: 255 seconds]
o0oo0o has quit [Ping timeout: 250 seconds]
oo_ has joined #ruby
<bartj3>
could anyone take a look at 4 lines of code for me? It does what it needs to do, but i feel like there should be a cleaner "ruby way" to do this. https://gist.github.com/bartj3/3015081d98adcb1ae042
<claf>
DaniG2k: your problem is like hamster wondering which of two carrots it is going to bite first, and you compare it to engineering a web server
<claf>
DaniG2k: wake up from your dream, and start coding your solution instead of wasting (our) time
sinkensabe has joined #ruby
<DaniG2k>
claf: are you getting paid to answer me?
<claf>
ok so you *are* trolling
<claf>
stop it, or ban
<DaniG2k>
if not then you are welcome to ignore
<claf>
I think ban would be better...
kl has joined #ruby
<claf>
...I have rather negative attitude towards trolling on this chan
<bartj3>
hms for some reason i was expecting an unknown variable error, thx claf
<DaniG2k>
you seem to have a negative attitude, full stop. Mine was a genuine question
<claf>
bartj3: so, you could write that as oneliner
Klumben has joined #ruby
<claf>
bartj3: media_url = tweet.media.first.m_u.to_s if tweet.media
<claf>
bartj3: but beware, is media_url going to contain values that have truthiness in a logical way
DaniG2k has quit [Quit: leaving]
<claf>
bartj3: unless media? is a method that returns bool
picassoo has quit [K-Lined]
<claf>
bart you could also use a ternary
keen___________1 has joined #ruby
sinkensabe has quit [Remote host closed the connection]
dreinull has quit [Remote host closed the connection]
<claf>
tm ? url = "foo" : nil
narcan has joined #ruby
keen___________0 has quit [Ping timeout: 256 seconds]
<bartj3>
media? returns a bool, it's working but surprised it's not raising a NameError
dreinull has joined #ruby
<bartj3>
`media_url = tweet.media.first.media_url.to_s if tweet.media?`, i expected the method failing when trying to use media_url later and it's not assigned
uber has quit [Ping timeout: 255 seconds]
ringarin has quit [Ping timeout: 240 seconds]
<claf>
note that backtick denotes a system command in ruby
<claf>
(`)
<bartj3>
ow the backtick is not there, used to talking about code in slack which supports markdown :)
<claf>
yes, thought so
timonv_ has joined #ruby
<bartj3>
but nice, learned a new thing today :D thanks!
<claf>
even the original version is somehat clean to read
<claf>
DaniG2k do you have actual problem setting, a pastie with code?
o0oo0o has joined #ruby
emmesswhy has joined #ruby
timonv_ has quit [Remote host closed the connection]
<shevy>
he couldn't take the criticism
timonv_ has joined #ruby
alexherbo2 has quit [Quit: WeeChat 1.0.1]
^R has joined #ruby
<apeiros_>
claf: no need for the ad-hominem in your answer
<apeiros_>
seems DaniG2k left anyway
ziyadb has quit [Quit: Connection closed for inactivity]
<shevy>
to never return again
ValicekB has quit [Ping timeout: 256 seconds]
<claf>
perhaps so
<claf>
I think he was here to argue a non-point
<apeiros_>
he was asking a question, which from his point of view was both valid and genuine.
<claf>
and, I had and answer, which was the same
<apeiros_>
yes, and after which you should have stopped.
<claf>
perhaps so
<claf>
after all, my answer was clearly not of "right thinking"
sk87 has joined #ruby
<claf>
and did not result in Phusion Passenger devs winning
<claf>
(even if I did help them test it)
jarred has joined #ruby
<claf>
so, perhaps you guys will forgive me for my evil ways
claf has left #ruby ["ta!"]
IrishGringo has joined #ruby
asmodlol has quit [Ping timeout: 258 seconds]
asmodlol has joined #ruby
timonv_ has quit [Remote host closed the connection]
<shevy>
your punishment is to collect positive karma in the next days
<shevy>
by helping newcomers
tier has joined #ruby
kuda has joined #ruby
timonv_ has joined #ruby
<apeiros_>
he left too, shevy
jlast has joined #ruby
<aswen>
Hi, I just learned the hard way that a ~ (tilde) is not expanded in a path used within Ruby because that more of a shell behavliour
hamakn has quit [Remote host closed the connection]
shevy has left #ruby ["I'll be back ... maybe"]
uber has joined #ruby
ringarin has joined #ruby
yfeldblum has joined #ruby
<aswen>
can you guys please advice me how to achieve that I set a default path in a yaml file that can be expanded by ruby?
jarred has quit [Ping timeout: 258 seconds]
ringarin has quit [Client Quit]
yeticry has quit [Ping timeout: 245 seconds]
arietis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<aswen>
(i read some_path: '~/bla' from some yaml
<apeiros_>
aswen: File.expand_path expands ~ for you
grzywacz has joined #ruby
<aswen>
apeiros_: aha, so I have to do something like file_to_write = File.expand_path(path_from_yaml)?
<apeiros_>
correct
<aswen>
cool! thanx!
<apeiros_>
you're welcome
timonv_ has quit [Ping timeout: 256 seconds]
<aswen>
Me and Ruby compares good to Bambi's first steps on ice ;-)
tkuchiki has joined #ruby
<apeiros_>
slow and steady?
ValicekB has joined #ruby
kalusn has quit [Remote host closed the connection]
<aswen>
haha, no more the "falling, look stupid in the camera, and try again" part ;-)
<aswen>
but! I just let Ruby write a file! Yay!
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
bmichelsen has joined #ruby
shevy has joined #ruby
xMopxShell has quit [Ping timeout: 244 seconds]
bears_ has quit [Remote host closed the connection]
narcan has joined #ruby
_mtr has joined #ruby
bears_ has joined #ruby
frog|OFF is now known as green-big-frog
bears_ has quit [Remote host closed the connection]
sigurding has joined #ruby
bears has joined #ruby
_mtr has quit [Ping timeout: 256 seconds]
razieliyo has joined #ruby
razieliyo has joined #ruby
lolmaus has joined #ruby
jlast has quit [Ping timeout: 250 seconds]
uber_hulk has quit [Quit: Reconnecting]
uber_hulk has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
teddyp1cker has quit [Remote host closed the connection]
bartj3 has quit [Quit: Page closed]
teddyp1cker has joined #ruby
lxsameer has quit [Quit: Leaving]
narcan has joined #ruby
testin has joined #ruby
icbm has joined #ruby
^R has left #ruby ["Leaving"]
teddyp1cker has quit [Ping timeout: 258 seconds]
chu has joined #ruby
kies has joined #ruby
Freelusion has joined #ruby
testin has quit [Ping timeout: 258 seconds]
dumdedum has joined #ruby
sevenseacat has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
russt has joined #ruby
kiyote23 has joined #ruby
kies has quit [Remote host closed the connection]
sk87 has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
narcan has joined #ruby
startupality has quit [Quit: startupality]
icbm is now known as icbm[AFK]
postmodern has quit [Quit: Leaving]
oo_ has joined #ruby
elaptics is now known as elaptics`away
kiyote23 has quit [Ping timeout: 272 seconds]
tier has quit [Remote host closed the connection]
ItSANgo has quit [Quit: Leaving...]
sigurding has quit [Quit: sigurding]
icbm[AFK] is now known as icbm
IrishGringo has quit [Quit: ChatZilla 0.9.91 [Firefox 33.1.1/20141113143407]]
Sharker has quit [Remote host closed the connection]
yfeldblum has joined #ruby
Sharker has joined #ruby
samuel02 has quit [Remote host closed the connection]
oo_ has quit [Ping timeout: 244 seconds]
Freelusion has quit [Quit: Freelusion]
ItSANgo has joined #ruby
mjuszczak has joined #ruby
<shevy>
hmm if we have: module Foo; module Constants
mjuszczak has quit [Client Quit]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
<shevy>
and we modify other classes or modules residing in the module Foo namespace, and we need some of them to have the Constants... is it better to just do: include Constants, or do: include Foo::Constants ? both would seem to work, the latter appears more explicit
dumdedum has quit [Quit: foo]
LouisRoR has quit [Ping timeout: 255 seconds]
allcentury has quit [Ping timeout: 260 seconds]
yfeldblum has quit [Ping timeout: 264 seconds]
narcan has joined #ruby
sinkensabe has joined #ruby
yeticry has joined #ruby
pushpak has quit [Quit: Leaving...]
narcan has quit [Client Quit]
shazaum has joined #ruby
armyriad has quit [Ping timeout: 258 seconds]
sinkensabe has quit [Ping timeout: 265 seconds]
Soda has quit [Remote host closed the connection]
jlast has joined #ruby
webgen has quit [Read error: Connection reset by peer]
webgen has joined #ruby
jarred has joined #ruby
arup_r has joined #ruby
kobain has joined #ruby
webgen has quit [Ping timeout: 240 seconds]
samuel02 has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
jarred has quit [Ping timeout: 258 seconds]
samuel02 has quit [Remote host closed the connection]
Akagi201 has joined #ruby
pika_pika has joined #ruby
samuel02 has joined #ruby
Stoge88 has joined #ruby
davedev24_ has joined #ruby
anaeem1 has joined #ruby
yeticry has quit [Ping timeout: 260 seconds]
anaeem1 has quit [Remote host closed the connection]
yeticry has joined #ruby
renderful has joined #ruby
samuel02 has quit [Ping timeout: 240 seconds]
claw_ has joined #ruby
claw has quit [Ping timeout: 272 seconds]
sk87 has joined #ruby
hamakn has joined #ruby
testin has joined #ruby
sigurding has joined #ruby
renderful has quit [Ping timeout: 258 seconds]
timonv_ has joined #ruby
jlast has quit [Ping timeout: 258 seconds]
jlast has joined #ruby
fabrice31 has joined #ruby
o0oo0o has quit [Ping timeout: 250 seconds]
RitterJack has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
hamakn has quit [Ping timeout: 264 seconds]
anaeem1 has joined #ruby
lifenoodles has quit [Ping timeout: 250 seconds]
yeticry has quit [Quit: leaving]
fandi_ has quit [Quit: Leaving]
fandi has joined #ruby
anaeem1 has quit [Remote host closed the connection]
arietis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lifenoodles has joined #ruby
charliesome has joined #ruby
fandi has quit [Client Quit]
VictorBjelkholm has joined #ruby
fandi has joined #ruby
fabrice31 has quit [Ping timeout: 265 seconds]
red_horned_rihno has joined #ruby
arietis has joined #ruby
red_horned_rihno has quit [Max SendQ exceeded]
startupality has joined #ruby
red_horned_rihno has joined #ruby
red_horned_rihno has quit [Max SendQ exceeded]
timonv_ has quit [Remote host closed the connection]
red_horned_rihno has joined #ruby
Takle has joined #ruby
timonv_ has joined #ruby
anaeem1_ has joined #ruby
red_horned_rihno has quit [Max SendQ exceeded]
shazaum has quit [Quit: This computer has gone to sleep]
red_horned_rihno has joined #ruby
Sharker has quit [Remote host closed the connection]
fandi has quit [Max SendQ exceeded]
fandi has joined #ruby
red_horned_rihno has quit [Max SendQ exceeded]
anaeem1_ has quit [Remote host closed the connection]
red_horned_rihno has joined #ruby
hmsimha has quit [Ping timeout: 252 seconds]
TgMts_ has joined #ruby
timonv^ has joined #ruby
jheg has joined #ruby
red_horned_rihno has quit [Max SendQ exceeded]
red_horned_rihno has joined #ruby
timonv_ has quit [Ping timeout: 256 seconds]
o0oo0o has joined #ruby
red_horned_rihno has quit [Max SendQ exceeded]
TgMts has quit [Ping timeout: 240 seconds]
arietis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hmsimha has joined #ruby
yfeldblum has joined #ruby
arietis has joined #ruby
oo_ has joined #ruby
rshetty has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
testin has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 244 seconds]
yeticry has joined #ruby
oo_ has quit [Ping timeout: 244 seconds]
startupality has quit [Quit: startupality]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
hamakn has joined #ruby
arietis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AlexRussia has quit [Ping timeout: 250 seconds]
sk87 has joined #ruby
startupality has joined #ruby
rdark has joined #ruby
wasamasa is now known as vms
AlexRussia has joined #ruby
vms is now known as wasamasa
red_horned_rihno has joined #ruby
sinkensabe has joined #ruby
red_horned_rihno has quit [Client Quit]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
arya_ching has joined #ruby
Areessell has quit [Ping timeout: 245 seconds]
AlbertoCG has joined #ruby
charliesome has quit [Quit: zzz]
charliesome has joined #ruby
sinkensabe has quit [Ping timeout: 264 seconds]
jottr has joined #ruby
jottr has quit [Client Quit]
Aswebb_ has joined #ruby
red_horned_rihno has joined #ruby
_mtr has joined #ruby
red_horned_rihno has quit [Max SendQ exceeded]
red_horned_rihno has joined #ruby
red_horned_rihno has quit [Read error: Connection reset by peer]
jheg has quit [Quit: jheg]
kiyote23 has joined #ruby
kiyote23 has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 244 seconds]
Takle_ has joined #ruby
samuel02 has joined #ruby
_mtr has quit [Ping timeout: 240 seconds]
red_horned_rihno has joined #ruby
jxf has quit [Ping timeout: 264 seconds]
Takle has quit [Ping timeout: 250 seconds]
davedev24_ has quit [Ping timeout: 258 seconds]
testin has joined #ruby
davedev24_ has joined #ruby
red_horned_rihno has quit [Read error: Connection reset by peer]
pu22l3r has joined #ruby
wasamasa has quit [Ping timeout: 250 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
rkalfane has joined #ruby
sk87 has joined #ruby
pdlug has joined #ruby
timonv^ has quit [Remote host closed the connection]
timonv_ has joined #ruby
doritostains has joined #ruby
teddyp1cker has joined #ruby
DonOtreply has quit [Quit: DonOtreply]
dotsspwe has joined #ruby
eka_ has joined #ruby
teddyp1cker has quit [Ping timeout: 264 seconds]
Soda has joined #ruby
eka has quit [Ping timeout: 272 seconds]
red_horned_rihno has joined #ruby
jheg has joined #ruby
yfeldblum has joined #ruby
moritzs has joined #ruby
Stalkr_ has quit [Changing host]
Stalkr_ has joined #ruby
samuel02 has quit [Ping timeout: 245 seconds]
coderhs has joined #ruby
Spami has joined #ruby
mosez_ has quit [Ping timeout: 240 seconds]
coderhs has quit [Client Quit]
russt has quit [Quit: russt]
timonv_ has quit [Read error: Connection reset by peer]
timonv_ has joined #ruby
mosez has joined #ruby
wasa has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
wasa is now known as wasamasa
pika_pika has quit [Ping timeout: 258 seconds]
Pupeno has joined #ruby
Pupeno has joined #ruby
arya_ching has quit []
spastorino has joined #ruby
red_horned_rihno has quit [Read error: Connection reset by peer]
picassoo has joined #ruby
havenwood has joined #ruby
AlSquirrel has joined #ruby
pu22l3r has quit [Remote host closed the connection]
emmesswhy has quit [Quit: This computer has gone to sleep]
anaeem1_ has quit [Remote host closed the connection]
LouisRoR has joined #ruby
hamakn has quit [Remote host closed the connection]
LouisRoR has quit [Client Quit]
<jhass>
I'm not good at that :/
djbkd has joined #ruby
red_horned_rihno has joined #ruby
<jhass>
the style of the learncodethehardway stuff is nice, but then his ruby style is... not so nice
anaeem1_ has joined #ruby
doritostains has quit [Quit: doritostains]
<bradland>
the hard way books are good for people that grok programming already
red_horned_rihno has quit [Max SendQ exceeded]
moritzs has quit [Ping timeout: 250 seconds]
<bradland>
IMO, they don’t dwell long enough on the basics
<jhass>
if money is an option, codeschool for video stuff, chris pine's learn to program for book
dc has joined #ruby
red_horned_rihno has joined #ruby
<Ionian>
Money isnt right now
<jhass>
many do the codeacademy stuff
fabrice31 has joined #ruby
<Ionian>
Im 15 and my AP Java teacher will bitch if I pay for Ruby tuts
<arup_r>
jhass: How are you ?
red_horned_rihno has quit [Max SendQ exceeded]
<shevy>
Ionian did you work through the chris pine tutorial yet?
red_horned_rihno has joined #ruby
<Ionian>
No, wats that
<jhass>
arup_r: 'sup?
<shevy>
when you worked through it, you can explain what yield is and what a block is
bradland has quit [Quit: bradland]
geggam has quit [Ping timeout: 264 seconds]
ebbflowgo has quit [Quit: ebbflowgo]
red_horned_rihno has quit [Max SendQ exceeded]
Guest34714 has quit [Remote host closed the connection]
<shevy>
Ionian start here but don't skip something just because your brain tells you that it is boring https://pine.fm/LearnToProgram/chap_01.html - the whole thing will take less than 15-20 minutes
<arup_r>
jhass: Good.. :) Nothing.. just asking how are you ?
timonv_ has quit [Remote host closed the connection]
<Ionian>
Thanks
<Ionian>
and btw
cajone has quit [Read error: Connection reset by peer]
red_horned_rihno has joined #ruby
<Ionian>
any outlook on big speed gains for ruby yet?
<jhass>
arup_r: well, thanks
* wasamasa
stares blankly at Ionian
dc_ has joined #ruby
<Ionian>
uhhh
<Ionian>
I mean, there have been recent updates to its speed, but uhh
cajone has joined #ruby
<Ionian>
wut?
red_horned_rihno has quit [Max SendQ exceeded]
red_horned_rihno has joined #ruby
<wasamasa>
Ionian: let's just say that ruby just wasn't built with speed in mind
btcctf has quit [Ping timeout: 244 seconds]
btcctf has joined #ruby
fabrice31 has quit [Ping timeout: 245 seconds]
<Ionian>
Oh I know that
red_horned_rihno has quit [Max SendQ exceeded]
<shevy>
speed gain
<shevy>
if you want speed
<shevy>
use C Ionian
<Ionian>
B-but
<jhass>
no, crystal! :P
<Ionian>
I like Ruby :c
red_horned_rihno has joined #ruby
<wasamasa>
Ionian: you're being silly
sigurding has joined #ruby
<shevy>
you have more control in C
<wasamasa>
Ionian: I mean, you're just asking without any clear intention for speed
dc has quit [Ping timeout: 264 seconds]
<shevy>
and by the way, you can prototype in ruby and then write C
<wasamasa>
Ionian: not a single mention of algorithms, data structures, etc.
<wasamasa>
Ionian: or even what the program is supposed to do
red_horned_rihno has quit [Max SendQ exceeded]
<shevy>
he is not yet sure what his program is supposed to do either :-)
<Ionian>
oh im sure
<centrx>
Ruby is pretty fast now
<Ionian>
Im making a chat bot with a friend
jarred has joined #ruby
bradland has joined #ruby
red_horned_rihno has joined #ruby
<Ionian>
orly? centrx?
<wasamasa>
that doesn't sound like it's cpu-bound
<shevy>
benzrf look, Oejet is using sage to prototype now before he goes into haskell:
<shevy>
<Oejet> I do miss some things from Haskell, like Maybe, and a proper fold function.
<Ionian>
if ruby was fast, you have its beautful syntax and speed
<wasamasa>
neither ruby nor python were built with speed in mind
<kl>
I'm not sure what his complaint about fold is, but it's probably valid
CrazyM4n has joined #ruby
<Ionian>
well, why not now?
<wasamasa>
in fact, they were built by single individuals who didn't know much about language design
<wasamasa>
granted, the guy behind php did know nothing at all about it
<kl>
It's funny, all the languages made by people who don't know much about programming languages, don't have static types
<wasamasa>
wrong
<kl>
gimme some of that lovely correction
<wasamasa>
see scheme, J, etc.
jarred has quit [Ping timeout: 258 seconds]
<wasamasa>
Ionian: well, backwards compatibility
<kl>
I don't think I worded that in a way to accurately express what I meant; perhaps a question:
doritostains has joined #ruby
<kl>
which languages have been made with static types, by people that don't know much about programming languages?
<wasamasa>
Ionian: there've been good efforts at improving speed with alternative interpreters
centrx has quit [Quit: Science is organized knowledge, wisdom is organized life.]
<wasamasa>
kl: yes, you worded that the wrong way around
<kl>
wasamasa: the sentiment I'm really expressing, is that, it seems as though expertise points towards using static types
_mtr has quit [Ping timeout: 260 seconds]
pushpak has joined #ruby
faitswulff has quit [Quit: Leaving.]
sigurding has quit [Quit: sigurding]
yfeldblum has joined #ruby
Soda has joined #ruby
renderful has joined #ruby
centrx has joined #ruby
jaequery has joined #ruby
arup_r has quit [Ping timeout: 250 seconds]
jaequery has quit [Max SendQ exceeded]
jaequery has joined #ruby
thumpba has joined #ruby
<wasamasa>
kl: that could very well be
armyriad has joined #ruby
Axy is now known as Mia
ph8 has quit [Ping timeout: 244 seconds]
arup_r has joined #ruby
fedexo has joined #ruby
yfeldblum has quit [Ping timeout: 258 seconds]
renderful has quit [Ping timeout: 245 seconds]
bogeyd6 has quit [Ping timeout: 244 seconds]
<shevy>
Ionian many things that exist in C don't exist in Ruby; for instance, how do you manipulate pointers in Ruby or gain access to the memory? where do you put compiled ruby code?
<Ionian>
C is too low-level for me
<Ionian>
Id rather leanr Go
thumpba has quit [Remote host closed the connection]
armyriad has quit [Ping timeout: 244 seconds]
<shevy>
I thought we are speaking about making ruby fast
Takle has joined #ruby
djbkd has quit [Remote host closed the connection]
_mtr has joined #ruby
jamesaxl has joined #ruby
soulcake has quit [Quit: Quack.]
jmdade has joined #ruby
rshetty has quit [Remote host closed the connection]
soulcake has joined #ruby
<Ionian>
rubini.us
arup_r1 has joined #ruby
<gandhi>
rubinius is probably the slowest implementation out of em all right now
Pupeno has quit [Remote host closed the connection]
tus has joined #ruby
_mtr has quit [Read error: Connection reset by peer]
armyriad has joined #ruby
arup_r has quit [Ping timeout: 272 seconds]
<Ionian>
rly?
djbkd has joined #ruby
<Ionian>
on its site it says
<kl>
the best thing about Go is channels
<Ionian>
runy FAST ruby code
<kl>
it's a shame Ruby's agent gem which mimicks that concurrency abstraction appears unmaintained
karmatr0n has quit [Remote host closed the connection]
doritostains has quit [Quit: doritostains]
_mtr has joined #ruby
<Ionian>
Go is a love or hate game
<kl>
Ionian: for zealots, sure
<kl>
there are pros and cons
<kl>
A conceivable pro is that Go isn't very TIMTOWTDI. That lack of expressivity is simultaneously a conceivable con.
<epitron>
the people who made rubinius weren't experienced VM engineers
max96at is now known as max96at|off
anaeem1_ has quit [Remote host closed the connection]
<epitron>
that was their first VM for most of them
boombadaroomba has joined #ruby
karmatr0n has joined #ruby
<epitron>
i bet if they were to redo it, it would be much faster
<kl>
If speed is what you're *really* looking for, Ruby isn't really the language
<kl>
There's only so much that Ruby, as a language, whichever the runtime, can be optimized
shazaum has quit [Quit: This computer has gone to sleep]
<ponga>
kl: is correct
gamzera_ has joined #ruby
<ponga>
i just love ruby and use it cos i work alone
Photism has joined #ruby
<ponga>
I wouldn't want myself to code same stuff in language like java
<ponga>
i'd get much less sleep then
<Ionian>
I hate Java
ph8 has joined #ruby
<ponga>
who doesn't?
<gamzera_>
hey guys
<kl>
Java is a truly abysmal language
<gamzera_>
rails new example -T
Stoge88 has joined #ruby
<gamzera_>
what does -T do?
<kl>
Its existence is solely for economical reasons
Takle has quit [Remote host closed the connection]
<ponga>
i still believe(insist, more like) that java is only famous cos it got viral
<epitron>
java: they couldn't decide whether to make it high level or low level \o/
<ponga>
agreed kl
<epitron>
let's do both!
<Ionian>
Yeah
Takle has joined #ruby
<Ionian>
Rails might not last longer than 10 years if its this slow
boombadaroomba has quit [Ping timeout: 258 seconds]
karmatr0n has quit [Ping timeout: 250 seconds]
<epitron>
lol
<wasamasa>
kl: java would be my best bet for a language with static types that sucks btw
<wasamasa>
kl: go, too
<epitron>
if the web is still around in 10 years, i'm going to become a sheppard
<ponga>
replaced by node.js?
<ponga>
well rails is very handy
<Ionian>
ponga, or Go
<kl>
wasamasa: agreed
<wasamasa>
kl: but the people around it weren't as silly as the ruby and python authors, so...
<kl>
I like Scala
<wasamasa>
kl: I don't know really
<Ionian>
IMO Meteor.js is better than Rails
<jhass>
gamzera_: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ help
<epitron>
ugh, javascript
<Ionian>
I love JS
<kl>
wasamasa: its close relationship to Java does make me feel a bit icky. Perhaps as I progress further with FP, I'll move closer to purity (aka further from JVM)
anaeem1_ has joined #ruby
<epitron>
Ionian: stockholm syndrome
<ponga>
but i still can't grasp this notion of 'rails is slow' , isn't twitter built on Rails????
<ponga>
i think its still fine as long as its not super-enterprise scale
<wasamasa>
kl: well, good luck
<epitron>
twitter ditched rails for most of its functionality a long time ago
<Ionian>
ponga, No, it uses a bit of Rails though
<ponga>
oh ok
<Ionian>
Twitter uses JVM
<ponga>
so backend is like java
<ponga>
there you go
<ponga>
i saw that coming ser!
<epitron>
hadoop, scala... cassandra?
<Ionian>
LinkIn switched from Rails to JS
<epitron>
they have a smorgasborg of technologies
<Ionian>
and Paypal switched from JAVA to JS
<epitron>
it's funny how crazily complex it is to run a really really big searchable log file :)
<epitron>
(aka. twitter)
<Ionian>
some sort of API was rewirtten from Ruby to Go
<Ionian>
x50 faster
<kl>
Twitter is Scala, primarily
Takle has quit [Ping timeout: 244 seconds]
m8 has joined #ruby
red_horned_rihno has quit [Read error: Connection reset by peer]
<kl>
It abandoned Rails. Word is because it "wouldn't scale" - but I'd bet that's not to do with speed, and more for the fact that Rails is monolithic, and Scala has great microservice support
<epitron>
brixen: orly
<ponga>
wouldn't rails still keep the position of 'use rails to develop fast for first release and become viral then shift'
<brixen>
gandhi: tell me something you want me to make faster in Rubinius
oo_ has joined #ruby
<ponga>
i don't think rails would just die
anaeem1_ has quit [Ping timeout: 255 seconds]
triple_b has joined #ruby
<kl>
ponga: it's that mentality that puts me off the Ruby job market, really. It's often used for prototyping crap. I want to make quality software
sigurding has joined #ruby
<ponga>
well indeed
<ponga>
can't disagree more ser
<ponga>
but it still holds its color
<gandhi>
brixen, i donno, i havent used rubinius in a while
<kl>
ponga: oh don't get me wrong. "Don't hate the player, hate the game". It's not Ruby's fault.
<kl>
It's that mean old economy
<epitron>
brixen: rubygems! :D
<ponga>
actually ruby is the language i use most (all the time, really) to write the code i thought of or imagined
<epitron>
rubygems initialization time still bugs me
<ponga>
lack of need to write long grammar makes it easy
timonv_ has joined #ruby
red_horned_rihno has joined #ruby
<kl>
ponga: agreed. Although I wonder at which point that becomes a false economy
<kl>
ponga: when compared to a langauge that provides more compile-time safety, that is
<brixen>
epitron: which part of rubygems?
red_horned_rihno has quit [Remote host closed the connection]
<gandhi>
Kernel#require monkey patch
<gandhi>
if that was faster everywhere id be happy :D
triple_b has quit [Client Quit]
<ponga>
and i should really research go language now
<ponga>
is it that good
<epitron>
brixen: mostly the way it stats every directory on your filesystem and parses every gemspec in the system
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<brixen>
gandhi: the key is to get rubygems out of runtime where it should never be in the first place
lifenoodles has quit [Ping timeout: 245 seconds]
<kl>
ponga: it has a pretty massive cult following. You don't hear many people talk ill of it, except (for me), say: wasamasa and every #scala guy I met
<brixen>
epitron: ok, will be fixed in rbx 2.5.0 :)
<epitron>
hahah
timonv_ has quit [Remote host closed the connection]
<epitron>
^5
asmodlol has quit [Ping timeout: 245 seconds]
<brixen>
I was actually working on it last weekend
<kl>
ponga: and their judgements hold more weight for me than the people proclaiming how awesome it is
<epitron>
nice!
shazaum has joined #ruby
<wasamasa>
kl: well, I just don't see the point in using it except if you're working for google
<wasamasa>
kl: that's pretty much it
<shevy>
:)
damic has quit [Ping timeout: 244 seconds]
oo_ has quit [Ping timeout: 250 seconds]
<shevy>
we all worship our master google
<ponga>
kl: maybe its a matter of tendency, the false economy thing, that there are many substitute langs people 'tend' to use for serious enterprise stuffs
<gandhi>
damn brb, mouse br0ke
<kl>
wasamasa: I don't see employment status at google having any bearing on the matter
<epitron>
actually, one thing that both rbx and julia (and other self-hosted languages) could use is a way to cache the initial kernel's memory image, so they can startup faster
<wasamasa>
kl: the type system is about as good as the one of java, the error handling is c-like and the entire language screams "USE IT FOR THE SAKE OF TEAMWORK"
damic has joined #ruby
<ponga>
i don't really want to believe that ruby is not good enough of a language for serious work
<ponga>
or is it?
<wasamasa>
ponga: define "serious"
<shevy>
ruby is too complex
<epitron>
wasamasa: ROFLSCALE
<ponga>
well, like enterprise project?
<kl>
ponga: about 2 years ago, I was asking/saying that about Perl.
* wasamasa
has never worked at enterprise scale
<wasamasa>
ponga: try harder
<centrx>
By enterprise do you mean "crap"
<ponga>
and what answer did you find out kl
<ponga>
wasamasa: non-indie
<kl>
ponga: that I should have got out of Perl a long time before
<wasamasa>
ponga: you're replacing labels
<ponga>
oh yeah i was, sorry im not even specifc to myself anyway
<wasamasa>
ponga: describe it with words that can actually used to pin down a specific property of it
<ponga>
im not even 100% sure of what im saying
tier has joined #ruby
asmodlol has joined #ruby
<ponga>
i mean, like, i don't think i saw a popular desktop app written in ruby
<ponga>
only popular apps i saw are by rails
<centrx>
That's just different use cases
jamesaxl|2 has joined #ruby
<kl>
ponga: like I say, I love Ruby. I have a Ruby job, probably working on the largest (Ruby) system of people here; but I see warning signs which motivate me to keep my eyes outwards, too
<kl>
Ionian: I'm not really sure why you're recommending that
<kl>
Are you?
<havenwood>
Ionian: the 1980s is calling and wants it's language back
<ponga>
kl: iwasn't particullarly bashing you , im only a noob who could i possibly bash
elvispresley has joined #ruby
<wasamasa>
kl: I'm not sure whether that's the one I had in mind actually
doev has joined #ruby
<kl>
ponga: I know you're not buddy
<havenwood>
s/it's/its
<ponga>
:P
tus has quit [Ping timeout: 244 seconds]
axilla has joined #ruby
<epitron>
in the future, ruby will live on through its influence on other languages... (eg: rust, coffeescript ^_^)
gandhi has quit [Ping timeout: 250 seconds]
<kl>
ponga: I'm just trying to not sound like a Ruby-hater, because that's furthest from the truth. Call it a disclaimer for me saying potentially "negative" things :)
<Ionian>
WHAT
elvispresley is now known as elvispresley-
<ponga>
epitron: don't forget Swift plz
<Ionian>
RUST IS INFLUNECED BY RUBY?
<ponga>
lol
<havenwood>
Ionian: yes
jheg has quit [Quit: jheg]
<Ionian>
time to elarn Rust
<epitron>
its syntax is quite rubyified
<Ionian>
learn*
<wasamasa>
Ionian: ...
<ponga>
even Swift language had some ruby aspects of syntax too
<wasamasa>
Ionian: well, either way, time better spent
<Ionian>
Rust is all about speed right ;)
<ponga>
its style will live long
<kl>
I'm going to learn Rust when Rust stops changing so damn much. I have things to learn in the meantime that are staying still
hyperdrive is now known as hdrv
gamzera_ has quit [Read error: Connection reset by peer]
<epitron>
do people use Swift?
<Ionian>
Yes
hdrv has quit [Changing host]
hdrv has joined #ruby
<ponga>
dunno
<wasamasa>
kl: they plan to release 1.0 in february?
<epitron>
i haven't heard anything about it since it was announced
<Ionian>
RANKED 27 ON TIBOE INDEX BRO!!!
<Ionian>
17***
<havenwood>
maybe one day Swift will get performance and tooling as nice as RubyMotion
<havenwood>
but not today
<Ionian>
O
<shevy>
tiobe uses no real dataset for their ranking
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jamesaxl has quit [Ping timeout: 272 seconds]
<Ionian>
is Rubymotino fast for those apps?
<kl>
wasamasa: awesome. I hear a lot of good stuff about it; it's only where I'm on a large endeavor myself (Scala & FP mastery) that I'm not looking at it right now
gsd has joined #ruby
<elvispresley->
havenwood, what about that playground thingy
<ponga>
Ionian: i hear rubymoition is as fast as native
jbueza has joined #ruby
<ponga>
that its compiled into machine code?
<ponga>
kl: can i ask you something
<Ionian>
Is it a bad idea to learn rust?
<kl>
ponga: sure
<havenwood>
elvispresley-: pretty looking. but clunky, though i haven't used it in a while, maybe it's better now
<ponga>
i always thought that ruby could be a lot of stress to work in a team
<ponga>
cos the style of syntax is very
<ponga>
you know
<ponga>
can be different from people to people
<elvispresley->
rubocop
<shevy>
you could define a style
<shevy>
and use that in the team
<epitron>
Ionian: YES LEARNING RUST WILL MELT YOUR BRAIN
<kl>
ponga: I know what you mean. I'm on a highly disciplined team - our style tends to be the same
<ponga>
that's what im asking kl now
<Ionian>
epitron, srsly?
<wasamasa>
kl: in case rust turns out to not be the solution, I'll just learn C and contribute to existing projects using it
<kl>
ponga: the team mostly learned Ruby together, so they co-evolved. Take 10 different experienced Ruby devs, put them together for the first time - you may get more disagreement
hamakn has joined #ruby
arup_r has joined #ruby
<kl>
ponga: we'd never touch Rails - we tend to write Rack applications; Sinatra at most heaviest
<ponga>
thanks kl
tus has joined #ruby
<ponga>
interesting
<ponga>
cos i heard from ..shevy? that he'd defntly use rby over PHP for server/web
<kl>
wasamasa: Rust is of interest to me because it's inspired with a lot of modern theory and features
<kl>
ponga: incidentally, I run Ruby on the JVM - JRuby
sea_local has quit [Remote host closed the connection]
<ponga>
ah Jruby
<wasamasa>
"We have to be careful using languages that aren't good, because if we're not careful, we might end up stuck using them for the next 20 years."
<ponga>
i never used it
<shevy>
I use ruby over PHP because ruby is extremely mallable to how I'd like to describe web-related actions
uber_hul1 has quit [Ping timeout: 250 seconds]
<ponga>
is that like you can call Java library in ruby syntax?
<ponga>
or you compile ruby code and run it on jvm
<ponga>
i always wondered
<ponga>
or both?
<ponga>
sorry asking so many questions
<Ionian>
Wait
<Ionian>
are you actaully seriours
<Ionian>
that I shouldnt learn rust?
<ponga>
shevy: what's mallable mean
<kl>
wasamasa: I'll read through those in a mo for sure
<kl>
Ionian: your opinions don't seem to be strongly held as your own
<wasamasa>
Ionian: honestly, just learn something and come back once you've had some more experience with writing code
sk87 has joined #ruby
<kl>
Ionian: have you considered joining my cult? You might like it. ;)
<kl>
I'm sure Ruby has bindings to those widget toolkit
<kl>
don't expect it to feel like ruby, though
green-big-frog is now known as frog|OFF
<ponga>
why didn't ruby get a UI framework
<kl>
in fact, surely you can't even do GUIs in Ruby on the MRI
<ponga>
sad
<centrx>
Yes you can
<epitron>
ponga: the binings are enormous
<kl>
centrx: doesn't the GIL make it.... not work
<epitron>
if you want to make the binding OOP, you have to write so much C code
<ponga>
but it won't fell like ruby kl says :(
<shevy>
ponga the idea of shoes was good when _why was in charge; I don't like that it now depends on java
<kl>
centrx: I see shoes4 mandates JRuby, for that reason
<epitron>
the mappings from the C library to Ruby is like 100,000 lines for almost all of them
<havenwood>
shevy: that's just the first binding they're implementing
<centrx>
oh mri
<epitron>
jruby is probably better for making a GUI
<ponga>
i'd want ruby version of node-webkit
<kl>
shevy: what would you prefer a GUI to run on, MRI?
<epitron>
cross-platform by default, maintained, bindings aren't insane
<ponga>
is it too much of asking
<shevy>
kl yeah. like ruby-gtk or ruby-qt
<shevy>
or ruby-tk but it's too ugly to use
<kl>
shevy: Ruby MRI's GILs would make GUIs suck ass
<kl>
a whole lotta ass
<shevy>
they work just fine here
<havenwood>
kl: why do you say that?
<havenwood>
kl: what does the GVL have to do with it?
<shevy>
the main problem is that it takes way too much code to whip out GUIs
jheg has joined #ruby
<epitron>
shevy: were you working on gtk bindings?
nanashiRei has joined #ruby
<shevy>
that's what I still use today!
yfeldblum has quit [Ping timeout: 258 seconds]
<kl>
havenwood: hmm.... maybe Fibers would resolve that. GUIs need a whole lot of interleaving
<shevy>
well, I don't know enough C to help the japanese lead dev
<havenwood>
kl: the GVL might not be as restrictive as you're thinking...
<ponga>
shevy: i know enough Japanese but not C
<shevy>
I am afraid japanese won't help you build a GUI in ruby
jamesaxl has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<epitron>
kl: the gui would run independantly of the ruby interpreter for the most part. it would just need to poke ruby for callbacks, and threads would be fine for that most of the time
<ponga>
hehe
ylluminate has joined #ruby
<ponga>
epitron: sounds like socket communication to me, somewhat
<epitron>
yep
<shevy>
my dream would be a GUI agnostic framework that works nice
<wasamasa>
like, shoes?
<shevy>
yeah
<shevy>
but _why is gone
<shevy>
it is no longer shoes
<ponga>
what do you mean GUI agnostic shevy
<shevy>
ponga write it once and have it work everywhere
<epitron>
it sounds like shevy wants wxwindows: TNG
<kl>
epitron: if the GUI doesn't run on the MRI, sure
<ponga>
ah hah
<ponga>
shevy: is _why gone for good now?
<epitron>
kl: bindings don't run on MRI :)
<shevy>
Button.new
<ponga>
i mean for ruby
<shevy>
rather than Gtk::Button.new
<shevy>
yeah ponga
<havenwood>
kl: extensions are freeee to run wild
<kl>
epitron: oh ofc. I was talking more about a native Ruby one
<shevy>
perhaps he is still using ruby for personal projects
<epitron>
ewwww
<epitron>
noooo
<kl>
havenwood: crossed wires, I think
<epitron>
native ruby GUI would be slow as hell
<ponga>
i'd always use ruby for personal stuffs
<kl>
epitron: my point :)
<ponga>
i don't want to use java for that, defntly not
<kl>
I've no opposition to using bindings, except for the code being a ugly
<havenwood>
ponga: JRuby != Java
<ponga>
havenwood: i m not saying Jruby
<havenwood>
oh
<ponga>
my first language was java ser
<havenwood>
thought you were talking Shoes4, vm
<ponga>
and the exprience was
<ponga>
terrible
<havenwood>
nvm*
<shevy>
you are a business man!
<shevy>
java-ponga
<kl>
someone get this guy a suit
<ponga>
no, never
<ponga>
please
josephndenton has quit [Ping timeout: 244 seconds]
red_horned_rihno has joined #ruby
<kl>
My main concern for Ruby, as a language, is that its main interpreter doesn't support concurrency properly. And concurrency is the future
<kl>
That is a warning sign to me.
<havenwood>
kl: it isn't the now, and the future plans are strong
stunder has quit [Quit: Screw you guys I'm going home]
<havenwood>
kl: worry not
momomomomo has joined #ruby
<epitron>
kl: i think the reason all the C GUI tooklit bindings were so complex is because of the garbage collector
<kl>
havenwood: concurrency *is* the now, really
<epitron>
you're moving allocated objects from ruby to the GUI and vice versa
<havenwood>
kl: how so?
<ponga>
shevy: i'm merely a dev, im a linguist and only specialize in little part fields
<epitron>
if that could be solved somehow, the bindings could probably be a lot smaller
<kl>
havenwood: the applications I write are concurrent. I don't ever touch MRI except for small scripts, now
<ponga>
and my today's question is, do you believe that Human brain has a backend same to turing machine of 0101 ?
<shevy>
epitron my grand theory is that for some reason, ruby bindings are harder to do than python bindings
<shevy>
of course I have no data to back up my claim
lifenoodles has quit [Ping timeout: 245 seconds]
<epitron>
shevy: python bindings are more generated if i recall
<epitron>
the py-gtk bindings were like 15,000 lines of python and 100,000 lines of xml
<kl>
ponga: you have many questions, but in this day and age (maybe any), you wouldn't get very far otherwise :)
<kl>
ponga: partially.
<ponga>
i love asking questions, you don't have to answer all of them
<ponga>
its ok to ignore some
tectonic has joined #ruby
psy_ has quit [Read error: Connection timed out]
<kl>
Also, hype. And economical reasons that business can exploit the same devs for both back- and front-end
<kl>
ponga: it's fine :)
chinmay_dd has joined #ruby
<shevy>
ponga I have another theory - because javascript has the de-facto monopoly over the browsers, and the www is one of the most important inventions the last... 20 or so years (30? 40? hmm), it's going to win
<havenwood>
kl: so you're using Ruby with threading for computationally intense tasks? what do benchmarks look like between MRI, JRuby and Rubinius?
pandaant has joined #ruby
<ponga>
oh i asked if you think human brain's backend work the same logic as turing machine that of 0 1 0 1 0 ...
psy_ has quit [Max SendQ exceeded]
<ponga>
as a linguist working chatbot AI, this is big to me
emmesswhy has quit [Quit: This computer has gone to sleep]
psy_ has joined #ruby
<kl>
havenwood: hehe. There is certainly the point where things get "parallel slowdown" - it's identifying those points I'm meant to be an expert at, not a denier of :)
dc_ has quit [Remote host closed the connection]
ohaibbq has quit [Ping timeout: 258 seconds]
<kl>
havenwood: in fact, actually, it's not so much concurrency for computational intensity. More for IO waiting.
druznek has joined #ruby
<epitron>
2014-11-08 02:11:36 Hanmac epitron: part of my code in the binding is about to prevent ruby from crashing ... like if you store a widget in a variable, then destroy the widget, and then call a function it does not cause a segfault
<havenwood>
kl: Which GVL isn't blocking on anyways.
<havenwood>
kl: hence my call for benchmarks!
psy_ has quit [Client Quit]
lifenoodles has joined #ruby
<ponga>
i found this
<havenwood>
kl: Just to be clear, MRI GVL doesn't block on IO calls.
<kl>
havenwood: I called for benchmarks before (having joined after the decision was made to JRuby), with the fear that we were cargo culting. I'm going to instigate a benchmark soon
kalusn has quit [Remote host closed the connection]
<kl>
havenwood: I knew I recognised his name, I've seen this talk
Takle has joined #ruby
<havenwood>
aha!
sn0wb1rd has quit [Ping timeout: 245 seconds]
Channel6 has joined #ruby
ramfjord has quit [Ping timeout: 245 seconds]
timonv_ has quit [Remote host closed the connection]
karmatr0n has joined #ruby
CrazyM4n has joined #ruby
TgMts_ has quit [Ping timeout: 258 seconds]
sn0wb1rd has joined #ruby
Takle has quit [Client Quit]
Takle has joined #ruby
fedexo has quit [Read error: Connection reset by peer]
fedexo_ has joined #ruby
<kl>
havenwood: I'm not sure why he had to change the names to not be their standard monadic names
sargas_ has joined #ruby
<kl>
both methods and monads alike, makes it weird
<havenwood>
good point
<havenwood>
dunno why
jxf has joined #ruby
karmatr0n has quit [Ping timeout: 260 seconds]
<sargas_>
I felt like hanging myself upside-down after reading this: "The superclass of the eigenclass of a class e the eigenclass of the class' superclass"
<sargas_>
correction
<sargas_>
I felt like hanging myself upside-down after reading this: "The superclass of the eigenclass of a class is the eigenclass of the class' superclass"
<sargas_>
but then just by being upside-down I got enough blood on my brain to understand that statement :)
havenwood has quit [Remote host closed the connection]
tristanp has joined #ruby
gccostabr has joined #ruby
<jhass>
sargas_: note that core settled on the term singleton class instead of eigenclass
ragingcake has joined #ruby
<jhass>
and I'd prefer that anyway
* apeiros_
doesn't
tgandrews has joined #ruby
<apeiros_>
but standardizing is more important.
<jhass>
eigenclass sounds silly ;P
ebbflowgo has quit [Quit: ebbflowgo]
<apeiros_>
and singleton_class leads to confusion :-|
AmrMostafa has joined #ruby
AmrMostafa has left #ruby [#ruby]
<apeiros_>
but it's pointless to argue. as you said, singleton_class is the standard.
<shevy>
how about
<shevy>
eigenton!
hongxu_ has joined #ruby
<sargas_>
the book mentioned Matz preferred the term eigenclass... but it didn't have a standard name at the time this book was written
<sargas_>
jhass: thanks for letting me know
<elvispresley->
jhass, sounds german
<shevy>
the eigenclass of the superclass of a class is the superclass' eigenclass
<sargas_>
I agree that singleton class leads to confusion at first...
<apeiros_>
elvispresley-: it is. just as eigenvector is.
<shevy>
Eigentor
<jhass>
or kindergarden
ramfjord has joined #ruby
<apeiros_>
kindergarden surprised me
Pupeno has joined #ruby
<shevy>
they just flat our stole that word
valeriansaliou has joined #ruby
<shevy>
*out
<elvispresley->
borrowed it ;)
<sargas_>
jhass: being German, did the term eigenclass make more sense to you over singleton class at first?
<jhass>
elvispresley-: my english teacher used to say English is 60% german and 30% french
<shevy>
the problem is that eigenclass literally means selfclass translated sargas_
sinkensabe has joined #ruby
<jhass>
sargas_: I don't quite remember, but I don't think so
<sargas_>
shevy: that's exactly why I ask... to me it makes more sense to call them eigenclass
startupality has quit [Quit: startupality]
bogeyd6 has joined #ruby
<elvispresley->
jhass, i work with a german girl, and she says 'darling' a lot, it's very cute
<shevy>
makes as much sense as calling it selfclass then
<shevy>
and then you have to wonder about constructs like class << self
<shevy>
that's an Eigenclass no?
<sargas_>
but if you think that a singleton class is where class methods are defined for that unique class... it makes more sense
<shevy>
I thought singleton refers to it being unique? like only one of its kind?
sargas_ has quit [Changing host]
sargas_ has joined #ruby
<jhass>
sargas_: well, "class method" is just a shortcut term for instance methods in a class' singleton class
<jhass>
ruby itself does not know class methods
webgen has quit [Ping timeout: 240 seconds]
godd2 has joined #ruby
tristanp has quit [Remote host closed the connection]
<godd2>
is there any difference between false and nil other than their response to .class and .nil?
valeriansaliou has quit [Ping timeout: 240 seconds]
jbueza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tristanp has joined #ruby
kies has joined #ruby
<epitron>
that eigenclass sentence is easier to understand as family relationship. parent has dog, child has puppy of dog, puppy's parent is child's parent's dog
<jhass>
godd2: some, #to_i comes to mind
<jhass>
I'd recard them as strictly different types really
jbueza has joined #ruby
<jhass>
*regard
<apeiros_>
godd2: also to_s
sinkensabe has quit [Ping timeout: 256 seconds]
<godd2>
okay thanks
<apeiros_>
godd2: and of course the semantics/meaning
Pupeno has quit [Ping timeout: 265 seconds]
shazaum has quit [Quit: This computer has gone to sleep]
timonv_ has joined #ruby
<godd2>
apeiros_ right, no I know they should be thought of as different things and such, I was just wondering what the practical difference were, and there are more than I first thought :)
faitswulff has quit [Quit: Leaving.]
karmatr0n has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
Musashi007 has joined #ruby
<epitron>
i'm saying that eigenclasses are puppies people!
tristanp has quit [Ping timeout: 250 seconds]
leitz has joined #ruby
davedev2_ has joined #ruby
ylluminate has quit [Quit: Bye!]
davedev24_ has quit [Ping timeout: 245 seconds]
armyriad has quit [Quit: Leaving]
<shevy>
lol
russt has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
karmatr0n has quit [Ping timeout: 244 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
armyriad has joined #ruby
<sargas_>
epitron: they are... and they do only what the owner says
karmatr0_ has joined #ruby
tristanp has joined #ruby
<godd2>
I like Metaprogramming Ruby's analogy of eigenclasses as shadows.
<sargas_>
epitron: they respond only the owner's call
oo_ has joined #ruby
<epitron>
godd2: that's good too!
<epitron>
sargas_: yeah!
<epitron>
well, kinda :)
faitswulff has joined #ruby
<epitron>
in ruby the puppy intercepts messages first
<epitron>
i guess you can think of messages as letters delivered by the postman
faitswulff has left #ruby [#ruby]
<epitron>
and the puppy runs up to him and barks at him first and tries to steal the letter
razieliyo has quit [Quit: Saliendo]
karmatr0_ has quit [Read error: Connection reset by peer]
<epitron>
if the letter isn't for the puppy, it gets given to the owner
<shevy>
KILL THE STINKING PUPPY
jheg has quit [Read error: Connection reset by peer]
karmatr0n has joined #ruby
<shevy>
that letter was mine
<godd2>
class << self; self.kill; end
jheg has joined #ruby
<epitron>
no wait, sorry.. child then follows puppy and checks if letter is for him
<epitron>
then the parent's adult dog goes out and checks
<epitron>
then the parent finally comes out and picks up their damn bill
sigurding has quit [Quit: sigurding]
enebo has quit [Quit: enebo]
<epitron>
you could also think of the eigenclass as a space suit?
<joshsmith>
I actually thing my question is more that the numerator and denominator from the modulus ends up being incredibly large
<jhass>
epitron: yeah, === is for case and nothing else IMO ;)
<jheg>
if I need to test a string and return true if it (1) contains letters && (2) they are all upcase should I use regex or just ruby string methods?
<apeiros_>
reserve ||= for when you truly want lazy values
<apeiros_>
IMO isset tests are an anti-pattern.
<comm64>
could you please explain anti-pattern?
<apeiros_>
a pattern which you should not use
<comm64>
ah lol
<comm64>
so your saying there is a better way to do it
claw__ has joined #ruby
arup_r1 has quit [Quit: Leaving.]
<apeiros_>
yes
<comm64>
in the source it's has the isset in an if block with the condition being a boolean variable which in the block is set to true
<comm64>
but its asking if the variable is not set then set it?
<apeiros_>
you should probably not translate the php 1:1
Pupeno has joined #ruby
<apeiros_>
php idioms don't translate to ruby idioms. also the php code is quite likely not role model code to begin with.
<elvispresley->
is there such a thing as good PHP? accordng to a PHP dev i know, no, there is not
<apeiros_>
what your code does we don't see comm64 - you only showed the condition.
<comm64>
this may be better asked in a php room
Avahey has quit [Quit: Connection closed for inactivity]
<apeiros_>
and yes, questions about the php part -> php room :)
<jheg>
if msg = ‘Go123’
claw_ has quit [Ping timeout: 240 seconds]
<centrx>
and incomplete if-statement does not a question make
<jheg>
why doesnt ‘msg =~ /^[a-zA-Z]*$/‘ eval to true?
<centrx>
The literal translation would be if !defined?
<apeiros_>
jheg: because that's not how it's defined.
<jheg>
doesn’t that say retrun true if any char is a-z or A-Z?
Hijiri has quit [Ping timeout: 258 seconds]
<apeiros_>
jheg: it evals to nil or trueish
doritostains has quit [Quit: doritostains]
<jheg>
so shouldnt it eval to 0
<jheg>
?
<apeiros_>
0 is trueish
<apeiros_>
jheg: you do know how to read the docs?
<jheg>
but it returns nil :/
JBreit has joined #ruby
<jheg>
wrong expression ha
<apeiros_>
that means your msg did not match
<apeiros_>
and I'm not sure why "Go123" should match /^[a-zA-Z]*$/
<jheg>
so if i want to ‘Go123’ to eval to true if there is at least 1 letter
<comm64>
the if statement says if variable is not set then set the variable to true and then it requires a few files thats all there is
<apeiros_>
msg =~ /\p{Letter}/
TgMts has joined #ruby
<jheg>
what is \p ?
Megtastique has joined #ruby
Pupeno has quit [Ping timeout: 244 seconds]
<apeiros_>
comm64: describing what code does is bad. it relies on a) you understanding the code, b) you properly communicating what it does. pasting code is much better.
<comm64>
ok
<apeiros_>
comm64: and yes, this is from experience. people fail at both, a) and b) all the time.
Hijiri has joined #ruby
boombadaroomba has joined #ruby
<apeiros_>
jheg: \p{…} is a character class. see `ri Regexp` for more details
<agent_white>
No thank you. Never knew about that. Looks much prettier to me than usual regex syntax.
picassoo has joined #ruby
tristanp has quit [Remote host closed the connection]
iamninja has quit [Ping timeout: 250 seconds]
adamski2600 has joined #ruby
claymore has joined #ruby
davedev2_ has quit [Ping timeout: 258 seconds]
ta_ has quit [Ping timeout: 260 seconds]
<apeiros_>
comm64: I'd guess this is a php way to ensure the "framework" is loaded. and loaded only once.
<apeiros_>
seems like they don't trust on require_once truly requiring only once, lol
boombadaroomba has quit [Ping timeout: 245 seconds]
<comm64>
lol
<comm64>
thank you
<apeiros_>
then again, given php's abysmal naming - require_once might actually not mean "require only once"
davedev24_ has joined #ruby
<apeiros_>
but as you said - php room can tell you that better.
<shevy>
hehe
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
adamski2600 has quit [Ping timeout: 255 seconds]
<jhass>
I guess require_once only protects against other require_once calls, but not against require/include
<jhass>
apeiros_: spam bot is back as picassoo
kiyote23 has joined #ruby
uber has joined #ruby
oo_ has joined #ruby
<apeiros_>
jhass: yeah. I'm not willing to ban. too much effort.
<jhass>
they're using the same text since months, kinda wish freenode would just k-line based on that :/
<apeiros_>
IMO that'd be the proper approach.
<jhass>
wonder if there's a weechat plugin ...
tristanp has joined #ruby
<apeiros_>
they could also just detect the pattern of same host querying multiple people.
picassoo has quit [K-Lined]
ta has joined #ruby
kiyote23 has quit [Remote host closed the connection]
oo_ has quit [Ping timeout: 258 seconds]
iamninja has joined #ruby
yfeldblum has joined #ruby
aaas has joined #ruby
fandi has quit [Ping timeout: 255 seconds]
pppd has joined #ruby
<pppd>
<% if @value -%>
<pppd>
This seems to return false for boolean values...
<shevy>
what is the - there
<pppd>
oh
<pppd>
it should avoid printing?
<pppd>
don't know, what would it do?
<jheg>
<% %>
<jheg>
wont print
Pattt has joined #ruby
<Pattt>
hi
<shevy>
I have no idea, that's why I am asking
<jheg>
<%= %>
<jheg>
will
<Pattt>
trying to install boostrap-sass
<pppd>
jheg: but the if condition thing should not print anyway?
<Pattt>
i am unable to gem install boostrap-sass
<aaas>
hello, im trying to install ruby on my ubuntu machine using rvm as 'autotest' seems to just hang.... I run through the install of rvm but the ruby executable is installed to my home diretory...if I try something like sudo rvm install ruby-2.1.5....should i not be installing with root or to /usr/bin ?
<Pattt>
any help for a noob?
<jheg>
what do you want to print if true?
<pppd>
jheg: oh, there comes more mixed erb + normal stuff in the template
<pppd>
<% end -%>
<jheg>
AFAIK you do <% if someting is true %>
<jheg>
<%= what you want to output %>
<jheg>
<% end %>
<pppd>
right
tsunamie has quit [Ping timeout: 264 seconds]
<pppd>
jheg: this if condition should catch undef variables
tristanp has quit [Remote host closed the connection]
bears__ has joined #ruby
tristanp has joined #ruby
<jheg>
might be above my current level of knowledge - not sure I totally understand what you want to do
yfeldblum has quit [Ping timeout: 255 seconds]
<pppd>
ok
<pppd>
I overview it
<apeiros_>
pppd: accessing undefined local variables raises in ruby
<apeiros_>
pppd: also note that local variables are not the same as instance variables
Azure has joined #ruby
tsunamie has joined #ruby
<apeiros_>
accessing undefined instance variables will evaluate to nil
<Pattt>
where do you put downloaded gems?
<havenwood>
aaas: a single-user install of RVM will install rubies in the local user directory, no matter th e$UID
<pppd>
Pattt: use bundler
<Pattt>
?
<havenwood>
aaas: #rvm is a helpful, active channel - just for future reference
<Pattt>
all i want is to install boostrap-sass
centrx has quit [Quit: Science is organized knowledge, wisdom is organized life.]
<Pattt>
and its going tits up
<apeiros_>
Pattt: that's not a helpful problem description
Joufflu has joined #ruby
<aaas>
havenwood thanks ...it looks like when i ran the curl command to get rvm it was after a non-sudo version of the command and was using my local rvm rather than the one in /usr/local/rvm...after rmoving ~/.rvm I think it's workinb etter now...thanks for your help and the info
<pppd>
apeiros_: Puppet values are set to undef by default. So undef values are empty, not specified. Those should not be rendered in that erb template.
<havenwood>
aaas: (unlike say ruby-install, which would use /opt/rubies if $UID == 0.)
<Pattt>
running: gem install bootstrap-sass
<pppd>
I don't like rvm, I use rbenv or chrubies.
<havenwood>
pppd: +1 chruby
tristanp has quit [Ping timeout: 258 seconds]
<apeiros_>
pppd: "in puppet <rule x works differently>" - maybe you should have told about puppet beforehand then?
tristanp has joined #ruby
<havenwood>
aaas: aha. no prob.
<pppd>
hm, right
<pppd>
apeiros_: yes, puppet seems to be special here
<pppd>
erb templates aren't always the same
<pppd>
but puppet is based on ruby
mloveless has joined #ruby
bears__ has quit [Remote host closed the connection]
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
kiyote23 has joined #ruby
bears__ has joined #ruby
theberlin has quit [Remote host closed the connection]
sankaber_ has joined #ruby
kiyote23 has quit [Remote host closed the connection]
sankaber has quit [Ping timeout: 264 seconds]
xfz has quit [Ping timeout: 272 seconds]
dfinninger has joined #ruby
thumpba has joined #ruby
pppd has quit [Read error: Connection reset by peer]
TgMts has quit [Ping timeout: 255 seconds]
davedev2_ has joined #ruby
Snarkz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pppd has joined #ruby
sankaber_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
asmodlol has quit [Ping timeout: 260 seconds]
davedev24_ has quit [Ping timeout: 256 seconds]
<aaas>
havenwood which method do you recommmend to install ruby?
<aaas>
i just wiped everytihng and im going to start from the beginning
agent_white has quit [Quit: backlater]
thumpba has quit [Ping timeout: 255 seconds]
rkalfane has joined #ruby
* TTilus
prefers chruby + ruby-install
ebbflowgo has joined #ruby
* apeiros_
has always been happy with rvm, so never tried another
rbrs has quit [Quit: Leaving]
<aaas>
so is it the ruby way to not install to /usr/bin so that you can install multiple versions? rvm keeps wanting to put it into my home directory
<benzrf>
TTilus: same
ebbflowgo has quit [Read error: Connection reset by peer]
Meeh has quit [Read error: Connection reset by peer]
kalusn has joined #ruby
<TTilus>
aaas: imo theres no "ruby way" in this
<benzrf>
the ruby way:
<benzrf>
TIMTOWTDI
<aaas>
do other things besides rvm install to /usr/bin? it's just strange to me that it's installed into my home dir...but then again i use apt-get for everything usually
Meeh has joined #ruby
<TTilus>
aaas: you might very well have a os/distro default ruby on /usr/bin
m8 has quit [Quit: Sto andando via]
<TTilus>
and still have other rubies too
atmosx has joined #ruby
<TTilus>
under home or /opt/rubies, those are the most common locations iirc
<aaas>
TTilus yes i do...the only reason im abandoing it is because it's 1.9.1 and im running into issues with 'autotest' just hanging...maybe i should go back and try and fix that directly...i just hoped 2.1.5 would have fixed a bug if that was it
mgberlin has joined #ruby
<TTilus>
and again, iirc, all the ruby versioning thingies can handle /usr/bin/ruby thats not installed by them
Vile` has quit [Quit: .]
JBreit has left #ruby ["Leaving"]
<TTilus>
aaas: just pick the next ruby versioning thingie and try it :)
kalusn has quit [Ping timeout: 264 seconds]
<aaas>
ok looks like the vote was chruby + ruby-install...ill try that
leitz has quit [Quit: Nappy time]
nfk has quit [Quit: yawn]
faitswulff has joined #ruby
jarred has joined #ruby
fabrice31 has joined #ruby
jarred_ has joined #ruby
Hanmac has joined #ruby
mgberlin has quit [Remote host closed the connection]
<jheg>
Anyone read Eloquent Ruby?
<Hanmac>
hey does have someone exp with lvm and restoring? i think i killed my index :/ and #lvm looks dead
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Jarboe has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
<aaas>
TTilus is chruby and ruby-install two different methods for teh same thing (installing ruby)? or do you use both of them for different purposes?
Vile` has joined #ruby
mgberlin_ has joined #ruby
ta has quit [Read error: Connection reset by peer]
russt has quit [Quit: russt]
<pontiki>
Pattt: you do; it's part of the stdlib
<pontiki>
aaas: ruby-install is for installing ruby versions. chruby is for switching between them.
ta has joined #ruby
<Pattt>
Step 3: Copy new trust certificate
<Pattt>
i have searched for ssl_certs and can not be found
<aaas>
ah ok thanks pontiki
konsolebox has joined #ruby
<pontiki>
Pattt: you might need to install certs, then
Vile` is now known as Guest38561
volty has joined #ruby
<Pattt>
:s new to ruby
mgberlin has quit [Ping timeout: 244 seconds]
jarred has joined #ruby
<pontiki>
where did you put the file you obtained in step 1?
jarred has quit [Client Quit]
yfeldblum has joined #ruby
<Pattt>
in c:\ruby21
jheg has quit [Quit: jheg]
<Pattt>
just put it there while i follow steps
mgberlin_ has quit [Remote host closed the connection]
<pontiki>
but you can't find it now?
<Pattt>
no no
<Pattt>
i have it, but have no ssl_certs dir
<atmosx>
I feel sorry for people running ruby on windows.
<Pattt>
cant even find: GeoTrustGlobalCA.pem
<atmosx>
actually I feel sorry for people running windows :-(
<Pattt>
what do you use?
<atmosx>
Pattt: anything but windwos
<Pattt>
helpful
<atmosx>
Pattt: but that's just me, I didn't meant to say that the operating system made by Microsoft sucks big time.
<Pattt>
found it
<atmosx>
Pattt: awesome
<Pattt>
jesus
<atmosx>
christ?
<Pattt>
a men
<Hanmac>
atmosx: do you use lvm?
<atmosx>
Hanmac: lvm ? linux volume manager?!
<atmosx>
Hanmac: rvm? yes
yfeldblum has quit [Ping timeout: 244 seconds]
<Hanmac>
yeah because it seems i accently did delete my meta data ... and now i think i cant access my data anymore :/
doritostains has quit [Quit: doritostains]
<atmosx>
Hanmac: ext4?
Takle has quit [Remote host closed the connection]
Guest38561 has quit [Quit: .]
<Hanmac>
atmosx: 5 disks: Raid5 with mdadm: that raid is used as lvm pysical volume inside that is one vg group, in that are 2 logical volumes ... currently all metadata is gone and i dont know how to fix ...
doritostains has joined #ruby
<Pattt>
getting another error grr
doritostains has quit [Client Quit]
valeriansaliou has joined #ruby
<atmosx>
Hanmac: your FS partitions are ext4 FS?
dc_ has joined #ruby
<atmosx>
Pattt: why don't you install Linux and try running the same code, who knows, might work.
JoshGlzBrk has joined #ruby
<Pattt>
am on someone elses laptop
<Pattt>
i could try linux on my own pc though
mloveless has quit [Remote host closed the connection]
<atmosx>
Pattt: try a live distro
dc has quit [Ping timeout: 250 seconds]
<atmosx>
Hanmac: did you compile your own kernel? do you have CONFIG_EFI_PARTITION enabled?
valeriansaliou has quit [Client Quit]
<Pattt>
just trying to update ruby now
doritostains has joined #ruby
<Pattt>
right mess this
Hanmac has quit [Ping timeout: 260 seconds]
diegoviola has joined #ruby
<atmosx>
Hanmac: Check out if your kernel supports GPT partitions.
chipotle has joined #ruby
Musashi007 has quit [Quit: Musashi007]
duncannz has joined #ruby
duncannz has quit [Client Quit]
pandaant has quit [Remote host closed the connection]
<Pattt>
getting this: gem install bootstrap-sass
<Pattt>
ERROR: While executing gem ... (OpenSSL::X509::StoreError)
momobear has joined #ruby
<Pattt>
followed those steps i showed earlier
axilla has joined #ruby
Hanmac has joined #ruby
<Hanmac>
atmosx: did you said something helpful after i got disconnected?
<atmosx>
Hanmac: Oh you got disconnected wait
lemur has joined #ruby
<atmosx>
[01:42:30] <atmosx>Hanmac: did you compile your own kernel? do you have CONFIG_EFI_PARTITION enabled?
<atmosx>
[01:43:31] <atmosx>Hanmac: Check out if your kernel supports GPT partitions.
Cyberheb has quit [Quit: Computer has gone to sleep.]
<Hanmac>
atmosx: i did not, normal linux system, and it did work before, but now i did remove the metadata (first i did overwrite it with wrong one, and then later i did remove the lvm label directly because it only was wrong data)
xymbol__ has joined #ruby
hornairs has joined #ruby
kiyote23 has joined #ruby
<atmosx>
Hanmac: Hm, that sounds like a bit fucked up :-/
<atmosx>
Hanmac: What distro is it? debian
<atmosx>
?
<Hanmac>
yeah ubuntu ... currently on a live system
mgberlin has joined #ruby
Techguy305 has quit [Ping timeout: 255 seconds]
Vile` has joined #ruby
xymbol_ has quit [Ping timeout: 245 seconds]
dorei has quit []
jenrzzz has joined #ruby
ramfjord has joined #ruby
kiyote23 has quit [Remote host closed the connection]
<Pattt>
fuck this is driving me nuts
Mothore has joined #ruby
<atmosx>
If you overwritten the metadata (that you wanted) I'm not sure that there is a way to restore that, other than file recovery tools... You might wanna ask on some raid mailing list?
<atmosx>
Hanmac: ^
<atmosx>
Pattt: what exactly are you trying to accomplish anyway?
volty has left #ruby ["Konversation terminated!"]
<Pattt>
install bootstrap sass
<Hanmac>
atmosx: hm i got the raid working, its the lvm that did broke this time :/
<Pattt>
this is my current issue:
<Pattt>
gem install bootstrap-sass
<Pattt>
ERROR: While executing gem ... (OpenSSL::X509::StoreError)