<RickHull>
is there some cmp_delta method for floats and ints?
<RickHull>
float.close_to?(int, delta)
<apeiros>
told you
<apeiros>
also told you how to go about it
<apeiros>
and no, there's no built-in delta comparison. mostly because the delta in delta comparisons is case sensitive. there's no silver-bullet delta value.
alnewkirk has quit [Ping timeout: 260 seconds]
<RickHull>
it's pretty annoying to have to confirm a straightforward result with the inverse operation
<apeiros>
(float - cmp).abs < DELTA
<RickHull>
ugly, hax, whatever
<apeiros>
uh, deal with it :-p
<apeiros>
it may be annoying, but it's robust.
<RickHull>
it's not a feature, IMHO
<apeiros>
and robust >>>> a lot of "nice/beautiful/clever" things
<apeiros>
but do tell if you find a more beautiful while similarly robust way
<apeiros>
also, exp is much less expensive than log
<apeiros>
and if you care about cost, do a divide loop
jackjackdripper has joined #ruby
<RickHull>
yeah, I thought about that
<apeiros>
rather, a divmod loop
Technodrome has joined #ruby
<RickHull>
or if exp is cheap, just brute force it, heh
<elomatreb>
Does it make sense to care about speed of operations like that in ruby?
<apeiros>
if you ever have nonzero mod part, it's not exponentiable (is that a word)?
<RickHull>
elomatreb: only in a navel-gazing way
<apeiros>
elomatreb: as with all things, context dependent
<apeiros>
but in all likeliness, Math.log will be faster than a divmod loop
mtkd has quit [Ping timeout: 240 seconds]
<apeiros>
for the simple reason of method call overhead being quite expensive in ruby
mson has joined #ruby
<RickHull>
i am prioritizing cleanliness of expression, where confirming with the inverse is not clean
<apeiros>
but if you care about speed, this kind of thing is at least relatively simple to translate into a C ext
<RickHull>
but correctness uber alles
alnewkirk has joined #ruby
quobo has quit [Quit: Connection closed for inactivity]
mtkd has joined #ruby
<apeiros>
btw., what are you actually trying to solve?
<RickHull>
kind of embarrassing. i want to print a binary tree, breadth first, with the root node in the first line
<RickHull>
like, display it in a tree shape, not just visit the nodes
Quentinius has joined #ruby
<RickHull>
it's much harder than I anticipated, though not conceptually difficult
<RickHull>
given e.g. width 80, the first line should be like 35 spaces and then the root val
mtkd has quit [Ping timeout: 240 seconds]
<RickHull>
i don't care too much about 35 vs 40 even
<RickHull>
pretty dang fast on my vagrant VM. 12k assertions, 250k a/s
darkmorph has quit [Ping timeout: 264 seconds]
John___ has quit [Read error: Connection reset by peer]
DTZUZO has quit [Read error: No route to host]
govg has joined #ruby
dopie has joined #ruby
goyox86 has quit [Ping timeout: 240 seconds]
govg has quit [Ping timeout: 248 seconds]
konsolebox has quit [Ping timeout: 246 seconds]
guacamole has quit [Quit: My face has gone to sleep. ZZZzzz…]
d^sh has quit [Ping timeout: 248 seconds]
alnewkirk has quit [Ping timeout: 260 seconds]
d^sh has joined #ruby
swat2 has joined #ruby
kculpis has quit [Quit: Leaving]
bkxd has quit [Ping timeout: 248 seconds]
alnewkirk has joined #ruby
<swat2>
salutations all... I'm wondering what the best way would be to write a function that has to pull a heap of rows out of a MSSQL database that has images stored, to save them as a physical image on the system with the image_id as it's filename. The data size could be quite large - maybe too big to fit in memory but constantly re-querying the database for each row appears to be slow and cumbersome.
guacamole has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
Freshnuts has joined #ruby
PaulCapestany has quit [Read error: Connection reset by peer]
<RickHull>
images -- you mean a binary blob that represents the file contents of e.g. a photo?
<swat2>
RickHull: yes, precisely.
Yzguy has joined #ruby
<RickHull>
it depends greatly on MSSQL and how you have it set up, I think
<elomatreb>
I suspect there may be a way to tell the DB to dump the file directly
<RickHull>
yeah, probably the most efficient would be some kind of internal stored proc
<swat2>
mmm problem is ... MSSQL is on one server, and where the result needs to be stored is far far away.
Yzguy has quit [Client Quit]
<RickHull>
assuming you want to write files on the db server
<RickHull>
if you are transferring binary blobs over the network, then that's probably the bottleneck
<RickHull>
not the db
<swat2>
even simulated in a LAN environment w/ 10G uplinks, it's slow.
<RickHull>
if you're IO bound, due to the simple magnitude of bits on the wire, it won't matter much how you get them
alnewkirk has quit [Ping timeout: 260 seconds]
<RickHull>
you might try the stored proc approach, write say 100 files to the db filesystem
<elomatreb>
Naive way to deal with the fits-in-memory problem would be to page the result (LIMIT+OFFSET) into chunks that do fit
<elomatreb>
(btw)
<RickHull>
then upload those files to S3 or whatever, possibly transferring them off the db first if nec
<swat2>
mmm
<swat2>
maybe I need to tackle it the other way around like you suggest, extract the data to local, then scp/ftp/<insert file transfer operation here> to the remote server
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<elomatreb>
That seems like a sane choice, remote database connections in general are somewhat of codesmell usually
<RickHull>
if you are IO bound, you'll want to be careful about saturating the db's network
<swat2>
RickHull: Thankfully the dbserver has two nics - one facing their internal environment and the dedicated to the remote environment
<swat2>
i've load tested the network and dont believe it's the bottleneck in this case.
Kug3lis is now known as Kug3lis_off
alnewkirk has joined #ruby
<swat2>
it seems to be the delay in doing constant select queries and it having to wait for the result only then to be written out to disc
<swat2>
*disk
Kug3lis_off is now known as Kug3lis
<swat2>
i guess i could try to batch it aswell
PaulCape_ has joined #ruby
<RickHull>
who is the selector?
<elomatreb>
Doing it locally, paged/batched, and doing the upload to the remote separately seems like the best choice
<RickHull>
some client box? or client on the db machine?
<RickHull>
or -- the stored proc ;)
<elomatreb>
(seperately as in parallel/async)
bkxd has joined #ruby
<swat2>
the far end is the selector, that is, the ruby code on the remote is pulling the data.
<RickHull>
yeah, don't do that
<RickHull>
get the bits onto the filesystem, with your actor as close to the db as possible
<RickHull>
stored proc, ideally, but i know that can be a royal pain
<RickHull>
or something like that
<elomatreb>
Is this a recurring operation, or just a one-off script? Because this seems like a complicated and fragile design, if it's recurring
Technodrome has joined #ruby
apparition has joined #ruby
alnewkirk has quit [Ping timeout: 260 seconds]
<swat2>
recurring. its a Sync script from a ERP type system to a ecommerce product.
<swat2>
doing it for a friend, because clearly I'm too nice for my own good.
<RickHull>
gotta run, stranger things season 2 :)
guacamole has quit [Quit: My face has gone to sleep. ZZZzzz…]
<swat2>
heh, enjoy :)
<swat2>
elomatreb: the DB is the "source of truth" and the code overwrites the local copies if changed/new
<elomatreb>
This seems to get into database replication territory, which is a really old and difficult problem
<swat2>
its more like a database translation
<swat2>
its going from MSSQL to MySQL
<apeiros>
swat2: in case nobody mentioned it so far - don't forget to segment the ID to build a directory tree
<swat2>
apeiros: already done :)
<apeiros>
couple of file systems deal badly with more than a couple of thousand files in one level
<apeiros>
ok :)
<swat2>
hehe yeah i'm aware of that ole' chestnut
Immune has joined #ruby
<swat2>
max 1000 items per folder
<swat2>
hah, that just gave me an idea
<swat2>
write out locally, rsync it up
<swat2>
cheers all
jottr has joined #ruby
jottr has quit [Ping timeout: 258 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mtkd has quit [Ping timeout: 240 seconds]
jxv has joined #ruby
gizmore|2 has joined #ruby
Azure|dc has joined #ruby
gizmore has quit [Ping timeout: 240 seconds]
Azure has quit [Ping timeout: 260 seconds]
guacamole has joined #ruby
pilne has quit [Remote host closed the connection]
alex`` has joined #ruby
charliesome has quit [Ping timeout: 240 seconds]
Dimik has joined #ruby
Azure|dc has quit [Read error: Connection reset by peer]
beerich has joined #ruby
_whitelogger has joined #ruby
Azure has joined #ruby
milardov_ has quit [Remote host closed the connection]
eightlimbed has quit [Ping timeout: 240 seconds]
nofxx has quit [Read error: Connection reset by peer]
nofxx has joined #ruby
Azure has quit [Read error: Connection reset by peer]
Technodrome has joined #ruby
charliesome has joined #ruby
bruce_lee has quit [Ping timeout: 240 seconds]
bruce_lee has joined #ruby
charliesome_ has joined #ruby
Asher has quit [Quit: Leaving.]
charliesome has quit [Ping timeout: 248 seconds]
cdg has joined #ruby
arescorpio has quit [Quit: Leaving.]
charliesome has joined #ruby
milardovich has joined #ruby
cdg has quit [Ping timeout: 246 seconds]
charliesome__ has joined #ruby
eightlimbed has joined #ruby
charliesome_ has quit [Ping timeout: 248 seconds]
workmad3_ has joined #ruby
charliesome has quit [Ping timeout: 248 seconds]
milardovich has quit [Ping timeout: 248 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
ss_much has quit [Quit: Connection closed for inactivity]
Azure has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
govg has joined #ruby
eightlimbed has quit [Ping timeout: 258 seconds]
milardovich has joined #ruby
sucks has joined #ruby
Kug3lis is now known as Kug3lis_off
Kug3lis_off is now known as Kug3lis
darkmorph has joined #ruby
mim1k has joined #ruby
sucks has quit [Ping timeout: 248 seconds]
nofxx has quit [Remote host closed the connection]
nofxx has joined #ruby
sucks has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has quit [Ping timeout: 248 seconds]
SuperL4g has joined #ruby
charliesome has joined #ruby
jphase has joined #ruby
SuperLag has quit [Ping timeout: 252 seconds]
charliesome__ has quit [Ping timeout: 248 seconds]
[[thufir]] has quit [Remote host closed the connection]
SuperLag has joined #ruby
jphase has quit [Ping timeout: 252 seconds]
SuperL4g has quit [Ping timeout: 240 seconds]
eckhardt has joined #ruby
mjolnird has joined #ruby
shinnya has joined #ruby
darkmorph has quit [Ping timeout: 264 seconds]
sucks_ has joined #ruby
sucks_ has quit [Remote host closed the connection]
sucks_ has joined #ruby
blackbaba has joined #ruby
eightlimbed has joined #ruby
sucks has quit [Read error: Connection reset by peer]
gix has quit [Ping timeout: 240 seconds]
sucks_ has quit [Remote host closed the connection]
memo1 has quit [Ping timeout: 248 seconds]
jottr has joined #ruby
uZiel has joined #ruby
[[thufir]] has joined #ruby
gix has joined #ruby
Kug3lis is now known as Kug3lis_off
eightlimbed has quit [Ping timeout: 248 seconds]
jottr has quit [Ping timeout: 240 seconds]
Kug3lis_off is now known as Kug3lis
Kug3lis is now known as Kug3lis_off
millz has quit [Read error: Connection reset by peer]
memo1 has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dviola has quit [Quit: WeeChat 1.9.1]
eightlimbed has joined #ruby
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jxv has joined #ruby
milardovich has quit [Ping timeout: 260 seconds]
levifig has quit [Quit: Farewell]
jxv has quit [Ping timeout: 258 seconds]
levifig has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
dopie has quit [Ping timeout: 248 seconds]
apparition has quit [Quit: Bye]
memo1 has quit [Ping timeout: 260 seconds]
eightlimbed has quit [Ping timeout: 248 seconds]
uZiel has quit [Ping timeout: 248 seconds]
milardovich has joined #ruby
bkxd has joined #ruby
milardovich has quit [Ping timeout: 260 seconds]
agent_white has quit [Quit: brb]
milardovich has joined #ruby
eightlimbed has joined #ruby
Immune has quit [Ping timeout: 248 seconds]
milardovich has quit [Ping timeout: 248 seconds]
bkxd has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
Kug3lis_off has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
[[thufir]] has quit [Remote host closed the connection]
mim1k has joined #ruby
mson has quit [Quit: Connection closed for inactivity]
uZiel has joined #ruby
DTZUZO has joined #ruby
nopoliti1 has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
_whitelogger has joined #ruby
milardovich has quit [Ping timeout: 248 seconds]
blackbaba has left #ruby ["Closing Window"]
cam27 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eightlimbed has quit [Ping timeout: 240 seconds]
armyriad has quit [Ping timeout: 240 seconds]
cschneid_ has quit [Remote host closed the connection]
milardovich has joined #ruby
apparition has joined #ruby
milardovich has quit [Ping timeout: 248 seconds]
eightlimbed has joined #ruby
jottr has joined #ruby
Xiti has quit [Quit: Xiti]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
michael1 has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
eightlimbed has quit [Ping timeout: 248 seconds]
uZiel has quit [Ping timeout: 248 seconds]
konsolebox has joined #ruby
lacour has quit [Quit: Leaving]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
apeiros has quit [Ping timeout: 258 seconds]
Hexafox[I] has joined #ruby
oetjenj has joined #ruby
rippa has joined #ruby
cdg has joined #ruby
cdg has quit [Ping timeout: 258 seconds]
guacamole has quit [Quit: My face has gone to sleep. ZZZzzz…]
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg has joined #ruby
milardovich has joined #ruby
postmodern has quit [Quit: Leaving]
Puffball has quit [Remote host closed the connection]
guacamole has joined #ruby
cdg has quit [Ping timeout: 246 seconds]
JsilveR has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
kapil___ has joined #ruby
milardovich has joined #ruby
banisterfiend has joined #ruby
banisterfiend has quit [Client Quit]
mim1k has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
enterprisey has quit [Remote host closed the connection]
mim1k has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
JsilveR has quit [Quit: WeeChat 2.0-dev]
grumbler has joined #ruby
<grumbler>
Is there a chan on here that deals with rouge?
cdg has quit [Ping timeout: 240 seconds]
milardovich has quit [Ping timeout: 248 seconds]
JsilveR has joined #ruby
JsilveR has quit [Client Quit]
enterprisey has joined #ruby
JsilveR has joined #ruby
JsilveR has quit [Client Quit]
JsilveR has joined #ruby
grumbler has left #ruby [#ruby]
mtkd has joined #ruby
Ltem has joined #ruby
banisterfiend has joined #ruby
cschneid_ has joined #ruby
charliesome has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
cschneid_ has quit [Ping timeout: 258 seconds]
uZiel has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has joined #ruby
milardovich has joined #ruby
guacamole has quit [Quit: My face has gone to sleep. ZZZzzz…]
claudiuinberlin has joined #ruby
jottr has quit [Ping timeout: 255 seconds]
dinfuehr has quit [Ping timeout: 248 seconds]
gr33n7007h has joined #ruby
milardovich has quit [Ping timeout: 260 seconds]
yqt has joined #ruby
dinfuehr has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
gr33n7007h is now known as al2o3-cr
uZiel has quit [Ping timeout: 240 seconds]
VladGh has joined #ruby
VladGh_ has quit [Ping timeout: 240 seconds]
Defenestrate has joined #ruby
Defenestrate has quit [Changing host]
Defenestrate has joined #ruby
mikecmpbll has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
Dimik has quit [Ping timeout: 248 seconds]
milardovich has quit [Ping timeout: 240 seconds]
yabbes has joined #ruby
ju5t has left #ruby [#ruby]
cam27 has quit [Quit: cam27]
FahmeF_ has joined #ruby
bkxd has joined #ruby
FahmeF has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 246 seconds]
apeiros has joined #ruby
FahmeF has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
FahmeF_ has quit [Ping timeout: 240 seconds]
ludova_ has joined #ruby
ludova has quit [Ping timeout: 240 seconds]
apeiros has quit [Ping timeout: 240 seconds]
uZiel has joined #ruby
remix2000 has quit [Quit: WeeChat 1.6]
remix2000 has joined #ruby
alex`` has quit [Quit: WeeChat 1.9.1]
Freshnuts has quit [Quit: Leaving]
biberu has joined #ruby
Defenestrate has quit [Quit: Leaving]
uZiel has quit [Ping timeout: 248 seconds]
uZiel has joined #ruby
dhollin3 has joined #ruby
dhollinger has quit [Ping timeout: 240 seconds]
quobo has joined #ruby
mim1k has joined #ruby
enterprisey has quit [Remote host closed the connection]
mim1k has quit [Ping timeout: 248 seconds]
zapata has quit [Ping timeout: 246 seconds]
nadir has joined #ruby
zautomata has quit [Ping timeout: 240 seconds]
apeiros has joined #ruby
zautomata has joined #ruby
yabbes has quit [Ping timeout: 248 seconds]
jottr has joined #ruby
imode has quit [Ping timeout: 252 seconds]
zapata has joined #ruby
cschneid_ has joined #ruby
php_newbile has joined #ruby
r3QuiEm_cL has joined #ruby
zautomata has quit [Ping timeout: 260 seconds]
yabbes has joined #ruby
<php_newbile>
Hello I'm trying to figure out what happens when a global variable it's defined inside a function, until I call the function the variable it's empty but referencing it does not give error, after function call it's defined but also assigned within a value, am I right? "But why the defined? ()"function gives empty string before function call and "global-variable" after?
cschneid_ has quit [Ping timeout: 258 seconds]
uZiel has quit [Ping timeout: 248 seconds]
uZiel has joined #ruby
charliesome has joined #ruby
jpedro73 has joined #ruby
milardovich has joined #ruby
<jpedro73>
hi!
<apeiros>
php_newbile: globals auto-vivify with nil
<apeiros>
so they can be undefined but still safely used
<jpedro73>
i'm a very newbie guy, i need help for installing visual rubby
<php_newbile>
yes but it's defined or not? before function invocation?
<jpedro73>
can you help me
uZiel has quit [Ping timeout: 248 seconds]
Qommand0r has quit [Quit: WeeChat 1.9.1]
<apeiros>
it's not defined until first assignment or read
InfinityFye has joined #ruby
r3QuiEm_cL has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has quit [Ping timeout: 252 seconds]
SCHAPiE has quit [Read error: Connection reset by peer]
r3QuiEm_cL has joined #ruby
guacamole has joined #ruby
r3QuiEm_cL has quit [Client Quit]
yqt has quit [Ping timeout: 240 seconds]
RickHull has quit [Ping timeout: 260 seconds]
alfiemax has joined #ruby
michael1 has quit [Ping timeout: 240 seconds]
jpedro73 has quit [Read error: Connection reset by peer]
jpedro73 has joined #ruby
php_newbile has quit [Quit: Page closed]
SCHAPiE has joined #ruby
dionysus69 has joined #ruby
<jpedro73>
someone can help me installing visual ruby? Install Glade for gtk3
oleo has quit [Read error: Connection reset by peer]
mim1k has joined #ruby
[[thufir]] has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
jpedro73 has quit [Read error: Connection reset by peer]
Psybur has joined #ruby
oleo has joined #ruby
jpedro73 has joined #ruby
jpedro73 has left #ruby [#ruby]
bkxd has joined #ruby
banisterfiend has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
apeiros has quit [Remote host closed the connection]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JsilveR has joined #ruby
guacamole has quit [Quit: My face has gone to sleep. ZZZzzz…]
apeiros has joined #ruby
alfiemax has quit [Remote host closed the connection]
banisterfiend has joined #ruby
milardovich has quit [Remote host closed the connection]
charliesome has joined #ruby
tomphp has joined #ruby
selim has quit [Ping timeout: 252 seconds]
Puffball has joined #ruby
jottr has joined #ruby
selim has joined #ruby
InfinityFye has quit [Ping timeout: 240 seconds]
Psybur has quit [Ping timeout: 248 seconds]
InfinityFye has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
zautomata has joined #ruby
milardovich has joined #ruby
quobo has quit [Quit: Connection closed for inactivity]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dionysus69 has quit [Ping timeout: 240 seconds]
raynold has quit [Quit: Connection closed for inactivity]
milardovich has quit [Ping timeout: 246 seconds]
apeiros has quit [Remote host closed the connection]
troulouliou_dev has joined #ruby
zautomata has quit [Ping timeout: 258 seconds]
cdg has joined #ruby
zautomata has joined #ruby
_aeris_ has quit [Ping timeout: 248 seconds]
cdg has quit [Ping timeout: 252 seconds]
_aeris_ has joined #ruby
oddDball has joined #ruby
salih_ has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<salih_>
hi
vee__ has quit [Ping timeout: 240 seconds]
<salih_>
i have actimodel serializer question is there correct place?
<oddDball>
Is it OT to ask about a specific Ruby gem? I'm hoping to get some tips for speeding up prawn. 17 seconds for 20 pages (no PNGs, headers, footers, etc.) seems quite slow.
<oddDball>
salih_: #rubyonrails would probably be better
tomphp has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michael1 has joined #ruby
vee__ has joined #ruby
salih_ has left #ruby [#ruby]
ldepandis has joined #ruby
Technodrome has joined #ruby
apeiros has joined #ruby
banisterfiend has quit [Ping timeout: 248 seconds]
dionysus69 has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Hexafox[I] has quit [Ping timeout: 248 seconds]
[[thufir]] has quit [Remote host closed the connection]
dkam_ has quit [Quit: Be back later ...]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
beerich has quit []
oddDball has quit [Quit: Page closed]
jphase has joined #ruby
bkxd has joined #ruby
GodFather has joined #ruby
apeiros has quit [Remote host closed the connection]
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
shinnya has quit [Ping timeout: 248 seconds]
oded has joined #ruby
paranoicsan has joined #ruby
paranoicsan has quit [Client Quit]
michael1 has quit [Ping timeout: 246 seconds]
nowhereman has joined #ruby
cdg has joined #ruby
quobo has joined #ruby
cdg_ has joined #ruby
cdg has quit [Ping timeout: 252 seconds]
Psybur has joined #ruby
oleo2 has joined #ruby
happyface has joined #ruby
TvL2386 has joined #ruby
TvL2386_ has quit [Ping timeout: 258 seconds]
jphase has quit [Remote host closed the connection]
michael1 has joined #ruby
tomphp has joined #ruby
oleo2 has quit [Ping timeout: 246 seconds]
milardovich has joined #ruby
milardov_ has joined #ruby
dopie has joined #ruby
alfiemax has joined #ruby
milardovich has quit [Ping timeout: 248 seconds]
alfiemax_ has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has quit [Ping timeout: 248 seconds]
|ifei5good has quit [Read error: Connection reset by peer]
jpedro73 has joined #ruby
|ifei5g00d has joined #ruby
<jpedro73>
Hi!
tomphp has joined #ruby
hdeshev has joined #ruby
<jpedro73>
someone portuguese?
John___ has joined #ruby
DLSteve has joined #ruby
michael1 has quit [Ping timeout: 258 seconds]
sagax has quit [Quit: Konversation terminated!]
dopie has quit [Ping timeout: 240 seconds]
ozzloy has quit [Ping timeout: 240 seconds]
faces has quit [Ping timeout: 255 seconds]
JsilveR has quit [Quit: WeeChat 2.0-dev]
JsilveR has joined #ruby
JsilveR has quit [Client Quit]
JsilveR has joined #ruby
halt- has quit [Ping timeout: 248 seconds]
jpedro73 has quit []
dopie has joined #ruby
cschneid_ has joined #ruby
JsilveR has quit [Client Quit]
JsilveR has joined #ruby
JsilveR has quit [Client Quit]
JsilveR has joined #ruby
cschneid_ has quit [Ping timeout: 258 seconds]
JsilveR has quit [Client Quit]
JsilveR has joined #ruby
InfinityFye has quit [Ping timeout: 240 seconds]
alfiemax_ has quit [Remote host closed the connection]
SCHAPiE has quit [Read error: Connection reset by peer]
dopie has quit [Ping timeout: 258 seconds]
darkmorph has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
apparition has quit [Quit: Bye]
SCHAPiE has joined #ruby
ozzloy has joined #ruby
ozzloy has quit [Changing host]
ozzloy has joined #ruby
michael1 has joined #ruby
darkmorph has quit [Ping timeout: 240 seconds]
uZiel has joined #ruby
Technodrome has joined #ruby
InfinityFye has joined #ruby
ryzokuken has joined #ruby
JsilveR has quit [Quit: WeeChat 2.0-dev]
pilne has joined #ruby
xmiah1406 has joined #ruby
xmiah1406 has quit [Client Quit]
xmiah1406 has joined #ruby
InfinityFye has quit [Ping timeout: 248 seconds]
InfinityFye has joined #ruby
xmiah1406 has quit [Client Quit]
JsilverT has joined #ruby
uZiel has quit [Ping timeout: 260 seconds]
michael1 has quit [Ping timeout: 260 seconds]
JsilverT has quit [Quit: WeeChat 2.0-dev]
JsilverT has joined #ruby
InfinityFye has quit [Quit: Leaving]
tevio has joined #ruby
JsilverT has quit [Client Quit]
apeiros has joined #ruby
sucks has joined #ruby
JsilverT has joined #ruby
JsilverT has quit [Client Quit]
JsilverT has joined #ruby
tevio has quit [Quit: Leaving]
hdeshev has left #ruby ["PONG :verne.freenode.net"]
dionysus69 has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
memo1 has joined #ruby
hgost has joined #ruby
Mon_Ouie has joined #ruby
JsilverT has quit [Quit: WeeChat 2.0-dev]
JsilverT has joined #ruby
uZiel has joined #ruby
mikhael_k33hl has quit [Quit: Page closed]
milardov_ has quit [Remote host closed the connection]
JsilverT has quit [Quit: WeeChat 2.0-dev]
happyface has quit [Quit: Connection closed for inactivity]
JsilverT has joined #ruby
michael1 has joined #ruby
mahlon_ has quit [Ping timeout: 240 seconds]
mahlon_ has joined #ruby
sucks has quit [Quit: Leaving]
sucks has joined #ruby
s2013 has joined #ruby
cdg_ has quit [Remote host closed the connection]
nowhereman has quit [Read error: Connection reset by peer]
sucks has quit [Read error: Connection reset by peer]
sucks has joined #ruby
halt has joined #ruby
halt is now known as Guest31297
Dandi has joined #ruby
<Dandi>
hi you all
<Dandi>
i starting today to learn ruby
Dandi has left #ruby [#ruby]
darkmorph has joined #ruby
nowhereman has joined #ruby
nopolitica has joined #ruby
nopoliti1 has quit [Ping timeout: 240 seconds]
aiguuu has joined #ruby
nowhereman has quit [Read error: Connection reset by peer]
gigetoo has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
gigetoo has joined #ruby
orbyt_ has joined #ruby
nowhereman has joined #ruby
FahmeF has quit [Ping timeout: 248 seconds]
ledestin has joined #ruby
memo1 has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
govg has quit [Ping timeout: 240 seconds]
conta has joined #ruby
FahmeF has joined #ruby
mson has joined #ruby
nopolitica has quit [Quit: WeeChat 1.9]
Xiti has joined #ruby
thinkpad has quit [Ping timeout: 260 seconds]
cschneid_ has joined #ruby
shinnya has joined #ruby
cdg has quit [Remote host closed the connection]
cschneid_ has quit [Ping timeout: 246 seconds]
cdg has joined #ruby
kacper has joined #ruby
kacper_ has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
cdg has quit [Ping timeout: 252 seconds]
troys has joined #ruby
cam27 has joined #ruby
kculpis has joined #ruby
shinnya has quit [Ping timeout: 248 seconds]
zautomata has quit [Quit: WeeChat 1.7]
michael1 has quit [Ping timeout: 248 seconds]
|ifei5g00d has quit [Ping timeout: 240 seconds]
nofxx has quit [Quit: Leaving]
nofxx has joined #ruby
chouhoulis has joined #ruby
conta has quit [Ping timeout: 248 seconds]
zautomata has joined #ruby
JsilverT has quit [Quit: WeeChat 2.0-dev]
michael1 has joined #ruby
Psybur has quit [Ping timeout: 240 seconds]
Mon_Ouie has quit [Ping timeout: 246 seconds]
sucks has quit [Remote host closed the connection]
michael1 has quit [Ping timeout: 240 seconds]
michael1 has joined #ruby
michael1 has quit [Ping timeout: 240 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
apeiros has quit [Ping timeout: 260 seconds]
darkmorph has quit [Ping timeout: 255 seconds]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
jamesaxl has quit [Read error: Connection reset by peer]
cdg has joined #ruby
<dminuoso>
That was a short endeavour.
apeiros_ has joined #ruby
eightlimbed has joined #ruby
jamesaxl has joined #ruby
apeiros_ is now known as apeiros
uZiel has quit [Ping timeout: 240 seconds]
benlieb has joined #ruby
tomphp has joined #ruby
dopie has joined #ruby
DTZUZO has quit [Read error: Connection reset by peer]
michael1 has joined #ruby
tomphp has quit [Read error: Connection reset by peer]
tomphp has joined #ruby
goyox86 has joined #ruby
nikhgupta has joined #ruby
mjolnird has quit [Quit: Leaving]
<nikhgupta>
hey. Any library that allows end-users to add dynamic conditionals in a form? e.g. `a` > 2 AND `b` < 4 (user is able to provide a, b, 2, 4, AND via form)?
conta has joined #ruby
<dminuoso>
What is "a form" ?
<dminuoso>
Are you talking about Ruby on Rails?
<nikhgupta>
yeah, Rails is the underlying framework. But, I am not being specific here.
<dminuoso>
?rails nikhgupta
<ruby[bot]>
nikhgupta: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<nikhgupta>
Ok. I will check there once.
Technodrome has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
jottr has joined #ruby
moei has joined #ruby
michael1 has quit [Ping timeout: 264 seconds]
benjen has quit [Ping timeout: 260 seconds]
michael1 has joined #ruby
raynold has joined #ruby
RickHull has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dcluna has quit [Ping timeout: 252 seconds]
govg has joined #ruby
dcluna has joined #ruby
troys is now known as troys_
minimalism has joined #ruby
jrabe has quit [Ping timeout: 264 seconds]
uZiel has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
workmad3_ has quit [Ping timeout: 248 seconds]
jrabe has joined #ruby
alex`` has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<lamduh>
The part I am struggling with is that if the background jobs are being run on the same machine how does that lessen the performance load on the box?
<mikecmpbll>
lamduh : it doesn't. what gave you that impression? :)
<lamduh>
Or is the primary benefit just to allow the method to be nonblocking and you don't actually net a benefit.
<mikecmpbll>
plus the background jobs can be run anywhere.
<mikecmpbll>
and everywhere
<lamduh>
mikecmpbll, yeah I was about to follow up with that. Cool, so understanding it correctly I would rather use bunny or some other message broker that offloads the processing to another server if I wanted to get a performance gain?
<mikecmpbll>
see above.
<lamduh>
yeah think you are confirming what I said
<mikecmpbll>
no, you're suggesting that sidekiq workers have to run on the "same machine" (as something, the web app? idk)
cam27 has quit [Quit: cam27]
<lamduh>
so you do get a performance gain on the main web app because you send the jobs to another machine with a web request
<mikecmpbll>
you can do. if that's what you choose to do.
<lamduh>
the only difference between bunny and sidekiq then would be you dont have the overhead of a message queue
<lamduh>
sure
<mikecmpbll>
sidekiq uses redis to store jobs
<mikecmpbll>
i don't know much about bunny, but i'm sure the overheads are similar.
zautomata has quit [Ping timeout: 240 seconds]
<RickHull>
lamduh: sidekiq is for when you have "background jobs" -- it's not a performance enhancement if your problem doesn't look like this
<RickHull>
lamduh: for example, visit a web page that kicks off a million emails
<RickHull>
the web visitor doesn't want to wait for all the email sends to be acknowledged
<lamduh>
right...I get that just trying to understand the difference between a message queueing solution with rabbitmq or the redis based solution with sidekiq
<lamduh>
although it seems like redis would just be acting like a message queue
uZiel has quit [Ping timeout: 248 seconds]
<RickHull>
sidekiq is more about making choices about how this whole thing is managed
<dminuoso>
lamduh: rabbitmq is something different again..
<dminuoso>
sidekiq is basically a redis based job queue
<RickHull>
you can't compare it to a general "queue solution with rabbitmq" unless you define what that is
<dminuoso>
rabbitmq is a message broker
<dminuoso>
Its like comparing quantum physics to a salat.
<lamduh>
okay there is no way sending messages to redis to be consumed by worker processes on a different server is an entierly different thing than sending messages to rabbitmq to be consumed by workers on a different server
zautomata has joined #ruby
<RickHull>
at the highest level, you can make an equivalency
<dminuoso>
lamduh: Sure you can do that with sidekiq.
<RickHull>
the devil is in the details
<dminuoso>
lamduh: just set up the workers to run on a separate system.
Yxhvd has joined #ruby
<lamduh>
sounds good thanks
<dminuoso>
but its not "messages" that are consumed, its job tasks that are executed.
<dminuoso>
(repeatedly if necessary)
swills_ has joined #ruby
<dminuoso>
if you dont have job semantics ("run this task tomorrow"), you probably dont need sidekiq
jsrtr_ has joined #ruby
admwrd_ has joined #ruby
chihhsin_ has joined #ruby
Hien_ has joined #ruby
milardovich has joined #ruby
<lamduh>
ah okay so that is a bit different...setting a time to run it than just consuming things isntantly off a queue...if you had rabbitmq you would proably consume the message and schedule the job separately
sneep_ has joined #ruby
nyuszika7h has quit [Disconnected by services]
wnd_ has joined #ruby
<lamduh>
I was just talking to a friend that works at a big ruby startup yesterday and he brought up that they used sidekiq instead of bunny, but couldn't explain to me why
<lamduh>
thnaks
<dminuoso>
lamduh: well sidekiq can also run stuff immediately if need be of course.
<lamduh>
yeah I figured as much.
<dminuoso>
but whether it actually does so depends on other tasks that are in the queue and availability of workers
<lamduh>
just unsure if rabbitmq would ahve delayed execution built in
<dminuoso>
its basically a job processing engine
<dminuoso>
lamduh: you cannot compare these two, they are different things entirely
<RickHull>
rabbitmq could be a component of what sidekiq does
nyuszika7h_ has joined #ruby
zautomata has quit [Ping timeout: 240 seconds]
<dminuoso>
lamduh: rabbitmq has async communication. but its still something else.
milardovich has quit [Remote host closed the connection]
SuperChickeNES has joined #ruby
hr3f has joined #ruby
jsrn_ has joined #ruby
<lamduh>
yeah async communication through message passing...but I think you are saying sidekiq is a job queue and rabbitmq is just a general broker for async communication that could be used to build a job scheduler.
x0f_ has joined #ruby
tnsi has joined #ruby
\13k_ has joined #ruby
<RickHull>
pretty much
<lamduh>
thanls
<lamduh>
*thanks
rileyy_ has joined #ruby
Zarthus_ has joined #ruby
Elysia has joined #ruby
rx has joined #ruby
cosimo_ has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
alfiemax has quit [Ping timeout: 248 seconds]
kitallisii has joined #ruby
reu_ has joined #ruby
bmurt has joined #ruby
larissa_ has joined #ruby
<RickHull>
just noticed something funny with rake
claw has quit [Ping timeout: 255 seconds]
<RickHull>
rake some_dir (in CWD)
<RickHull>
it's a NOOP basically but doesn't complain about unknown task
<RickHull>
is rake supposed to consider the dirs in CWD as legit targets?
spectra_ has joined #ruby
cosimo_ has joined #ruby
<RickHull>
rake /tmp # what's the expected behavior?
tomphp has quit [Read error: Connection reset by peer]
<ruby[bot]>
elomatreb: # => "xopoh-fedac-fenyh-nehon-mopel-nivor-lumiz-rypon-gyfot-cosyz-rimez-lolyv-pekyz-rosud-ricob-surac-tox ...check link for more (https://eval.in/893473)
tomphp has joined #ruby
<RickHull>
ah, cool
<RickHull>
it's interesting that Digest::MD5 only "shows up" in that file. I doubt that's actually the case
konsolebox has quit [Ping timeout: 240 seconds]
<elomatreb>
Yeah that's probably just rdoc being wonky
jdawgaz has joined #ruby
<RickHull>
no ruby infrastructure can escape my eye of sauron