fullofcaffeine has quit [Ping timeout: 240 seconds]
yeticry has joined #ruby
Igorshp has quit [Ping timeout: 256 seconds]
chouhoulis has joined #ruby
TomyWork has joined #ruby
Hounddog has joined #ruby
arup_r has quit [Ping timeout: 244 seconds]
framling has quit [Read error: Connection reset by peer]
framlinqp has joined #ruby
framlinqp has quit [Read error: Connection reset by peer]
DEA7TH has quit [Quit: DEA7TH]
ruurd has joined #ruby
htmldrum has quit [Ping timeout: 265 seconds]
arup_r has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
Uo9er_ has joined #ruby
kalusn has joined #ruby
jgt has joined #ruby
tubuliferous_ has quit [Ping timeout: 265 seconds]
U7se6 has quit [Ping timeout: 244 seconds]
nemo__ has joined #ruby
nemo_ has quit [Read error: Connection reset by peer]
nemo___ has joined #ruby
CloCkWeRX has joined #ruby
nemo_ has joined #ruby
dikaio has quit [Quit: ........]
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Couch has quit [Ping timeout: 252 seconds]
vondruch has joined #ruby
nemo__ has quit [Ping timeout: 240 seconds]
yardenbar has joined #ruby
marr has joined #ruby
clebrun has quit [Ping timeout: 240 seconds]
nemo___ has quit [Ping timeout: 272 seconds]
zenguy_pc has quit [Ping timeout: 240 seconds]
chthon has joined #ruby
deps has joined #ruby
CloCkWeRX has quit [Ping timeout: 260 seconds]
XxionxX has quit [Quit: Leaving.]
XxionxX has joined #ruby
yfeldblu_ has quit [Ping timeout: 246 seconds]
blackmesa has joined #ruby
baweaver has quit [Remote host closed the connection]
dcarmich has joined #ruby
Couch has joined #ruby
chthon has quit [Quit: Ex-Chat]
XxionxX has quit [Client Quit]
ruurd has quit [Quit: ZZZzzz…]
sanjayu has quit [Remote host closed the connection]
unshadow has joined #ruby
Moblin has joined #ruby
haxrbyte_ has joined #ruby
trosborn has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
blaxter has joined #ruby
edin has quit [Quit: leaving]
yfeldblum has joined #ruby
haxrbyte has quit [Ping timeout: 252 seconds]
blackmesa has joined #ruby
workmad3 has joined #ruby
Ebok has quit [Ping timeout: 240 seconds]
<adaedra>
Hi
zenguy_pc has joined #ruby
Feyn has quit [Quit: Leaving]
subscope has joined #ruby
Peg-leg has joined #ruby
mark2 has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
workmad3 has quit [Ping timeout: 272 seconds]
nemo_ has quit [Remote host closed the connection]
joonty has joined #ruby
Guest37417 is now known as nw
ruurd has joined #ruby
sanjayu has joined #ruby
CloCkWeRX has joined #ruby
leafybasil has quit [Remote host closed the connection]
jgt has quit [Ping timeout: 255 seconds]
Ropeney has joined #ruby
Musashi007 has quit [Quit: Musashi007]
agent_white has joined #ruby
ElCapitanMarklar has quit [Ping timeout: 256 seconds]
wpp has joined #ruby
diegoviola has quit [Quit: WeeChat 1.3]
agent_white has left #ruby [#ruby]
spider-mario has joined #ruby
SHyx0rmZ has joined #ruby
stan has joined #ruby
karapetyan has joined #ruby
<unshadow>
A question to you guys, it
vigintas has joined #ruby
parus has quit [Ping timeout: 244 seconds]
<unshadow>
it's more of a general programming\security question, Is there a way to protect an object in memory from access by a local Admin\root user ? some kind of obfuscation or encryption method to allow me to store a string or another object in memory
nemo_ has joined #ruby
<adaedra>
Here we go again
alcipir has joined #ruby
<apeiros>
short answer: no
Ropeney has quit [Read error: No route to host]
jgt has joined #ruby
<unshadow>
adaedra: no hahahah I promise this is a general question for an open-source project I work on
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
ruby-lang606 has joined #ruby
<unshadow>
apeiros: I see, thanks.
<EdwardIII>
how come ruby uses -> for the anon. function in lambda syntax? why doesn't it just use a block like everything else?
<apeiros>
EdwardIII: ->(){} is a shortcut for lambda { || }
<apeiros>
(which is essentially a method taking a block, like everything else)
<EdwardIII>
ah ok
<EdwardIII>
the keyword lambda wasn't sigitastic enough eh? hehe
<apeiros>
though, blocks use proc semantics. lambdas don't.
<EdwardIII>
"this looks like python! get rid of it!!"
<apeiros>
lambda isn't a keyword.
<EdwardIII>
ah actually it's probably worth me understanding that better
<EdwardIII>
is it a method on Kernel?
<apeiros>
yes
<EdwardIII>
apeiros: how come it doesn't show up in Kernel.instance_methods?
<ruby-lang606>
hey everyone, quick question, I have a hash something like this: hashh => { string1: %q{ bla bla }, string2: %{bla bla 2} } and i want string one to sometimes contain different string based on a token passed to it :property, I know we can use #{} with a string but how do we implement a condition on a string, for example; string = " something here #{if somecondition puts "something else to follow" end} " I know this is wrong but anyw
<apeiros>
EdwardIII: all of Kernel's own instance methods are private
<adaedra>
ruby-lang606: for something short, you can use a ternary expression
<EdwardIII>
apeiros: so what happens when i run 'irb'? a new Kernel object gets instantiated and i'm like... inheriting from that??
<apeiros>
ruby-lang606: while most users on irc appreciate one long message over dozens of short messages, there's a limit on IRC ;-)
<ruby-lang606>
adaedra: the actuall string is long, but I want to abend something at the end of it
<adaedra>
use String#<< in a condition then
terlar has joined #ruby
<ruby-lang606>
apeiros: too many rules man to keep up with, sorry next time I'll send shorter
leafybas_ has joined #ruby
<apeiros>
EdwardIII: a new `main` is instantiated, which is an instance of Object, and Object includes Kernel.
<EdwardIII>
apeiros: if there's a doc i should be reading instead of bugging you feel free to point me in the right direction heh
<apeiros>
EdwardIII: sure. but I'm not aware of docs explaining those things. might check Kernel and Object's class docs, though.
<EdwardIII>
ah so in a oneliner, if i `p self` it shows me main
<EdwardIII>
that's pretty elite
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
jgt has quit [Quit: WeeChat 1.2]
chouhoulis has joined #ruby
trosborn has quit [Quit: trosborn]
platzhirsch has joined #ruby
<EdwardIII>
hrm but self.methods doesn't show lambda - maybe i'm not understanding properly? main < Object < Kernel right? so i can use, let's say, lambda or puts because main has Kernel as it's ancestor?
alcipir has quit [Ping timeout: 250 seconds]
atmosx_laptop has quit [Quit: Lost in trance]
<apeiros>
.methods and .instance_methods both don't show private methods by default
TheHodge has joined #ruby
<apeiros>
.private_methods and .private_instance_methods do
Spami has joined #ruby
atmosx has quit [Quit: WeeChat 0.4.4-dev]
awk_ is now known as awk
<EdwardIII>
ok and when i run a script i'm actualy inside 'main', not accessing an instance of it, so i have access to private methods?
chouhoulis has quit [Ping timeout: 244 seconds]
_Cyther_ has quit [Read error: Connection reset by peer]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
tenzan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros>
EdwardIII: main isn't a class, so you can't even have an instance of main ;-)
<apeiros>
EdwardIII: and yes, no explicit receiver -> access to private methods
freezevee has joined #ruby
<EdwardIII>
apeiros: hmm i'm a little confused. is there ever another case where you have no explicit receiver? or just when you're at the program entry point (i.e. myscript.rb?)
<EdwardIII>
and if main isn't a class what is it?
<apeiros>
unshadow: this is an OS level problem + whether you have a binding to the OS level solution.
leat2 has quit [Remote host closed the connection]
<EdwardIII>
in reality if you're using ruby i guess securestring wouldn't work anyway
<apeiros>
EdwardIII: everywhere where you call methods on the same object, you can do it without an explicit receiver
<bougyman>
it's not at all the same as that .net implementation.
mg^^ has joined #ruby
<bougyman>
but it might accomplish what you're looking for.
<EdwardIII>
unshadow: where's this string coming from? user input? or somewhere else?
Musashi007 has joined #ruby
<apeiros>
bougyman: this is misleading, though. there are no guarantees that your input string doesn't still reside in memory.
<bougyman>
apeiros: that's what i'm looking at now.
<bougyman>
this is a pretty simplistic implementation.
tkuchiki has quit [Read error: Connection reset by peer]
<bougyman>
but it's got potential.
atomical has joined #ruby
<apeiros>
afaik unless you have OS level support for this, you don't really have a chance
tkuchiki has joined #ruby
M-mistake has quit [Ping timeout: 250 seconds]
Pisuke has joined #ruby
cwong_on_irc has quit [Quit: Leaving.]
<apeiros>
not a security expert, though. only enough half-knowledge to be dangerous.
Puffball has quit [Read error: Connection reset by peer]
<EdwardIII>
java have a SecureString implementation
WillAmes has quit [Ping timeout: 250 seconds]
MyMind has quit [Ping timeout: 250 seconds]
mg^ has quit [Ping timeout: 250 seconds]
<EdwardIII>
i looked into this for PHP but basically if your input is coming from the web you're wasting your time, because it comes via webserver then middleware before it even hits your language. so they're floating around in memory (probably, they did in my tests) and there's nothing you can really do about it
ruby-lang606 has quit [Quit: Page closed]
<EdwardIII>
except get a SecureStringWebserver and SecureStringMiddleware before you even look at your language
Gnomethrower has quit [Ping timeout: 250 seconds]
joneshf-laptop has quit [Ping timeout: 250 seconds]
Puffball has joined #ruby
cscheib has quit [Remote host closed the connection]
cscheib has joined #ruby
joneshf-laptop has joined #ruby
Gnomethrower has joined #ruby
xybre has quit [Ping timeout: 250 seconds]
djcp has quit [Ping timeout: 250 seconds]
<bougyman>
looks like yama helps with this a bit
<bougyman>
a few other linux security modules can help protect your ram from other users, even from the superuser.
DEA7TH has joined #ruby
<bougyman>
but you're right, apeiros, if it's not OS level a language can only obscure, not eliminate the problem.
programmerq has quit [Ping timeout: 250 seconds]
<unshadow>
bougyman: What security modules in Linux you know of that can "protect your ram from other users, even from the superuser." ? This might help me too
nemo__ has joined #ruby
<bougyman>
unshadow: yama
<bougyman>
it's not default in many distros, but it's available.
<bougyman>
we use it by default in void, but not at its highest level (where the superuser cannot access users' ram)
leafybas_ has quit [Remote host closed the connection]
matled_ has joined #ruby
leafybasil has joined #ruby
davedev24 has quit [Remote host closed the connection]
matled_ has quit [Quit: Page closed]
<bougyman>
be careful with level 3 and apps which expect ptrace/dumpable to be available.
nemo_ has quit [Ping timeout: 240 seconds]
Testo has joined #ruby
nofxx has quit [Ping timeout: 250 seconds]
M-mistake has joined #ruby
chihhsin has quit [Ping timeout: 240 seconds]
<bougyman>
once you're in level 3 there's no way out other than a reboot (making sure it's < 3 on the rebooted kernel)
<unshadow>
bougyman: This is really cool ! this might be great for what I want, thanks :)
<bougyman>
no worries.
chihhsin has joined #ruby
xybre has joined #ruby
programmerq has joined #ruby
<Testo>
bougymanfe
<Testo>
typo :)
Rollabunna has quit [Remote host closed the connection]
alcipir has joined #ruby
cornerma1 has joined #ruby
cornerman has quit [Ping timeout: 240 seconds]
cornerma1 is now known as cornerman
krisquigley has joined #ruby
nisstyre has quit [Ping timeout: 244 seconds]
htmldrum has joined #ruby
User458764 has joined #ruby
Igorshp has joined #ruby
User458764 has quit [Client Quit]
htmldrum has quit [Ping timeout: 246 seconds]
workmad3 has joined #ruby
Testo has quit [Ping timeout: 268 seconds]
djcp has joined #ruby
khebbie has joined #ruby
eGGsha has quit [Ping timeout: 272 seconds]
workmad3 has quit [Client Quit]
fullofcaffeine has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
Spami has quit [Quit: This computer has gone to sleep]
n008f4g_ has quit [Ping timeout: 256 seconds]
rodfersou has joined #ruby
haraoka has quit [Ping timeout: 250 seconds]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
futilegames has joined #ruby
fullofcaffeine has quit [Ping timeout: 244 seconds]
dhjondoh has joined #ruby
workmad3 has joined #ruby
futilegames has quit [Read error: Connection reset by peer]
futilegames has joined #ruby
machan has joined #ruby
Musashi007 has quit [Quit: Musashi007]
<machan>
Is it possible to create your own named regex character class e.g. [[:upper:]]
<bougyman>
not without getting down to the source of oniguruma and doing it, afaik.
<bougyman>
apeiros: i'm interested in your answer to that one. I've never considered it.
<machan>
Ookies :) thanks
roxtrong_ has joined #ruby
norc has joined #ruby
futilegames has quit [Remote host closed the connection]
<norc>
Is there some elegant shorthand for [].each { |e| yield(e) } ?
chouhoulis has joined #ruby
alcipir has quit [Ping timeout: 255 seconds]
roxtrongo has quit [Ping timeout: 256 seconds]
rdark has joined #ruby
Igorshp has quit [Remote host closed the connection]
nisstyre has joined #ruby
Moblin is now known as Ebok
Spami has joined #ruby
<ddv>
norc: tap
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Igorshp has joined #ruby
<machan>
why tap dat
U7se6 has joined #ruby
<norc>
Oh Im silly. I can just do [].each(&proc). :)
<ddv>
ass.....
chouhoulis has quit [Ping timeout: 272 seconds]
Uo9er_ has quit [Ping timeout: 244 seconds]
adac has quit [Ping timeout: 246 seconds]
lessless has joined #ruby
lessless has quit [Client Quit]
gregoriokusowski has joined #ruby
yashinbasement has joined #ruby
zenguy_pc has quit [Ping timeout: 240 seconds]
<machan>
norc: shorter, I don't know if necessarily clearer
eGGsha has joined #ruby
codecop has quit [Remote host closed the connection]
Rickmasta has joined #ruby
bruce_lee has joined #ruby
araujo_ has joined #ruby
<karapetyan>
NameError: uninitialized constant Xs
<karapetyan>
from (irb#1):3
khebbie has quit [Ping timeout: 244 seconds]
eGGsha has quit [Client Quit]
Spami has quit [Quit: This computer has gone to sleep]
shredding has joined #ruby
araujo has quit [Ping timeout: 260 seconds]
Gnomethrower has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass>
karapetyan: is there a question?
<karapetyan>
jhass: sorry, no.
zenguy_pc has joined #ruby
caliostro has joined #ruby
<EdwardIII>
why would you do [].each(&proc)?
<EdwardIII>
would that be inside something like def my_func(&proc)?
arup_r has quit [Quit: Leaving]
gexe_ has joined #ruby
solocshaw has joined #ruby
<norc>
EdwardIII: You dont have to explicitely name the block in the argument defition, but yeah.
soosfarm has quit [Ping timeout: 265 seconds]
<Ebok>
What is a good ruby editor application? I've been using cloud9 for awhile, however, it's time. Windows10 or Mac, dont mind which people suggest. Preferably it'll have some color coding and be free.
<norc>
Ebok: I use sublime under windows, and vi for osx/linux.
<jhass>
ugh, the editor question. everybody hide!
<EdwardIII>
heh that seems kind of confusing, "def insert_block_here"
<Ebok>
Thankyou
<EdwardIII>
at least in perl you'd have shift @_; heh
gexe has quit [Ping timeout: 264 seconds]
GriffinHeart has quit [Remote host closed the connection]
G has quit [Quit: Leaving to put on my tinfoil hat]
G has joined #ruby
Gnomethrower has joined #ruby
<norc>
EdwardIII: What do you mean with confusing? Blocks?
ldnunes has joined #ruby
<EdwardIII>
norc: just the callback argument being passed non-explicitly (maybe just confusing to me)
weihan has joined #ruby
GriffinHeart has joined #ruby
<norc>
EdwardIII: You should get used to it. Proc creation can be expensive, which is why people sometimes even forego binding the block to a proc object.
pawnbox has joined #ruby
<norc>
The yield/block_given? are your only indication that the function expects a block then. ;-)
<EdwardIII>
binding the block to a proc object?
<EdwardIII>
sorry i'm very new to ruby
avril14th has joined #ruby
<EdwardIII>
what would that look like? doing and then forgoing?
<EdwardIII>
*foregoing
<avril14th>
Hello, does anyone around here has already managed to connect to a SQL Server on Azure using Tiny tds gem?
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Igorshp has quit [Remote host closed the connection]
daffy_duck has quit [Ping timeout: 268 seconds]
<apeiros>
bougyman: which one? creating your own regex char class?
<bougyman>
yeah
tno has joined #ruby
<apeiros>
I think the answer you've given is correct. You'd have to modify oniguruma (though, I think its name even changed by now)
solocshaw has quit [Ping timeout: 246 seconds]
<wat_>
Hello, everyone. Recently I stumbled upon some strange behaviour of Time#parse. Here is the irb session to reproduce http://pastebin.com/fQBJER7f. So I was wondering why does Time#parse behaves like that? Is there a well-known reason for this inconsistent(IMO) behaviour? Or is it a well-known bug? Something else?
<ruboto>
pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
stamina has joined #ruby
chouhoulis has joined #ruby
Zai00 has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
Pupp3tm4_ has quit [Remote host closed the connection]
shmilan has joined #ruby
<norc>
wat_: My initial guess is that it greatly simplifies the parsing. %d matches 0..31 without regard of the month.
roxtrong_ has quit [Remote host closed the connection]
blackmesa has joined #ruby
<shevy>
lol wat_ why did you pick that nick
avril14th has quit [Read error: Connection reset by peer]
<wat_>
Because when I found it I was like: "Wat?".
chouhoulis has quit [Ping timeout: 260 seconds]
adac has joined #ruby
Gnomethrower has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
khebbie has joined #ruby
<norc>
shevy: You are such a hateful person.
bryanray has joined #ruby
roxtrong_ has joined #ruby
karapetyan has quit [Ping timeout: 255 seconds]
nemo__ has quit [Remote host closed the connection]
nemo_ has joined #ruby
<apeiros>
wat_: unrelated to your problem: use strptime if you know the format, not .parse.
* apeiros
thinks .parse should be renamed to .guess
<norc>
wat_: In all fairness, it beats how strptime from time.h behaves to these things.
nemo_ has quit [Read error: Connection reset by peer]
<jhass>
apeiros: why not throw_chicken_bones
<norc>
(That thing will give you a 30th of February back, whether that makes any sense at all or not)
tkuchiki has quit [Remote host closed the connection]
shmilan has quit [Ping timeout: 240 seconds]
Igorshp has joined #ruby
nemo_ has joined #ruby
shinenelson has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
trosborn has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
pawnbox has quit [Remote host closed the connection]
lipoqil has joined #ruby
<wpp>
I hope this is not the worst question in the world, but could someone explain to me what the Garbage collector inside an MRI process is? Everything I read about the GC is just referring to it as "the GC".
karapetyan has joined #ruby
doddok has joined #ruby
<jhass>
wpp: any background with other languages?
<wpp>
As in is the GC a process-wide construct or is it shared between multiple ps?
Pupp3tm4st3r has joined #ruby
<wpp>
jhass yes
phutchins has joined #ruby
<jhass>
which?
SuziesQueue has quit [Ping timeout: 240 seconds]
<wpp>
jhass c
<jhass>
excellent, that makes it easier
<jhass>
so, when you do Foo.new, or just "foo" + "bar", you create objects, those need (heap) memory, clear?
<wpp>
jhass yep
Rollabunna has joined #ruby
khebbie has quit [Ping timeout: 264 seconds]
<jhass>
the GC tracks the allocations for that memory, then it regularly checks if there are still any references to those objects
Suzeanne has joined #ruby
<jhass>
and if not, frees the memory or reuses it for new objects
<wpp>
jhass uhh I should have prefaced, I get what the gc is doing
<wpp>
jhass I'm just wondering what exactly it is?
bkxd has joined #ruby
<jhass>
part of the VM
<shevy>
wpp when did you start with ruby?
<jhass>
it gets its time to run regularly and called when memory is needed
<jhass>
you could see it as a sophisticated malloc implementation
<wpp>
jhass ok so it is per process right? Every mri/rails c/ruby xyz has its own GC?
<jhass>
sure
<jhass>
it's managing a processes memory after all
nemo_ has quit [Remote host closed the connection]
<wpp>
jhass Ok so how come when I start a new irb session and run GC.count is already at 28?
Igorshp has quit [Remote host closed the connection]
<jhass>
because quite a few things happen if you do so
<jhass>
readline is initialized, rubygems is loaded and what not
<wpp>
jhass aah so just starting irb session triggers 28 GC runs
<jhass>
yeah
senayar has quit [Remote host closed the connection]
Rollabunna has quit [Ping timeout: 260 seconds]
mxrguspxrt has joined #ruby
phutchins has quit [Quit: WeeChat 1.1.1]
senayar has joined #ruby
nemo_ has joined #ruby
<wpp>
jhass Oh boy haha I was wondering howcome its is so high, how can I find out when the GC is invoked?
<wpp>
jhass (thanks for explaining this to me btw)
phutchins has joined #ruby
blackmesa has joined #ruby
<wpp>
shevy actually a while back, but never dealt with GC. howcome?
<jhass>
wpp: it's usually not done by user code
krz has quit [Ping timeout: 246 seconds]
<shevy>
wpp Austria!
<wpp>
shevy yes?
Bellthoven has joined #ruby
dhjondoh has joined #ruby
krz has joined #ruby
pwnd_nfsw has quit [Ping timeout: 246 seconds]
<wpp>
wpp ok. can I just bother you a bit longer?
joncol has joined #ruby
<wpp>
jhass ok. can I just bother you a bit longer?
<wpp>
(I'm an idiot)
krz has quit [Client Quit]
HoloIRCUser has joined #ruby
phutchins has quit [Client Quit]
<joncol>
How can I check if a Addrinfo object (returned by Socket.ip_address_list) is wireless or not?
phutchins has joined #ruby
<jhass>
wpp: well, just continue asking questions to the channel, I'll answer when I have time and knowledge ;)
gregf has quit [Quit: WeeChat 1.3]
senayar has quit [Remote host closed the connection]
<shevy>
wpp I and manveru are from Austria as well; I think the author of kramdown also is
akakios has joined #ruby
<jhass>
that's from the author of the current GC
<adaedra>
shevy: when doing a list of persons, I is always last.
<wpp>
jhass thanks for that!
<wpp>
shevy manveru servus :) where exactly?
<manveru>
wpp: i'm near kufstein atm
<shevy>
adaedra only in baguette country
<adaedra>
shevy: it's getting old. You don't have other words?
<shevy>
adaedra I have plenty of words but I pick the very most fitting
<manveru>
shevy is the embodyment of conservatism, don't expect new words from him :P
<adaedra>
That's kind of annoying, really.
Igorshp has joined #ruby
<shevy>
It's all good fun!
<manveru>
damn, embodiment... embodyment is a band name :(
<shevy>
manveru were you not working in Germany not too terribly long ago?
<manveru>
i live in germany
<shevy>
ah
<manveru>
but it's a 10 minute walk over the border, so not much difference
<manveru>
and i'm starting a company in austria
sdothum has joined #ruby
karapetyan has quit [Remote host closed the connection]
<shevy>
\o/
karapetyan has joined #ruby
unreal has quit [Ping timeout: 268 seconds]
mxrguspxrt has quit [Ping timeout: 240 seconds]
unreal has joined #ruby
Icey has joined #ruby
karapetyan has quit [Ping timeout: 240 seconds]
nemo_ has quit [Remote host closed the connection]
hmsimha has quit [Ping timeout: 265 seconds]
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
<j416>
can I rspec expect a result from a block?
<j416>
i.e. I have a method that takes a block, and I want to verify that the result of that block is passed properly to another method
armyriad has quit [Read error: Connection reset by peer]
khebbie has joined #ruby
<manveru>
you want to test whether the block was called?
armyriad has joined #ruby
<j416>
manveru: not just that, I want to grab the result of the block and check that it is passed on properly
<manveru>
what does that mean?
<j416>
say I have: def foo(&block); bar(yield); end;
<j416>
I want to say expect(Foo).to receive(:bar).with ..
<j416>
and I want to verify that whatever I passed in gets passed on
<j416>
hm
<j416>
maybe I do't have to
<j416>
yes, I do hm
<jhass>
yeah, sounds a bit like you're testing implementation
<jhass>
but
<j416>
because I give a specific block, and it gets formatted
<manveru>
well, you can stub temporarily
AugustoCesar has joined #ruby
<j416>
sorry for being so abstract, I will come back with a proper example once I have time to write one, off to a meeting will be back soon with more info!
<EdwardIII>
i've not done anything significant in smallktalk, but ruby feels a bit like smalltalk, it looks like the code samples and feels like it matches up with a lot of the concept david west talks about
atomical has joined #ruby
<EdwardIII>
plus the message passing? i think?
gagrio has quit [Ping timeout: 250 seconds]
<shevy>
sorta
<shevy>
it's like smalltalk coming into the scripting families
chouhoulis has quit [Ping timeout: 256 seconds]
<shevy>
so php perl python ruby and perhaps lua
<Takumo>
Hi all
<manveru>
that'd be gst :)
pathrocle has joined #ruby
<Takumo>
with Builder is it simple to put the same namespace on *all* tags?
gregoriokusowski has quit [Ping timeout: 268 seconds]
<EdwardIII>
one thing i remember DW saying in a talk is that main() doesn't match nicely with OO
<EdwardIII>
i guess he thinks all the objects should be spun up... somewhere? at boot time?
<EdwardIII>
when the VM boots i guess
<shevy>
smalltalk is weird, you have some great stuff like Squeak which I really think is a great idea but it just does not feel as if people write a script, then distribute it simply (in smalltalk)
<EdwardIII>
but it seems to be very, very GUI-based which doesn't suit me at all
hmsimha has joined #ruby
<manveru>
seriously, check out gst
<shevy>
it's like as if they tried to do a whole operating system with squeak
<shevy>
EdwardIII did you also watch the old Alan Kay lecture/talks?
<EdwardIII>
shevy: no not yet
<EdwardIII>
got any recommendations?
<bougyman>
gst hasn't been updated in 2 years?
<manveru>
looks like :(
ixti has joined #ruby
<EdwardIII>
i think object thinking is a fantastic book but also... it feels a bit like DW doesn't live in the real world
<manveru>
haven't used it in ages either
<EdwardIII>
like just saying "java is dumb because you have main()" isn't really helpful
hectortrope has quit [Remote host closed the connection]
<EdwardIII>
many people have to write java every day - tell them how to make it fit in with your OO design ideas, don't just shoot it down
asxbr has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<bougyman>
i'm not uncomfortable with shooting java down
<EdwardIII>
what can the programmers do? make HSBC rewrite their online banking systems in smalltalk? not likely
<shevy>
EdwardIII dunno... the older ones were better, he is getting a bit old these days, like the history of how they worked and built interfaces for humans. probably not any just singular lecture, just over the years what Alan said
<bougyman>
no, but the architect can.
<bougyman>
and programmers can buy the architect drinks.
<EdwardIII>
he's not going to do that though is he heh
hectortrope has joined #ruby
<bougyman>
im' doing this right now for barclays.
<bougyman>
so it can be done.
<EdwardIII>
i remember when the BBC migrated everything on iplayer from perl to PHP... i wonder how they feel about that decision now heh
<EdwardIII>
bougyman: really?
<shevy>
they really went to php?
<bougyman>
yes really.
<EdwardIII>
shevy: smalltalk?
<bougyman>
no, not to php.
<EdwardIII>
bougyman: smalltalk?
<bougyman>
ruby and python.
<EdwardIII>
shevy: yeah it was a while ago, they may have migrated again since. but they said it was basically because they couldn't hire perl devs, they couldn't find them
<EdwardIII>
i went to a con where one of the main perl consultants was, he said it wasn't really like that, it was more political than anything
<bougyman>
the problem with smalltalk for a large company is really the mindshare available.
<manveru>
looks like bonzinip hasn't touched gst for about two years at all... and he was the only one keeping it alive
<shevy>
weird
<EdwardIII>
but to move from perl to php, that sucks heh. going through all that pain to migrate stuff & retrain, then the end result is you're in php
gregoriokusowski has joined #ruby
<EdwardIII>
bougyman: well and 3rd party libs i guess
<bougyman>
finding hundreds of devs who are proficient in it and willing to live in Cheshire, in barclays case.
<EdwardIII>
i have so many questions heh
<EdwardIII>
why ruby AND python?
<bougyman>
python for analytics, ruby for infrastructure and web.
<shevy>
yeah php is also annoying but strangely enough, I also went from perl to php and I was more productive in php compared to my perl days, at the very least for web-stuff. I wrote perl .cgi scripts and that was quite annoying back then
<EdwardIII>
python for analytics because of matlib and stuff like that?
<bougyman>
python is just much better at... yep, you said it.
<bougyman>
scipy
<EdwardIII>
shevy: things are a lot better now with Moose & Catalyst
<EdwardIII>
there are some really smart people doing perl
<shevy>
I dunno, I have a hard time wanting to do any perl after ruby
<bougyman>
ipython makes it easy for ruby to orchestrate all of the python stuff.
Igorshp has quit [Remote host closed the connection]
<shevy>
it sorta is perl 5... but Ulti from #bioinformatics also showed this:
<shevy>
<Ulti> "/usr/share/dict/words".IO.words.classify(*.lc.comb.sort.join).sort(-*.value)[0].say this is why I like Perl 6 :P
<shevy>
so I am confused
diegoaguilar has joined #ruby
<EdwardIII>
bougyman: how are you going to communicate between ruby & python? ruby stores data in a db then python+matlib+matplotlib picks it up? or purely through ipython?
Coldblackice has quit [Ping timeout: 244 seconds]
big|bad|wolf has joined #ruby
HoloIRCUser has quit [Ping timeout: 252 seconds]
<shevy>
I didn't try perl6 yet but that syntax above is quite nice
ndrei has quit [Ping timeout: 250 seconds]
<shevy>
*. or so is a lambda or something
<EdwardIII>
i dunno it's a strange one
<EdwardIII>
a lot of the people in the perl community seem to have beef with perl6
<EdwardIII>
like they almost prefer how esoteric perl5 is
<manveru>
well, they're used to perl5 by now
<bougyman>
EdwardIII: through ipython
<manveru>
and perl6 is a totally new language basically
<EdwardIII>
i guess they kind of fear an eternal september which they can avoid by having a langauge which, yes, is kind of strange sometimes
<manveru>
god knows why they didn't pick a new name for it
ndrei has joined #ruby
lea has quit [Ping timeout: 240 seconds]
<manveru>
there are still people sticking to python2... and python3 is a much smaller evolution
<manveru>
then again, we still get people in this channel using ruby 1.8.6 and the like
<jhass>
DEA7TH: what's this for? where does the set come from?
weihan has joined #ruby
chriscarpenter12 has joined #ruby
<manveru>
yours does a linear search N*N times
<jhass>
Set#include? is O(1)
<DEA7TH>
jhass: it's a list of IDs
weihan has quit [Max SendQ exceeded]
<manveru>
oh, it's not an array?
<manveru>
damn :P
<DEA7TH>
I want to create the same ID, like SQL DBs do
<jhass>
DEA7TH: I didn't ask "what's this"
<DEA7TH>
it's an array yes
chriscarpenter12 has left #ruby [#ruby]
chriscarpenter12 has joined #ruby
<jhass>
in your gist you wrote it's a set, now what is it?
chriscarpenter12 has left #ruby [#ruby]
<DEA7TH>
it's a Ruby set
weihan has joined #ruby
<manveru>
so it's a hash
<DEA7TH>
Ruby has a Set type
<DEA7TH>
or are you asking what does the set represent?
<manveru>
yeah, it's implemented via an hash though
<jhass>
DEA7TH: most RDBMS just increment a counter that they store alongside
<jhass>
that is they don't fill holes
<DEA7TH>
I'm dealing with a file system, not a DB though
<DEA7TH>
yeah I know
<jhass>
so nums.max + 1
<DEA7TH>
I prefer to fill holes though
<jhass>
why?
<DEA7TH>
since my use case is very different. DBs get huge
<DEA7TH>
I expect to be usually at... 1 or 2
zenguy_pc has joined #ruby
uber has joined #ruby
gusTester has joined #ruby
hostess_ is now known as hostess
weihan has quit [Max SendQ exceeded]
weihan has joined #ruby
adac has quit [Ping timeout: 246 seconds]
Igorshp has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
lea has joined #ruby
weihan has quit [Max SendQ exceeded]
<DEA7TH>
set.size.times.find {|i| !set.include?(i) } is really nice, but doesn't work if the set doesn't have gaps, i.e. [0, 1].to_set
<DEA7TH>
so I'll have to go with the 3-liner
ndrei has joined #ruby
weihan has joined #ruby
kimegede has quit [Quit: Leaving...]
weihan has quit [Max SendQ exceeded]
weihan has joined #ruby
<apeiros>
jhass: dunno, I like Time.guess more than Time.throw_chicken_bones :)
lxsameer has quit [Quit: Leaving]
varunwachaspati has joined #ruby
<jhass>
DEA7TH: .find(set.size+1)
kimegede has joined #ruby
Zai00_ has joined #ruby
Zai00 has quit [Ping timeout: 264 seconds]
Zai00_ is now known as Zai00
IrishGringo has joined #ruby
techsethi has joined #ruby
Guest50 has joined #ruby
adac has joined #ruby
weihan has quit [Max SendQ exceeded]
bootstrappm has quit [Quit: Leaving.]
weihan has joined #ruby
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Zai00 has quit [Ping timeout: 255 seconds]
gregoriokusowski has quit [Ping timeout: 252 seconds]
tagrudev has quit [Read error: Connection reset by peer]
tvw has joined #ruby
subscope has joined #ruby
tagrudev has joined #ruby
<apeiros>
hrm. writing a gem foo-bar with (of course) means it wants to be required as 'foo/bar'. add a file foo-bar.rb which requires 'foo/bar' and emits a warning - yay/nay?
IrishGringo has quit [Ping timeout: 240 seconds]
FastJack_ has quit [Quit: leaving]
zacts has quit [Read error: Connection reset by peer]
FastJack has joined #ruby
sanjayu has quit [Ping timeout: 260 seconds]
aufi has joined #ruby
<shevy>
I'd love to say that foo-bar.rb is ugly but I wrote even uglier filenames myself
jokester has quit [K-Lined]
voxxit has quit [K-Lined]
pipework has quit [K-Lined]
<shevy>
I even had things like CompileProgram.rb
<apeiros>
it is ugly, and wrong. hence the warning. at the moment I tend to "nay".
norc has quit [Ping timeout: 246 seconds]
<apeiros>
shevy: I'd actually prefer the convention to be CompileProgram.rb
Igorshp has quit [Remote host closed the connection]
tkuchiki has joined #ruby
pipework has joined #ruby
<apeiros>
or rather: Foo/BarBaz.rb for Foo::BarBaz
zacts has joined #ruby
Igorshp has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
basiles has joined #ruby
sinkensabe has quit [Remote host closed the connection]
voxxit has joined #ruby
machan has joined #ruby
symbol has joined #ruby
voxxit has quit [K-Lined]
krisquigley has quit [Read error: Connection reset by peer]
krisquig_ has joined #ruby
chouhoulis has joined #ruby
gagrio has quit [Ping timeout: 244 seconds]
patrick__ has quit [Quit: Leaving]
<adaedra>
There's the problem when you have BarBaz and Barbaz
patrick__ has joined #ruby
patrick__ has quit [Read error: Connection reset by peer]
daffy_duck has joined #ruby
rwilcox has joined #ruby
ebbflowgo has joined #ruby
Igorshp has quit [Remote host closed the connection]
<shevy>
giving things a proper name is one of the most difficult aspects of programming
tvon has joined #ruby
chouhoulis has quit [Ping timeout: 256 seconds]
phutchins has quit [Ping timeout: 260 seconds]
idefine has joined #ruby
nickjj_ has joined #ruby
adac has quit [Ping timeout: 252 seconds]
synthroid has joined #ruby
loren has joined #ruby
djcp has quit [Quit: WeeChat 1.0.1]
nickjj has quit [Ping timeout: 244 seconds]
but3k4 has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sankaber has joined #ruby
cdg has joined #ruby
`tim` has joined #ruby
loren321 has joined #ruby
djcp has joined #ruby
fullofcaffeine has joined #ruby
sinkensabe has joined #ruby
shinenelson has quit [Quit: Connection closed for inactivity]
tvon has quit [Ping timeout: 265 seconds]
freezevee has quit []
loren has quit [Ping timeout: 264 seconds]
techsethi has quit [Ping timeout: 256 seconds]
dorei has joined #ruby
Jardayn has joined #ruby
gagrio has joined #ruby
fullofcaffeine has quit [Ping timeout: 268 seconds]
nemo_ has quit [Remote host closed the connection]
adac has joined #ruby
AlphaAtom has joined #ruby
yardenbar has quit [Ping timeout: 264 seconds]
toy has quit [Quit: Leaving...]
saddad has joined #ruby
whippythellama has joined #ruby
trosborn has quit [Quit: trosborn]
akakios has quit [Remote host closed the connection]
anisha has joined #ruby
AlphaAtom has quit [Client Quit]
pusewicz has joined #ruby
machan has quit [Changing host]
machan has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
eGGsha has joined #ruby
Voker57 has joined #ruby
Igorshp has joined #ruby
tvon has joined #ruby
Bellthoven has joined #ruby
anisha has quit [Ping timeout: 252 seconds]
loren321 has left #ruby ["Leaving"]
ndrei has quit [Ping timeout: 272 seconds]
IrishGringo has joined #ruby
yashinbasement has quit [Ping timeout: 272 seconds]
sgambino has joined #ruby
Bellthoven has quit [Ping timeout: 256 seconds]
tvon has quit [Client Quit]
ndrei has joined #ruby
anisha has joined #ruby
anisha has quit [Read error: Connection reset by peer]
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jgpawletko has joined #ruby
Guest50 has joined #ruby
Igorshp has quit [Remote host closed the connection]
Igorshp has joined #ruby
ngscheurich has joined #ruby
zenguy_pc has quit [Ping timeout: 255 seconds]
skweek has joined #ruby
fullofcaffeine has quit [Ping timeout: 268 seconds]
idefine has quit [Remote host closed the connection]
hal_9000_ has joined #ruby
tubuliferous_ has joined #ruby
khebbie has quit [Ping timeout: 268 seconds]
<unshadow>
Hi Guys, Just wanted to share my SSL Cipher Scanner --> https://github.com/bararchy/ruby-SSLscanner , If anyone would like to contribute and help out that would be awsome :)
rewzn has quit [Quit: WeeChat 1.1]
chrissonar has quit [Remote host closed the connection]
<apeiros>
unshadow: um, you should read the gem guide with regards to naming. also top-level "Scanner" class is IMO not a good idea.
<apeiros>
but I guess you didn't build it as a gem anyway :)
Motoservo has quit [Quit: Motoservo]
tkuchiki has quit [Remote host closed the connection]
shinenelson has joined #ruby
<unshadow>
apeiros: Yeha, maybe I should create it as a gem so people could "gem install ssl-scanner" or something, I'm sure it will be easier, thanks for the idea :)
NeverDie has joined #ruby
jokester has joined #ruby
leafybas_ has joined #ruby
prefixed has joined #ruby
vigintas has quit [Ping timeout: 250 seconds]
vigintas has joined #ruby
freerobby has joined #ruby
idefine has joined #ruby
<apeiros>
unshadow: IMO yes
voxxit has joined #ruby
riotjones has quit [Remote host closed the connection]
NeverDie has quit [Max SendQ exceeded]
baweaver has joined #ruby
leafybasil has quit [Ping timeout: 250 seconds]
beauby has joined #ruby
voxxit has quit [K-Lined]
jokester has quit [K-Lined]
zenguy_pc has joined #ruby
NeverDie has joined #ruby
idefine has quit [Remote host closed the connection]
achamian has joined #ruby
tubuliferous_ has quit [Ping timeout: 265 seconds]
astrobun_ has quit [Ping timeout: 268 seconds]
symbol has quit [Ping timeout: 240 seconds]
<caliostro>
what is te preferred testing framework for ruby?
Akagi201 has quit [Remote host closed the connection]
diegoaguilar has joined #ruby
achamian has quit [Remote host closed the connection]
idefine has joined #ruby
stannard has joined #ruby
<treehug88>
ruby-lang132: server probably thinks you're not done with your request and hasn't started sending response. Just a guess, I'm not familiar with that protocol
arthurix has quit [Ping timeout: 240 seconds]
fullofcaffeine has quit [Read error: Connection reset by peer]
fullofcaffeine has joined #ruby
davedev24 has joined #ruby
<ruby-lang132>
I added EOT at the end, so the request should be finished.
<treehug88>
it may be seeking a different "EOT" marker, or something after it. Post info about the spec if you want more assistance
tenderlove has quit [Ping timeout: 240 seconds]
tenderlove has joined #ruby
chopin has joined #ruby
birett has joined #ruby
relix has joined #ruby
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
<jhass>
ruby-lang132: so you get your connection immediately closed after the connection attempt?
machan has quit [Ping timeout: 246 seconds]
anisha has joined #ruby
karapetyan has joined #ruby
hagabaka has joined #ruby
Rickmasta has joined #ruby
<jhass>
ruby-lang132: first of all .puts appends a "\n"
firstdayonthejob has joined #ruby
kp666 has quit [Read error: Connection reset by peer]
<jhass>
ruby-lang132: next that server responds with "ok\04", .gets waits for a "\n"
<jhass>
(by default)
_mak has joined #ruby
rcvalle has joined #ruby
ajb- is now known as ajb
ajb is now known as ajb-
absolutejam has quit [Ping timeout: 240 seconds]
karapetyan has quit [Remote host closed the connection]
big|bad|wolf has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<cschneid_>
what's a good command line arg parser that does git/rails style sub commands. `mycommand new thing` `mycommand help` `mycommand delete thing -f`
tenderlove has quit [Ping timeout: 240 seconds]
Motoservo_ has joined #ruby
<jhass>
doesn't rails use thor?
armyriad2 has joined #ruby
atmosx has quit [Quit: Lost in trance]
armyriad has quit [Disconnected by services]
armyriad2 is now known as armyriad
podman has quit [Quit: Connection closed for inactivity]
chouhoul_ has joined #ruby
hakunin has left #ruby [#ruby]
nateberkopec has joined #ruby
<stacybird>
I like thor, but I think there may be issues with multi-level commands. too much nesting seems to be an issue
NeverDie has joined #ruby
towski_ has joined #ruby
* stacybird
just started using is not too long ago
skweek has quit [Ping timeout: 246 seconds]
tubuliferous has quit [Ping timeout: 264 seconds]
borkdude has quit [Ping timeout: 264 seconds]
valeri_ufo has quit [Ping timeout: 264 seconds]
varesa has quit [Ping timeout: 264 seconds]
tenderlove has joined #ruby
jackjackdripper has joined #ruby
khebbie has joined #ruby
eregon has joined #ruby
blackmesa has quit [Ping timeout: 265 seconds]
freeze has quit [Ping timeout: 264 seconds]
hinbody has quit [Ping timeout: 264 seconds]
akkad has quit [Ping timeout: 264 seconds]
cajone has quit [Ping timeout: 264 seconds]
chridal has quit [Ping timeout: 264 seconds]
zenspider has quit [Ping timeout: 264 seconds]
Caelum has quit [Ping timeout: 264 seconds]
drew2_ has quit [Ping timeout: 264 seconds]
m4rCsi_ has joined #ruby
diego_k has quit [Ping timeout: 264 seconds]
Motoservo has quit [Ping timeout: 264 seconds]
Emmanuel_Chanel has quit [Ping timeout: 264 seconds]
hectortrope has quit [Ping timeout: 264 seconds]
rdark has quit [Ping timeout: 264 seconds]
DEA7TH has quit [Ping timeout: 264 seconds]
leat2 has quit [Ping timeout: 264 seconds]
sepp2k has quit [Ping timeout: 264 seconds]
Motoservo_ is now known as Motoservo
hanmac has quit [Ping timeout: 264 seconds]
joast has quit [Ping timeout: 264 seconds]
genpaku has quit [Ping timeout: 264 seconds]
ozzloy has quit [Ping timeout: 264 seconds]
Biohazard has quit [Ping timeout: 264 seconds]
crankharder has quit [Ping timeout: 264 seconds]
async_prince has quit [Ping timeout: 264 seconds]
yie has quit [Ping timeout: 264 seconds]
towler has quit [Ping timeout: 264 seconds]
cout has quit [Ping timeout: 264 seconds]
dasher00 has quit [Ping timeout: 264 seconds]
Drakevr has quit [Ping timeout: 264 seconds]
corpsicle has quit [Ping timeout: 264 seconds]
sts_ has quit [Ping timeout: 264 seconds]
scroff has quit [Ping timeout: 264 seconds]
iDavid_ has quit [Ping timeout: 264 seconds]
PaulePanter has quit [Ping timeout: 264 seconds]
cookiez has quit [Ping timeout: 264 seconds]
riotjones has joined #ruby
zenspider has joined #ruby
diegok has joined #ruby
inteq has quit [Ping timeout: 264 seconds]
chouhoulis has quit [Ping timeout: 264 seconds]
spew has quit [Ping timeout: 264 seconds]
doddok has quit [Ping timeout: 264 seconds]
nateberkope has quit [Ping timeout: 264 seconds]
xet7 has quit [Ping timeout: 264 seconds]
worstcase has quit [Ping timeout: 264 seconds]
eregon_ has quit [Ping timeout: 264 seconds]
deps has quit [Ping timeout: 264 seconds]
kriskropd_ has quit [Ping timeout: 264 seconds]
ksteck has quit [Ping timeout: 264 seconds]
oddmunds has quit [Ping timeout: 264 seconds]
ekem has quit [Ping timeout: 264 seconds]
m4rCsi has quit [Ping timeout: 264 seconds]
nw has quit [Ping timeout: 264 seconds]
sugardrunk has quit [Ping timeout: 264 seconds]
shadeslayer has quit [Ping timeout: 264 seconds]
pabs has quit [Ping timeout: 264 seconds]
cfloare has quit [Ping timeout: 264 seconds]
kalusn has quit [Remote host closed the connection]
zenguy_pc has joined #ruby
XxionxX has joined #ruby
maletor has joined #ruby
DEA7TH has joined #ruby
armyriad has quit [Client Quit]
freeze has joined #ruby
hinbody has joined #ruby
iDavid has joined #ruby
tubuliferous has joined #ruby
borkdude has joined #ruby
PaulePanter has joined #ruby
shadeslayer has joined #ruby
yie has joined #ruby
corpsicle has joined #ruby
ivanskie has quit [Quit: Leaving]
rdark has joined #ruby
rdark has quit [Changing host]
rdark has joined #ruby
sts_ has joined #ruby
cout has joined #ruby
Drakevr has joined #ruby
crankharder has joined #ruby
genpaku has joined #ruby
orion has joined #ruby
pabs has joined #ruby
spew has joined #ruby
idefine_ has joined #ruby
<orion>
In Ruby, is "if obj" semantically equal to "if obj.nil?" ?
valeri_ufo has joined #ruby
armyriad has joined #ruby
<adaedra>
not at all
<eam>
orion: no, obj could be false
fullofcaffeine has quit [Remote host closed the connection]
<mg^^>
I expect that since use of nil? is usually discouraged that it breaks not many things, but the things it does break probably break badly
fullofcaffeine has joined #ruby
karapetyan has joined #ruby
fullofcaffeine has quit [Read error: Connection reset by peer]
<mg^^>
adaedra: that is totally evil and I'm going to do that to a coworker now :-)
vigintas has quit [Ping timeout: 260 seconds]
vigintas1 is now known as vigintas
fullofcaffeine has joined #ruby
IrishGringo has quit [Ping timeout: 246 seconds]
anisha has quit [Ping timeout: 255 seconds]
lsmola_ has quit [Ping timeout: 272 seconds]
bruce_lee has quit [Read error: Connection reset by peer]
khebbie has quit [Ping timeout: 260 seconds]
nemo_ has quit [Remote host closed the connection]
paulcsmith has joined #ruby
eminencehc has joined #ruby
idefine_ has quit [Remote host closed the connection]
astrobun_ has quit [Remote host closed the connection]
idefine has joined #ruby
<eam>
unable to convert "\xD0" from ASCII-8BIT to UTF-8 for lib/redcarpet.so, skipping
<eam>
you'd think ri would know better than to try to parse shared objects
cball has quit [Ping timeout: 240 seconds]
tenderlove has quit [Read error: Connection reset by peer]
basiles has joined #ruby
<Ebok>
I have a dumb question: https://eval.in/453493 <=== I linked an error code I'm getting while following a tutorial. Its their code that's prompting the error, but Im not entirely sure what it means. If someone can glance at it and confirm what might be going wrong?
eminencehc has quit [Remote host closed the connection]
eminencehc has joined #ruby
<Ebok>
My guess is the require "specific ruby gem file" is not calling the listed gem file--but Im not entirely certain how to look up a correct reference if thats the case.
big|bad|wolf has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<eam>
Ebok: it means the file "event_manager.rb" on line 6 attempted to require "sunlight/congress" and ruby couldn't find it installed anywhere
alcipir has joined #ruby
tenderlove has joined #ruby
nemo_ has joined #ruby
<eam>
if you open up "/home/ubuntu/workspace/event_manager/lib/event_manager.rb" you should see the require() on line 6
<Ebok>
Yeah
<Ebok>
I see where
vigintas has quit [Ping timeout: 240 seconds]
<Ebok>
Its how to fix it xD
wallerdev has joined #ruby
<Ebok>
'I assume that means I need to download the file somewhere?
<Ebok>
I've never written a gemfile, but I have seen them. I was considering test out writing one from scratch (need to learn it anyway)
<shevy>
eam ri emerged out of the 2000 era!
agentmeerkat has joined #ruby
<glundgren>
[1,2,2,3,3,5] i want to reject the array sum up to a specific number, for example, reject up to 3, then the array will be [2,3,3,5]
<glundgren>
is it possible?
<bougyman>
sure.
<agentmeerkat>
Does anyone know of a Ruby Gem for capturing video from a webcam?
<bougyman>
[1,2,2,3,3,5][2..-1]
<glundgren>
i tried play with inject, but not very lucky
<bougyman>
[1,2,2,3,3,5][2..-1]
<bougyman>
=> [2, 3, 3, 5]
big|bad|wolf has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
dfinninger has quit [Remote host closed the connection]
<glundgren>
bougy, let me try
chouhoulis has joined #ruby
stan has quit [Ping timeout: 250 seconds]
tenderlove has quit [Read error: Connection reset by peer]
<glundgren>
bougy, sorry, its not this :)
<glundgren>
i mean, i want to reject up to the sum of the array
<bougyman>
what?
<bougyman>
it's the result set you asked for.
_kfpratt has joined #ruby
dfinninger has joined #ruby
<glundgren>
for example: [1,2,3,4] i want to reject the numbers that sums is equal or less than 3, for example
<glundgren>
the result should be [3,4]
<glundgren>
because 1+2 = 3
<bougyman>
oh.
<glundgren>
i tried inject, but i didnt get it very well
dfockler has quit [Ping timeout: 240 seconds]
<glundgren>
how to reject inside an inject
roxtrongo has joined #ruby
tenderlove has joined #ruby
tenderlove has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
kfpratt has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
<Ebok>
select
big|bad|wolf has quit [Ping timeout: 272 seconds]
<Ebok>
Instead of kicking out what you dont want, just select what you do?
Igorshp has quit [Remote host closed the connection]
eminencehc has quit [Remote host closed the connection]
trautwei_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dfinninger has quit [Ping timeout: 250 seconds]
<glundgren>
Ebok: can i say the real problem of what im trying to achieve?
<Ebok>
I dont know? can you?
<glundgren>
sure :)
<Ebok>
lol
<glundgren>
hehehe
dfinninger has joined #ruby
kalusn has joined #ruby
<glundgren>
i have a software where i have a table called transactions
<glundgren>
in this transactions, i have debits and credits
<glundgren>
they both have start and end date
roxtrongo has quit [Ping timeout: 265 seconds]
khebbie has joined #ruby
<glundgren>
for the debits, it generates a value, its the consumed hours in the transaction (like a checkin/checkout system)
<glundgren>
in the credits, i have the start date, and ends date
mary5030 has quit [Ping timeout: 260 seconds]
ta has quit [Remote host closed the connection]
<glundgren>
after the ends date, i have to calculate what was used, to make a debit to make the balance of the account go zero
Guest50 has joined #ruby
<glundgren>
for example, i bough 2 hours, consumed 1 hour, theres 1 hour left, so after the credit ends, i have to debit the 1 hour rest
benhuda has joined #ruby
zotherstupidguy has quit [Ping timeout: 240 seconds]
<glundgren>
man, it will get really big, i dont know if i should continue hehe
<glundgren>
this sounds simple, but you have to think another cases of use, for example
synthroid has joined #ruby
saddad has joined #ruby
<glundgren>
someone consumed more than the hours bought, then i have to debit 0
jaequery has joined #ruby
kimegede has joined #ruby
QORRiE has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
subscope has joined #ruby
<glundgren>
man, sorry, its a really big problem, im not use your time
<glundgren>
:)
fullofcaffeine has quit [Ping timeout: 246 seconds]
<Ebok>
It doesnt sound that big
zayaman has quit [Quit: leaving]
<glundgren>
its because theres a lot of another cases
PlasmaStar has quit [Max SendQ exceeded]
arup_r has quit [Ping timeout: 250 seconds]
<glundgren>
like when a bough overlaps another bought
n008f4g_ has joined #ruby
beauby has quit [Ping timeout: 260 seconds]
<jaequery>
is it just me or is ruby community seem to be ... losing steam?
<glundgren>
if we have another bought that is valid
jaequery has quit [Max SendQ exceeded]
jaequery has joined #ruby
arup_r has joined #ruby
<glundgren>
jaequery: realize that theres different levels of wisdom
ndrei has joined #ruby
<glundgren>
in ruby :)
<glundgren>
mine is very basic, is it ok for you?
<Ebok>
basically you have an array of transactions, and two reference points stored in another. start...end seems like a range to me. Can you just call a method whenever your end date happens, to scan the transactions that occured over that period, total them, and then return whatever you need to?
cookiez has joined #ruby
<glundgren>
every time i try to get help here theres irony
<glundgren>
:/
<Ebok>
I'm teaching myself this language mindyou, and do not have it mastered by any stretch. I'd take anyone elses word here over mine, but. >_>
fullofcaffeine has joined #ruby
deps has joined #ruby
<glundgren>
Ebok: yes, i already do that, but i need to mark the specific ones
PlasmaStar has joined #ruby
<Ebok>
mark the start and end?
<glundgren>
that was used up to the sum, or the
<glundgren>
no, the transaction
<Ebok>
ah
<glundgren>
so i need to reject or select
<glundgren>
an array
<glundgren>
up to a sum
<Ebok>
Alright so if you have an array that lists: 2223451 and your sum is 3, the new array needs to be 345
<Ebok>
or does it need to be 22345
khebbie has quit [Ping timeout: 272 seconds]
mag42c_ has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
lee-jon has joined #ruby
yosiat has joined #ruby
<glundgren>
Ebok: i just need to know how to do it
<glundgren>
then i will see what i really need :P
arup_r has quit [Ping timeout: 250 seconds]
<Ebok>
I just need to know how your logic needs to flow
khebbie has joined #ruby
karapetyan has quit [Remote host closed the connection]
cball has joined #ruby
tesuji is now known as Guest56624
Guest56624 has quit [Killed (weber.freenode.net (Nickname regained by services))]
Lucky__ has joined #ruby
achamian has quit [Remote host closed the connection]
mag42c has quit [Ping timeout: 272 seconds]
mag42c_ is now known as mag42c
<Ebok>
I gave an either or above, they'd be handled differently
<glundgren>
ok, i need to reject up to a number, then i will use these other numbers to sum a number that i will use to adjust the debit
hal_9000_ has quit [Ping timeout: 250 seconds]
hal_9000_ has joined #ruby
<Ebok>
array.select{|n| n>sum}
tesuji_ has joined #ruby
<Ebok>
any number n which is greater then whatever variable you have set for sum, will not be part of the array
eminencehc has joined #ruby
<glundgren>
Ebok: ok, thats cool
skweek has quit [Read error: Connection reset by peer]
cball has quit [Client Quit]
karapetyan has joined #ruby
<glundgren>
Ebok: but if i have [1,2,3,4,5].select{|n| s> sum}
<glundgren>
it will give me [4,5]
<glundgren>
the sum of [1,2,3] = 6
<glundgren>
i mean, sum = 3
orion has left #ruby [#ruby]
<glundgren>
let me rephrase
<Ebok>
Yeah please do
<glundgren>
Ebok: but if i have [1,2,3,4,5].select{|n| n>3} it will give me [4,5], but the sum of [1,2,3] = 6
fullofcaffeine has quit [Ping timeout: 240 seconds]
<glundgren>
the expected result should be [3,4,5]
<Ebok>
This is why I asked you that either or question
sepp2k has quit [Quit: Leaving.]
<glundgren>
sorry, english is not my native language
blaxter has quit [Quit: foo]
<Ebok>
Alright so I am clear: if you have the array [1,2,2,3,4,5,5,5] and you want to remove numbers up to 7. what should your array look like?
khebbie has quit [Ping timeout: 246 seconds]
basiles has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ebok>
See, peeps know this much better then I do ^^
mary5030 has joined #ruby
symbol has quit [Ping timeout: 265 seconds]
<Ebok>
I was in the process of writing the drop_while method xD
mary5030 has quit [Read error: Connection reset by peer]
<Ebok>
lulz
eminencehc has quit [Remote host closed the connection]
troyready has joined #ruby
mary5030 has joined #ruby
Renich has joined #ruby
roxtrongo has joined #ruby
mary5030 has quit [Remote host closed the connection]
_djbkd has quit [Remote host closed the connection]
mary5030 has joined #ruby
tjohnson has joined #ruby
<Ebok>
glundgren ^^ jhass gave you wnat you needed
adac has joined #ruby
achamian has quit [Remote host closed the connection]
<jhass>
it's fine, I'm ignored today
<glundgren>
jhass
<glundgren>
thanks man!
<Ebok>
I justed his name to prompt him ^^
mary5030 has quit [Remote host closed the connection]
<glundgren>
the limehcat was minimized
<Ebok>
used!
<glundgren>
:)
<Ebok>
Yeah figured :P
<glundgren>
awesome!
j4cknewt has quit [Remote host closed the connection]
mary5030 has joined #ruby
_djbkd has joined #ruby
<glundgren>
awesome, thank you very much guys
<jhass>
?guys glundgren
<ruboto>
glundgren, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
baroquebobcat has quit [Quit: baroquebobcat]
<glundgren>
jhass, are you girl?
<glundgren>
sorry
<jhass>
would it matter?
<glundgren>
no, but you said
idefine has quit [Remote host closed the connection]
<glundgren>
to not call you a guy
<jhass>
read again, that's not what it says
<Ebok>
glundgren, he's prompting consideratory political correctness
<glundgren>
ah, ok
<glundgren>
i will not even talk about it anymore
<glundgren>
i appreciate the help, and that will be it
ModusPwnens has joined #ruby
chouhoulis has quit []
<glundgren>
:)
gusrub has joined #ruby
<Ebok>
lol the fact that ruboto has that scripted is funny to me
<ModusPwnens>
I'm trying to add access control using user roles to my site. There are a few different possible roles and role-based checks will have to be done in various controllers. Given this, is it a problem to have floating symbol checks everywhere (e.g. current_user.role == :admin)?
chouhoulis has joined #ruby
khebbie has quit [Ping timeout: 268 seconds]
U7se6 has joined #ruby
davispuh has joined #ruby
heftig has quit [Remote host closed the connection]
agentmeerkat has joined #ruby
<jhass>
#RubyOnRails will likely have better tips for you
eminencehc has quit [Remote host closed the connection]
eminencehc has joined #ruby
fullofcaffeine has quit [Ping timeout: 250 seconds]
synthroid has quit []
jenrzzz has quit [Ping timeout: 244 seconds]
cwong_on_irc has joined #ruby
zenguy_pc has quit [Ping timeout: 250 seconds]
workmad3 has quit [Ping timeout: 265 seconds]
cwong_on_irc has quit [Max SendQ exceeded]
idefine has joined #ruby
cwong_on_irc has joined #ruby
troulouliou_div2 has quit [Remote host closed the connection]
synthroid has joined #ruby
riotjone_ has joined #ruby
fullofcaffeine has joined #ruby
prefixed has joined #ruby
khebbie has quit [Ping timeout: 246 seconds]
ericjphillips has quit [Quit: Leaving.]
IrishGringo has joined #ruby
pdoherty has joined #ruby
karapetyan has quit [Remote host closed the connection]
nemo_ has quit [Remote host closed the connection]
<purplexed^>
what is the correct way to structure a module, with classes... I saw I am supposed to but the module.rb in the /lib/ folder, and then have folder named (module_name), and then the the classes in it... does that sound correct ?
<purplexed^>
put*
hfp__work has joined #ruby
karapetyan has joined #ruby
naftilos76 has quit [Ping timeout: 256 seconds]
pocketprotector- has joined #ruby
aryaching has quit [Quit: Bye]
kadoppe has quit [Ping timeout: 256 seconds]
hfp_work has quit [Ping timeout: 272 seconds]
hfp__work is now known as hfp_work
<purplexed^>
and, why is this room so quiet... do ruby developers not speak to each other ?
<purplexed^>
jxl180: can you also answer why nobody is speaking in this room... :D
pocketprotector- has quit [Client Quit]
<purplexed^>
jxl180: C# is plenty busy.. so I wonder why this room seems completely dead.
pocketprotector- has joined #ruby
solars has quit [Ping timeout: 264 seconds]
<Ebok>
lots of people come here to ask questions, they get their answers, and then they leave
Steve_Jobs has joined #ruby
<jhass>
purplexed^: we tend to redirect OT talk to #ruby-offtopic ;)
<shevy>
purplexed^ usually there will be one top-level constant, most often a module, which should be the name of your project/gem
yfeldblum has joined #ruby
cdg_ has quit [Remote host closed the connection]
<dorei>
if i have [:a, :b, :c], how can i get [[],[:a], [:b], [:c], [:a, :b], [:a, :c], [:b, :c], [:a, :b, :c]] ? (i guess order is not important)
<shevy>
purplexed^ most usually the layout will be determined by the name of the class, and then the most common rule to have "one class per file". like if you have module Foo; class Bar, class Bar should reside in the file bar.rb
<jxl180>
purplexed^: Again, I highly recommend reading the style guide linked above, they discuss file naming and the "one class per file"
zenguy_pc has joined #ruby
baweaver has joined #ruby
jokester has joined #ruby
<nemo_>
Hi all. I have a question. Will the object get created if the initialize method is written inside private
<shevy>
rubocop can even auto-correct!
naftilos76 has joined #ruby
<jxl180>
purplexed^: usually, I will have the module as the folder/project name, and the classes below
<shevy>
nemo_ sure
<jhass>
dorei: that's called the power set, google should yield you a couple of solutions
<nemo_>
how will u access dat method?
<shevy>
nemo_ initialize is already private
<dorei>
power set, thanx :)
craysiii has joined #ruby
<shevy>
you don't normally access it, you use .new
loc22 has joined #ruby
tercenya has quit [Read error: Connection reset by peer]
<jhass>
nemo_: ^ initialize is marked private by default can called by .new for you
<nemo_>
ok any details about it. I feel its more related to Encapsulation
p0wn3d__ has quit [Ping timeout: 244 seconds]
p0wn3d has joined #ruby
BSaboia has joined #ruby
<jhass>
there's not much more to it, it's called by .new after it called .allocate and before it returns the new object
tenderlove has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
baroquebobcat_ has joined #ruby
<purplexed^>
It seems like this channel would benefit from not having an off-topic channel, since this channel is so boring :)
<adaedra>
no
baroquebobcat has quit [Ping timeout: 250 seconds]
baroquebobcat_ is now known as baroquebobcat
momomomomo has joined #ruby
platzhirsch has left #ruby [#ruby]
ngscheur1 has joined #ruby
<shevy>
purplexed^ the ruby off-topic is much more boring, they plan non-stop unicode hangman there!
acke has joined #ruby
tenderlove has joined #ruby
<adaedra>
“non-stop”
<jhass>
shevy: how do you know? you're never there
ngscheurich has quit [Ping timeout: 250 seconds]
<agent_white>
We could code ruby battlebots?
niftylettuce has joined #ruby
<shevy>
jhass I was there two times \o/
<jhass>
for what? 30sec?
<shevy>
minutes
<shevy>
not enough ruby discussion there
<jhass>
1.1?
topolinux has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
jessemcgilallen has joined #ruby
bryanray has joined #ruby
jackjackdripper has joined #ruby
momomomomo has quit [Ping timeout: 265 seconds]
jenrzzz has quit [Quit: Lost terminal]
ta has quit [Remote host closed the connection]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
topolinux_ has joined #ruby
finisherr has joined #ruby
monq has joined #ruby
topolinux_ has quit [Client Quit]
khebbie has quit [Ping timeout: 240 seconds]
tenderlove has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
dgynn has quit [Quit: dgynn]
worstcase has quit [Remote host closed the connection]
spuk has joined #ruby
kinduff has joined #ruby
momomomomo has joined #ruby
bonhoeffer has joined #ruby
pdoherty has quit [Ping timeout: 265 seconds]
tenderlove has joined #ruby
baweaver has quit [Remote host closed the connection]
alcipir has joined #ruby
arthurix_ has joined #ruby
bafbomb_ has quit [Quit: leaving]
unreal_ has quit [Ping timeout: 260 seconds]
topolinux has quit [Quit: Sto andando via]
GriffinHeart has quit [Remote host closed the connection]
<purplexed^>
shevy: I'm sorry, I've just been here for 6-8 hours, and nothing happens here. I'm wondering if maybe the off-topic channel might be unneeded ;)
bafbomb has joined #ruby
<jxl180>
Maybe #ruby is unneeded, and it should only be #ruby-offtopic. Code discussion not allowed
U7se6 has quit [Ping timeout: 260 seconds]
ericjphillips has quit [Quit: Leaving.]
arthurix has quit [Ping timeout: 240 seconds]
<purplexed^>
jxl180: same question applies :) ..
chandlerbing has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alcipir has quit [Ping timeout: 240 seconds]
<haylon>
Is there a decent read on how to use and write RSpec, and UnitTests? I see a bunch of examples, but they're not really explaining what each expect does, or what the [test|spec]_helper.rb does or is for.
skweek has quit [Ping timeout: 246 seconds]
<purplexed^>
i'm sorry, I've just rarely met a development chat room that so dead as this one
<haylon>
lol, depends on the topic purplexed^
<haylon>
I've seen it get pretty lively, but some people say take it to the #ruby-community channel
<purplexed^>
what topics are interesting then ? :D
tenderlove has quit [Read error: Connection reset by peer]
<haylon>
Most of the stuff I've ranted on was off-topic from Ruby
<purplexed^>
where can I see that I should go to "ruby-community" for interesting talk ?
ELLIOTTCABLE is now known as ec
<jhass>
#ruby-community is for development of the website and related stuff, #ruby-offtopic is the offtopic channel
<purplexed^>
hey, I know i'm being the devils advocate
naftilos76 has quit [Remote host closed the connection]
roxtrongo has quit [Remote host closed the connection]
<jhass>
we had ruby related questions buried in offtopic talk in the past, separating makes it easier for everyone
tenderlove has joined #ruby
<haylon>
I'll bookmark that one too.
<purplexed^>
interesting... because I barely see ruby questions in there :)
<jhass>
makes it a lot easier to watch the channel for people not interested in the offtopic talk
DoubleMalt has joined #ruby
<purplexed^>
here*
<jhass>
maybe ruby is just so easy that questions are rare? ;P
ruurd has joined #ruby
<purplexed^>
jhass: I doubt that is true :D
<haylon>
LOL jhass.
workmad3 has joined #ruby
d10n-work has joined #ruby
<shevy>
purplexed^ ruby is so good that nobody has any questions, save newcomers!
<jhass>
tbf today's a quiet day indeed
polishdub has joined #ruby
<haylon>
So, about that RSpec and MiniTest reading. Do you have an ebook, or a link I could look at? I haven't seen one that really went into detail
Soda has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 246 seconds]
<haylon>
or newbs, shevy, like me
<purplexed^>
alright, let's say it's a quiet day... I'll hang around, and we can talk tomorrow :D
sinkensabe has joined #ruby
<shevy>
#python has more traffic, unfortunately when I try to talk about ruby there the snakes beat me up :(
<purplexed^>
come to C#, it's more fun there
nemo_ has quit [Remote host closed the connection]
<shevy>
ewww C#
<haylon>
#go-nuts is pretty fun too
<craysiii>
C# is..... bad lol
<craysiii>
the channel, not the language :)
tenderlove has quit [Read error: Connection reset by peer]
<purplexed^>
shevy: The room is more fun, I didn't say you had to enjoy the language :D
_el_fer_ has joined #ruby
mustmodify has joined #ruby
tenderlove has joined #ruby
<purplexed^>
I just started writing Ruby as a C# dev of 10-15 years...it's lots of fun... but the community so far is sucking :O
bmn has quit [Quit: obai]
tenderlove has quit [Remote host closed the connection]
<jhass>
craysiii: some say so, some say the other way around I guess :P
heftig has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 240 seconds]
heftig has joined #ruby
<craysiii>
purplexed that is exactly my point
<purplexed^>
and I might sound like a major asshole saying that, but honestly... every time I go to a Ruby anything, nothing is going on
<craysiii>
dont ever go to #csharp looking for help
<purplexed^>
craysiii: why ?
<jhass>
we're sucking for being focused on helping?
chouhoulis has quit [Read error: Connection reset by peer]
<haylon>
I also wouldn't judge the community by this chat room either purplexed^
<adaedra>
who's sucking?
<jhass>
you
chouhoulis has joined #ruby
<craysiii>
they themselves claim to not be a help channel, they want to argue semantics and which libraries are better than the others
<purplexed^>
haylon: no, I'm not just judging by this chat room :)
<Ebok>
this community answers pretty much every question anyone asks given 30 minutes or so.
<shevy>
hey
<adaedra>
jhass: that's not really nice.
<shevy>
95% of the people here are idling!
jgpawletko has quit [Quit: jgpawletko]
<purplexed^>
craysiii: so by saying they are not a help channel, does that make you understand it's not a help channel ? :D
<haylon>
yeah, tis be true. I hangout in here to see wha tpeople talk about and try to learn stuff by osmosis
<jhass>
adaedra: yeah, you should stop it
<shevy>
lol ... "osmosis learning"... did you coin that word haylon?
<shevy>
aha was jhass mean to adaedra?
<shevy>
?adaedra
<ruboto>
don't be mean to adaedra
nateberkopec has quit [Read error: Connection reset by peer]
<Ebok>
O.o
<craysiii>
well once, i understood once i was berated for asking a question. they don't mention it in the MOTD or anything though
bmn has joined #ruby
nateberkopec has joined #ruby
<Ebok>
Ruboto has lots of interesting commands
<Ebok>
xD
<purplexed^>
I'm sure there are loads of people who are helpful here... but it's not like it's attracting people by it being dead all the time
<haylon>
shevy: Naw, i just osmated that as well.
<haylon>
osmoted?
<shevy>
craysiii btw a similar story happened to me when I went to a german c# channel... they hated ruby, one guy went totally amok about "monkeypatching" ruining projects
<Ebok>
purplexed, stop trolling
PsuzeannePsy has quit [Quit: Leaving]
<purplexed^>
Ebok: I'm not trolling.
<adaedra>
purplexed^: we don't speak when there is nothing to say.
<Ebok>
yeah you are
<haylon>
Ebok, I knew he was doing that from the get go, lol
<adaedra>
Pretty much like every other channel I know.
<purplexed^>
Ebok: Sir, I am not.
<jhass>
purplexed^: most rooms are like this, you might be mistaking Freenode for another network
* Ebok
rests his case
<haylon>
lol
<shevy>
because big projects will apparently be destroyed if c# would allow modification of core classes
heftig has quit [Read error: Connection reset by peer]
pathrocle has joined #ruby
heftig has joined #ruby
shmilan has joined #ruby
<craysiii>
shevy i feel your pain
mustmodify has left #ruby [#ruby]
<haylon>
So, my original question. RSpec, and MiniTest
<haylon>
any indepth reading I can do
<haylon>
besides code examples?
<havenwood>
haylon: In modern Minitest there's no capital T anymore.
<shevy>
I found reading about testing fairly boring... it may be better to just read the code
<havenwood>
haylon: Maybe take a look at Minitest's own tests.
<haylon>
I can udnerstand now to make tests, but I don't understand what the test_helper, or spec_helper do
<shevy>
like the fiddler's approach... tweak it spank it change it beat it into submission until it performs how you want it to perform
Rickmasta has joined #ruby
<haylon>
shevy, is that the technical phrase for that?
<havenwood>
haylon: When there's a snippet of helper code you need for multiple tests you can extract it out to a common file that is required by multiple tests.
<purplexed^>
maybe I'll try to not be so angry at zabbix then
bonhoeffer has quit [Quit: bonhoeffer]
<haylon>
lol, I'm also on the #zabbix channel
<purplexed^>
it just looked so shabby
<haylon>
so if you need help, post in there
<haylon>
its been updated a lot in 3.0
<haylon>
but its still in Alpha
andikr has quit [Remote host closed the connection]
<haylon>
its a pure C back end, and the API and Web front end use the same point this time
<purplexed^>
okay, that's fair enough... I guess what I write will be in alpha too ;)
<haylon>
lol
<haylon>
isn't that the way now a days with games and such?
<haylon>
I digress.
<purplexed^>
SHIP IT!
<shevy>
there are not enough ruby games!!!
<haylon>
True that shevy
jackjackdripper1 has joined #ruby
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<haylon>
we should try to make one
jackjackdripper1 has quit [Client Quit]
<haylon>
However, picking a UI toolkit is where I usually get hung up
bonhoeffer has joined #ruby
sinkensabe has joined #ruby
<shevy>
I am trying!!!!! but I found writing games to be one of the hardest thing in ruby, it's like a neverending time sink
<haylon>
lol
<haylon>
What's your UI of choice?
<purplexed^>
haylon: I got hooked on Ruby because it's a dynamic language, and that it seems like I can ship code to it for execution, and that's nice for a scenario with agents
gusTester has quit [Ping timeout: 246 seconds]
diegoaguilar has quit [Ping timeout: 268 seconds]
Sembei has joined #ruby
<haylon>
what do you mean ship code to it for execution? Just installing the Gem, and then sending data to a "server" process?
<haylon>
I kindof do that with some Sinatra apps
atomical_ has joined #ruby
jackjackdripper has quit [Ping timeout: 260 seconds]
<purplexed^>
haylon: I need my agents to execute "tasks", like Octopus Deploy
gusTester has joined #ruby
yitsushi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy>
haylon mostly still ruby-gtk due to my laziness and inertia
freerobby has quit [Quit: Leaving.]
<purplexed^>
haylon: do you know Octopus Deploy ?
Pisuke has quit [Ping timeout: 260 seconds]
cdg has joined #ruby
<haylon>
I've seen it, but only thought of it for C# purplexed^
p0wn3d has quit [Ping timeout: 240 seconds]
atomical has quit [Read error: Connection reset by peer]
Akagi201 has joined #ruby
gregf has quit [Quit: WeeChat 1.3]
<haylon>
shevy, yeah, I keep looking for a toolkit that has a lot of functions, and minimal effort to install for newbs, or non-techie's
unreal has joined #ruby
<purplexed^>
haylon: well, it has agents... just like I need... and i can ship Powershell to it, and have it execute, and then report back what happened
<purplexed^>
haylon: that's what I am trying to do with ruby now
adac has quit [Ping timeout: 252 seconds]
<purplexed^>
because ruby doesn't need Java, .NET framework or something like that
ngscheur1 has quit [Ping timeout: 265 seconds]
slawrence00 has joined #ruby
<haylon>
Still need to install Ruby though
<purplexed^>
that's okay
<jhass>
purplexed^: mmh, eval'ing network submitted code? be sure to ping back when you're done and my free servers are ready
acke has quit [Remote host closed the connection]
<haylon>
and then that's where it comes down to, do I use this 3rd party hipster language, or the native shell language
<craysiii>
hipster language o.O lol
bonhoeffer has quit [Quit: bonhoeffer]
<haylon>
that's what my co-workers call it
<haylon>
the plebians they are
freerobby has joined #ruby
<jhass>
the hipsters are currently moving to node & go
bonhoeffer has joined #ruby
<haylon>
lol
eminencehc has quit [Remote host closed the connection]
<haylon>
I want to learn go
<jhass>
don't. Learn Crystal :P
<haylon>
It just doesn't stick, and I keep falling back to Ruby, or C
<haylon>
I also started looking into Haskell and Erlang
eminencehc has joined #ruby
<haylon>
just to add to my toolbelt of languages
<purplexed^>
It seems like a dynamic language like ruby is excellent for having an agent on a server... and then I ship it some code, which it executes, and then sends back a response, or the response is sent to a logging server
<haylon>
Yeah, you can totally do that purplexed^
<jhass>
dynamic doesn't mean bulletproof sandboxed purplexed^
<purplexed^>
I understand that
<purplexed^>
by it seems New Relic is using Ruby for agents too
<jhass>
so make really sure to no fuck up authentication
<purplexed^>
but*
<jhass>
deploy TLS
<haylon>
jhass, definitely
<haylon>
another task, learn how to implement TLS, SSL, and RSA keys
<jhass>
else it's not just your metrics leaked, it's the whole box lost easily
<purplexed^>
I'm sure New Relic spent some time considering which language was best for agents
<haylon>
I would say that Chef Server would be a good example
freerobby has quit [Client Quit]
<jhass>
haylon: TLS is SSL, well, TLS 1.0 is
<jhass>
SSL is deprecated, we actually should start to no longer use that term
<haylon>
Huh. Really?
<jhass>
really
ngscheur1 has joined #ruby
<jhass>
SSLv3 is considered insecure
<haylon>
plus, whatever happened to the openssl howto pages?
<haylon>
I found a "cookbook" epub for it, but the plain text documents I found, are no longer existing.
<haylon>
Oh well. jhass, are there any premade gems to help assist with authentication like that using TLS/SSL?
<haylon>
or using RSA keys
blackmesa has joined #ruby
<jhass>
TLS encrypts the connection, it does not provide authentication
pdoherty has joined #ruby
<jhass>
authentication is then done over the encrypted connection
<jhass>
ruby stdlib has a quite comprehensive openssl binding
Igorshp has joined #ruby
<jhass>
depending on the authentication scheme you want to implement it might help with that too, in particular for challenge response type stuff
<haylon>
I saw that. I just need to fiddle fart with it and learn to use it
lkba_ has joined #ruby
<jhass>
well, unless you do client certs I guess, but that's usually quite finicky and few people really do it
dfockler has joined #ruby
alcipir has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
<purplexed^>
so, if I have a ruby application running on a client server, and I want to ship some code to it, to perform a check to see if a port if open to some other server. What is the best way to do that ?
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
K1MOS has joined #ruby
benhuda has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<atomical_>
attempt to connect and set a timeout?
blackmesa has quit [Ping timeout: 252 seconds]
yardenbar has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
diegoaguilar has joined #ruby
<jhass>
I probably wouldn't do it really, there are just too many things that can go wrong with that approach
n008f4g_ has joined #ruby
tenderlove has joined #ruby
<purplexed^>
atomical_: no, I have a master server (A), and an agent server (B), and I want to ship code from server A to B, to try and connect to server (C)
<haylon>
I kind of made a gem for that recently
<jhass>
maybe provide generic commands and just sent the parameters in from the server
<haylon>
gem search port_scanner
eminencehc has quit [Remote host closed the connection]
alcipir has quit [Ping timeout: 255 seconds]
tenderlove has quit [Remote host closed the connection]
<jhass>
there's your pumping, happy shooting yourself
<jhass>
*pumpgun
adac has quit [Ping timeout: 264 seconds]
phutchins has joined #ruby
Igorshp has quit [Remote host closed the connection]
zenguy_pc has joined #ruby
<purplexed^>
jhass: why do you have to go to extremes ?
<purplexed^>
we are just talking.
<haylon>
Damn, my tests are running, but I'm not seeing any runs.
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<purplexed^>
So, I'd just like to know what a good way would be to have a ruby application receive some code for execution, and then let it pass it's result to either a logging platform, or back to the passing server
<purplexed^>
i'm not worried about security
<karapetyan>
why (1..5).to_a works fine. But (5..1).to_a #=> [] ?
VeryBewitching has joined #ruby
colintherobot has joined #ruby
pdoherty has quit [Ping timeout: 252 seconds]
<jhass>
karapetyan: because Ranges call #succ, not #pred
colintherobot has quit [Client Quit]
colintherobot has joined #ruby
<haylon>
purplexed^ you should be able to just send a JSON message to a socket server and then have the receiving end parse it
<karapetyan>
jhass: ok
<purplexed^>
haylon: no, that again means the client would need to understand the implementation. And I don't want that... it should be ignorant of the command I send it :)
<karapetyan>
jhass: thx
<purplexed^>
haylon: otherwise, I will need to update the client everytime I have a new command
<purplexed^>
haylon: it should understand commands, but not their implementation
Xiti has quit [Quit: Xiti]
chandlerbing has quit [Remote host closed the connection]
<purplexed^>
haylon: with JSON it needs to be parse, and be understood on the client
<haylon>
Then I'm not sure how you'd make a client that would just be a relay
chandlerbing has joined #ruby
<haylon>
to the Kernel functions
baroquebobcat has joined #ruby
<purplexed^>
haylon: If it follows a convention, then I'm sure Ruby somehow could parse it correctly... it would be similar to passing an object in C# that adheres to an interface
<haylon>
the client would need to read some sort of stream, whether it be a socket stream, or JSON message, then decode it so it can read what command needs to be ran, hten executed by kernel#exec
<purplexed^>
haylon: if I passed something that had, say, a class that had a method "Execute", then it could probably execute "Execute"
<haylon>
jhass, I'm having issues with my Minitest test.
* jhass
is part of the rspec crowd
<haylon>
I have it setup, and create an object, assert_equal true, @object.do_stuff
<haylon>
ahhh
alcipir has joined #ruby
<haylon>
well, I'll get there in a bit
<haylon>
learning both minitest and rspec
<weaksauce>
haylon you can gist the test and output and I will look at it
<haylon>
Ight, one sec. Let me get my changes committed.
<purplexed^>
like, If I passed it: "ping 127.0.0.1", I could pass that to `ping 127.0.0.1` and send that back
idefine has joined #ruby
<haylon>
some flaws in that already, unless your specifically runningon Windows, purplexed^
<purplexed^>
but if it's more complex, like I need to resolve a hostname, before I ping
<jhass>
>> (eval "class BadIdea; def idea_idea; puts 'This is still a bad idea'; end; end;").new.bad_idea
<ruboto>
jhass # => undefined method `new' for :idea_idea:Symbol (NoMethodError) ...check link for more (https://eval.in/453523)
<weaksauce>
so you want to execute arbitrary shell commands from clients?
<jhass>
>> (eval "class BadIdea; def idea_idea; puts 'This is still a bad idea'; end; end; BadIdea").new.bad_idea
<ruboto>
jhass # => undefined method `bad_idea' for #<BadIdea:0x4244fdf8> (NoMethodError) ...check link for more (https://eval.in/453524)
chandlerbing has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<jhass>
>> (eval "class BadIdea; def bad_idea; puts 'This is still a bad idea'; end; end; BadIdea").new.bad_idea
<ruboto>
jhass # => This is still a bad idea ...check link for more (https://eval.in/453525)
chandlerbing has joined #ruby
acke has quit [Remote host closed the connection]
<jhass>
weaksauce: scroll up, been through everything they're ignorant on the concerns
<adaedra>
eval/exec with remote-provided input? can it be more a bad idea?
<jhass>
well, I'll retreat and get popcorn have your fun!
maletor has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<weaksauce>
i see. I echo that it's a bad idea.
mary5030 has quit [Remote host closed the connection]
<purplexed^>
but do you understand what I am trying to do... I want to pass 'any' code to my agent, and have it pass back the results
<haylon>
I understand
<haylon>
its still a bad idea
<adaedra>
jhass: share the popcorn
<jhass>
we all understand
<purplexed^>
okay, I respect your concern
QORRiE has joined #ruby
<jhass>
?popcorn
<ruboto>
I don't know anything about popcorn
<haylon>
weaksauce: here's the repo, I'm getting the gist posted
<ruboto>
jhass, I will remember that popcorn is It's popcorn time!
<purplexed^>
I'm not so worried about concern... I'm trying to understand how, if I pass some code to a second application, how I get the result back to the application who sent it
<pocketprotector->
+1-<area code-popcorn
<jhass>
>> (eval "class BadIdea; def bad_idea; puts 'This is still a bad idea'; end; end; BadIdea").new.bad_idea # then start with stopping to ignore this
<ruboto>
jhass # => This is still a bad idea ...check link for more (https://eval.in/453526)
<haylon>
weaksauce, I figured. I'm not sure why its not picking up my tests though
<jokke>
hi
<haylon>
sup
<jokke>
any ideas what may be a good channel to ask about WebSocket stuff?
<jokke>
i try to implement a ddp client in crystal but i fail to establish a connection
<jokke>
i tried the ruby gem metybur and it works
<jhass>
there's #websocket-rails with 9 users :P
<jokke>
jhass: \o/
<jokke>
:D
chandlerbing has joined #ruby
chandlerbing has quit [Remote host closed the connection]
symm- has quit [Ping timeout: 240 seconds]
<jokke>
and i even sniffed the loopback interface for websocket frames with wireshark
symm- has joined #ruby
<jhass>
/msg alis help btw
<jhass>
(there's a #meteor too)
<jokke>
jhass: they have no clue
nhmain has joined #ruby
<nhmain>
is there a place to find free pair programming?
<adaedra>
Time to call Sherlock
<jokke>
nhmain: yes. just over the rainbow
<purplexed^>
back
<rfi_>
the mythical pair programming or the kind where a more a senior guy dolls out tasks to a jr?
lipoqil has quit [Quit: Connection closed for inactivity]
zcreative has joined #ruby
zcreative has quit [Remote host closed the connection]
colintherobot has quit [Quit: leaving]
<purplexed^>
thanks weaksauce
zcreative has joined #ruby
<jokke>
jhass: i'm getting desperate tbh
zcreative_ has joined #ruby
<jhass>
I still don't know this stuff at all though, sorry
<jokke>
there's virtually no difference in the messages i send over ws with my ddp client to those of metybur
<jhass>
"virtually" :P
gregf has joined #ruby
_blizzy_ has joined #ruby
<jokke>
jhass: yeah well there's always difference since client messages are masked with a random key
<jokke>
apart from that there's no difference
<jokke>
very frustrating
ta has joined #ruby
danman has joined #ruby
haxrbyte_ has quit [Read error: Connection reset by peer]
<jhass>
but the remote does just close the connection?
<jhass>
you've seen the corresponding TCP packets in wireshark?
<nhmain>
rfi_: the kind where a more senior helps out the jr get unstuck by helping him understand how code works so he can be on his way to complete the project
<jokke>
i'm not sure _what_ it does. I see a weird packet on the wire
haxrbyte has joined #ruby
ta_ has joined #ruby
<jokke>
unknown opcode
<rfi_>
so not really pair programming, just mentoring
kaleido has joined #ruby
bkxd has joined #ruby
synthroid has quit []
umgrosscol has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
<nhmain>
rfi_: yes a bit of mentoring where can i find free mentors online?
zcreative has quit [Ping timeout: 268 seconds]
DEA7TH has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
decoponio has quit [Quit: Leaving...]
ta has quit [Ping timeout: 256 seconds]
<jokke>
jhass: i'm not sure how those packets should look like..
<rfi_>
well this channel for one
hal_9000__ has joined #ruby
<zcreative_>
what is the best way to sort an array of objects into an order specified by an array of strings? ['QB', 'WR', 'TE']
<rfi_>
i mean people here probably wont walk you through everything, but if youre stuck on something
<nhmain>
does ruby have closures?
<zcreative_>
i have an array of objects with a position property. i need to sort objects by the array
<jhass>
jokke: fin, ack+fin, ack
hal_9000_ has quit [Ping timeout: 260 seconds]
<jokke>
hm
<jokke>
no
cloaked1_ has joined #ruby
<jokke>
fin+ack, ack, fin+ack, ack
<shevy>
ack ack dolfin!
<shevy>
purplexed^ you complained about no activity, now look at what the two entertainers do there ^^^
<shevy>
I like purplexed^ - he is so without conventions :)
<havenwood>
purplexed^: If it quacks like a troll...
<jhass>
purplexed^: then I guess you lack some empathy tbh
<purplexed^>
jhass: if a community is upset for me mentioning how quiet it is........
<jokke>
left is the accepted metybur connect message
<jokke>
right the one from my ddp client
<jhass>
purplexed^: you didn't just "mention" it though
<purplexed^>
jhass: I don't understand empathy :)
<eam>
lawl
<purplexed^>
it's genetic I'm afraid
atomical_ has quit [Ping timeout: 255 seconds]
<purplexed^>
havenwood: then you have probably been on the internet for too long
<jhass>
jokke: well ... (can't believe I'm suggesting this) ... did you try ordering the attributes the same?
dfockler has quit [Ping timeout: 250 seconds]
<purplexed^>
havenwood: I understand you though.
<jokke>
jhass: well, (can't believe i did) ... but yes i have
dagda1_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yosiat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ixti has quit [Ping timeout: 255 seconds]
<purplexed^>
I'm not a troll... I spent 3 days watching a Ruby fundamentals course... I'm trying to learn the language.. and I was appalled by the lack of activity here
maletor has joined #ruby
<havenwood>
purplexed^: This discussion is painfully meta offtopic. If you'd like to discuss how you're not a troll at length let's do it in #ruby-offtopic.
<shevy>
purplexed^ eh you are married so you must have more empathy than solo hackers
arup_r has quit [Quit: Leaving]
pocketprotector- has quit [Ping timeout: 240 seconds]
<purplexed^>
havenwood: I'm not so interested in discussing something I'm not. I didn't bring it up. so.
<jhass>
jokke: mmh, what's the extra byte of the frame of the left message?
<purplexed^>
havenwood: you could discuss it at length with other members of this room
<jokke>
jhass: i think it's because the message on the right is split in two tcp packets
eminencehc has joined #ruby
<jokke>
(see the "2 reassembled TCP Packets")
<jhass>
so the TCP packets have the same length? (left is not visible)
<jokke>
*Segments
Akagi201 has joined #ruby
<jokke>
yeah left the tcp packet has len 53
chandlerbing has joined #ruby
chandlerbing has quit [Remote host closed the connection]
<jhass>
well, that's weird
<jokke>
and right they have a combined length of 53
alcipir has joined #ruby
<purplexed^>
havenwood: Ebok is a good candidate for that talk. Since he was the one who called me a troll to begin with.
* purplexed^
shurgs
<jhass>
jokke: I guess you'd have to throw a debugger into the server now :/
<shevy>
purplexed^ don't shurg like that
<jokke>
jhass: D:
vF3hNGxc47h8 has joined #ruby
ivanskie has joined #ruby
<purplexed^>
hey, I got hit by shrapnel in vietnam...
ivanskie has joined #ruby
<weaksauce>
purplexed^ well a major use case of ruby is rails and that channel is quite active
<shevy>
we can be active too!
<haylon>
Well, I'm out brodies/brodets
<purplexed^>
I need not rails
DEA7TH has quit [Ping timeout: 246 seconds]
<haylon>
take it easy folks
haylon has quit [Quit: Leaving]
htmldrum has joined #ruby
<jhass>
jokke: I was going to suggest the masking goes wrong, but then wireshark seems to have no trouble with it, idk
<jokke>
jhass: yeah
<purplexed^>
I'm new here, ... sorry I was whining... I was just pointing out how quiet it is here.
<jokke>
jhass: i also tried sending the msg unmasked
jenrzzz has quit [Ping timeout: 250 seconds]
<purplexed^>
it seems it has livened up since
gusTester has left #ruby [#ruby]
jxl180 has quit [Ping timeout: 264 seconds]
dagda1_ has joined #ruby
<jokke>
jhass: i've pretty much tried everything humanly possible. except for sacrificing virgins. I'll have to wait for the next full moon.
last_staff has quit [Quit: zzZZzzZzzZZZ.....zzz..]
alcipir has quit [Ping timeout: 240 seconds]
glenn_ has joined #ruby
<glenn_>
Goodevening
workmad3 has joined #ruby
<glundgren>
someone knows if i can say here about a new channel i created?
<jhass>
is it related to Ruby?
<glundgren>
yes
<purplexed^>
lol
<havenwood>
glundgren: Then yes.
<glundgren>
i got banned from RubyOnRails, then i created ruby_on_rails
<purplexed^>
lmao
<glundgren>
to be a free place to chat
<glundgren>
:P
spew has quit [Quit: leaving]
<purplexed^>
that makes me so happy
<apeiros>
I think #railsbridge exists for a similar reason
<glundgren>
hahaha
<glenn_>
Does anyone know what the best way is to unit test that a password confirmation has to be matched?
CloCkWeRX has quit [Ping timeout: 268 seconds]
<glundgren>
apeiros: theres rules on it?
Akagi201 has quit [Ping timeout: 265 seconds]
<purplexed^>
ruby_on_arrogance
<apeiros>
no idea
<glenn_>
I tried the assert_equal ["confirmation doesn't match"]
<daed>
why did you get banned glundgren ?
<apeiros>
and since I don't know what you got banned for in rails, no idea whether you'd get banned there too
<glundgren>
daed: Radar doens't seem to like me
<glundgren>
daed: because i make fun of the excessive rules
<jhass>
glundgren: wrong place, take it elsewhere or you're gone from here too
<glundgren>
but i will not bite your trap
<glundgren>
yes
<glundgren>
jhass: sorry
<agent_white>
We had a saying in the restaurant industry. "Leave it at the door."
<purplexed^>
agent_white: did that mean you couldn't bring your pet rat to work ?
ruurd has quit [Quit: ZZZzzz…]
<agent_white>
purplexed^: Oh no, there was a few revisions to it. -- "If it fits in your pocket..." being one.
<purplexed^>
that's a good rule
<agent_white>
Pet rocks are OK as long as they don't poop on the carpet.,
DroidBurgundy has quit []
<craysiii>
glundgren i think the point is that you should only talk about things on-topic in a topic-driven channel. if you want to rant about things do it in #offtopic or somewhere else. #RoR is not the place to tout your ideology or opinions about things not related to RoR
tenderlove has quit [Ping timeout: 250 seconds]
<glundgren>
cool
<glundgren>
i will not say anything you guys won
<agent_white>
There is no winner. Just, leave it at the door.
<mloy>
don't make yourself the victim
<glundgren>
mloy: if i respond im picking a fight
<purplexed^>
lol
yitsushi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<glundgren>
if i dont, i play the victim
bonhoeffer has quit [Quit: bonhoeffer]
tenderlove has joined #ruby
<purplexed^>
please, more champions stomping the loser
<jhass>
this stops now, next one that says anything related is gone for the next hour
alcipir has joined #ruby
Rollabunna has joined #ruby
<purplexed^>
be nice to people. please.
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Keltia_ is now known as Keltia
Voker57 has quit [Remote host closed the connection]
chopin_ has joined #ruby
yitsushi has joined #ruby
jessemcgilallen has joined #ruby
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
bollullera has joined #ruby
<craysiii>
has anyone else felt that using RoR has weakened their ruby knowledge? after writing RoR controllers, models, and such, i try to write something in pure ruby and its just awful.
ivanskie has joined #ruby
<agent_white>
http://rails5countdown.com/ -- I clicked on "How does this work?" expecting to see "After the timer reaches 0, Rails 5 is here!"
shinnya has quit [Ping timeout: 240 seconds]
<craysiii>
or maybe i just never understood ruby to begin with..
zotherstupidguy has quit [Ping timeout: 260 seconds]
<jhass>
craysiii: I kinda have that in reverse, the stronger my Ruby gets the worse is my RoR
<craysiii>
interesting
<platzhirsch>
huh
alcipir has quit [Ping timeout: 250 seconds]
<platzhirsch>
:D
<jokke>
jhass: aha now it gets interesting... i just updated nodejs and meteor
<purplexed^>
but I'm pretty good at C*#
<adaedra>
I'll jave a Rails job
<agent_white>
Radar: Awww :( That's works too! Thought it would be funny for it to say that :)
pwnd_nfsw has joined #ruby
<platzhirsch>
agent_white: where did you get that link from
<purplexed^>
-*
<jokke>
instead of just closing the connection i get
chopin has quit [Ping timeout: 250 seconds]
<adaedra>
I'll see how it plays on my Ruby
Rollabunna has quit [Ping timeout: 244 seconds]
<agent_white>
platzhirsch: Reading through logs :) Nice site you put up there!
<jokke>
i get an actual websocket close frame with this payload: Unrecognized frame opcode: 13
<platzhirsch>
agent_white: just wanted to do something cheeky, you're rigt the link should directly jump to the function which does the calculation
<purplexed^>
how are your guys experience with the Ruby community... is it open... is it easy to get information ?
<purplexed^>
sorry if my english is incorrect
<Radar>
purplexed^: very easy to get information
<Radar>
there are a lot of good guides and helpful people in the Ruby community
<jhass>
jokke: maybe the reassembling really goes wrong in node, somehow. But for all I know it shouldn't even be able to recognize it was fragmented...
<agent_white>
It's terrible, godawful. You ask a question here, and people actually take the time to respond and help you out. Outragious if I do say so myself. They sometimes even remember you the next day, and ask how you've been!
<agent_white>
;)
<Radar>
agent_white: and they do it all for free!
<agent_white>
Radar: THE NERVE!
<Radar>
They _rarely_ get paid to supply help
<Radar>
I mean, do we live in a capitalist society or not?
mostlybadfly has joined #ruby
<adaedra>
Stop that crazy talk
yfeldblum has quit [Remote host closed the connection]
<agent_white>
Amen! What happened to the good 'ole days, when advice cost you at LEAST a buck.
<agent_white>
;)
<purplexed^>
I'm trying to understand it from other communities perspective... perhaps you have an opinion...
baweaver has joined #ruby
jenrzzz has joined #ruby
tno has quit [Quit: Ex-Chat]
yfeldblum has joined #ruby
zcreative_ has quit [Ping timeout: 240 seconds]
<purplexed^>
an important aspect of open source these days seems to be on the openness of open source communities
<purplexed^>
some communities seem to have an arrogant approach, and others are very friendly, and more lighthearted to mistakes of new-comers
<weaksauce>
ruby is open. not sure how hard it is to contribute to ruby core though. Is the main correspondence done in english or japanese?
<purplexed^>
where do ruby-people feel they fit in
<Radar>
purplexed^: I run some OSS projects. They have contributing guidelines. Follow the guidelines, and we will be friends. Do not follow the guidelines, and I will be your harshest critic :)
<Radar>
If you file an issue on Forem without that information, I will close it outright.
<Radar>
If you file an issue on Forem WITH that information, I will investigate it when I get a moment.
<Radar>
weaksauce: a mix of both from what I've seen.
beauby has joined #ruby
<weaksauce>
purplexed^ ruby and RoR is very welcoming to newcomers at first. but if the newcomer shows a pattern of willful ignorance and not wanting to put the time into learning it then they are less likely to help
<purplexed^>
Radar: that sounds really good... what if someone asks a question to the wrong place?
shinenelson has quit [Quit: Connection closed for inactivity]
<jokke>
jhass: mmh yeah
IrishGringo has joined #ruby
Azure has joined #ruby
spuk has quit [Ping timeout: 255 seconds]
tomchapin has joined #ruby
<agent_white>
purplexed^: The community is rad. People around here are amazing and very friendly. Very creative bunch. I wouldn't be here if it weren't for many of the folks here.
<Radar>
purplexed^: I _like_ the Rails Code of Conduct because it starts that "Rails is committed to fostering a welcoming community."
<Radar>
I think without that welcoming community, Ruby and Rails would've been doomed a long time ago.
<purplexed^>
agent_white: cool. It actually feels like people are nice here.
paulcsmith has quit [Quit: Be back later ...]
<weaksauce>
also, matz is nice so we are nice
tenderlove has quit [Read error: Connection reset by peer]
<workmad3>
agent_white: your promoters cash is in the mail ;)
<weaksauce>
he seems like a nice guy
<agent_white>
workmad3: ;P
<purplexed^>
I admit to be provoking in the start... but as the talk has continued, people seem really nice.
<purplexed^>
but I will never admit to being a troll :)
tobyx has quit [Remote host closed the connection]
<jhass>
then don't bring it up again all the time
<platzhirsch>
Ruby will die if everyone stays so nice, we need some harsh measures, more German
<workmad3>
purplexed^: do you have a strange desire to live under bridges and jump out at passing goats?
zotherstupidguy has joined #ruby
tenderlove has joined #ruby
<purplexed^>
jhass: I'll remind you, that I was called one, ... not that I was one.
<adaedra>
purplexed^: weren't you told already to move that to -offtopic?
hackerdude has joined #ruby
<purplexed^>
workmad3: well... people have strange desires.
<Radar>
purplexed^: the channel isn't active 100% of the time
<Radar>
There are dead zones, like my late afternoon (about 6 hours from now)
<purplexed^>
adaedra: it's a meta-discussion
<Radar>
It's on-topic for #ruby im
<Radar>
imo*
tobyx has joined #ruby
bMalum has quit [Quit: bMalum]
<platzhirsch>
I have the feeling that generally there are more people in IRC lately
<platzhirsch>
also other channels, seems to grow, IRC feels strongest than ever
<purplexed^>
platzhirsch: agree
<agent_white>
purplexed^: What weaksauce said is actually the ruby community's motto, if you didn't know about it before. I think there's a reason you won't find another community that shares it.
<agent_white>
Woop. Lag spike there. That might've been late.
<platzhirsch>
hah, I thought weaksauce.. is this an insult?
<agent_white>
Hahahah
<purplexed^>
what is the motto again ? :)
<Radar>
platzhirsch: The #ruby and #ruby-lang channels merged a couple of months back. Maybe that's it :)
petricore has joined #ruby
<weaksauce>
haha
petricore has quit [Client Quit]
<platzhirsch>
Write bad code and we will electrocute you
<agent_white>
MINASWAN - matz is nice to white always naughty!