ShekharReddy has quit [Quit: Connection closed for inactivity]
mtkd has joined #ruby
careta has joined #ruby
jnyw has quit [Quit: WeeChat 2.0.1]
ramfjord has joined #ruby
sameerynho has joined #ruby
guille-moe has joined #ruby
<al2o3-cr>
suprisingly String#unpack1('Z*') is significantly faster the String#delete("\x00")
Drakevr has quit [Changing host]
Drakevr has joined #ruby
a_duck has joined #ruby
<apeiros>
unpack only deletes from the end, though, no?
<al2o3-cr>
let me check, i'm not sure
<apeiros>
eh, depending on your use case, even worse, it'll truncate your string after the first null byte
<apeiros>
or more correctly, before the first null byte :) (since the null byte is removed too)
<al2o3-cr>
yeah, just figured that now
<al2o3-cr>
:(
<apeiros>
so I guess no wonder it's faster ;-)
<al2o3-cr>
pretty nifty if null bytes on the right hand side :P
sameerynho has quit [Ping timeout: 248 seconds]
elphe has quit [Quit: Lost terminal]
jerryskye has joined #ruby
rahul_bajaj has joined #ruby
gregf_ has joined #ruby
marr has quit [Ping timeout: 240 seconds]
Serpent7776 has joined #ruby
jamiejackson has joined #ruby
bronson has joined #ruby
lytol has joined #ruby
rabajaj has quit [Ping timeout: 268 seconds]
cdg has joined #ruby
cdg has quit [Read error: Connection reset by peer]
cdg_ has joined #ruby
bronson has quit [Ping timeout: 268 seconds]
<apeiros>
al2o3-cr: not sure I follow?
<al2o3-cr>
eg "foo\x00\x00\x00\x00\x00\x00\x00"
cdg has joined #ruby
Ltem has joined #ruby
<apeiros>
yeah, I think that's the point. plenty of formats null-pad data
cdg_ has quit [Ping timeout: 246 seconds]
<al2o3-cr>
aye
Ltem has quit [Client Quit]
cdg_ has joined #ruby
Beams has joined #ruby
tomphp has joined #ruby
cdg has quit [Ping timeout: 276 seconds]
AX3L has quit [Remote host closed the connection]
cdg has joined #ruby
GodFather has quit [Read error: Connection reset by peer]
GodFather has joined #ruby
AxelAlex has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tipyn has joined #ruby
cdg_ has quit [Ping timeout: 276 seconds]
cdg_ has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg has quit [Ping timeout: 276 seconds]
tipyn has quit [Ping timeout: 248 seconds]
rabajaj has joined #ruby
rahul_bajaj has quit [Ping timeout: 256 seconds]
cdg_ has quit [Ping timeout: 276 seconds]
bkxd has joined #ruby
<apeiros>
al2o3-cr: e.g. if you have a format which says "5 null-padded fields, first field is 10 bytes, second 20 bytes, the other three 8 bytes", then you can just do: fields = binary_data.unpack("Z10Z20Z8Z8Z8") and it'll do "the right thing"™
bkxd_ has joined #ruby
bkxd_ has quit [Max SendQ exceeded]
jtdoncas_ has quit [Ping timeout: 264 seconds]
bkxd_ has joined #ruby
<apeiros>
gotta disco, laters!
bkxd has quit [Ping timeout: 268 seconds]
thejamespinto has quit [Ping timeout: 268 seconds]
jenrzzz has quit [Ping timeout: 265 seconds]
tomphp has joined #ruby
xfbs has joined #ruby
<al2o3-cr>
o/
apeiros has quit [Ping timeout: 255 seconds]
tomphp has quit [Client Quit]
Vapez_ has joined #ruby
Cavallari has joined #ruby
xuyuheng has quit [Ping timeout: 240 seconds]
ldnunes has joined #ruby
chmuri has quit [Excess Flood]
za1b1tsu has quit [Read error: Connection reset by peer]
chmurifree has joined #ruby
za1b1tsu has joined #ruby
xuyuheng has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
jenrzzz has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
<dminuoso>
adaedra: did you catch my message yesterday?
tipyn has joined #ruby
<dminuoso>
I dont know whether we have some "tell" command and you didn't seem to respond, so.. =)
sundhell is now known as sundhell_away
careta has quit [Ping timeout: 264 seconds]
tipyn has quit [Ping timeout: 256 seconds]
<adaedra>
no
jenrzzz has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<dminuoso>
adaedra: I was asking you to upgrade `derpy to 2.5 whenever you found the time. :)
<adaedra>
I'll try
* dminuoso
sends adaedra a space cookie
tomphp has joined #ruby
mtkd has quit [Ping timeout: 268 seconds]
yohji has quit [Ping timeout: 276 seconds]
kiltzman has joined #ruby
kiltzman has quit [Max SendQ exceeded]
tomphp has quit [Client Quit]
hfp_work has quit [Quit: bye]
kiltzman has joined #ruby
kiltzman has quit [Max SendQ exceeded]
kiltzman has joined #ruby
kiltzman has quit [Max SendQ exceeded]
stormpack has joined #ruby
jaruga has joined #ruby
kiltzman has joined #ruby
kiltzman has quit [Max SendQ exceeded]
hfp_work has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
baroquebobcat has quit [Remote host closed the connection]
Vapez_ has quit [Ping timeout: 240 seconds]
careta has joined #ruby
jenrzzz has joined #ruby
tomphp has joined #ruby
ldnunes has quit [Read error: Connection reset by peer]
tomphp has quit [Client Quit]
apeiros has joined #ruby
ldnunes has joined #ruby
yohji has joined #ruby
darkhanb has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
raynold has quit [Quit: Connection closed for inactivity]
kryptoz has joined #ruby
cdg has joined #ruby
jenrzzz has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kurko_ has joined #ruby
cdg has quit [Ping timeout: 276 seconds]
plexigras has joined #ruby
tomphp has joined #ruby
bkxd_ has joined #ruby
tcopeland has quit [Quit: tcopeland]
tomphp has quit [Client Quit]
bkxd has quit [Ping timeout: 268 seconds]
bronson has joined #ruby
marr has joined #ruby
cdg has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
cdg has quit [Ping timeout: 255 seconds]
cdg has joined #ruby
dogweather has quit [Remote host closed the connection]
kurko_ has quit [Ping timeout: 246 seconds]
alfiemax has quit [Remote host closed the connection]
dogweather has joined #ruby
cdg_ has joined #ruby
stormpack has left #ruby ["Leaving"]
cdg has quit [Ping timeout: 276 seconds]
ldnunes has quit [Read error: Connection reset by peer]
ldnunes has joined #ruby
kryptoz has quit [Remote host closed the connection]
jaruga has quit [Ping timeout: 268 seconds]
qba73 has joined #ruby
alfiemax has joined #ruby
cdg has joined #ruby
cdg_ has quit [Ping timeout: 276 seconds]
Mia has quit [Ping timeout: 264 seconds]
stormpack has joined #ruby
tipyn has joined #ruby
huyderman has joined #ruby
AJA4350 has joined #ruby
cdg has quit [Ping timeout: 276 seconds]
tipyn has quit [Ping timeout: 276 seconds]
thejamespinto has joined #ruby
mtkd has joined #ruby
tvw has joined #ruby
alfiemax has quit [Remote host closed the connection]
howdoi has joined #ruby
bkxd_ has quit []
dogweather has quit [Ping timeout: 248 seconds]
jaruga has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
jenrzzz has quit [Ping timeout: 268 seconds]
kapil___ has joined #ruby
thejamespinto has quit [Ping timeout: 264 seconds]
Vapez_ has joined #ruby
zigzig has quit [Remote host closed the connection]
jenrzzz has joined #ruby
alfiemax has joined #ruby
alfiemax has quit [Remote host closed the connection]
LastWhisper____ has joined #ruby
zigzig has joined #ruby
imode has quit [Ping timeout: 276 seconds]
jenrzzz has quit [Ping timeout: 255 seconds]
Vapez_ has quit [Remote host closed the connection]
dogweather has joined #ruby
Mia has quit [Ping timeout: 256 seconds]
Vapez has joined #ruby
jenrzzz has joined #ruby
Psybur has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
claudiuinberlin has joined #ruby
tomphp has joined #ruby
tomphp has quit [Client Quit]
jamiejackson has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 268 seconds]
workmad3 has joined #ruby
Ltem has joined #ruby
nadir has joined #ruby
jenrzzz has joined #ruby
xuyuheng has quit [Ping timeout: 256 seconds]
workmad3 has quit [Ping timeout: 264 seconds]
minimalism has quit [Quit: minimalism]
vondruch_ has joined #ruby
nowhereman_ has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 268 seconds]
<malwar3hun73r>
when running rake assets:precompile, i get the error "LoadError: incompatible library version - /var/www/.../vendor/bundle/ruby/2.3.0/gems/mysql2-0.4.4/lib/mysql2/mysql2.so"
<malwar3hun73r>
any ideas on how to resolve this
alfiemax has joined #ruby
vondruch has quit [Ping timeout: 265 seconds]
vondruch_ is now known as vondruch
<malwar3hun73r>
i recently updated ubuntu from 14 to 16 if that helps
tipyn has joined #ruby
<apeiros>
malwar3hun73r: do you use a Gemfile?
<apeiros>
ah
qba73 has quit [Ping timeout: 268 seconds]
<apeiros>
no, this means that you need to recompile the mysql gem
<malwar3hun73r>
apeiros, i've done that
<malwar3hun73r>
i've also uninstalled and reinstalled
<apeiros>
not sure anymore how to best do that, I'd try uninstalling & reinstalling it
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
quobo has joined #ruby
dogweather has joined #ruby
jerryskye has quit [Client Quit]
jerryskye has joined #ruby
jenrzzz has joined #ruby
jerryskye has quit [Client Quit]
huddy has joined #ruby
jerryskye has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
Cavallari has quit [Quit: Cavallari]
jerryskye has quit [Client Quit]
jerryskye has joined #ruby
jerryskye has quit [Client Quit]
jerryskye has joined #ruby
k0mpa has joined #ruby
arne has quit [Ping timeout: 248 seconds]
jerryskye has quit [Client Quit]
arne has joined #ruby
qba73 has joined #ruby
jerryskye has joined #ruby
aScottishBoat has joined #ruby
yohji has joined #ruby
qba73_ has joined #ruby
kryptoz has joined #ruby
goldleader has joined #ruby
goldleader has quit [Client Quit]
qba73 has quit [Read error: Connection reset by peer]
tcopeland has joined #ruby
xfbs has joined #ruby
aupadhye has quit [Quit: Leaving]
dogweather has quit [Ping timeout: 240 seconds]
dogweather has joined #ruby
kryptoz has quit [Ping timeout: 256 seconds]
tipyn has joined #ruby
xuyuheng has quit [Quit: Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 240 seconds]
Klumben has joined #ruby
RougeT430 has joined #ruby
Tempesta has quit [Read error: Connection reset by peer]
ta_ has quit [Read error: Connection reset by peer]
rwb has joined #ruby
amatas_ has joined #ruby
Tempesta has joined #ruby
Tempesta has joined #ruby
Tempesta has quit [Changing host]
jenrzzz has joined #ruby
ta_ has joined #ruby
fumk has quit [Read error: Connection reset by peer]
tipyn has quit [Ping timeout: 260 seconds]
fumk has joined #ruby
amatas_ has quit [Remote host closed the connection]
amatas_ has joined #ruby
vondruch_ has joined #ruby
vondruch has quit [Ping timeout: 248 seconds]
TomyWork has quit [Remote host closed the connection]
dviola has joined #ruby
DLSteve_ has joined #ruby
dogweather has quit [Read error: Connection timed out]
thejamespinto has joined #ruby
qba73_ has quit [Remote host closed the connection]
rubycoder37 has joined #ruby
dionysus69 has joined #ruby
qba73 has joined #ruby
rubycoder37 has left #ruby [#ruby]
mikkelsen has joined #ruby
shorberg_ has joined #ruby
mikkelsen has quit [Remote host closed the connection]
mikkelsen has joined #ruby
shorberg_ is now known as shorberg
shorberg has quit [Ping timeout: 248 seconds]
dogweather has joined #ruby
BTRE has quit [Ping timeout: 268 seconds]
aScottishBoat has quit [Ping timeout: 255 seconds]
mikkelsen has quit [Read error: Connection reset by peer]
aScottishBoat has joined #ruby
arne has quit [Ping timeout: 240 seconds]
jeffreylevesque has joined #ruby
arne has joined #ruby
aScottishBoat has quit [Ping timeout: 256 seconds]
TomyLobo has joined #ruby
nopoliti1 has quit [Quit: WeeChat 1.9]
sepp2k has joined #ruby
jobewan has joined #ruby
cdg has quit [Remote host closed the connection]
dogweather has quit [Ping timeout: 248 seconds]
chavdardimitrov has joined #ruby
oleo has joined #ruby
thejamespinto has quit [Ping timeout: 265 seconds]
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
dogweather has joined #ruby
workmad3 has joined #ruby
rrutkowski has quit [Quit: rrutkowski]
aScottishBoat has joined #ruby
BTRE has joined #ruby
dogweather has quit [Ping timeout: 268 seconds]
lightstalker has joined #ruby
tipyn has joined #ruby
zapata has quit [Quit: WeeChat 2.0.1]
cpruitt has joined #ruby
nowhereman_ has quit [Read error: Connection reset by peer]
nowhereman_ has joined #ruby
workmad3 has quit [Ping timeout: 248 seconds]
AxelAlex has quit [Quit: AxelAlex]
<tcopeland>
dminuoso: (continuing from yesterday) true, static analysis could find that case - I am more aiming for trying to explore runtime analysis for code improvements
shinnya has quit [Ping timeout: 255 seconds]
rippa has joined #ruby
moei has joined #ruby
marr has quit [Remote host closed the connection]
zapata has joined #ruby
Burgestrand has quit [Quit: Closing time!]
tomphp has joined #ruby
kryptoz has joined #ruby
Psybur__ has joined #ruby
tomphp has quit [Client Quit]
Rapture has joined #ruby
Psybur_ has quit [Ping timeout: 246 seconds]
cpruitt has quit [Remote host closed the connection]
kryptoz has quit [Ping timeout: 264 seconds]
kryptoz has joined #ruby
pastorinni has joined #ruby
cpruitt has joined #ruby
dogweather has joined #ruby
impermanence has joined #ruby
<impermanence>
How can I grab a .deb or .dpkg or whatever is used in debian, not install it, but still be able to compare it to another installation?
<impermanence>
of the same package?
workmad3 has joined #ruby
<apeiros>
impermanence: wrong channel?
<impermanence>
apeiros: bah. guess my client defaults to Ruby. apologies.
dogweather has quit [Ping timeout: 248 seconds]
vondruch_ is now known as vondruch
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
consti has joined #ruby
jrafanie has joined #ruby
dogweather has joined #ruby
stormpack has quit [Quit: Leaving]
<apeiros>
impermanence: it's terrible! you interrupted dozens of very engaged discussions! and now all fell silent! terrible I tell you! ;-)
impermanence has quit [Ping timeout: 248 seconds]
hays has joined #ruby
hays has joined #ruby
hays has quit [Changing host]
dinfuehr has quit [Ping timeout: 256 seconds]
<hays>
I found found myself in the unfortunate situation of using syslog/logger and needing compatibility with 1.9.x Ruby. Anyone know of a way to backport this easily?
dogweather has quit [Ping timeout: 240 seconds]
<apeiros>
hays: huh? 1.9 does not have syslog?
<hays>
it doesnt have the syslog logger
<apeiros>
if it's pure ruby, just copy it over? :D
<hays>
this is great--now I just need to figure out how to install 1.9.x on my mac to test it haha
John_Ivan has quit [Read error: Connection reset by peer]
synthroi_ has joined #ruby
xuyuheng has joined #ruby
<al2o3-cr>
hays: why don't you use syslog.
lcarlson has joined #ruby
<hays>
I am using syslog.
<hays>
or maybe I don't understand your suggestion
synthroi_ has quit [Read error: Connection reset by peer]
synthro__ has joined #ruby
ta_ has quit [Remote host closed the connection]
zapata has quit [Quit: WeeChat 2.0.1]
<al2o3-cr>
maybe it's me that doesn't understand =P
ta_ has joined #ruby
synthroid has quit [Ping timeout: 276 seconds]
<hays>
Oh. OK. Well I think we found a solution. I was assuming I had 2.x everywhere I needed, and used a feature of syslog that was introduced in the 2.x series. Its a logger interface to syslog (require 'syslog/logger').
workmad3 has quit [Ping timeout: 246 seconds]
<hays>
So aperios helped me find the source code to logger.rb and it looks pretty straightforward. Also I found a backports gem that might help
xuyuheng has quit [Client Quit]
<apeiros>
?tabnick hays
<ruby[bot]>
hays: pro-tip - use tab completion for nicks. avoids typos in nicks.
<hays>
sorry, apeiros
bronson has joined #ruby
Vapez has quit [Ping timeout: 255 seconds]
raynold has joined #ruby
ta_ has quit [Ping timeout: 264 seconds]
<hays>
anyone here use a mac? trying to determine best way to get an old unsupported ruby. Right now I use ruby-install and chruby to manage my rubies
zapata has joined #ruby
<apeiros>
I still use rvm, despite all the nay-sayers
zapata has quit [Client Quit]
cpruitt has quit [Remote host closed the connection]
<apeiros>
still mainly because it's what I started with and never really had a problem with it
dogweather has quit [Ping timeout: 268 seconds]
<WA9ACE>
happy rbenv user checking in
<hays>
yeah, it does seem that rvm would do this
<hays>
I am showing my age but I am way behind on understanding the subtleties and differences between these methods
<apeiros>
it might be that rvm uses ruby-installer to install ruby. at least I remember that they intended to do that.
bronson has quit [Ping timeout: 256 seconds]
dogweather has joined #ruby
<hays>
ruby-install doesn't seem to have kept a 1.9.x branch
<hays>
ooh, I found something.
thejamespinto has joined #ruby
<hays>
its a bit manual, but you can navigate to https://cache.ruby-lang.org/pub/ruby/ and find the tarball, and then pass that into ruby-install. seems like that might work. building right now
<hays>
ruby-install ruby 1.9.3-p551 seems to have worked.
Vapez has joined #ruby
nowhereman_ has quit [Read error: Connection reset by peer]
cpruitt has joined #ruby
dogweather has quit [Ping timeout: 240 seconds]
nowhereman_ has joined #ruby
cdg has joined #ruby
hays has quit [Read error: Connection reset by peer]
hays has joined #ruby
dogweather has joined #ruby
conta has quit [Ping timeout: 276 seconds]
alfiemax has quit [Remote host closed the connection]
nowhereman_ has quit [Ping timeout: 256 seconds]
nowhereman_ has joined #ruby
Vapez has quit [Read error: Connection reset by peer]
dogweather has quit [Ping timeout: 255 seconds]
jobewan has quit [Quit: jobewan]
dogweather has joined #ruby
mtkd has quit [Ping timeout: 264 seconds]
justicef_ is now known as justicefries
mtkd has joined #ruby
quobo has quit [Quit: Connection closed for inactivity]
alfiemax has joined #ruby
synthro__ has quit [Remote host closed the connection]
apeiros has quit []
nowhere_man has joined #ruby
nowhereman_ has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 248 seconds]
jenrzzz has joined #ruby
quobo has joined #ruby
Psybur__ is now known as Psybur
Psybur has quit [Changing host]
Psybur has joined #ruby
dogweather has quit [Ping timeout: 248 seconds]
zipace has quit [Ping timeout: 255 seconds]
dogweather has joined #ruby
synthroid has joined #ruby
qba73 has quit [Ping timeout: 248 seconds]
aufi has quit [Quit: Leaving]
dogweather has quit [Ping timeout: 260 seconds]
shorberg has joined #ruby
John_Ivan has joined #ruby
John_Ivan has joined #ruby
John_Ivan has quit [Changing host]
dogweather has joined #ruby
oleo has quit [Ping timeout: 276 seconds]
desperek has joined #ruby
dankeast has quit [Ping timeout: 240 seconds]
k0mpa has quit [Ping timeout: 255 seconds]
John_Ivan has quit [Read error: Connection reset by peer]
axsuul has quit [Ping timeout: 268 seconds]
nertzy has quit [Quit: Leaving]
chavdardimitrov has quit [Quit: This computer has gone to sleep]
jenrzzz has quit [Ping timeout: 248 seconds]
cdg_ has joined #ruby
jenrzzz has joined #ruby
alfiemax has quit [Remote host closed the connection]
miskatonic has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
Ltem has quit [Quit: Leaving]
thejamespinto has quit [Ping timeout: 260 seconds]
hays has quit [Remote host closed the connection]
eric_hill has left #ruby ["Leaving"]
darkhanb has quit [Ping timeout: 264 seconds]
dogweather has quit [Ping timeout: 256 seconds]
apeiros_ has joined #ruby
<nchambers>
if I wanted to dynamically load a folder of ruby files at runtime (without knowing their names in advance, eg for a plugin system), and call a module function in each of them (something like Plugin::onload), how would I do that?
cdg has joined #ruby
cdg has quit [Read error: Connection reset by peer]
wald0 has joined #ruby
cdg has joined #ruby
Hanmac_ has quit [Ping timeout: 260 seconds]
impermanence has quit [Ping timeout: 268 seconds]
sergio_101 has quit [Remote host closed the connection]
alfiemax has quit [Remote host closed the connection]
Serpent7776 has quit [Quit: Leaving]
<apeiros_>
nchambers: filenames are not linked to constants defined in them. so you either have a convention (filename <-> constant name mapping) or a registry
apeiros_ is now known as apeiros
thejamespinto has joined #ruby
<apeiros>
registry itself can be either explicit like `class MyPlugin; end; Plugins.register(MyPlugin)` or implicit, e.g. `class MyPlugin < Plugin::Abstract` (self.inherited), `class Plugins::MyPlugin` (const_added)
cpruitt has quit [Remote host closed the connection]
s2013 has joined #ruby
dankeast has joined #ruby
alfiemax has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
xfbs has quit []
jenrzzz has joined #ruby
alfiemax has quit [Read error: Connection reset by peer]
alfiemax has joined #ruby
conta has joined #ruby
cpruitt has joined #ruby
dankeast has quit [Ping timeout: 248 seconds]
marr has joined #ruby
workmad3 has joined #ruby
alfiemax_ has joined #ruby
conta has quit [Remote host closed the connection]
imode has joined #ruby
alfiemax has quit [Ping timeout: 260 seconds]
Beams has quit [Quit: .]
qba73 has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
ldnunes has quit [Ping timeout: 260 seconds]
workmad3 has quit [Ping timeout: 264 seconds]
bronson has joined #ruby
cpruitt has quit [Ping timeout: 268 seconds]
yohji has quit [Remote host closed the connection]
wald0 has quit [Quit: Lost terminal]
Dimik has joined #ruby
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
bronson has quit [Ping timeout: 264 seconds]
qba73 has quit [Remote host closed the connection]
John_Ivan has quit [Read error: Connection reset by peer]
qba73 has joined #ruby
cpruitt has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
Vapez has joined #ruby
dogweather has quit [Ping timeout: 264 seconds]
guille-moe has quit [Ping timeout: 248 seconds]
cpruitt has quit [Client Quit]
ldnunes has joined #ruby
dogweather has joined #ruby
<nchambers>
apeiros: so I've got the plugin system working, but I want register to add it to an array of callbacks to be called later. how can I append the callbacks to the array without calling them?
<nchambers>
since: @@callbacks << callback # appears to execute callback
<apeiros>
?code nchambers
<ruby[bot]>
nchambers: We can't help you without your code, please post it to https://gist.github.com
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #ruby
dogweather has quit [Ping timeout: 252 seconds]
jenrzzz has quit [Ping timeout: 252 seconds]
marxarelli has joined #ruby
qba73 has quit [Ping timeout: 240 seconds]
tipyn has quit [Remote host closed the connection]
tipyn has joined #ruby
dogweather has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
rrichardsr3 has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oleo has joined #ruby
<apeiros>
nchambers: slightly occupied here. well get back at you asap.
tomphp has joined #ruby
<nchambers>
ok no worries
tipyn has quit [Ping timeout: 252 seconds]
eckhardt has joined #ruby
<nchambers>
its not like this needs to be ready by tomorrow
tomphp has quit [Client Quit]
jenrzzz has quit [Ping timeout: 240 seconds]
<apeiros>
nchambers: well, if you have a method named callback for all plugins, then you don't need to register the callback method ;-)
<apeiros>
you just use `registered_plugin.send(:callback)` at the time when you want to invoke it
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
dstrunk has joined #ruby
jenrzzz has joined #ruby
<havenwood>
nchambers: If you have no state, use a Module. If you have a single instance of state, use a Singleton Class. If you have multiple instances of state, use a Class.
<nchambers>
apeiros: that was just an example. in the actual app the callbacks will have different names
<nchambers>
havenwood: ok I'll switch it to a module
apeiros has quit [Remote host closed the connection]
alfiemax_ has quit [Read error: Connection reset by peer]
eckhardt has quit [Ping timeout: 256 seconds]
apeiros has joined #ruby
naprimer2 has joined #ruby
alfiemax has joined #ruby
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
LastWhisper____ has joined #ruby
s3nd1v0g1us has joined #ruby
jenrzzz has joined #ruby
s3nd1v0g1us has quit [Max SendQ exceeded]
apeiros__ has joined #ruby
s3nd1v0g1us has joined #ruby
s3nd1v0g1us has quit [Max SendQ exceeded]
s3nd1v0g1us has joined #ruby
dogweather has quit [Ping timeout: 264 seconds]
s3nd1v0g1us has quit [Max SendQ exceeded]
s3nd1v0g1us has joined #ruby
milardov_ has joined #ruby
s3nd1v0g1us has quit [Max SendQ exceeded]
ledestin has joined #ruby
apeiros has quit [Ping timeout: 248 seconds]
milardovich has quit [Ping timeout: 240 seconds]
pastorinni has joined #ruby
rubycoder38 has joined #ruby
dreamthese has quit [Remote host closed the connection]
dreamthese has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
<rubycoder38>
crossposting from #rubyonrails
<rubycoder38>
I have this api where I'm supposed to use the courses data: https://api.eadbox.com/ and I have to import this data to my database but I'm not sure how to do that only for the new records, the api only allows me to fetch results per page
<rubycoder38>
importing everything all the time while preventing duplicates would be bad for performance
jenrzzz has joined #ruby
<guacamole>
rubycoder38 could you use #find_or_create_by?
<guacamole>
or do something that caches the results and can diff them to see if there's a change/new record?
nowhere_man has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
seraphim5B has joined #ruby
rrichardsr3 has quit [Remote host closed the connection]
jamesaxl has quit [Quit: WeeChat 2.0.1]
KeyJoo has joined #ruby
seraphim5B has quit [Remote host closed the connection]
rrichardsr3 has joined #ruby
<rubycoder38>
I'm not sure, this is for a job interview, but the HR person is being too ambiguous, she refuses to give me more information
<rubycoder38>
I googled one of the candidate's code, I found it on github, he made a twitter bot, that's not even 10% of what I would have done
<rubycoder38>
pisses me off, I tell ya
<guacamole>
its probably part of the test
tipyn has joined #ruby
plexigras has quit [Ping timeout: 256 seconds]
<guacamole>
to see how you deal with ambiguity, just document any assumptions you're making and should be fine
<rubycoder38>
I need to create tweets of their data
<guacamole>
and if its not... you don't want to work their anyways
<guacamole>
there
<guacamole>
did they give you examples of the data?
jtdoncas_ has joined #ruby
<rubycoder38>
create a tweet of their last courses
<rubycoder38>
I've been getting frustrated all day with this
ramfjord has quit [Ping timeout: 264 seconds]
<guacamole>
can you filter the results by date?
<guacamole>
when you get them from the api?
jottr_ has joined #ruby
<rubycoder38>
yes
<guacamole>
and only check for new ones within the date range
jenrzzz has joined #ruby
<rubycoder38>
I have examples of the data, yeah
<guacamole>
do you have the tweeting part done? or is there an area you can focus on with more solid requirements?
<rubycoder38>
I didn't write anything yet, but that part sounds simple
<guacamole>
if you can get it to tweet you can tweak the other parts later... might be good for motivation to accomplish a task :)
ramfjord has joined #ruby
<rubycoder38>
yeah, I'll do it!
<rubycoder38>
thanks guacamole
<guacamole>
good luck!
dogweather has joined #ruby
<rubycoder38>
ty
<guacamole>
you got this!!
tipyn has quit [Ping timeout: 256 seconds]
dogweather has quit [Ping timeout: 248 seconds]
jenrzzz has quit [Ping timeout: 268 seconds]
dogweather has joined #ruby
sammi`_ has joined #ruby
RougeT430 has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
_zach has joined #ruby
rrichardsr3 has quit [Quit: Apparantly my attempt to stay awake has failed...]
pastorinni has quit [Remote host closed the connection]
synthroid has quit [Remote host closed the connection]
rubycoder38 has quit [Quit: Lost terminal]
hays has quit [Remote host closed the connection]
sammi` has quit [Quit: Lost terminal]
justinfaler has joined #ruby
jaruga has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
dogweather has quit [Ping timeout: 264 seconds]
milardov_ has quit [Ping timeout: 260 seconds]
rrutkowski has joined #ruby
LocaMocha has quit [Ping timeout: 246 seconds]
dogweather has joined #ruby
workmad3 has joined #ruby
synthroid has joined #ruby
alfiemax has quit [Remote host closed the connection]
cdg_ has quit [Read error: Connection reset by peer]
cdg_ has joined #ruby
cdg has quit [Ping timeout: 268 seconds]
blackmesa has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
blackmesa has quit [Client Quit]
John_Ivan has quit [Ping timeout: 240 seconds]
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
mtkd has quit [Ping timeout: 248 seconds]
marxarelli|afk is now known as marxarelli
mtkd has joined #ruby
dogweather has joined #ruby
bmurt has joined #ruby
alfiemax_ has quit [Ping timeout: 240 seconds]
s2013 has quit [Read error: Connection reset by peer]
rwb has joined #ruby
dogweather has quit [Ping timeout: 260 seconds]
alfiemax has joined #ruby
guardianx has joined #ruby
<hays>
is loading a gem with : gem 'my_gem', '>=1.2' deprecated or old-fashioned in any way? I just havent seen this before and want to make sure im not relying on something that is going to be cut
dogweather has joined #ruby
<apeiros>
it isn't loading. was never. it's activating. and unless you have a reason to, you should never have done it.
<apeiros>
and it's old-fashioned in that nowadays having a Gemfile is what you do and that makes activating superfluous anyway.
guardianx has quit []
<apeiros>
re what's activating - if you have multiple versions of a gem installed, it makes sure that a require will use a gem satisfying the version requirement you specify in the activation.
<apeiros>
e.g. `gem 'foo', '=1.0'; require 'foo'` and you have 1.0 and 1.1 installed, would without the `gem` call load 1.1. with, it loads 1.0
alfiemax has quit [Remote host closed the connection]
dogweather has quit [Ping timeout: 240 seconds]
anisha has joined #ruby
orbyt_ has joined #ruby
drakko has joined #ruby
alfiemax has joined #ruby
jottr_ has joined #ruby
desperek has quit [Ping timeout: 264 seconds]
shinnya has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
<hays>
apeiros: I'm in a bit of a weird situation. I am writing a script that will be deployed, but customer doesn't want this script in a gem, they want it to be in a file that they can 'easily see'
<hays>
so I am trying to figure out how to do some sort of check when they are using this script that they don't have an older version of the gem loaded than is supported
<apeiros>
that'd indeed be the rare case where manual activation is correct
<hays>
yeah. its weird. well hopefully ruby keeps it in there
alfiemax has quit [Ping timeout: 248 seconds]
<hays>
i originally had this in a gem, with spec.executables
<apeiros>
content of the script: require 'myscriptasagem'; run_stuff_from_gem :-p
<hays>
haha
troys is now known as troys_
<hays>
we might get there. or at least require 'myscriptasagem'; set_some_configuration; run_stuff_from_gem