GaryOak_ has quit [Remote host closed the connection]
m8 has quit [Quit: Sto andando via]
coetry has joined #ruby
amacou has quit [Ping timeout: 252 seconds]
banister has joined #ruby
KnownSyntax has joined #ruby
adriancb has quit [Remote host closed the connection]
iamninja has joined #ruby
juanpablo_ has quit [Quit: (null)]
juanpablo_ has joined #ruby
Dopagod has joined #ruby
Pumukel has quit [Ping timeout: 252 seconds]
coetry has quit [Quit: Lost terminal]
Zai00 has joined #ruby
juanpaucar has joined #ruby
juanpaucar has quit [Remote host closed the connection]
Pumukel has joined #ruby
juanpaucar has joined #ruby
Pumukel has quit [Client Quit]
sivsushruth has joined #ruby
Sawbones_ has joined #ruby
roolo has joined #ruby
serivichi has quit [Ping timeout: 272 seconds]
TheSuper has joined #ruby
lanemeyer has joined #ruby
juanpablo_ has quit [Ping timeout: 256 seconds]
DadoCe has joined #ruby
roolo has quit [Read error: Connection reset by peer]
serivichi has joined #ruby
roolo has joined #ruby
juanpaucar has quit [Ping timeout: 264 seconds]
kl has quit [Ping timeout: 252 seconds]
multi_io_ has joined #ruby
razieliyo has joined #ruby
shum has quit [Quit: WeeChat 1.1.1]
chemich has joined #ruby
shum has joined #ruby
horsecowdog has joined #ruby
iamninja is now known as iamninja_
TheSuper has quit [Remote host closed the connection]
horsecowdog has quit [Remote host closed the connection]
roolo has quit [Ping timeout: 250 seconds]
multi_io has quit [Ping timeout: 245 seconds]
charliesome has joined #ruby
iamninja_ is now known as iamninja-
iamninja- is now known as iamninja
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Butch128 has left #ruby [#ruby]
nii236 has joined #ruby
postmodern has quit [Quit: Leaving]
Dopagod has quit [Quit: WeeChat 0.4.2]
Dopagod has joined #ruby
Dopagod has quit [Client Quit]
nicolastarzia has quit []
serivichi has quit [Ping timeout: 255 seconds]
icefactory has joined #ruby
<icefactory>
what is the coolest thing you can do in ruby?
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<weaksauce>
build things that make me money
<icefactory>
like what/
<weaksauce>
websites
dru` has joined #ruby
<nii236>
Just realised Watchr gem doesn't work in Ruby 2.2.0
<nii236>
What do?
<icefactory>
masturbate?
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
<nii236>
...
tunaCanBruh has joined #ruby
oo_ has joined #ruby
<icefactory>
well that's all you can do now until they fix it
<havenwood>
icefactory: not a good place for sexual references, keep it Ruby
<icefactory>
unless you know how to fix stuff
<icefactory>
but after i finish masturbating i can usually think straight
<havenwood>
icefactory: modeling fighter hardware and software, space, whatev.
DissonantGuile has quit [Quit: See ya!]
<havenwood>
icefactory: turing complete lang, have fun
<icefactory>
okay havenwood
<icefactory>
may i pm you?
<icefactory>
it's regarding stuff that may not be considered "family friendly"
sevenseacat has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
_djbkd has quit [Remote host closed the connection]
chemich has quit [Quit: I'm ouuuuut]
marr has quit [Ping timeout: 246 seconds]
iMadper has quit [Remote host closed the connection]
ryann has joined #ruby
tunaCanBruh has quit [Ping timeout: 245 seconds]
sevvie has quit [Quit: leaving]
_djbkd has joined #ruby
Soda has quit [Remote host closed the connection]
roolo has joined #ruby
it0a has joined #ruby
<nii236>
sevenseacat: Halp!
<sevenseacat>
nii236: i will halp!
<nii236>
My watchr gem wont' install with ruby 2.2.0
<nii236>
What is the best course of action
<sevenseacat>
watchr's kinda old school
<nii236>
Yeah had a look, hasn't been updated for 5 years
<nii236>
is there a replacement
<nii236>
Somethign that auto-tests or whatever you call it
<havenwood>
installs for me on 2.2
ryann has quit [Read error: Connection reset by peer]
jgrevich has joined #ruby
<sevenseacat>
nowadays we'd use guard for the same task
<nii236>
havenwood: oh really
<havenwood>
yup
<sevenseacat>
i'll check if it installs here
<nii236>
sevenseacat: Isn't that for rails, or ruby as well
<icefactory>
sevenseacat you have kids right?
<havenwood>
sevenseacat: ignore icefactory
<nii236>
Maybe I'm missing a dependency...
_djbkd has quit [Remote host closed the connection]
<havenwood>
troll
horsecowdog has joined #ruby
ryann has joined #ruby
<sevenseacat>
havenwood: will do
<sevenseacat>
yeah it installed here fine too
<sevenseacat>
Successfully installed watchr-0.7
<nii236>
Hmm
_djbkd has joined #ruby
<icefactory>
i'm not a troll
<nii236>
Ah it installed but the script its running is dead
<nii236>
I'll have a closer look
uptownhr has joined #ruby
Takle has joined #ruby
ryann is now known as ryan0x2
<icefactory>
i just want to understand why teaching my twins how to masturbate on their fourth birthday is "wrong"
<havenwood>
icefactory: Keep it on topic or be banished.
_djbkd has quit [Remote host closed the connection]
icefactory has left #ruby [#ruby]
<jgrevich>
I feel like I ran into this issue before but cannot recall the fix: If I boot my machine with the TV off, then turn the TV on, no video is displayed. Rebooting is the only thing that seems to fix it.
Akuma has quit [Quit: So long sukkas!]
roolo has quit [Ping timeout: 250 seconds]
_djbkd has joined #ruby
reset has joined #ruby
roolo has joined #ruby
<sevenseacat>
watchr's dependencies probably havent been locked down tight enough, given the last update was five years ago
<jgrevich>
^^ doh, wrong channel, sorry
Aswebb_ has joined #ruby
<nii236>
jgrevich: Was gonna say
<jgrevich>
:)
Takle has quit [Ping timeout: 264 seconds]
blackmesa has quit [Ping timeout: 245 seconds]
Megtastique has quit []
attamusc has quit [Quit: Connection closed for inactivity]
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
mikepack has quit [Remote host closed the connection]
roolo has quit [Ping timeout: 250 seconds]
RegulationD has joined #ruby
zdennis has joined #ruby
postmodern has joined #ruby
antgel has joined #ruby
Sawbones_ has quit [Remote host closed the connection]
_maes_ has quit [Ping timeout: 250 seconds]
horsecowdog has quit [Remote host closed the connection]
roolo has joined #ruby
Sawbones_ has joined #ruby
Regulati_ has joined #ruby
RegulationD has quit [Remote host closed the connection]
mkaesz has joined #ruby
pengin_ has quit [Remote host closed the connection]
pengin has joined #ruby
kham has quit [Ping timeout: 240 seconds]
jottr_ has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
horsecowdog has joined #ruby
jottr_ has joined #ruby
otisZart has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Regulati_ has quit [Ping timeout: 240 seconds]
roolo has quit [Ping timeout: 256 seconds]
doodlehaus has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
jottr has joined #ruby
jottr_ has quit [Read error: Connection reset by peer]
StoneCypherAW has quit [Ping timeout: 252 seconds]
jonr22 has quit [Read error: Connection reset by peer]
pengin has quit [Ping timeout: 245 seconds]
jonr2219 has joined #ruby
mkaesz has quit [Ping timeout: 256 seconds]
dorei has quit []
ghr has quit [Ping timeout: 252 seconds]
RegulationD has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
connor_goodwolf has joined #ruby
stunder has quit [Remote host closed the connection]
pdoherty has quit [Quit: Leaving]
mjuszczak has joined #ruby
Motoservo has joined #ruby
atomi has joined #ruby
RegulationD has quit [Ping timeout: 265 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
nettoweb has joined #ruby
baroquebobcat has joined #ruby
skj3gg has joined #ruby
baroquebobcat has quit [Client Quit]
uptownhr has quit [Quit: uptownhr]
Hijiri has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jonr22 has joined #ruby
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ghg has joined #ruby
banister has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
jonr2219 has quit [Ping timeout: 250 seconds]
roolo has joined #ruby
bigmac_ has joined #ruby
uptownhr has joined #ruby
yfeldblum has quit [Remote host closed the connection]
graydot has quit [Quit: graydot]
yfeldblum has joined #ruby
riotjones has quit [Ping timeout: 246 seconds]
Sawbones_ has quit [Remote host closed the connection]
mloveless has quit [Remote host closed the connection]
roolo has quit [Read error: Connection reset by peer]
leat has quit [Ping timeout: 264 seconds]
tunaCanBruh has quit [Ping timeout: 252 seconds]
roolo_ has quit [Ping timeout: 246 seconds]
monod has quit [Quit: Sto andando via]
claptor has joined #ruby
michael_mbp has quit [Excess Flood]
Limix has quit [Quit: Limix]
timanema has joined #ruby
uptownhr has joined #ruby
mwlang has joined #ruby
nini1294 has quit [Ping timeout: 250 seconds]
amclain has joined #ruby
Crazy_Atheist has quit [Ping timeout: 272 seconds]
michael_mbp has joined #ruby
<mwlang>
does anyone know what system packages need to be installed in order to install ruby-ldap gem or the ruby-openldap gem? I’m getting compilation errors. I’ve already run “sudo yum install ldap-clients” but I suspect I need developer headers as well.
reinaldob has quit [Remote host closed the connection]
ghr has joined #ruby
Crazy_Atheist has joined #ruby
nini1294 has joined #ruby
ghr has quit [Ping timeout: 264 seconds]
rubytor has quit [Quit: No Ping reply in 180 seconds.]
rubytor has joined #ruby
rekky has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
veduardo has quit [Ping timeout: 246 seconds]
scripore has joined #ruby
roolo has joined #ruby
dru` has quit [Ping timeout: 246 seconds]
serivichi has joined #ruby
arup_r has joined #ruby
tcrypt has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
<mwlang>
nvm, using ruby-net-ldap gem which installed just fine and has decent docs.
dru` has joined #ruby
horsecowdog has quit [Read error: Connection reset by peer]
roolo has quit [Ping timeout: 245 seconds]
uptownhr has quit [Quit: uptownhr]
horsecowdog has joined #ruby
rubytor has quit [Quit: No Ping reply in 180 seconds.]
chipotle has quit [Read error: Connection reset by peer]
it0a has quit [Ping timeout: 250 seconds]
chipotle has joined #ruby
rubytor has joined #ruby
roolo has joined #ruby
amacou has joined #ruby
oleo is now known as Guest77090
oleo__ has joined #ruby
zdennis has quit [Quit: zdennis]
uptownhr has joined #ruby
RegulationD has joined #ruby
Guest77090 has quit [Ping timeout: 246 seconds]
amacou has quit [Ping timeout: 245 seconds]
roolo has quit [Ping timeout: 264 seconds]
RegulationD has quit [Remote host closed the connection]
RegulationD has joined #ruby
rubytor has quit [Ping timeout: 252 seconds]
oo_ has quit [Remote host closed the connection]
JoshGlzBrk has joined #ruby
RegulationD has quit [Ping timeout: 245 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
mloveless has joined #ruby
piotrj has joined #ruby
oo_ has joined #ruby
uptownhr has quit [Quit: uptownhr]
tier has quit [Remote host closed the connection]
roolo has joined #ruby
mistermo_ has joined #ruby
RegulationD has joined #ruby
agrinb has quit [Read error: Connection reset by peer]
agrinb has joined #ruby
wallerdev has joined #ruby
riotjones has joined #ruby
magic__ has joined #ruby
adriancb has joined #ruby
roolo has quit [Ping timeout: 252 seconds]
RegulationD has quit [Ping timeout: 240 seconds]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
neonalpine has joined #ruby
DadoCe has quit [Remote host closed the connection]
greenarrow has quit [Read error: Connection reset by peer]
luriv_ has quit [Ping timeout: 252 seconds]
ghostpl_ has joined #ruby
rbennacer has joined #ruby
DadoCe has joined #ruby
uptownhr has joined #ruby
lys has joined #ruby
mikepack has joined #ruby
justin_pdx has joined #ruby
riotjones has quit [Ping timeout: 252 seconds]
Motoservo has quit [Quit: Motoservo]
rajeshchawla has joined #ruby
adriancb has quit [Ping timeout: 264 seconds]
bruno- has joined #ruby
neonalpine has quit [Remote host closed the connection]
neonalpine has joined #ruby
<eam>
/win 1
roolo has joined #ruby
<eam>
oops, hello everyone
mistermo_ has quit [Remote host closed the connection]
horsecowdog has quit [Remote host closed the connection]
Hijiri has joined #ruby
oo_ has quit [Ping timeout: 252 seconds]
roolo has quit [Ping timeout: 245 seconds]
piotrj_ has joined #ruby
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
riotjones has quit [Ping timeout: 245 seconds]
psy_ has joined #ruby
icarus has joined #ruby
mkaesz has quit [Ping timeout: 264 seconds]
_maes_ has joined #ruby
dfinninger has joined #ruby
piotrj has quit [Ping timeout: 246 seconds]
ryan0x2 has joined #ruby
musl has quit [Quit: WeeChat 1.0.1]
oo__ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
maletor has joined #ruby
jonr22 has quit [Remote host closed the connection]
timanema has joined #ruby
Sthebig has joined #ruby
piotrj has joined #ruby
roolo has joined #ruby
nahtnam has joined #ruby
TheNet has quit [Ping timeout: 272 seconds]
fgo has joined #ruby
reset has joined #ruby
piotrj_ has quit [Ping timeout: 245 seconds]
blueOxigen has joined #ruby
reset has quit [Remote host closed the connection]
reset has joined #ruby
casadei has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bluOxigen has quit [Ping timeout: 272 seconds]
KramerC has quit [Ping timeout: 244 seconds]
timanema has quit [Ping timeout: 244 seconds]
krz has quit [Ping timeout: 250 seconds]
NivenHuH has joined #ruby
roolo has quit [Ping timeout: 264 seconds]
fgo has quit [Ping timeout: 252 seconds]
roolo has joined #ruby
razieliyo has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
ismaelga has quit [Remote host closed the connection]
roolo has quit [Ping timeout: 240 seconds]
roolo has joined #ruby
huck5 has quit [Quit: Leaving]
roolo has quit [Ping timeout: 252 seconds]
nini1294 has quit [Ping timeout: 264 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
GnuYawk has quit [Read error: No route to host]
duncannz has joined #ruby
mikepack has quit []
slawrence00 has joined #ruby
antgel has quit [Ping timeout: 245 seconds]
lkba has joined #ruby
shum has quit [Quit: WeeChat 1.1.1]
echevemaster has quit [Remote host closed the connection]
krz has joined #ruby
dfinninger has quit [Remote host closed the connection]
byaruhaf_ has quit [Remote host closed the connection]
byaruhaf_ has joined #ruby
ismaelga has joined #ruby
roolo has joined #ruby
bluOxigen has joined #ruby
juanpaucar has joined #ruby
nupejosh has joined #ruby
roolo_ has joined #ruby
roolo has quit [Read error: Connection reset by peer]
KramerC has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
chrishough has joined #ruby
blueOxigen has quit [Ping timeout: 250 seconds]
yvemath has quit [Remote host closed the connection]
BLuEGoD has quit [Remote host closed the connection]
ismaelga has quit [Ping timeout: 264 seconds]
cjim has joined #ruby
benlieb has joined #ruby
roolo has joined #ruby
benlieb has quit [Client Quit]
juanpaucar has quit [Ping timeout: 245 seconds]
Mongey has joined #ruby
Hijiri has quit [Ping timeout: 272 seconds]
Hijiri has joined #ruby
<Mongey>
is there an easy way to map over an array of hashes and grab a value ? like array.map(&:mykey)
roolo_ has quit [Ping timeout: 264 seconds]
commmmodo has quit [Ping timeout: 246 seconds]
dfinninger has joined #ruby
roolo has quit [Ping timeout: 240 seconds]
bigkevmc_ has joined #ruby
coderanger has joined #ruby
rorra has quit [Quit: rorra]
rhg135 is now known as rhg135|zzz
<coderanger>
Hi, I'm documenting (with YARD) some modules that do the `extend ClassMethods` thang to bundle classmethods in to a single module. Is there any way to show them in-line like YARD would if they def self.whatever locally and then hide the ClassMethods module?
bigkevmcd has quit [Ping timeout: 250 seconds]
rajeshchawla has quit []
piotrj_ has joined #ruby
_reset has joined #ruby
amacou has joined #ruby
dfinninger has quit [Remote host closed the connection]
piotrj has quit [Ping timeout: 256 seconds]
reset has quit [Ping timeout: 244 seconds]
sameerynho has joined #ruby
<weaksauce>
Mongey array.map { |x| x[:mykey] }
olivierrr is now known as zz_olivierrr
GnuYawk has joined #ruby
<Mongey>
weaksauce yeah, just wondering if it's possible via a proc
Morkel has joined #ruby
Dolphi has joined #ruby
nupejosh has quit [Quit: leaving]
amacou has quit [Ping timeout: 244 seconds]
lxsameer has quit [Ping timeout: 240 seconds]
pontiki has quit [Quit: gnite]
piotrj has joined #ruby
robbyoconnor has joined #ruby
tunaCanBruh has joined #ruby
<weaksauce>
Mongey why? I don't think it's possible
diegoviola has joined #ruby
<Mongey>
for the sake of succinctness - kind of just wanted to check there wasn't a way I didn't know about
piotrj_ has quit [Ping timeout: 264 seconds]
ghostpl_ has joined #ruby
_reset has quit [Remote host closed the connection]
reset has joined #ruby
tunaCanBruh has quit [Ping timeout: 256 seconds]
AirNest has joined #ruby
plutonic has joined #ruby
roolo has joined #ruby
plutonic has quit [Client Quit]
ghostpl_ has quit [Ping timeout: 246 seconds]
michael_mbp has quit [Excess Flood]
grassdog has joined #ruby
commmmodo has joined #ruby
mistermo_ has joined #ruby
Dolphi has quit [Quit: Leaving]
michael_mbp has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
artmann has quit [Quit: No Ping reply in 180 seconds.]
artmann_ has joined #ruby
roolo has quit [Ping timeout: 252 seconds]
grassdog has quit [Client Quit]
The_Phoenix has joined #ruby
avr has joined #ruby
roolo has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
The_Phoenix has joined #ruby
AirNest has quit [Ping timeout: 265 seconds]
mistermo_ has quit [Remote host closed the connection]
towski_ has joined #ruby
jcromartie has quit [Ping timeout: 250 seconds]
roolo has quit [Ping timeout: 246 seconds]
jcromartie has joined #ruby
mistermocha has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
jack_rabbit has joined #ruby
agrinb has quit [Remote host closed the connection]
agrinb has joined #ruby
graydot has joined #ruby
Channel6 has quit [Quit: Leaving]
riotjones has joined #ruby
yfeldblum has joined #ruby
byaruhaf_ has quit [Remote host closed the connection]
yfeldblu_ has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
graydot_ has joined #ruby
riotjones has quit [Ping timeout: 256 seconds]
byaruhaf_ has joined #ruby
maletor has joined #ruby
graydot has quit [Ping timeout: 246 seconds]
graydot has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
<certainty>
moin guys
roolo has joined #ruby
graydot_ has quit [Ping timeout: 252 seconds]
tagrudev has joined #ruby
byaruhaf_ has quit [Remote host closed the connection]
wallerdev_ has joined #ruby
wallerdev has quit [Ping timeout: 252 seconds]
wallerdev_ is now known as wallerdev
AlexRussia has quit [Ping timeout: 246 seconds]
roolo_ has joined #ruby
SOLDIERz_ has joined #ruby
roolo has quit [Read error: Connection reset by peer]
<shevy>
I am rewriting my first text-game in ruby; since it's a mess and I have to start all over anyway, I'm going to put this into a testing framework chain
wldcordeiro has joined #ruby
<certainty>
shevy: good move. didn't you test before?
<shevy>
why would I need to test
<shevy>
that was the last project I tried to use @@vars btw :)
RegulationD has quit [Ping timeout: 246 seconds]
AlexRussia has joined #ruby
<shevy>
it's such a mess
Waheedi has joined #ruby
riotjones has joined #ruby
oki has joined #ruby
<certainty>
shevy: there a many reasons to do testing. One of the main reasons for me is that i want to be able to change my code without having to fear that i break something without noticing it
<j416>
also even without holidays, 'weekend' is ambiguous
pestle has joined #ruby
<j416>
sometimes it means saturday and sunday
<j416>
sometimes it includes adjacent days
<ponga>
ok just sat/sun checker
roolo has quit [Read error: Connection reset by peer]
<AlecTaylor>
How do I access class variables? Tried: foo.rb=`module Foo; class Foo; BAR=5; end; end;`. main.rb=`require_relative 'foo.rb'; puts Foo::BAR`
<j416>
t.saturday? || t.sunday?
psy_ has quit [Quit: Leaving]
jack_rabbit has quit [Ping timeout: 265 seconds]
ajaiswal is now known as ajaiswa|afk
<j416>
AlecTaylor: that's Foo::Foo::BAR
ajaiswa|afk is now known as ajaiswal|lunch
kyb3r_ has quit [Ping timeout: 272 seconds]
<AlecTaylor>
Thanks. j416 how do I access it from within a Foo method? - I've tried ::BAR and self.BAR
rocknrollmarc has quit [Ping timeout: 252 seconds]
ghr has quit [Ping timeout: 245 seconds]
<arup_r>
yes
jack_rabbit has joined #ruby
Mongey has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<arup_r>
I did this in my code
<arup_r>
:)
alien_ has joined #ruby
timonv has quit [Ping timeout: 255 seconds]
<gr33n7007h>
ah, shit it's still not the weekend :(
<sevenseacat>
soon!
hs366 has joined #ruby
<arup_r>
But using an array [1,2m..]
fgo has joined #ruby
ajaiswal|lunch is now known as ajaiswal
<arup_r>
lol
terlar has quit [Quit: WeeChat 1.1.1]
<gr33n7007h>
can't come quick enough!
<arup_r>
No..
<sevenseacat>
then 4 day long weekend yaaaaaaah
terlar has joined #ruby
<arup_r>
why?
<sevenseacat>
why not?
<ponga>
ah thanks gr33n7007h , didn't think of using ||
<gr33n7007h>
ponga: np
<arup_r>
dunno
crack has quit [Ping timeout: 245 seconds]
despai has quit [Client Quit]
despai has joined #ruby
selu has joined #ruby
terlar has quit [Client Quit]
ajaiswal has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 256 seconds]
ajaiswal has joined #ruby
djellemah_ has quit [Quit: Leaving]
rocknrollmarc has joined #ruby
justin_pdx has quit [Quit: justin_pdx]
roolo has joined #ruby
ki0 has joined #ruby
wallerdev has quit [Quit: wallerdev]
CustosLimen has quit [Ping timeout: 246 seconds]
Cust0sL1men has quit [Ping timeout: 252 seconds]
<shortdudey123>
looking at the zookeeper ruby gem... anyone know how to get the same data as the stat api with the ruby gem?
despai has quit [Quit: This computer has gone to sleep]
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roolo has quit [Ping timeout: 250 seconds]
<coderanger>
Hi, I'm documenting (with YARD) some modules that do the `extend ClassMethods` thang to bundle classmethods in to a single module. Is there any way to show them in-line like YARD would if they def self.whatever locally and then hide the ClassMethods module?
roolo has joined #ruby
Pawky has left #ruby ["Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is"]
Rollabunna has quit [Remote host closed the connection]
jgrevich_ has joined #ruby
Rollabunna has joined #ruby
ravenzz has quit [Quit: Connection closed for inactivity]
jgrevich has quit [Ping timeout: 245 seconds]
jgrevich_ is now known as jgrevich
tvw has joined #ruby
roolo has quit [Ping timeout: 244 seconds]
fantazo has joined #ruby
shredding has joined #ruby
jack_rabbit has quit [Ping timeout: 252 seconds]
lolmaus has joined #ruby
roolo has joined #ruby
piotrj has joined #ruby
chrishough has quit [Ping timeout: 245 seconds]
govg has quit [Ping timeout: 250 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
roolo has quit [Ping timeout: 252 seconds]
bigkevmcd has quit [Quit: Outta here...]
sameerynho has quit [Quit: Leaving]
amacou has joined #ruby
livathinos has joined #ruby
rekky has quit [Remote host closed the connection]
shock_one has joined #ruby
rekky has joined #ruby
<shock_one>
Does anybody know a BST gem having an API to receive a subtree that is less than?
jottr has joined #ruby
towski_ has joined #ruby
nini1294 has joined #ruby
einarj has joined #ruby
roolo has joined #ruby
RegulationD has joined #ruby
jenrzzz has joined #ruby
amacou has quit [Ping timeout: 272 seconds]
AlexRussia has quit [Ping timeout: 252 seconds]
grassdog has joined #ruby
dumdedum has joined #ruby
Guest123 has joined #ruby
FooMunki has quit [Read error: No route to host]
FooMunki_ has joined #ruby
roolo has quit [Ping timeout: 244 seconds]
RegulationD has quit [Ping timeout: 250 seconds]
yfeldblu_ has quit [Ping timeout: 265 seconds]
SOLDIERz_ has quit [Ping timeout: 255 seconds]
plutonic has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
roolo has joined #ruby
ptrrr has quit [Quit: ptrrr]
AirNest has joined #ruby
alex88 has joined #ruby
yxejamir has joined #ruby
yfeldblum has joined #ruby
roolo_ has joined #ruby
cmckee has quit [Quit: cmckee]
ismaelga has joined #ruby
jack_rabbit has joined #ruby
roolo has quit [Ping timeout: 256 seconds]
arup_r has quit [Remote host closed the connection]
Dr3amc0d3r|away has quit [Ping timeout: 245 seconds]
roolo has joined #ruby
Rollabunna has quit [Remote host closed the connection]
tcrypt has quit [Remote host closed the connection]
Rollabunna has joined #ruby
AirNest has quit [Ping timeout: 250 seconds]
chrishough has joined #ruby
agrinb has joined #ruby
roolo__ has joined #ruby
roolo has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
roolo_ has quit [Ping timeout: 245 seconds]
sinkensabe has quit [Remote host closed the connection]
ismaelga has quit [Ping timeout: 250 seconds]
strixd has joined #ruby
psy_ has joined #ruby
diegoviola has quit [Quit: WeeChat 1.1.1]
psy_ has quit [Max SendQ exceeded]
CustosLimen has joined #ruby
psy_ has joined #ruby
govg has joined #ruby
blackmesa has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
roolo__ has quit [Ping timeout: 255 seconds]
jonr22 has quit [Ping timeout: 240 seconds]
Dr3amc0d3r|away has joined #ruby
SOLDIERz_ has joined #ruby
jack_rabbit has quit [Ping timeout: 255 seconds]
lolmaus has quit [Quit: Konversation terminated!]
danjordan has left #ruby [#ruby]
chinmay_dd has joined #ruby
Hobogrammer has quit [Ping timeout: 246 seconds]
sevenseacat has quit [Remote host closed the connection]
<survili>
Hi all. I'm little confused, I see difference between output I get from irb and output I get when actually running my script. I read a file, and search for a pattern in it(in my sample file it should be matched). The pattern that I'm searching is quote followed by line feed. By mistake in my code I had " file_content.include? '"\n' ", and it rightfully was returning false as I didn't user double quotes and \n is not supposed to be
<Bounga>
For sure! At the beginning only designer and doctors where using it, then it was developers, now everybody has a mac! You windows and linux users will die!
<survili>
same line in irb, it still matches. So i'm really confused. Is irb working differently ??
deepy has joined #ruby
RegulationD has quit [Ping timeout: 250 seconds]
<shevy>
survili irb is not 100% ruby, it's more like 99.5% ruby
<ponga>
shevy: what's the missing 0.5%
<shevy>
hmm not sure, let me try to see if I wrote it down
<ponga>
and im on mac too
<ponga>
we are taking over
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<survili>
shevy: wow, I'm shocked :/ I thought it's 100%%%
<Bounga>
oh damn, so much typo in my latest sentence…
<shevy>
survili the pickaxe mentioned that some years ago which is why I remembered
<shevy>
just assume that irb is for quick and dirty testing, and for real testing you'll use good old .rb files :)
<shevy>
survili you can also directly call methods in any .rb file from the commandline too; I use that as some kind of quick replacement to irb
bruno- has joined #ruby
<shevy>
once I know that code works, I put it into a method, assign an alias, and now I can call it directly from bash
mirageglobe has quit []
keen__________74 has quit [Read error: Connection reset by peer]
<shevy>
"rblanks" is an alias for "remove_blanks" which is a class that will simply eliminate all ' ' in filenames of the given directory
<shevy>
so "Simpsons - Halloween.avi" were to become "Simpsons-Halloween.avi" whenever I type "rblanks<ENTER>"
govg has quit [Quit: leaving]
<shevy>
Bounga we linux users are SUPERIOR!
<survili>
shevy: what do you mean by "also directly call methods in any .rb file from the commandline too" ?
<shevy>
survili there is the -e option to ruby
<shevy>
I can use that to call any method
keen__________74 has joined #ruby
<shevy>
somehow I also started to use classes and modules almost all the time
<survili>
shevy: yeah, I know -e. feels much less convinient for multi line script testing
<survili>
repl is so cooool
* hanmac1
only has a LinuxPC and is proud of it
<shevy>
whatever floats your boat :D
jenrzzz has quit [Ping timeout: 264 seconds]
georgesmith has joined #ruby
<shevy>
hanmac1 yes the empire strikes back
mloveless has joined #ruby
<Bounga>
shevy: You know, I do consider myself as a linux user, err *bsd user. I think most of mac users come from Linux
<shevy>
down with the macsters!
<hanmac1>
"shevy: whatever floats your boat :D" << AntiGravity? ;P
<shevy>
high hopes and dreams hanmac1
<shevy>
and pizza
<shevy>
especially pizzaops
<shevy>
lol damn tab completion
fgo has joined #ruby
workmad3 has joined #ruby
rocknrollmarc has quit [Ping timeout: 246 seconds]
<pizzaops>
Hehe
<shevy>
ponga did you know this:
bruno- has quit [Ping timeout: 256 seconds]
<pizzaops>
I'm critical to completing all projects.
<shevy>
"irb is a repl written in ruby which means it uses eval (or module_eval or instance_eval)."
<shevy>
"Now whether intentionally or not (one could probably find out by looking at the source),"
<shevy>
"all irb sessions basically have an implicit:"
<shevy>
" irb(main):000:0> public"
<hanmac1>
shevy recently i did seen a "pizza burger" in the TV-ads ... but i didnt tasted them yet
<pizzaops>
What would you do without Pizzaops
ndrst_ is now known as ndrst
_ixti_ has quit [Ping timeout: 272 seconds]
agrinb has joined #ruby
davidhq has quit [Read error: No route to host]
otisZart has joined #ruby
tokik has quit [Remote host closed the connection]
davidhq has joined #ruby
jonr22 has joined #ruby
otisZart has quit [Client Quit]
mloveless has quit [Ping timeout: 250 seconds]
Vivex_ has quit [Read error: Connection reset by peer]
arup_r has quit [Remote host closed the connection]
agrinb_ has joined #ruby
tokik has joined #ruby
roolo has joined #ruby
agrinb has quit [Ping timeout: 250 seconds]
oo_ has quit [Remote host closed the connection]
jonr22 has quit [Ping timeout: 245 seconds]
arup_r has joined #ruby
agrinb_ has quit [Ping timeout: 256 seconds]
SouL_ has joined #ruby
dru has joined #ruby
ArchRogem has joined #ruby
SOLDIERz_ has quit [Ping timeout: 252 seconds]
anarang has quit [Quit: Leaving]
abyss has quit [Ping timeout: 264 seconds]
tvw has joined #ruby
cvtsx1 has joined #ruby
Zai00 is now known as Zai00_
SOLDIERz_ has joined #ruby
cvtsx has quit [Ping timeout: 252 seconds]
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Zai00_ is now known as Zai00
Pupeno has joined #ruby
Pupeno has joined #ruby
grn has quit [Ping timeout: 256 seconds]
Zai00 has quit [Quit: Zai00]
Zai00 has joined #ruby
deuterium has joined #ruby
abyss_ has joined #ruby
sivsushruth has quit [Ping timeout: 264 seconds]
sivsushruth has joined #ruby
blueOxigen has joined #ruby
bluOxigen has quit [Ping timeout: 256 seconds]
tvw has quit [Ping timeout: 256 seconds]
razieliyo has joined #ruby
mcpierce has quit [Ping timeout: 245 seconds]
avril14th has quit [Remote host closed the connection]
Guest13442 has quit []
lanemeyer has joined #ruby
SOLDIERz_ has quit [Quit: Be back later ...]
tkuchiki has joined #ruby
juanpaucar has joined #ruby
gfawcettpq has joined #ruby
Timgauthier is now known as timgauthier_away
blackmesa has quit [Ping timeout: 245 seconds]
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_ixti_ has joined #ruby
Zai00 has quit [Quit: Zai00]
Zai00 has joined #ruby
antgel has joined #ruby
mcpierce has joined #ruby
juanpaucar has quit [Ping timeout: 250 seconds]
zotherstupidguy has joined #ruby
fabrice31_ has quit [Remote host closed the connection]
<zotherstupidguy>
is there an easy way to mount multiple nested rackapps?
fabrice31 has joined #ruby
pandaant has joined #ruby
schaerli has joined #ruby
zotherstupidguy has quit [Client Quit]
bigkevmcd has joined #ruby
fabrice31_ has joined #ruby
sinkensabe has quit [Remote host closed the connection]
_ixti_ has quit [Ping timeout: 256 seconds]
timanema has joined #ruby
yxejamir has quit [Ping timeout: 250 seconds]
ndrei_ has quit [Ping timeout: 252 seconds]
jgrevich has quit [Quit: jgrevich]
ndrei has quit [Ping timeout: 252 seconds]
amacou has joined #ruby
ndrei has joined #ruby
ndrei_ has joined #ruby
fabrice31 has quit [Ping timeout: 272 seconds]
vtunka has quit [Quit: Leaving]
chinmay_dd has quit [Quit: Connection closed for inactivity]
Timgauthier has joined #ruby
vtunka has joined #ruby
timanema has quit [Ping timeout: 240 seconds]
drawingthesun has joined #ruby
blackmesa has joined #ruby
Zai00 has quit [Quit: Zai00]
kalusn has joined #ruby
ponga has quit [Quit: Leaving...]
Zai00 has joined #ruby
scripore has joined #ruby
redjack1964 has joined #ruby
fgo has quit [Ping timeout: 245 seconds]
ponga has joined #ruby
charliesome has joined #ruby
Aswebb_ has joined #ruby
jottr has joined #ruby
sivsushruth has quit [Ping timeout: 272 seconds]
tunaCanBruh has joined #ruby
sinkensabe has joined #ruby
agrinb has joined #ruby
sinkensabe has quit [Remote host closed the connection]
sivsushruth has joined #ruby
ldnunes has joined #ruby
ajaiswal has quit [Quit: Leaving]
postmodern has quit [Quit: Leaving]
drawingthesun has quit [Quit: Leaving]
shredding has quit [Ping timeout: 265 seconds]
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
piotrj has quit [Remote host closed the connection]
shum has joined #ruby
agrinb has quit [Ping timeout: 256 seconds]
tunaCanBruh has quit [Ping timeout: 272 seconds]
jottr has quit [Ping timeout: 256 seconds]
multi_io_ is now known as multi_io
antgel has quit [Ping timeout: 264 seconds]
doodlehaus has joined #ruby
Spami has quit [Read error: Connection reset by peer]
Spami has joined #ruby
deepy has quit [Changing host]
deepy has joined #ruby
<survili>
shevy: btw, I couldn't live with irb is not 100% compatible, dived more to understand. The bug is in RubyMine(ide) repl! in irb '"\n'.size returns 3(correct), in RubyMine repl it returns 2
Vivex has joined #ruby
<hanmac1>
survili: checkout the RubyVersion in "RubyMine repl"
scripore has quit [Quit: Leaving]
coderanger has left #ruby ["Bye"]
yfeldblum has quit [Ping timeout: 256 seconds]
ismaelga has joined #ruby
<wasamasa>
hmm, someone in here posted a ruby script last night that did a guessing game of who did the commit
<DefV>
AlecTaylor: because you need to rewind your io
<AlecTaylor>
?
tvw has quit [Read error: Connection reset by peer]
<DefV>
io.puts "foobar" writes it to the StringIO, but places your read position at the end of the string
anaeem1 has quit [Remote host closed the connection]
sandelius has joined #ruby
<AlecTaylor>
Oh. So how do I rewind?
<DefV>
io.rewind
<AlecTaylor>
YAY
<AlecTaylor>
Thanks
<DefV>
you'll see io.pos is at 7 without rewinding
<DefV>
io.rewind puts it at 0
doodlehaus has quit [Remote host closed the connection]
rocknrollmarc has joined #ruby
SOLDIERz_ has joined #ruby
rsty has left #ruby [#ruby]
ismaelga has joined #ruby
crack has joined #ruby
SOLDIERz_ has quit [Client Quit]
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SOLDIERz_ has joined #ruby
Akagi201 has joined #ruby
oleo__ has quit [Quit: Verlassend]
Mon_Ouie has quit [Ping timeout: 255 seconds]
SOLDIERz_ has quit [Client Quit]
krz has quit [Ping timeout: 264 seconds]
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oleo has joined #ruby
jimms has joined #ruby
aryaching has joined #ruby
Limix has joined #ruby
AlecTaylor has quit [Ping timeout: 255 seconds]
GnuYawk has quit [Ping timeout: 264 seconds]
WilfredTheGreat has joined #ruby
reinaldob has quit []
arup_r has quit [Remote host closed the connection]
techsethi_ has quit [Quit: techsethi_]
nish1294 has quit [Ping timeout: 246 seconds]
n008f4g_ has joined #ruby
yxejamir has joined #ruby
jimms has quit [Ping timeout: 245 seconds]
krz has joined #ruby
Limix has quit [Ping timeout: 272 seconds]
stef204 has joined #ruby
ponga has quit [Quit: Leaving...]
juanpaucar has joined #ruby
ponga has joined #ruby
tvw has joined #ruby
rekky has joined #ruby
n1lo has joined #ruby
nish1294 has joined #ruby
_blizzy_ is now known as Keldeo
Keldeo is now known as _blizzy_
juanpaucar has quit [Ping timeout: 250 seconds]
<Timgauthier>
...
<Timgauthier>
cassette tapes?
avr has quit [Quit: this channel is bakas]
nish1294 has quit [Read error: Connection reset by peer]
<workmad3>
Timgauthier: ?
<Timgauthier>
rewinding
<workmad3>
Timgauthier: IO streams
<Timgauthier>
yes yes, cassettes hold an IO stream of Muuuuuuusssiiiiic
<Timgauthier>
;)
<workmad3>
well, strictly speaking the cassette doesn't hold an IO stream of anything... you could theoretically scan the entire tape all at once rather than sequentially and removing the stream aspect
<Timgauthier>
then you'd have an array ;)
<workmad3>
the stream comes from the fact that the reader head is at a single position at a time, with a well-defined 'next'
<workmad3>
so you can keep on asking for 'next, next, next' and get a stream of data ;)
<workmad3>
michael_mbp: first thought - it's not a stream :P
Macaveli has quit [Ping timeout: 244 seconds]
<michael_mbp>
you might have an idea :)
Macaveli has joined #ruby
<michael_mbp>
scratching my head as to why delegate isn't called __setobj__(obj) on initialize.
rhllor has quit [Quit: rhllor]
<michael_mbp>
I've 'hacked' it in, but I shouldn't need to do that.
<workmad3>
michael_mbp: because you've overridden initialize in ProdectDecorator
<workmad3>
michael_mbp: and not called 'super'
<michael_mbp>
AHHHHH doh.
<workmad3>
*ProductDecorator
<michael_mbp>
thanks!!
<michael_mbp>
blimey.
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jottr has joined #ruby
<michael_mbp>
haha
silkfox has joined #ruby
<Timgauthier>
rubber ducky wouldn't catch that probably even really maybe it would i dunno a thing
rekky has quit [Ping timeout: 256 seconds]
oleo has quit [Quit: Verlassend]
Spami has joined #ruby
<workmad3>
michael_mbp: you can 'hack around' that particular aspect by creating an 'after_initialize' convention for your decorators... you could hack around it even more with some careful aliasing in 'self.included' and by adding a 'method_added' hook that can pick up when 'initialize' is created after the include
Guest123 has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
psy_ has quit [Remote host closed the connection]
piotrj has joined #ruby
doodlehaus has joined #ruby
arup_r has joined #ruby
<workmad3>
Timgauthier: it would depend on how deeply ingrained your knowledge on initializers in ruby was :)
doodlehaus has quit [Remote host closed the connection]
<Timgauthier>
and tape
Takle has joined #ruby
<workmad3>
Timgauthier: well yeah, a thorough understanding of duck tape is vital to any endeavour
<certainty>
duck taping?
<Timgauthier>
you need to understand if there is a stream
<sweeper>
or if it's a river
<sweeper>
amirit
<Timgauthier>
you don't wnat to flood your IO
bluOxigen has quit [Ping timeout: 265 seconds]
<workmad3>
sweeper: a river is what you get when you combine two streams ;)
alien_ has quit [Ping timeout: 264 seconds]
aclearman037 has joined #ruby
<sweeper>
workmad3: don't cross the streams man
<Timgauthier>
AHH Thats why the ghost busters where worried
<workmad3>
heh
<Timgauthier>
yes, don't oi your io
B1n4r10 has joined #ruby
AlexRussia has joined #ruby
<Timgauthier>
or !O
<certainty>
if it's sticky like a duck, it probably is a duck
juanpaucar has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
<Timgauthier>
*something something* your mother trebek
<workmad3>
certainty: and if it weighs as much as a duck, it's a witch!
mroach has quit [Quit: mroach]
agarie has joined #ruby
piotrj has quit [Ping timeout: 264 seconds]
heftig has quit [Remote host closed the connection]
m8 has quit [Quit: Sto andando via]
timanema has joined #ruby
sinkensabe has quit [Remote host closed the connection]
thiagovsk has joined #ruby
shum has quit [Quit: WeeChat 1.1.1]
shum has joined #ruby
agrinb has joined #ruby
tunaCanBruh has joined #ruby
<sweeper>
fwiw guys, IO.copy_stream doesn't take a block :3
heftig has joined #ruby
<sweeper>
we had an interesting situation where our swift cluster was getting 190M "client disconnect" messages per hour
bluOxigen has joined #ruby
<Timgauthier>
thats right, you have to insert each cassette tape individually
yfeldblum has quit [Ping timeout: 256 seconds]
fgo has joined #ruby
<Timgauthier>
or duck tape them together
<sweeper>
turns out our swift client code was reading 16kb of data, closing the connection, and opening a new connection >.<
<Timgauthier>
holyfuuuuckkkkkkkkkkkk
<Timgauthier>
brutal
<certainty>
i don't get it
<sweeper>
that SAID, the cluster handled it like a champ so (yey)
Thubo has quit [Quit: leaving]
<sweeper>
just our background processing ran a bit slower than usual :P
rocknrollmarc has quit [Read error: Connection reset by peer]
nerium has quit [Quit: nerium]
WilfredTheGreat has quit [Remote host closed the connection]
codeurge has joined #ruby
jottr has joined #ruby
topolinux has joined #ruby
ixti has joined #ruby
rhllor has joined #ruby
livathinos has quit [Ping timeout: 264 seconds]
codecop has quit [Remote host closed the connection]
mroach has joined #ruby
mloveless has joined #ruby
triple_b has quit [Ping timeout: 246 seconds]
ixti has quit [Client Quit]
enebo has joined #ruby
enebo has quit [Client Quit]
ixti has joined #ruby
beevalee is now known as bevvahlee
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kl has quit [Ping timeout: 244 seconds]
jottr_ has joined #ruby
jottr has quit [Ping timeout: 256 seconds]
juanpaucar has quit [Remote host closed the connection]
livingstn has joined #ruby
mcpierce has joined #ruby
juanpaucar has joined #ruby
topolinux has quit [Ping timeout: 246 seconds]
mloveless has quit [Ping timeout: 264 seconds]
otisZart has joined #ruby
juanpaucar has quit [Ping timeout: 246 seconds]
yevon has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
ismaelga has quit [Remote host closed the connection]
joonty has joined #ruby
tier has joined #ruby
lanemeyer has joined #ruby
kl has joined #ruby
nish1294 has joined #ruby
hermanmunster has joined #ruby
Timgauthier is now known as timgauthier_away
timonv has quit [Ping timeout: 256 seconds]
lampd1 has quit [Read error: Connection reset by peer]
wittyfox has joined #ruby
lampd1 has joined #ruby
marcellus has joined #ruby
arup_r has quit []
hermanmunster has quit [Client Quit]
MissionCritical has quit [Ping timeout: 256 seconds]
hermanmunster has joined #ruby
timanema has joined #ruby
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fgo has joined #ruby
triple_b has joined #ruby
sankaber has joined #ruby
Timgauthier has joined #ruby
B1n4r10 has joined #ruby
Lewix has joined #ruby
kobain has joined #ruby
Lewix has quit [Remote host closed the connection]
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timanema has quit [Client Quit]
<waxjar>
what's a good library to crop and resize images (jpg and png)?
lys has joined #ruby
vtunka has quit [Quit: Leaving]
commmmodo has quit [Quit: commmmodo]
AlexRussia has quit [Ping timeout: 256 seconds]
vtunka has joined #ruby
AlexRussia has joined #ruby
<gregf__>
google says rmagick which uses imagemagick
RegulationD has joined #ruby
<wittyfox>
waxjar: Maybe ImageMagick or RMagick
puppeh has joined #ruby
<gregf__>
i've used it with Perl/PHP as well and pil/pillow with python
<puppeh>
have the Marshal version changed from 1.9.3 to 2.x?
unshadow has joined #ruby
<waxjar>
hm.. i was hoping to avoid rmagick, due to the memory leaking
ismaelga has joined #ruby
Mission-Critical has joined #ruby
unshadow has quit [Client Quit]
<gregf__>
rofl 'puppeh'
Pharaoh2 has joined #ruby
<puppeh>
gregf__: ?
roshanavand has quit [Ping timeout: 272 seconds]
<waxjar>
ph
govg has joined #ruby
unshadow has joined #ruby
rekky has joined #ruby
juanpaucar has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
<waxjar>
*puppeh, i believe Marshal is never compatible between versions
juanpaucar has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
<DefV>
waxjar: vips
<apeiros_>
waxjar: na, marshal has its own versioning
JDiPierro has joined #ruby
shellfu_afk is now known as shellfu
<puppeh>
yes, and it seems to be the same between 1.9.3 and 2.x
havenwood has joined #ruby
<puppeh>
ie. 4.8
Crazy_Atheist has quit [Ping timeout: 250 seconds]
<waxjar>
DefV: thanks, i'll check it out
<apeiros_>
even 1.8.6 has 4.8 as marshal format
sigurding has joined #ruby
jcromartie has joined #ruby
agrinb has joined #ruby
oleo has joined #ruby
wittyfox has left #ruby ["WeeChat 0.4.3"]
danjordan has joined #ruby
Crazy_Atheist has joined #ruby
rocknrollmarc has joined #ruby
ZoanthusR has joined #ruby
aryaching has quit [Ping timeout: 245 seconds]
charliesome has quit [Quit: zzz]
bMalum has quit [Quit: bMalum]
skj3gg has joined #ruby
agrinb has quit [Ping timeout: 250 seconds]
sambao21 has joined #ruby
Mission-Critical is now known as MissionCritical
it0a has joined #ruby
livathin_ has quit [Remote host closed the connection]
juanpablo_ has joined #ruby
ZoanthusR has quit [Ping timeout: 250 seconds]
doodlehaus has joined #ruby
juanpaucar has quit [Remote host closed the connection]
centrx has joined #ruby
livathinos has joined #ruby
juanpaucar has joined #ruby
<B1n4r10>
waxjar the best is minimagick simple and accurate
paulfm has joined #ruby
jonr22 has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
enebo has joined #ruby
yevon has quit [Quit: leaving]
<apeiros_>
B1n4r10: I have not evaluated the options yet, so I'm curious - what's the reason? what makes minimagick better than rmagick, imagescience and/or other alternatives?
Takle has quit [Remote host closed the connection]
zenith_ has joined #ruby
Morkel has quit [Quit: Morkel]
shum has quit [Quit: WeeChat 1.1.1]
shum has joined #ruby
ruisanto1 is now known as ruisantos
juanpaucar has quit [Ping timeout: 264 seconds]
<waxjar>
oh image_science looks perfect
jonr22 has quit [Ping timeout: 265 seconds]
shum has quit [Client Quit]
<B1n4r10>
apeiros_ one reason is that consumes much less memory. Reading source code simpler and only makes the necessary work, achieving scale better.
shum has joined #ruby
<apeiros_>
B1n4r10: any link/benchmarks backing the memory consumption claim?
tunaCanBruh has joined #ruby
<apeiros_>
and is the memory consumption with regards to overhead (once) or per image manipulation?
Tinfoilhat_ has joined #ruby
Takle has joined #ruby
lanemeyer has quit []
jerius has joined #ruby
zenith_ has quit [Read error: Connection reset by peer]
zenith_ has joined #ruby
roshanavand has joined #ruby
dkoch has joined #ruby
<B1n4r10>
apeiros I can not prove it with a visual benchmark but count it as personal experience.
MissionCritical has quit [Ping timeout: 246 seconds]
mostlybadfly has joined #ruby
RegulationD has joined #ruby
tkuchiki has joined #ruby
aclearman037 has quit [Ping timeout: 246 seconds]
roolo has quit [Ping timeout: 246 seconds]
scripore has joined #ruby
zorak8 has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
neonalpine has joined #ruby
kl has quit [Ping timeout: 256 seconds]
agrinb has quit [Ping timeout: 250 seconds]
tunaCanBruh has joined #ruby
rhllor has joined #ruby
joonty has quit [Quit: joonty]
rwsq1 has joined #ruby
DEA7TH has joined #ruby
kl has joined #ruby
mitchellhenke has joined #ruby
<rwsq1>
hi - I have a method with a signature mymethod(a,b,c) - I want to send a hash to it keeping its signature the same, so I have myhash={a: 1, b: 2, c: 3} and I send *myhash. This doesn't generate an error but what arrives at the method is [:a , 1] [:b, 2] [:c, 3] - what am I doing wrong?
<centrx>
rwsq1, Turning a hash into an array turns it into an array of pairs
<centrx>
rwsq1, key-value pairs
<centrx>
rwsq1, You probably want myhash.values
<centrx>
rwsq1, Actually, since you want to make sure it is in order, you want:
<centrx>
mymethod(*myhash.values_at(:a, :b, :c))
MissionCritical has joined #ruby
skj3gg has joined #ruby
skj3gg has quit [Client Quit]
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
joonty has joined #ruby
mistermocha has joined #ruby
nish1294 has quit [Ping timeout: 244 seconds]
valkyrka has joined #ruby
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<rwsq1>
centrx - cool thanks
dru has joined #ruby
n80 has joined #ruby
tesuji has quit [Ping timeout: 244 seconds]
prabeshshrestha has quit [Remote host closed the connection]
codeurge has joined #ruby
<shevy>
centrx is a cool PHP hax0r
timonv has joined #ruby
ghostpl_ has quit [Remote host closed the connection]
<eval-in>
arup_r => /tmp/execpad-d6302c2a8a64/source-d6302c2a8a64:2: no .<digit> floating literal anymore; put 0 before dot ... (https://eval.in/293833)
mistermocha has quit [Remote host closed the connection]
mistermocha has joined #ruby
aspiers has quit [Ping timeout: 252 seconds]
kl has quit [Ping timeout: 255 seconds]
Soda has joined #ruby
roolo_ has quit [Quit: Leaving...]
fgo has joined #ruby
<shevy>
wat
GnuYawk has quit [Ping timeout: 246 seconds]
gfawcettpq2 has quit [Ping timeout: 256 seconds]
roolo has joined #ruby
jcromartie has quit [Read error: Connection reset by peer]
jcromart_ has joined #ruby
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kl__ has quit [Quit: leaving]
tjohnson has joined #ruby
Takle has quit [Remote host closed the connection]
GnuYawk has joined #ruby
icarus has quit [Quit: leaving]
tunaCanBruh has quit [Ping timeout: 245 seconds]
scripore has quit [Quit: Leaving]
fgo has quit [Ping timeout: 256 seconds]
rkeene has joined #ruby
<rkeene>
I'm trying to cross-compile some Ruby gems but running into some problems. I've built two Rubys: 1. Native (native-ruby) that I can run and 2. Host (ruby) that I cannot run, but where gems will be run
dopie has quit [Remote host closed the connection]
schaerli has quit [Ping timeout: 240 seconds]
Waheedi has quit [Quit: Waheedi]
Nick_ZWG has joined #ruby
last_staff has quit [Quit: last_staff]
<rkeene>
It seems that the issue is CROSS_COMPILING is not defined when "native-ruby gem install --platform ..." is run
oleo has joined #ruby
<rkeene>
How do I tell "gem" that it should define CROSS_COMPILING ?
<workmad3>
bradland: it's right there in the method list :P
<bradland>
typing > in tot he method filter shows no matches
<shevy>
tot! tot!!!
lolmaus has quit [Client Quit]
<rkeene>
jhass, Well, in the sense that every compile is a cross-compile I'm not, but in the sense that I don't expect to run the data my compiler generated (which apparently people seem to think is bizarre)
mengu has joined #ruby
<shevy>
tot is the state of a dead in german :-)
vtunka has joined #ruby
<bradland>
i <3 tots
aganov has quit [Ping timeout: 245 seconds]
<shevy>
hehe
gfawcettpq has joined #ruby
zotherstupidguy has joined #ruby
<jhass>
rkeene: I prefer to use the practical definition of terms in most cases, so while you could define cross compile like you did, it's not what most people mean by it
<bradland>
thanks for making it akward, shevy :P
sinkensabe has quit [Remote host closed the connection]
<jhass>
oh, this channel isn't in the state of permanent awkwardness?
nickjj_ has joined #ruby
nickjj has quit [Ping timeout: 255 seconds]
paolooo has quit [Ping timeout: 246 seconds]
Takle has joined #ruby
nickjj_ is now known as nickjj
ryan0x2 has joined #ruby
<workmad3>
jhass: well that's an awkward silence if ever I saw one...
sambao21 has quit [Quit: Computer has gone to sleep.]
<jhass>
see!
zenith__ has quit [Ping timeout: 246 seconds]
mjuszczak has joined #ruby
zz_olivierrr is now known as olivierrr
werelivinginthef has quit [Remote host closed the connection]
fryguy91 has joined #ruby
fryguy9 has quit [Ping timeout: 256 seconds]
jcromart_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
flughafen_ has joined #ruby
bMalum has quit [Quit: bMalum]
ryan0x2 has quit [Read error: Connection reset by peer]
ryan0x2 has joined #ruby
sambao21 has joined #ruby
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
techsethi_ has quit [Quit: techsethi_]
tkuchiki has quit [Remote host closed the connection]
oki has quit [Ping timeout: 250 seconds]
jcromartie has joined #ruby
fabrice31_ has quit [Remote host closed the connection]
agarie has joined #ruby
sinkensabe has joined #ruby
_Andres has quit [Read error: Connection reset by peer]
sinkensabe has quit [Remote host closed the connection]
werelivinginthef has joined #ruby
withnale_ has quit [Read error: Connection reset by peer]
_Andres has joined #ruby
withnale_ has joined #ruby
bal1 has quit [Quit: bal1]
riotjones has quit [Remote host closed the connection]
max96at|off is now known as max96at
roolo has quit [Quit: Leaving...]
olivier_bK has quit [Ping timeout: 245 seconds]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sparr has quit [Changing host]
sparr has joined #ruby
hollywood has joined #ruby
roshanavand has quit [Ping timeout: 246 seconds]
bricker has joined #ruby
rekky has joined #ruby
mjuszcza_ has joined #ruby
DrShoggoth has joined #ruby
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
davidhq has joined #ruby
juanpaucar has quit [Remote host closed the connection]
juanpaucar has joined #ruby
<rkeene>
There, I patched Ruby to make the cross-compilation work correctly with the "gem" command
mjuszczak has quit [Ping timeout: 240 seconds]
allcentury has joined #ruby
bMalum has joined #ruby
livathinos has quit [Ping timeout: 256 seconds]
MatthewsFace has quit [Remote host closed the connection]
<netuoso>
centrx: i want to test a string of any characters and deny it if it includes anything besides the given 'ABCD'
mpls_offsec has joined #ruby
<netuoso>
eg.. given 'THISISAFAILURE' and testing for 'IS' it should fail because of 'THAFLURE'
The_Phoenix has joined #ruby
<apeiros_>
netuoso: =~ /[^ABCD]/
<netuoso>
apeiros_: i think thats it, let me try, thanks
<apeiros_>
netuoso: your second part makes it unclear
<apeiros_>
are you testing for *words* or *characters*?
<netuoso>
characters
<netuoso>
let me give the concrete example
<apeiros_>
ok, then the above
<netuoso>
assert_raises ArgumentError do Nucleotide.from_dna('JOHNNYAPPLESEED')
<netuoso>
the only accepted chars are ACTG
<netuoso>
so that string needs to fail
oki has joined #ruby
agrinb has joined #ruby
<netuoso>
im counting a DNA nucleotide string and if given anythign besides nucleotides it should fail. i think using the regex method you put will help me.. ill get it working
The_Phoenix1 has quit [Ping timeout: 250 seconds]
chrishough has joined #ruby
mjuszczak has joined #ruby
anaeem1_ has joined #ruby
bricker has quit [Ping timeout: 246 seconds]
AirNest has quit [Ping timeout: 272 seconds]
B1n4r10 has joined #ruby
bluOxigen has quit [Read error: Connection reset by peer]
zotherstupidguy has quit [Read error: Connection reset by peer]
alex88 has quit []
havenwood has quit [Ping timeout: 245 seconds]
otisZart has joined #ruby
baroquebobcat has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
rikai has quit [Read error: Connection reset by peer]
HOrangeJewce has joined #ruby
thousandwich has joined #ruby
joonty has quit [Quit: joonty]
<HOrangeJewce>
hi all, I'm building a custom gem and I have files in lib that need to require others from within the gem, how can I do that without using require '[path]/file'?
GaryOak_ has joined #ruby
<HOrangeJewce>
the building your own gem tutorial has you installing the gem which then puts the files in the $path
<apeiros>
HOrangeJewce: ruby/pry -Ilib
vtunka has quit [Quit: Leaving]
<apeiros>
adds lib to $LOAD_PATH
<apeiros>
(which otherwise installing your gem does)
sambao21 has joined #ruby
jgrevich has quit [Quit: jgrevich]
rikai has joined #ruby
anaeem1 has joined #ruby
lsmola has quit [Ping timeout: 265 seconds]
timonv has quit [Ping timeout: 264 seconds]
ych4k3r has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Lildirt has quit [Read error: Connection reset by peer]
werelivinginthef has quit [Remote host closed the connection]
mordocai has joined #ruby
Lildirt has joined #ruby
lektrik has joined #ruby
schaerli has joined #ruby
deric_skibotn has joined #ruby
ryan0x2 has quit [Read error: Connection reset by peer]
uptownhr has quit [Quit: uptownhr]
ryan0x2 has joined #ruby
JDiPierro has quit [Remote host closed the connection]
<HOrangeJewce>
apeiros: ty
oki has quit [Ping timeout: 264 seconds]
antgel has quit [Ping timeout: 255 seconds]
juanpaucar has joined #ruby
yxejamir has quit [Ping timeout: 250 seconds]
MatthewsFace has joined #ruby
Takle has quit [Remote host closed the connection]
<ryanneufeld>
I'm not fluent in ruby, and i'm trying to figure out what this code is doing
<ryanneufeld>
target_host_list().each {|s| role :target_hosts, s, :user => "deploy" }
<ryanneufeld>
it's from a capistrano recipe
crazydiamond has joined #ruby
<nateberkopec>
kinda hard to know in isolation like that ryanneufeld
<ryanneufeld>
I mean syntactically
<ryanneufeld>
I don't understand it
<apeiros_>
ryanneufeld: it calls `role` for each value target_host_list returns
iwaffles has joined #ruby
mjuszczak has quit []
<ryanneufeld>
what is the |s| ?
<apeiros_>
the declaration of the variables which the block accepts
<ryanneufeld>
okay
<apeiros_>
like def foo(s)
<iwaffles>
Anyone know how to set the default ruby in rvm? I’ve used rvm --default use 2.1.5 but when opening a new terminal it revers back to 2.0.0 for eome reason. rvm default switches back
<iwaffles>
perhaps I could just put ‘rvm default’ into my rc
<apeiros_>
iwaffles: rvm RUBY --default
<ryanneufeld>
so, in this case, role is a method?
<apeiros_>
iwaffles: e.g. rvm 2.1.5 --default
<apeiros_>
ryanneufeld: as previously said, yes
<iwaffles>
no dice, apeiros_ – still not selecting the default on a new terminal window/tab
<iwaffles>
weird.
reinaldob has joined #ruby
<iwaffles>
rvm list even indicates 2.1.5 as being the default
<ryanneufeld>
okay, at the top of the file there is load 'deploy'
<apeiros_>
if that still doesn't work, gist your terminal session
<ryanneufeld>
and a namespace :deploy
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ryanneufeld>
later in teh file
<ryanneufeld>
are they related?
<ryanneufeld>
I suppose you wouldn't know that.
<apeiros_>
ryanneufeld: maybe. load and namespace would be methods.
tier has joined #ruby
<iwaffles>
apeiros_: same thing, it doesn’t seem to select rvm default when creating a new terminal
tier has quit [Read error: Connection reset by peer]
<apeiros_>
iwaffles: 19:58 apeiros_: if that still doesn't work, gist your terminal session
tier has joined #ruby
<shevy>
mhhm waffles
<shevy>
I am so hungry
baweaver has joined #ruby
kalusn has joined #ruby
<apeiros_>
me too. cooking atm :D
<apeiros_>
what's the opposite of a glass cannon (in gaming)? a tank?
<shevy>
you let your wife do that!
RegulationD has joined #ruby
<shevy>
a nuke
elaptics is now known as elaptics_away
<shevy>
I actually don't know what a glass canon is
<apeiros_>
shevy: a glass cannon is a character which can only take very little damage, but deals a ton of damage
rocknrollmarc has quit [Ping timeout: 250 seconds]
<shevy>
in Ultima VI there were glass words... one use... they broke upon usage but killed the (one) opponent
<shevy>
damn, not words
<shevy>
glass *swords
<shevy>
ah
gfawcettpq has quit [Ping timeout: 265 seconds]
<shevy>
like Goliath in David vs. Goliath
<shevy>
damn glass jaw end bosses
sivsushruth has quit [Read error: Connection reset by peer]
tier_ has quit [Ping timeout: 264 seconds]
kalusn has quit [Ping timeout: 240 seconds]
techsethi_ has quit [Quit: techsethi_]
kalusn has joined #ruby
pdoherty has quit [Quit: Leaving]
lys has quit [Quit: lys]
alex88 has quit []
werelivinginthef has quit [Ping timeout: 265 seconds]
sivsushruth has joined #ruby
werelivinginthef has joined #ruby
rocknrollmarc has joined #ruby
OrbitalKitten has joined #ruby
jenrzzz has joined #ruby
roadt has joined #ruby
roadt has quit [K-Lined]
<ryanneufeld>
apeiros_: are you familiar at all w/ capistrano
<ryanneufeld>
?
<apeiros_>
ryanneufeld: no
kirun has joined #ruby
<ryanneufeld>
so in the code, I beleive role is a string
<apeiros_>
ryanneufeld: no it is not
_reset has quit [Remote host closed the connection]
zenith__ has quit [Ping timeout: 246 seconds]
<apeiros_>
it's still ruby syntax
reset has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
n80 has joined #ruby
sjuxax has left #ruby [#ruby]
mjuszczak has joined #ruby
Spami has joined #ruby
rubytor has quit [Quit: No Ping reply in 180 seconds.]
<ryanneufeld>
apeiros_: you're correct
<ryanneufeld>
I found the code
<ryanneufeld>
def role(name, hosts, options={})
rubytor has joined #ruby
<apeiros_>
the only things the token `role` can be in ruby is either an lvar or a method. and since in `role :target_hosts, s, :user => "deploy"` you have arguments, it is unambiguously a method.
<apeiros_>
ryanneufeld: read the code - what variable will end up with that value?
MasterPiece has quit [Quit: Leaving]
<ryanneufeld>
dude, I am reading the code
<ryanneufeld>
I don't understand how ruby works
sevvie has joined #ruby
<jhass>
ryanneufeld: tryruby.org
Sawbones has joined #ruby
<ryanneufeld>
so I'm asking for help here, cause it's clearly not obvious
pengin has quit [Remote host closed the connection]
rgs has quit [Ping timeout: 246 seconds]
tvw has joined #ruby
<apeiros_>
ryanneufeld: dude, we're not here to teach you ruby. I was willing to go ahead, but if you prefer to bitch instead of answer the question, then I'm off.
mjuszczak has quit []
<jhass>
ryanneufeld: maybe not, but covered by the most basic ruby tutorials
rgs has joined #ruby
* baweaver
grabs popcorn
<ryanneufeld>
apeiros_: it gets passed to the name variable which is passed into another method
gfawcettpq has joined #ruby
<apeiros_>
ryanneufeld: and in line 51?
<ryanneufeld>
being compared to another symbol it appears
<apeiros_>
correct. but since :target_hosts != :all, the `if` is not triggered. so being passed on is all it does here.
<baweaver>
odd that they use interpolation for that, why not just put all directly in there? Eh, semantics.
<ryanneufeld>
I can see that, where i'm confused is with what a symbol is
<ryanneufeld>
and what it means in this context
justin_pdx has joined #ruby
<baweaver>
think a string without 90% of the bloat
<jhass>
baweaver: maybe you want to extend the condition later
<apeiros_>
baweaver: huh? it's not interpolated? only in the raise…
<baweaver>
it's just a name
<baweaver>
fair point
kerframil has joined #ruby
<apeiros_>
ryanneufeld: for the moment, you can think of it as if it was a string
<ryanneufeld>
ok, but it's value is 'target_hosts' ?
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nerium has joined #ruby
<apeiros_>
yes
<apeiros_>
well, kind of
<apeiros_>
but in terms of thinking of it as a string: yes
<jhass>
ryanneufeld: it's used in contexts where you would use an enum or a constant for a magic value in other languages
<ryanneufeld>
jhass: thanks, I get that
justin_pdx has quit [Client Quit]
tvw has quit [Ping timeout: 250 seconds]
* baweaver
whistles innocently
pengin has joined #ruby
oki has joined #ruby
<ryanneufeld>
baweaver: your snark isn't helping. I'm an experienced dev, who is frustrated with a language that isn't familar, and while I apreciate the help. I am frustrated
sinkensabe has joined #ruby
ghr has joined #ruby
tvw has joined #ruby
<baweaver>
You don't say?
<ryanneufeld>
apeiros_: Thanks for your patience and help
tier has quit [Read error: Connection reset by peer]
tier has joined #ruby
dru has quit [Ping timeout: 244 seconds]
icarus has joined #ruby
mjuszczak has quit [Client Quit]
<ryanneufeld>
one last question.
<ryanneufeld>
task :upload, :roles => :target_hosts do
<ryanneufeld>
task( :upload, :roles => :target_hosts) do
rhg135|zzz is now known as rhg135
<ryanneufeld>
those are functionally the same?
<jhass>
yup
<ryanneufeld>
thx
<baweaver>
see what happens when you replace
<baweaver>
do end
<baweaver>
with {}
<baweaver>
then you need parens
<ryanneufeld>
ah
<ryanneufeld>
okay
<baweaver>
nasty gotcha for later
bMalum has quit [Quit: bMalum]
<baweaver>
you'll spend days on that one.
<jhass>
that's because do/end binds to the leftmost call, {/} to the rightmost
<baweaver>
ruby can only infer so much
<jhass>
and that's the only semantic difference between the two
sinkensabe has quit [Ping timeout: 246 seconds]
ghr has quit [Ping timeout: 272 seconds]
<ryanneufeld>
right
<shortdudey123>
anyone know a good way to do socket timeouts?
<ryanneufeld>
at least I can translate what i'm seeing in my head agian
startupality has quit [Quit: startupality]
<jhass>
shortdudey123: what's not working?
<shortdudey123>
the actual timeout
workmad3 has quit [Ping timeout: 246 seconds]
<ryanneufeld>
so is do/end essentially a callback?
<shortdudey123>
neither connection itself or gets timeout
Timgauthier is now known as timgauthier_away
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
uptownhr has quit [Quit: uptownhr]
bluOxigen has quit [Ping timeout: 252 seconds]
<jhass>
ryanneufeld: called "a block" (again covered by the most basic ruby tutorials), so sort of, with the added benefit of being able to reference the context it was defined in
spider-mario has quit [Ping timeout: 252 seconds]
momomomomo has joined #ruby
huddy has quit [Quit: Connection closed for inactivity]
pengin has quit [Remote host closed the connection]
<baweaver>
both are anonymous functions though
<baweaver>
unless I missed something. Possible
FooMunki_ has quit [Quit: FooMunki_]
rocknrollmarc has quit [Ping timeout: 265 seconds]
<apeiros_>
blocks are also closures (beyond being anonymous functions)
<apeiros_>
ah, they didn't say they were also js experienced - otherwise that'd have helped
The_Phoenix has quit [Read error: Connection reset by peer]
<jhass>
shortdudey123: yeah, comments on Mikes article suggest it's not portable at all
<shortdudey123>
jhass: yup, already have my code setup for non-blocking, just want to not have a thread sit there longer than it has to
<jhass>
shortdudey123: and this one is safe, supported by the underlying system call
<baweaver>
granted I follow lisp style on that
<shortdudey123>
hmm will look at that
<apeiros_>
shows how much power convention has over how you read code… (never use -> without () when it has args)
<shortdudey123>
thanks!
B1n4r10 has quit [Max SendQ exceeded]
<ryanneufeld>
okay, blocks are slick
<ryanneufeld>
but the syntatical variations are confusing as hell at first
pengin has joined #ruby
<apeiros_>
blocks were the reason I started with ruby
sigurding has joined #ruby
tvon has joined #ruby
duncannz has joined #ruby
sambao21 has joined #ruby
<baweaver>
OH on Twitter: Do programmers have superstitions? No, they just have best practices.
<apeiros_>
ryanneufeld: you can ignore them when writing code if you're explicit with parens.
<apeiros_>
dogma - always a shiny rope to hang yourself
<ryanneufeld>
Thanks again for the help
sambao21 has quit [Client Quit]
rbennacer has joined #ruby
rikai has joined #ruby
rbennacer has quit [Remote host closed the connection]
rbennacer has joined #ruby
<jhass>
shortdudey123: when you have a reader thread and want to be able to safely kill it, a common approach is to use IO.select with the thing you read from and a pipe and then pushing a kill message to the pipe
hollywood has quit [Quit: Leaving]
<shortdudey123>
ah
Megtastique has quit []
tvon has quit [Client Quit]
rbennacer has quit [Remote host closed the connection]
zotherstupidguy has joined #ruby
sambao21 has joined #ruby
mistermo_ has joined #ruby
rbennacer has joined #ruby
martianixor has quit [Quit: Leaving]
<HOrangeJewce>
in my gem if I want to have a test include a bin file what's the correct way to require it?
<zotherstupidguy>
any idea what "run ->(e)" means as in run ->(e) { [200, {"Content-Type" => "text/html"}, [a.instance_eval(&block)]] }
jrd has joined #ruby
nfk has joined #ruby
jonr22 has joined #ruby
<apeiros_>
zotherstupidguy: `->(e) {` is the same as `lambda { |e|`
<havenwood>
zotherstupidguy: the `->` is the beginning of a stabby lambda, and the `e` is the lambda arg, it's usually called `env` for Rack.
<zotherstupidguy>
apeiros: thanks, docs?
<jhass>
HOrangeJewce: not sure I follow your question, to run it do ruby -Ilib bin/foo
jrdnull has quit [Read error: Connection reset by peer]
<apeiros_>
zotherstupidguy: syntax, dunno where syntax is docced
<HOrangeJewce>
jhass: I mean I have a test_[bin-filename].rb
<zotherstupidguy>
apeiros havenwood: thanks, great
<HOrangeJewce>
calling require '[gem-name]/bin/[filename]' isn't working
<HOrangeJewce>
so I was curious what the correct way to require the file is
chrishough has joined #ruby
<apeiros_>
HOrangeJewce: I guess that's one of the rare cases where I consider require_relative acceptable
sambao21 has quit [Client Quit]
<jhass>
HOrangeJewce: ah, you would use require_relative or patch $LOAD_PATH to include bin/
baweaver has quit [Remote host closed the connection]
Tinfoilhat_ has joined #ruby
mikey320b has joined #ruby
momomomomo has quit [Ping timeout: 252 seconds]
wald0 has quit [Ping timeout: 245 seconds]
contradictioned has quit [Quit: No Ping reply in 180 seconds.]
contradictioned has joined #ruby
momomomomo has joined #ruby
Sawbones has quit [Remote host closed the connection]
tier has quit [Remote host closed the connection]
Drewch has quit [Quit: Computer has gone to sleep.]
sinkensabe has joined #ruby
mjuszczak has quit []
troulouliou_dev has quit [Remote host closed the connection]
tier has joined #ruby
dfinninger has quit [Remote host closed the connection]
ryanneufeld has left #ruby [#ruby]
goshdarnyou has quit [Quit: Connection closed for inactivity]
tier_ has joined #ruby
luriv_ has joined #ruby
sevvie has quit [Ping timeout: 256 seconds]
momomomomo has quit [Quit: momomomomo]
rikai has joined #ruby
_reset has joined #ruby
_reset has quit [Client Quit]
Sawbones has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
dfinninger has joined #ruby
send has quit [Ping timeout: 250 seconds]
tier has quit [Ping timeout: 256 seconds]
gfawcettpq2 has joined #ruby
rocknrollmarc has quit [Ping timeout: 244 seconds]
gfawcettpq has quit [Ping timeout: 244 seconds]
sinkensabe has quit [Read error: Connection reset by peer]
momomomomo has joined #ruby
gfawcettpq2 is now known as gfawcettpq
shellfu is now known as shellfood
sambao21 has joined #ruby
reset has quit [Ping timeout: 264 seconds]
send has joined #ruby
sevvie has joined #ruby
Morkel has joined #ruby
sevvie_ has joined #ruby
rocknrollmarc has joined #ruby
n1lo has quit [Quit: Leaving]
mkaesz has quit [Quit: Leaving...]
ponga has quit [Remote host closed the connection]
pengin has quit [Remote host closed the connection]
sinkensabe has joined #ruby
pengin has joined #ruby
topolinux has quit [Ping timeout: 252 seconds]
gfawcettpq has quit [Ping timeout: 245 seconds]
sevvie has quit [Ping timeout: 250 seconds]
send has quit [Remote host closed the connection]
sevvie_ has quit [Ping timeout: 265 seconds]
sevvie has joined #ruby
bMalum has joined #ruby
tonyhb_ has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 250 seconds]
pengin has quit [Ping timeout: 246 seconds]
iamninja has joined #ruby
mjuszczak has joined #ruby
afex has quit [Ping timeout: 245 seconds]
tonyhb has quit [Ping timeout: 250 seconds]
danman has joined #ruby
beef-wellington has joined #ruby
agarie has quit []
blackmesa has joined #ruby
zotherstupidguy has quit [Ping timeout: 240 seconds]
Hijiri has quit [Quit: WeeChat 1.0.1]
afex has joined #ruby
tvon has joined #ruby
Takle has joined #ruby
zotherstupidguy has joined #ruby
silkfox has quit [Ping timeout: 250 seconds]
tvw has quit [Ping timeout: 256 seconds]
einarj has joined #ruby
topolinux has joined #ruby
amacou has joined #ruby
bhegel has joined #ruby
einarj has quit [Ping timeout: 246 seconds]
kerframil has quit [Quit: Leaving]
tvw has joined #ruby
ghr has joined #ruby
gr33n7007h has quit [Ping timeout: 272 seconds]
crazydiamond has quit [Read error: Connection reset by peer]
amacou has quit [Ping timeout: 244 seconds]
shellfood is now known as shellfu
bMalum has quit [Quit: bMalum]
JBreit has joined #ruby
<apeiros_>
<3 take_while
ghr has quit [Ping timeout: 245 seconds]
aclearma_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JBreit has left #ruby [#ruby]
aclearman037 has joined #ruby
Beoran_ has quit [Ping timeout: 246 seconds]
tvw has quit [Ping timeout: 245 seconds]
rekky has joined #ruby
max96at is now known as max96at|off
SouL_ has quit [Ping timeout: 244 seconds]
baweaver has joined #ruby
<shevy>
it'll take a while
zotherstupidguy has quit [Ping timeout: 250 seconds]
dstarh has joined #ruby
zotherstupidguy has joined #ruby
allcentury has quit [Ping timeout: 256 seconds]
<dstarh>
Can anyone recommend a good gem for spelling correction in ruby? I want to run a spellcheck task as a first pass to my NLP pipeline and everything I'm finding seems to be multiple years old or not used by meny people so it's not been battle tested
aswen has joined #ruby
towski_ has joined #ruby
jenrzzz has joined #ruby
crazydiamond has joined #ruby
jespada has quit [Quit: Leaving]
terlar has joined #ruby
terlar has quit [Client Quit]
SouL_ has joined #ruby
topolinux has quit [Ping timeout: 250 seconds]
Beoran_ has joined #ruby
terlar has joined #ruby
terlar has quit [Client Quit]
<reactormonk>
dstarh, I've looked for NLP stuff in ruby a few years ago and I have to admit there wasn't too much...
terlar has joined #ruby
<reactormonk>
dstarh, I've found most NLP stuff on the JVM, so with jruby you should be good to go
pandaant has quit [Remote host closed the connection]
<dstarh>
reactormonk i'm using Stanford's Core NLP, Classifier and POS Tagger for the actual NLP tasks, and using a ruby wrapper around that.
blackmesa has quit [Quit: WeeChat 1.1.1]
<dstarh>
jruby not required
<reactormonk>
yeah, then you're good to go
sarlalia1 has quit [Quit: WeeChat 0.4.2]
elaptics_away is now known as elaptics
<dstarh>
However, I'm looking for the spell checking task which is not included in the core nlp and should likely be done as the first step of the pipeline
sarlalian has joined #ruby
<reactormonk>
How complex does it have to be?
<reactormonk>
word-based spelling enough?
<dstarh>
my use of NLP is for named entity recognition and text classificaiton which works great but if people fat finger the text I want to be able to catch that before hand
<reactormonk>
Ah, I see
mjuszczak has quit []
Spami has quit [Quit: This computer has gone to sleep]
<dstarh>
i've seen http://norvig.com/spell-correct.html which seems fairly easy to implement but I don't want to reinvent any wheels if they exist
pengin has joined #ruby
<reactormonk>
dstarh, you could just pipe it through aspell
otisZart has joined #ruby
<dstarh>
ha, hadn't thought of that
baweaver has quit [Remote host closed the connection]
lkba_ has quit [Read error: Connection reset by peer]
AlphaTech has joined #ruby
plutonic has joined #ruby
topolinux has joined #ruby
<reactormonk>
Although I don't see an option where you can go for how aggressive you want to correct spelling - aspell is only for suggestions
<dstarh>
yeah
byaruhaf has quit [Disconnected by services]
byaruhaf has joined #ruby
zotherstupidguy has quit [Ping timeout: 252 seconds]
otisZart_ has joined #ruby
momomomomo has quit [Quit: momomomomo]
<dstarh>
after i've done the NER phase it gets passed to an elasticsearch cluster so perhaps if the pattern based recognition is working then the fuzzy search in the next step will be a better option :/
<reactormonk>
Or you could pipe through aspell to get an initial number to see how many suggestions it makes to see if it's worth the effort
otisZart_ is now known as otisZart
thiagovsk has quit [Quit: Connection closed for inactivity]
rhg135|gone is now known as rhg135
mloveless has joined #ruby
zotherstupidguy has joined #ruby
robbyoconnor has quit [Ping timeout: 246 seconds]
<reactormonk>
dstarh, business or academia?
lkba has joined #ruby
<dstarh>
business
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has quit [Remote host closed the connection]
<reactormonk>
Yup, I recommend counting the spelling errors first. Maybe even generate a list to see if there's duplicates etc. to see if they're correctly spelled, but not in the dictionary.
<dstarh>
the stanford libs are pretty fantastic for doing nlp work, i'm surprised at what it's able to extract with a relatively training set
Sawbones has quit [Remote host closed the connection]
Akagi201_ has joined #ruby
Akagi201 has quit [Ping timeout: 255 seconds]
MatthewsFace has quit [Read error: Connection reset by peer]
<dstarh>
interesting, it's all real time, user > sentence > parse > search
sambao21 has quit [Quit: Computer has gone to sleep.]
Tinfoilhat_ has quit [Read error: Connection reset by peer]
<reactormonk>
Depends on your definition of real time.
MatthewsFace has joined #ruby
rodfersou has quit [Quit: leaving]
zotherstupidguy has quit [Ping timeout: 252 seconds]
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Xiti has quit [Ping timeout: 250 seconds]
zotherstupidguy has joined #ruby
* apeiros_
thinks dstarh doesn't mean "real time" as it is defined for CS
pierre1_ has joined #ruby
byaruhaf has quit [Remote host closed the connection]
fuhgeddaboudit has joined #ruby
<reactormonk>
Didn't windows 95 have a real time clock you could set for up to 200 ms?
byaruhaf has joined #ruby
cr3 has joined #ruby
yfeldblum has joined #ruby
sevvie has quit [Ping timeout: 252 seconds]
<apeiros_>
o0
<dstarh>
apeiros_ correct I mean real time as in it's not a bulk task happening on thousands of documents, it's an api
<cr3>
how can I get internal information about a method, like File.open for example? like, where the function is defined
<cr3>
aha! File.method(:open)... I think
<apeiros_>
cr3: use pry + pry-doc
<apeiros_>
and then: $ File.open
momomomomo has joined #ruby
<apeiros_>
or: ? File.open
withnale has joined #ruby
jcromartie has quit [Read error: Connection reset by peer]
uptownhr has joined #ruby
<apeiros_>
other than that: gitub.com/ruby/ruby - rdoc.info - ruby-doc.org
<reactormonk>
dstarh, I assume you're talking about SaaS stuff
jcromartie has joined #ruby
sambao21 has joined #ruby
<dstarh>
yup
tvw has joined #ruby
<reactormonk>
One of the benefits of opensource
<dstarh>
thanks for the link to the paper, that will make an interesting read later tonight
rekky has quit []
ndrei has quit [Ping timeout: 255 seconds]
ndrei_ has quit [Ping timeout: 250 seconds]
mloveless has quit []
ndrei has joined #ruby
michael_mbp has quit [Excess Flood]
sevvie has joined #ruby
ndrei_ has joined #ruby
sinkensabe has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 250 seconds]
michael_mbp has joined #ruby
uptownhr has quit [Quit: uptownhr]
Morkel has quit [Quit: Morkel]
tmtwd has joined #ruby
topolinux has quit [Ping timeout: 250 seconds]
ldnunes has quit [Quit: Leaving]
aclearman037 has joined #ruby
jcromartie has quit [Read error: Connection reset by peer]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
jcromartie has joined #ruby
topolinux has joined #ruby
deuterium has joined #ruby
Xiti has joined #ruby
Xiti has quit [Changing host]
Xiti has joined #ruby
GnuYawk has quit [Ping timeout: 255 seconds]
crazydiamond has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
_djbkd has quit [Remote host closed the connection]
blackmesa has joined #ruby
byaruhaf has quit [Disconnected by services]
uptownhr has joined #ruby
byaruhaf has joined #ruby
mordocai has quit [Remote host closed the connection]
Zai00 has quit [Quit: Zai00]
ghostpl_ has joined #ruby
timonv has quit [Ping timeout: 245 seconds]
MatthewsFace has quit [Read error: Connection reset by peer]
Matthews_ has joined #ruby
thumpba has joined #ruby
rajeshchawla has joined #ruby
jonr22 has joined #ruby
chrishough has joined #ruby
DouweM has joined #ruby
allcentury has joined #ruby
mjuszczak has joined #ruby
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 35.0/2015010900]]
Xiti` has quit [Quit: Xiti`]
diego1 has joined #ruby
crazydiamond has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
pragmatism has joined #ruby
crazydiamond has joined #ruby
monod has joined #ruby
fuhgeddaboudit has quit [Ping timeout: 264 seconds]
deuterium has quit [Read error: Connection reset by peer]
sinkensa_ has joined #ruby
diegoviola has quit [Ping timeout: 255 seconds]
jonr22 has quit [Ping timeout: 240 seconds]
sinkensabe has quit [Read error: Connection reset by peer]
allcentury has quit [Ping timeout: 250 seconds]
sinkensa_ has quit [Remote host closed the connection]
frem has joined #ruby
momomomomo has quit [Quit: momomomomo]
Sawbones has joined #ruby
DouweM has quit [Read error: Connection reset by peer]
crazydiamond has quit [Remote host closed the connection]
<frem>
I hit ctrl+c while bundle was doing stuff and now every time I run any bundler command I get the message `Could not find stripe_event-0.6.1 in any of the sources`
mikey320b has quit [Quit: Leaving]
<frem>
even when running `bundle clean --force`
Lildirt has quit [Read error: Connection reset by peer]
davidhq has joined #ruby
crazydiamond has joined #ruby
allcentury has joined #ruby
goshdarnyou has joined #ruby
Lildirt has joined #ruby
NightMonkey has quit [Max SendQ exceeded]
agrinb has joined #ruby
ghr has joined #ruby
martianixor has joined #ruby
Hrendalf has joined #ruby
duncannz has quit [Ping timeout: 265 seconds]
NightMonkey has joined #ruby
_djbkd has joined #ruby
topolinux has quit [Ping timeout: 252 seconds]
gfawcettpq has joined #ruby
<frem>
Oh, maybe my Gemfile.lock was messed up. I renamed it and now bundler works again.
Sawbones has quit [Remote host closed the connection]
gr33n7007h has joined #ruby
<gr33n7007h>
Right, need some help. I'm trying to timeout a call to IPSocket.getaddress, but when I wrap it in a timeout block it doesn't work just keeps hanging until IPSocket timeout occurs?
enterprisedc has quit [Quit: enterprisedc]
Sawbones has joined #ruby
ghr has quit [Ping timeout: 246 seconds]
allcentury has quit [Ping timeout: 272 seconds]
gfawcettpq has quit [Client Quit]
enterprisedc has joined #ruby
gfawcettpq has joined #ruby
Xiti has joined #ruby
Xiti has quit [Changing host]
Xiti has joined #ruby
neonalpine has quit [Remote host closed the connection]
topolinux has joined #ruby
neonalpine has joined #ruby
Zai00 has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
dfinninger has quit [Read error: Connection reset by peer]
rajeshchawla has quit [Remote host closed the connection]
diego1 has quit [Changing host]
diego1 has joined #ruby
diego1 is now known as diegoviola
Spami has joined #ruby
rhllor has quit [Quit: rhllor]
davejacobs has joined #ruby
aamador has quit [Ping timeout: 255 seconds]
teddyp1c_ has quit [Remote host closed the connection]
dfinninger has joined #ruby
gfawcettpq has quit [Read error: No route to host]
Sawbones has quit [Remote host closed the connection]
zotherstupidguy has quit [Ping timeout: 252 seconds]
<baweaver>
well, length - 1
Majost1 has left #ruby [#ruby]
<apeiros_>
more code, slower ;-)
<shevy>
what did you expect when you let a beaver code apeiros_
<apeiros_>
also rand(0..(x-1)) == rand(x)
zotherstupidguy has joined #ruby
<baweaver>
noted. I just don't use random often.
<shevy>
beavers do not believe in entropy
Sawbones has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
werelivinginthef has quit [Remote host closed the connection]
HOrangeJewce has quit [Quit: Leaving.]
<baweaver>
we don't believe in mahogany
<shevy>
hehe
<baweaver>
mahogany
kirun has quit [Quit: Client exiting]
shum has quit [Quit: WeeChat 1.1.1]
danman has quit [Quit: danman]
<baweaver>
is it bad I'm tempted to make a remix of TFS's King Yamma and that woman from Hunger Games saying mahogany back and forth?
shum has joined #ruby
yfeldblum has joined #ruby
<reactormonk>
I'm currently considering if it's a good idea to randomly generate email addresses with above algorithm... and then I'm basically screwed if I forget which one is which
<reactormonk>
baweaver, nah, I'm currently messing with a script to my mails. I'm considering instead of named addresses, go with random addresses and map them to the name
juanpablo_ has joined #ruby
Pupeno has quit [Remote host closed the connection]
crueber has quit [Quit: Leaving.]
<baweaver>
ah
<baweaver>
I tend to use that if I really need to stress test something with fake data.
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
jenrzzz_ has joined #ruby
fryguy9 has quit [Quit: Leaving.]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
crack has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
juanpablo_ has quit [Ping timeout: 250 seconds]
ta has quit [Read error: Connection reset by peer]
jlast has quit [Remote host closed the connection]
jlast has joined #ruby
Pupeno has quit [Ping timeout: 250 seconds]
ta has joined #ruby
jlast has quit [Remote host closed the connection]
chrishough has joined #ruby
gccostabr has quit [Quit: ZZZzzz…]
netbun has joined #ruby
tunaCanBruh has joined #ruby
netbun has quit [Client Quit]
afex has quit []
veduardo has quit [Ping timeout: 246 seconds]
maxmanders has quit [Ping timeout: 256 seconds]
Evan_ has quit [Ping timeout: 256 seconds]
baweaver has quit [Read error: Connection reset by peer]
ndrei has quit [Ping timeout: 250 seconds]
baweaver has joined #ruby
govg has quit [Ping timeout: 246 seconds]
ndrei_ has quit [Ping timeout: 250 seconds]
Spami has quit [Quit: This computer has gone to sleep]
gilmour has quit [Ping timeout: 264 seconds]
lifenoodles has quit [Ping timeout: 264 seconds]
netbun has joined #ruby
Hijiri has joined #ruby
Evan_ has joined #ruby
netbun has quit [Client Quit]
baweaver has quit [Remote host closed the connection]
last_staff has joined #ruby
maxmanders has joined #ruby
nahtnam has quit [Quit: Connection closed for inactivity]
ndrei has joined #ruby
gilmour has joined #ruby
lifenoodles has joined #ruby
ndrei_ has joined #ruby
phoo1234567 has quit [Quit: Leaving]
mjuszczak has joined #ruby
<weaksauce>
reactormonk I like to use a more verbose but human readable form that removes the characters that are easily mistaken for one another
<reactormonk>
case/when goes for <check> === <element>, correct? How do I check if a hash has a key of <element> in a case statement?
zotherstupidguy has quit [Ping timeout: 250 seconds]
Hrendalf has quit [Read error: Connection reset by peer]
<reactormonk>
weaksauce, so remove 'l'?
jottr_ has quit [Ping timeout: 252 seconds]
<weaksauce>
%w{ 2 3 4 6 7 9 A C D E F G H J K M N P Q R T V W X Y Z a b c d e f g h j k m n p q r t v w x y z}
<apeiros_>
reactormonk: case expression when condition1, … --> (condition1) === (expression) || (condition…) === (expression)
<weaksauce>
remove the numbers if you don't want numerics
yfeldblum has quit [Remote host closed the connection]
<casadei>
hash.include?(:key)
<reactormonk>
weaksauce, thanks
yfeldblum has joined #ruby
<weaksauce>
np
<apeiros_>
and IMO you shouldn't use case/when to check whether a key is there
<reactormonk>
casadei, read again
<reactormonk>
apeiros_, I think it's appropriate here
<apeiros_>
you'd have to use case/when without expression, or use a proc
<apeiros_>
reactormonk: not really, no
n80 has joined #ruby
ptrrr has quit [Quit: ptrrr]
<reactormonk>
So no way to get #=== to use inclusion semantics?
<apeiros_>
you'd have to patch the key's class
<apeiros_>
and I assume you see why that's fugly
<reactormonk>
Yup. But isn't it {"a" => 3} === "a" in the end?
<apeiros_>
00:14 apeiros_: reactormonk: case expression when condition1, … --> (condition1) === (expression) || (condition…) === (expression)
<apeiros_>
so no, it's key === hash
<reactormonk>
it's case key when hash ...
<apeiros_>
aha, maybe you should have been more clear :-p
<apeiros_>
yes, then it's hash === key
DrShoggoth has quit [Quit: Leaving]
reinaldob has joined #ruby
<reactormonk>
doesn't seem to have inclusion sematnics
<diegoviola>
so this company is asking for iOS SDK experience and also Rails experience, is it possible to virtualize that crap (iOS) or you *need* to have an iPhone for that? (I'm not interested)
<apeiros_>
reactormonk: correct. Hash#=== is an alias for Hash#==
<reactormonk>
:-(
kielybunny is now known as kiely
momomomomo_ has joined #ruby
<apeiros_>
bad because inefficient: case key; when *hash.keys
<reactormonk>
{"a" => 3}.method(:has_key?) === "a" <- also false O.o
<diegoviola>
I wonder if I can virtualize the apple stuff and still develop with Rails for that company
kiely is now known as kielybunny
aamador has joined #ruby
lanemeyer has quit [Ping timeout: 244 seconds]
dru has quit [Ping timeout: 246 seconds]
wallerdev has joined #ruby
baweaver has joined #ruby
<apeiros_>
diegoviola: an emulator only gets you so far
AlexRussia has joined #ruby
<diegoviola>
I run Linux on my machines
<apeiros_>
but yes, you can create a hackintosh and run xcode on it. xcode has an ios emulator
<mozzarella>
you'll need a mac
<reactormonk>
diegoviola, you wanna to stuff for apple? Gotta use apple
<mozzarella>
sorry ¯\_(ツ)_/¯
momomomomo has quit [Ping timeout: 264 seconds]
momomomomo_ is now known as momomomomo
<reactormonk>
It's a walled garden after all
<diegoviola>
apeiros_: well, if they send me an iPhone my way I wouldn't say no, but I wouldn't put my own money on apple
<apeiros_>
diegoviola: negotiate
<apeiros_>
IMO reasonable
<diegoviola>
right
<_blizzy_>
anyone know how I would do this? I'm trying to generate n numbers that total == 100
<diegoviola>
I have a Nexus but that's it
<apeiros_>
I wouldn't use my private iphone either to develop for my company
fgo has joined #ruby
<apeiros_>
or in general: I expect all materials required to work for a company to be provided by said company.
jonr22 has joined #ruby
<diegoviola>
right
<apeiros_>
well, actually - I'd also agree if payment just was a couple K higher
<reactormonk>
{"a" => 3}.method(:has_key?).call("a") is true but {"a" => 3}.method(:has_key?) === "a"
<reactormonk>
... is false.
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<reactormonk>
whut?
<apeiros_>
because Method#===
<apeiros_>
>> {"a" => 3}.method(:has_key?).to_proc === "a"
<patrick99e99>
hmm.. that was not working for me apeiros_ let me try again
<apeiros_>
patrick99e99: make a minimal example and gist it?
<patrick99e99>
oh I was miossing self.method_missing
<patrick99e99>
since it was a module
mi12 has joined #ruby
Guest64 has joined #ruby
<apeiros_>
patrick99e99: that's not the reason
<apeiros_>
the reason is that def method_missing is for missing *instance methods*
<apeiros_>
but you wanted it for class methods (which you didn't say)
<apeiros_>
it's no different with classes.
n80 has quit [Quit: n80]
Guest64 is now known as Guest65
<reactormonk>
weaksauce, are you using a similar mail system?
<_blizzy_>
anyone know how I would achieve this?
amacou has joined #ruby
<_blizzy_>
I'm trying to generate n numbers that total == 100
<reactormonk>
_blizzy_, generate with combinations, filter.
<_blizzy_>
so, if I said 3, it would return [33,33,34]
jottr_ has joined #ruby
<reactormonk>
... with select
<_blizzy_>
oh ok, hmm.
<jhass>
_blizzy_: no further constraints?
ponga has joined #ruby
<_blizzy_>
jhass, no
<_blizzy_>
as long as they total to 100
<weaksauce>
reactormonk nope. i used it for a referral system so something like imgur's randoms but for deals
<_blizzy_>
well, they have to be positive
<apeiros_>
100.quo(n)
enebo has quit [Quit: enebo]
<reactormonk>
weaksauce, ah nice
<apeiros_>
[100.quo(n)]*n actually
<reactormonk>
apeiros_, quo?
Apocalypse has quit [Quit: Input/Output Error]
frem has quit [Remote host closed the connection]
<apeiros_>
reactormonk: returns a rational
reinaldob has quit [Read error: Connection reset by peer]
reinaldob has joined #ruby
<reactormonk>
apeiros_, ah. nice idea.
<jhass>
if you need integers 100/n and +1 the last one if uneven
<_blizzy_>
hmm, I should of said that they should be random
roshanavand has quit [Ping timeout: 252 seconds]
<_blizzy_>
and not the same
<_blizzy_>
weird how easy that is, apeiros_, thxs
Cadillactica has joined #ruby
aerth is now known as aerth_
<apeiros_>
_blizzy_: that's the part about "any other constraints?"
<_blizzy_>
apeiros_, yeah, sorry. c:
<apeiros_>
but tbh, I'm surprised you even respond to follow up questions. that's new.
<_blizzy_>
>.>
n80 has joined #ruby
<_blizzy_>
as Frozen says
<_blizzy_>
"the past is in the past"
<apeiros_>
also I remember having told you how to do this like weeks ago.
hiyosi has joined #ruby
<_blizzy_>
I don't remember asking this question
<_blizzy_>
this is an entirely new question.
<Cadillactica>
trying to get a firmer grasp of bitwise operations. can someone explain how this: “Given an array of numbers, except for one number all the others, occur twice. Give an algorithm to find that number which occurs only once in the array” is solved by this: http://stackoverflow.com/a/1090013/4064439
<reactormonk>
apeiros_, time for some IRC logs?
<apeiros_>
I doubt somebody else asked precisely the same question
dru has joined #ruby
<Eiam>
_blizzy_: the channel is logged fyi =p
ponga has quit [Ping timeout: 244 seconds]
Sawbones has quit []
<_blizzy_>
Eiam, thanks.
<_blizzy_>
then go ahead, I haven't asked this before.
jottr_ has quit [Ping timeout: 245 seconds]
<_blizzy_>
other than today.
<reactormonk>
I have currently accumulated 230M of IRC logs.
<jhass>
apeiros_: isn't that the point of big data?
<_blizzy_>
*person.
<apeiros_>
jhass: not really, no
<jhass>
throw tons of computing power at it so you don't need to search efficient solutions anymore?
<apeiros_>
the point of big data is finding meaningful information within a large set of data you collected
blackmesa has joined #ruby
<apeiros_>
(or bought)
<apeiros_>
jhass: that's called brute forcing
<jhass>
yeah that's the proper term
<jhass>
buzz words were new terms for their proper equivalents, no?
<apeiros_>
hm, no idea whether "another term exists already" is a requirement for something to be a buzz word
ghr has quit [Ping timeout: 256 seconds]
<jhass>
there's probably more than one way for one to be born
<kaleido>
big data doesnt necessarily need tons of computing power tho
<kaleido>
its generally run on commodity hardware
<jhass>
neither does the cloud
<kaleido>
well, unless you meant all of that commodity hardware
commmmodo has joined #ruby
<apeiros_>
kaleido: IMO if it's run on commodity hardware, it's probably not big data.
<kaleido>
at this point all i can think is, "i love cascade hops"
momomomomo_ has joined #ruby
<jhass>
it's too easy to troll with buzz words :P
momomomomo has quit [Ping timeout: 252 seconds]
momomomomo_ is now known as momomomomo
<kaleido>
apeiros_, eh, facebook published their specs a while back. id ay they have a lot of data
shellfu is now known as shellfu_afk
<apeiros_>
then again - 10y ago, crunching through 100GB of data would probably qualify as "big data". whereas today it's probably more in the 100GB to Petabyte range.
aamador has quit [Ping timeout: 252 seconds]
reinaldob has quit [Remote host closed the connection]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros_>
kaleido: ok, I'll rephrase: if you run it on massive amounts of commodity hardware, it might still be big data.
<havenwood>
I vote `group_by(&:itself).map(&:last).find(&:one?).first` and just throw a bunch of hardware at it :P
<apeiros_>
given that many problems can be processed map-reduce style or in other ways be parallelized.
Arnie25 has joined #ruby
Dolphi has joined #ruby
last_staff has quit [Quit: last_staff]
teddyp1cker has joined #ruby
deol has joined #ruby
<apeiros_>
"more in the 100GB to Petabyte" - should have been TB, not GB
<havenwood>
JRuby has it nicely purring with 4 cores, now I just need more cores.
<_blizzy_>
you can never have enough cores.
WhereIsMySpoon_ is now known as WhereIsMySpoon
<Arnie25>
hey guys, does anybody have any experience with google_drive gem? it got a tad confusing. It used to be straight foward, I just logged in with user/pass and was able to write to a spreadsheet. Now I need to open a URL in order to retrieve an authorization code? then I get auth_token which I need to re-new every hour or so? Is there an easier way?
<_blizzy_>
also, thanks for the help everyone.
WhereIsMySpoon has quit [Changing host]
WhereIsMySpoon has joined #ruby
<havenwood>
760%, heh HyperThreading
<havenwood>
Go JRuby!
JoshGlzBrk has joined #ruby
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Dolphi has quit [Client Quit]
l3ck has quit [Quit: Bye!]
zotherstupidguy has quit [Remote host closed the connection]
zotherstupidguy has joined #ruby
<apeiros_>
~23ms for n=3 and m=100 here with the naive solution. so if it's not performance critical and numbers are small, it's probably viable.
neonalpine has quit [Remote host closed the connection]