havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.2, 2.3.5 & 2.2.8: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
ivanskie has quit [Read error: Connection reset by peer]
swills_ has quit [Remote host closed the connection]
xtexx has quit [Quit: Mutter: www.mutterirc.com]
[[thufir]] has quit [Ping timeout: 240 seconds]
swills_ has joined #ruby
swills_ has quit [Client Quit]
<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
<apeiros> better name welcome ;-)
<apeiros> uh, ok, so you need this method for formatting?
<RickHull> yeah, and/or general progress through the tree. for example, count all of the children slots at a given level
[[thufir]] has joined #ruby
<RickHull> make sure it's a power of 2, then that can give you the spacing
<RickHull> i could just assume the slot count is a power of 2
mtkd has joined #ruby
<apeiros> power of 2 are numbers with only first bit 1 and all others zero…
cdg has joined #ruby
alnewkirk has quit [Ping timeout: 248 seconds]
<RickHull> bitwise i suppose it's a single 1
<RickHull> how do you know which is the "first bit" ? ;)
<apeiros> with ruby, any non-zero bit is the first bit
charliesome has joined #ruby
<RickHull> e.g.? i've used #pack to look at bits
<RickHull> >> 0b0010
<ruby[bot]> RickHull: # => 2 (https://eval.in/893075)
<apeiros> now pack it
alfiemax has joined #ruby
<apeiros> meh, pack/unpack is unhandy, to_s(2) is easier for this
<RickHull> hang on, i'm workin on it ;)
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros> basically, num.to_s(2) =~ /\A10*\z/
jackjackdripper has quit [Quit: Leaving.]
<apeiros> and yes, that's waaaaaay more expensive :D
<apeiros> at least compared to a C divmod loop
dopie has joined #ruby
<RickHull> to circle back, when I am looking at integers, it's usually on a C-type boundary -- int4, int8, int16
cdg has quit [Ping timeout: 252 seconds]
<RickHull> and there are leading 0s present
alnewkirk has joined #ruby
<apeiros> mhm, and ruby's ints don't have a fixed size
<apeiros> so you either have infinite leading 1's for negative numbers, or a specific number of bits for positive numbers.
<apeiros> and when you pack/unpack you decide on a maximum size
milardov_ has joined #ruby
<RickHull> if you have the bit string, on some byte boundary, you can just count the on bits. on_count == 1
milardovich has quit [Read error: Connection reset by peer]
<RickHull> anyways... point taken :)
<RickHull> though yeah, negative numbers gets into 2s complement right?
eckhardt has joined #ruby
<apeiros> ruby uses 2's complement, that's why infinite leading 1's
<apeiros> that's why -int.to_s(2) gives you "-xxxx"
<apeiros> and pack iirc uses "…1"
alfiemax has quit [Remote host closed the connection]
uZiel has quit [Ping timeout: 248 seconds]
<RickHull> here's the last time I used pack in anger: https://github.com/rickhull/device_input/blob/master/lib/device_input.rb
<RickHull> would you do anything differently?
jenrzzz has quit [Ping timeout: 240 seconds]
Quentinius has quit [Ping timeout: 240 seconds]
alnewkirk has quit [Ping timeout: 248 seconds]
dopie has quit [Ping timeout: 248 seconds]
alnewkirk has joined #ruby
nofxx has joined #ruby
<elomatreb> apeiros: Oh god that regex solution should be illegal
nofxx has quit [Client Quit]
nofxx has joined #ruby
alveric2 has joined #ruby
GodFather has quit [Ping timeout: 258 seconds]
arescorpio has joined #ruby
<apeiros> elomatreb: lol
<apeiros> elomatreb: you know about the regex to determine whether a number is prime? :D
alveric1 has quit [Ping timeout: 260 seconds]
<elomatreb> ...
<elomatreb> Oh god
marr has quit [Ping timeout: 240 seconds]
<apeiros> ^^
alnewkirk has quit [Ping timeout: 255 seconds]
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
<apeiros> RickHull: at a glance - looks sane
<nofxx> isn't that 1 of the 7 million dollar math problems?
<apeiros> huh?
<nofxx> apeiros, kidding about the regex of course, but prime thing is one of them.. let me find
<elomatreb> You mean prime factorization, which is different from telling if a number is prime
alnewkirk has joined #ruby
<nofxx> elomatreb, hm, guess so... apeiros http://www.claymath.org/millennium-problems
lxnr has quit [Quit: WeeChat 1.9.1]
eightlimbed has joined #ruby
<elomatreb> You mean the Riemann one or the P vs. NP one? Because both are sort-of relevant to this
<nofxx> elomatreb, will be P vs NP right?
Dandi has joined #ruby
<RickHull> Led Zeppelin made a song about the last one... D'yer Conject're
<Dandi> helo
<elomatreb> nofxx: For factorization, yes
<elomatreb> hi
<Dandi> can i test ruby scripts using android s.o?
<RickHull> s.o ?
<Dandi> os
alnewkirk has quit [Ping timeout: 240 seconds]
<Dandi> i would like to learn ruby
<millz> bless your soul if you program on an android device
<nofxx> Sistema Operacional in latin based langs, english and preceding adjetives, blergh... =P
<nofxx> Dandi, some kind of chrome laptop thing?
<nofxx> can't install linux on it?
<RickHull> Dandi: yeah, android is not a very friendly dev environment
<RickHull> usually things are developed on a desktop type machine, even if android is the target platform
<Dandi> i will use the computer
<RickHull> I wonder what is the most straightforward way to get e.g. irb on an android device
<Dandi> i work as a website developer but i need to know something of ruby
<nofxx> RickHull, I remember jailbreaking the iphone 2 or 3 just to irb.. never did anything with it
<Dandi> thank you
<RickHull> Dandi: why are you looking at android?
<Dandi> because i am out many times ..... i take the train or bus for a long time
<RickHull> ah
<RickHull> it has a keyboard?
<Dandi> i am from italy..... the train or bus are very sloow
alnewkirk has joined #ruby
enterprisey has joined #ruby
<RickHull> aside: I want to embed a cheap rpi / arm thing in my mechanical keyboard. and use a phone or tablet as a display
<nofxx> RickHull, shut up and take my money... mech keyboard with HDMI out?
<RickHull> sure
<nofxx> good idea, seriously
<RickHull> also would need a li-ion battery
<RickHull> i know android devices also do some wireless display stuff
<Dandi> i seen on telegram an italian Channel to study ruby ...... Little things
<RickHull> the rpi thingie would likely run linux, not android
<nofxx> wouldn't trust that, hm...and you'll need another device problably ( at least to work with common lcd's)
<millz> my boss does code reviews and merge requests on his ipad
<millz> with one of those dinky keyboards attached
<RickHull> on a slow enough bus, i guess you could use a soft keyboard (barf)
<RickHull> RIP ur screen real estate
Dandi has left #ruby [#ruby]
<RickHull> Dandi: I recommend to start with ruby on Linux, OSX, or Windows
<RickHull> and for a train/bus, look into a laptop. chromebook or something running android-like can work, maybe
Emmanuel_Chanel has joined #ruby
<RickHull> it's very painful to develop with a poor keyboard and small, loose display
<RickHull> a laptop can solve these problems
alnewkirk has quit [Ping timeout: 240 seconds]
alnewkirk has joined #ruby
cdg has joined #ruby
Guest74140 is now known as Cyrus
Cyrus has quit [Changing host]
Cyrus has joined #ruby
<RickHull> nofxx: a lot of the arm socs include HDMI, as of several years ago. I haven't paid much attention since
<RickHull> something like google glass for a display would be pimpin
bkxd has joined #ruby
oetjenj has joined #ruby
cdg has quit [Ping timeout: 252 seconds]
alnewkirk has quit [Ping timeout: 248 seconds]
jottr has quit [Ping timeout: 246 seconds]
yqt has quit [Ping timeout: 260 seconds]
alnewkirk has joined #ruby
Technodrome has joined #ruby
jottr has joined #ruby
alnewkirk has quit [Ping timeout: 248 seconds]
memo1 has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
nowhereman has quit [Ping timeout: 246 seconds]
k3rn31 has joined #ruby
dviola has joined #ruby
k3rn31_ has quit [Ping timeout: 255 seconds]
alnewkirk has joined #ruby
parky has joined #ruby
parky has left #ruby [#ruby]
minimalism has quit [Quit: minimalism]
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DTZUZO has joined #ruby
<RickHull> also, my assertion count and assertions/sec went through the roof: https://github.com/rickhull/compsci/blob/master/test/tree.rb#L67
govg has quit [Ping timeout: 248 seconds]
<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…]
bkxd has quit [Ping timeout: 240 seconds]
JsilveR has quit [Ping timeout: 240 seconds]
yqt has joined #ruby
Paraxial has quit [Quit: The Lounge - https://thelounge.github.io]
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…]
shoogz has joined #ruby
Technodrome has joined #ruby
eightlimbed has quit [Ping timeout: 252 seconds]
_sfiguser has quit [Quit: Leaving]
ldepandis has quit [Ping timeout: 240 seconds]
Dimik has joined #ruby
Sammichmaker has quit [Ping timeout: 260 seconds]
tomphp has joined #ruby
JsilverT has joined #ruby
[[thufir]] has joined #ruby
JsilverT has quit [Client Quit]
dhollin3 has quit [Ping timeout: 240 seconds]
guacamole has joined #ruby
TinkerTyper has quit [Ping timeout: 264 seconds]
TinkerTyper has joined #ruby
cam27 has quit [Quit: cam27]
hgost has quit [Quit: Textual IRC Client: www.textualapp.com]
cam27 has joined #ruby
benlieb has quit [Quit: benlieb]
MrBismuth has joined #ruby
MrBusiness3 has quit [Ping timeout: 252 seconds]
conta has quit [Ping timeout: 258 seconds]
nadir has quit [Quit: Connection closed for inactivity]
jrabe has quit [Max SendQ exceeded]
jrabe has joined #ruby
jrabe has quit [Max SendQ exceeded]
jrabe has joined #ruby
jrabe has quit [Max SendQ exceeded]
jrabe has joined #ruby
jrabe has quit [Max SendQ exceeded]
jrabe has joined #ruby
jrabe has quit [Max SendQ exceeded]
dviola has joined #ruby
jrabe has joined #ruby
Freshnuts has joined #ruby
nadir has joined #ruby
jrabe has quit [Max SendQ exceeded]
John___ has quit [Read error: Connection reset by peer]
conta has joined #ruby
alfiemax has joined #ruby
A124 has quit [Read error: No route to host]
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
A124 has joined #ruby
cdg has quit [Ping timeout: 258 seconds]
ryzokuken has quit [Quit: Connection closed for inactivity]
lamduh has joined #ruby
<lamduh> Can someone explain to me how sidekiq provides a performance benefit? https://github.com/mperham/sidekiq/wiki/FAQ
<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]
minimalism has quit [*.net *.split]
raynold has quit [*.net *.split]
swills has quit [*.net *.split]
x0f has quit [*.net *.split]
mostlybadfly has quit [*.net *.split]
jsrtr has quit [*.net *.split]
seitensei has quit [*.net *.split]
Yxhuvud has quit [*.net *.split]
wnd has quit [*.net *.split]
dtcristo has quit [*.net *.split]
M107262[m] has quit [*.net *.split]
Giphy[m] has quit [*.net *.split]
href has quit [*.net *.split]
kitallis has quit [*.net *.split]
Zarthus has quit [*.net *.split]
Hien has quit [*.net *.split]
chihhsin has quit [*.net *.split]
skmp has quit [*.net *.split]
clamstar has quit [*.net *.split]
bathtub_shark has quit [*.net *.split]
reu has quit [*.net *.split]
charles81_ has quit [*.net *.split]
zipkid has quit [*.net *.split]
oblak has quit [*.net *.split]
ewilliam_____ has quit [*.net *.split]
Meow-J has quit [*.net *.split]
deimos has quit [*.net *.split]
jsrn has quit [*.net *.split]
ChickeNES has quit [*.net *.split]
larissa has quit [*.net *.split]
seanh has quit [*.net *.split]
\13k has quit [*.net *.split]
Yonk has quit [*.net *.split]
zautomata has joined #ruby
vayan has quit [*.net *.split]
admwrd has quit [*.net *.split]
craysiii has quit [*.net *.split]
spectra has quit [*.net *.split]
majoh_ has quit [*.net *.split]
sneep has quit [*.net *.split]
rileyy has quit [*.net *.split]
colstrom has quit [*.net *.split]
ReinH has quit [*.net *.split]
jmhmccr has quit [*.net *.split]
schaary has quit [*.net *.split]
hr3f is now known as href
Guest67616 has quit [*.net *.split]
\13k_ is now known as \13k
rx is now known as clamstar
Zarthus_ is now known as Zarthus
kitallisii is now known as kitallis
claw has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
DarkBushido has quit [Ping timeout: 240 seconds]
maxmanders has quit [Ping timeout: 240 seconds]
coderphive has quit [Ping timeout: 260 seconds]
mmasaki has quit [Ping timeout: 260 seconds]
bokayio has quit [Ping timeout: 240 seconds]
iNs has quit [Ping timeout: 240 seconds]
<RickHull> rake /path/to/any/file # expected behavior?
x0f_ has quit [Ping timeout: 240 seconds]
<RickHull> seems pretty odd to me. I get e.g. "** Invoke /tmp/Rakefile (first_time, not_needed)" with --trace
iNs has joined #ruby
c-c has quit [Ping timeout: 260 seconds]
<RickHull> you get the expected error if the file doesn't exist: "Don't know how to build task '/tmp/Rakefile' (see --tasks)" (before I touch'd it)
maxmanders has joined #ruby
bokayio has joined #ruby
mmasaki has joined #ruby
maxmanders is now known as Guest57943
c-c has joined #ruby
c-c is now known as Guest76467
wnd_ is now known as wnd
DarkBushido has joined #ruby
DarkBushido has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
coderphive has joined #ruby
<RickHull> is there any doc or specification for what [targets] are supposed to be? https://ruby.github.io/rake/doc/command_line_usage_rdoc.html
<RickHull> I'm guessing it's thinking of a FileTask in my case?
x0f has joined #ruby
<RickHull> but I don't have any FileTasks in my Rakefile -- seems like a bug or misfeature
alnewkirk has joined #ruby
imode has joined #ruby
cam27 has joined #ruby
chouhoulis has quit []
tomphp has joined #ruby
houhoulis has joined #ruby
ap4y has joined #ruby
houhoulis has quit [Remote host closed the connection]
tomphp_ has joined #ruby
tomphp has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Client Quit]
michael1 has quit [Ping timeout: 248 seconds]
<RickHull> drbrain? anybody? I'm tempted to file an issue or source dive
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
apeiros has joined #ruby
<RickHull> looks like maybe #synthesize_file_task is responsible
<RickHull> yep. looks like a misfeature
<RickHull> (IMHO)
workmad3 has quit [Ping timeout: 240 seconds]
marr has joined #ruby
* dminuoso is wondering whether RickHull is talking with someone on his ignore list
<RickHull> just me so far :(
Technodrome has joined #ruby
<RickHull> can anyone explain the rationale for: rake /path/to/any/existing/file_or_dir # why is this a NOOP?
<RickHull> in my case, I have task `report` and also a toplevel project dir `reports`
<RickHull> so when I run `rake reports` and get a NOOP it's pretty weird
<dminuoso> RickHull: Here's what's really happening
cschneid_ has joined #ruby
<dminuoso> Nope, cant find an appopriate gif meme.
apeiros has quit [Remote host closed the connection]
biberu has quit []
<RickHull> ?
<dminuoso> RickHull: This appears to be quite old. My best guess is, that nobody noticed or ever cared enough to change it.
<dminuoso> RickHull: What is the behavior if there is a file at that path?
<RickHull> it's a NOOP -- no error or anything
<dminuoso> "if there is a file at that path"
<RickHull> synthesize_file_task makes a FileTask wrapper for any file or dir that exists
<dminuoso> What is later done with that FileTask?
<RickHull> i assume it is executed, rather like a NOOP
<RickHull> as there is no actual task definition
<RickHull> see my #L76 above
cschneid_ has quit [Ping timeout: 252 seconds]
<dminuoso> Ohhh.
ur5us has joined #ruby
<dminuoso> RickHull: Im looking at how file tasks work. I'd almost say that its obvious that it should be a noop
<RickHull> i'm saying there should be no FileTask in this case
<dminuoso> RickHull: as far as I can tell a file task would be skipped if the named file already exists.
<RickHull> rake should error
Lyubo1 has quit [Ping timeout: 248 seconds]
Immune has joined #ruby
<dminuoso> Don't know how to build task 'foo/blah.rb' (see --tasks)
<dminuoso> cant reproduce
<RickHull> I don't understand the rationale for #synthesize_file_task and I doubt the author considered the overall behavior
<RickHull> try: rake /tmp
<dminuoso> RickHull: of course that wont error.
<dminuoso> thats the entire point of file tasks.
<RickHull> if I've defined a filetask for /tmp, sure
<dminuoso> RickHull: but /tmp already exists.
<RickHull> why is creating a NOOP file task? it's surprising
<dminuoso> lkely.
Lyubo1 has joined #ruby
<RickHull> so it's an error if it doesn't exist? but a NOOP if it does? why?
<RickHull> that's some goofy shit IMHO
<dminuoso> RickHull: it looks as if file tasks are meant as tasks "to produce a file XYZ"
<RickHull> more clearly: what is the point of #synthesize_file_task
<RickHull> why would it create a NOOP task? for what purpose?
<RickHull> the downside is my `rake reports` example
<RickHull> what's the upside?
<dminuoso> RickHull: this behavior is quite clearly documented.
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<RickHull> I must not be communicating clearly
<RickHull> i know what a file task
<RickHull> generally people put file tasks in their rakefile
<RickHull> if a rakefile has no file tasks, why is the rake executable creating NOOP file tasks? for what purpose?
<RickHull> what is the purpose of #synthesize_file_task ?
<dminuoso> Why dont you make an issue on github and find out?
<dminuoso> ;o
<RickHull> in the middle of it :)
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
michael1 has joined #ruby
cschneid_ has joined #ruby
Technodrome has joined #ruby
apeiros has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cschneid_ has quit [Ping timeout: 258 seconds]
* RickHull holds breath
<dminuoso> Please keep on doing that until I get back at you.
* dminuoso goes offline
milardovich has quit [Remote host closed the connection]
Fraeon has quit [Remote host closed the connection]
darkmorph has joined #ruby
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
nowhereman has quit [Ping timeout: 240 seconds]
s2013 has joined #ruby
orbyt_ has joined #ruby
hgost has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
s2013 has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mlehrer has quit [Ping timeout: 240 seconds]
Technodrome has joined #ruby
darkmorph has quit [Ping timeout: 255 seconds]
MochaLoca has joined #ruby
GodFather has quit [Quit: Ex-Chat]
GodFather has joined #ruby
LocaMocha has quit [Ping timeout: 260 seconds]
michael1 has quit [Ping timeout: 240 seconds]
conta has quit [Quit: conta]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mlehrer has joined #ruby
lamduh has quit [Ping timeout: 248 seconds]
kacper_ has quit [Ping timeout: 240 seconds]
goyox86 has quit [Read error: No route to host]
goyox86 has joined #ruby
texasmynsted has left #ruby ["WeeChat 1.9"]
kacper has quit [Ping timeout: 255 seconds]
guacamole has quit [Quit: My face has gone to sleep. ZZZzzz…]
Psybur has joined #ruby
|ifei5g00d has joined #ruby
GodFather has quit [Ping timeout: 258 seconds]
oblak has joined #ruby
minimalism has joined #ruby
majoh_ has joined #ruby
seanh has joined #ruby
vayan has joined #ruby
guacamole has joined #ruby
colstrom has joined #ruby
jmhmccr has joined #ruby
craysiii has joined #ruby
ewilliam_____ has joined #ruby
ReinH has joined #ruby
zipkid has joined #ruby
skmp has joined #ruby
Guest67616 has joined #ruby
schaary has joined #ruby
Yonk has joined #ruby
|ifei5g00d has quit [Read error: Connection reset by peer]
raynold has joined #ruby
mostlybadfly has joined #ruby
deimos has joined #ruby
charles81_ has joined #ruby
|ifei5g00d has joined #ruby
Meow-J has joined #ruby
Tagami[m] has quit [Ping timeout: 252 seconds]
yana[m] has quit [Ping timeout: 240 seconds]
gokul_mr[m] has quit [Ping timeout: 240 seconds]
aagdbl[m] has quit [Ping timeout: 255 seconds]
Lyubo1 has quit [Ping timeout: 260 seconds]
syndikate has quit [Ping timeout: 260 seconds]
bokayio has quit [Ping timeout: 240 seconds]
tnsi has quit [Ping timeout: 240 seconds]
haylon has quit [Ping timeout: 264 seconds]
jonjits[m] has quit [Ping timeout: 264 seconds]
zalipuha[m] has quit [Ping timeout: 240 seconds]
itmerc[m] has quit [Ping timeout: 240 seconds]
dman[m] has quit [Ping timeout: 246 seconds]
lasenna[m] has quit [Ping timeout: 240 seconds]
torarne has quit [Ping timeout: 255 seconds]
aviraldg has quit [Ping timeout: 255 seconds]
KevinMGranger has quit [Ping timeout: 255 seconds]
turt2live has quit [Ping timeout: 252 seconds]
Matt[m]2 has quit [Ping timeout: 248 seconds]
kua[m] has quit [Ping timeout: 264 seconds]
watzon has quit [Ping timeout: 264 seconds]
Orbixx[m] has quit [Ping timeout: 264 seconds]
astronavt[m] has quit [Ping timeout: 248 seconds]
redondos has quit [Ping timeout: 260 seconds]
drcode has quit [Ping timeout: 260 seconds]
Hanma[m] has quit [Ping timeout: 276 seconds]
velu_aon[m] has quit [Ping timeout: 276 seconds]
Lyubo1 has joined #ruby
Psybur has quit [Ping timeout: 240 seconds]
syndikate has joined #ruby
bokayio has joined #ruby
seitensei has joined #ruby
[[thufir]]1 has joined #ruby
[[thufir]] has quit [Read error: Connection reset by peer]
troulouliou_dev has joined #ruby
[[thufir]]1 has left #ruby [#ruby]
jdawgaz has joined #ruby
dkam_ has joined #ruby
jottr has quit [Ping timeout: 258 seconds]
GodFather has joined #ruby
hgost has left #ruby ["Textual IRC Client: www.textualapp.com"]
swills_ is now known as swills
swills has quit [Changing host]
swills has joined #ruby
mtkd has quit [Ping timeout: 252 seconds]
alex`` has quit [Ping timeout: 255 seconds]
<RickHull> what's the deal with digest/bubblebabble/bubblebabble.c ?
dopie has quit [Ping timeout: 255 seconds]
oded has quit [Quit: Konversation terminated!]
tomphp_ has quit [Read error: Connection reset by peer]
<elomatreb> IIRC bubblebabble is an encoding format for binary data (like base64), but designed to be human readable (as in, read out loud)
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has joined #ruby
<elomatreb> >> require "digest"; Digest::SHA256.bubblebabble 'message'
<ruby[bot]> elomatreb: # => undefined method `bubblebabble' for Digest::SHA256:Class (NoMethodError) ...check link for more (https://eval.in/893472)
<elomatreb> >> require "digest/bubblebabble"; Digest::SHA256.bubblebabble 'message'
<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
<RickHull> anyone got any good ideas for this? https://github.com/ruby/rake/issues/214#issuecomment-342010547
<RickHull> one distasteful idea would be to e.g. put .md5 files on the filesystem
troulouliou_dev has quit [Quit: Leaving]
<RickHull> otherwise maybe .checksums.yaml ?
yabbes has quit [Quit: lu]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Tagami[m] has joined #ruby
<elomatreb> I stored them in a pstore file when I did something like that once
workmad3 has joined #ruby
goyox86 has quit [Quit: goyox86]
Ltem has quit [Quit: Leaving]
workmad3 has quit [Ping timeout: 268 seconds]
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
cdg has joined #ruby
z3uS has quit [Quit: /dev/null]
mattp_ has quit [Remote host closed the connection]
Psybur has joined #ruby
mattp_ has joined #ruby
z3uS has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
John___ has joined #ruby
mattp_ has quit [Quit: WeeChat 1.9.1]
mattp_ has joined #ruby
s2013 has joined #ruby
cdg has quit [Remote host closed the connection]
<RickHull> oh yeah, I remember that little gem
<RickHull> I can't remember if I looked at these before making https://github.com/rickhull/dotcfg
DTZUZU has joined #ruby
Hanma[m] has joined #ruby
M107262[m] has joined #ruby
watzon has joined #ruby
lasenna[m] has joined #ruby
dtcristo has joined #ruby
aviraldg has joined #ruby
torarne has joined #ruby
yana[m] has joined #ruby
jonjits[m] has joined #ruby
velu_aon[m] has joined #ruby
astronavt[m] has joined #ruby
Orbixx[m] has joined #ruby
Giphy[m] has joined #ruby
haylon has joined #ruby
dman[m] has joined #ruby
KevinMGranger has joined #ruby
turt2live has joined #ruby
aagdbl[m] has joined #ruby
Matt[m]2 has joined #ruby
itmerc[m] has joined #ruby
zalipuha[m] has joined #ruby
kua[m] has joined #ruby
gokul_mr[m] has joined #ruby
alnewkirk has quit [Ping timeout: 240 seconds]
GodFather has quit [Quit: Ex-Chat]
GodFather has joined #ruby
cschneid_ has joined #ruby
s2013 has quit [Read error: Connection reset by peer]
mattp_ has quit [Quit: WeeChat 1.9.1]
cschneid_ has quit [Ping timeout: 246 seconds]
cam27 has quit [Quit: cam27]
mattp_ has joined #ruby
thinkpad has joined #ruby
lxsameer has joined #ruby
k3rn31 has quit [Ping timeout: 248 seconds]
cam27 has joined #ruby
apeiros has quit [Remote host closed the connection]
MochaLoca has quit [Max SendQ exceeded]
MochaLoca has joined #ruby
MochaLoca has quit [Max SendQ exceeded]
justache has quit [Ping timeout: 264 seconds]
justache has joined #ruby
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ap4y has quit [Quit: WeeChat 1.9.1]
ap4y has joined #ruby
shinnya has joined #ruby
charliesome has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
Psybur has quit [Ping timeout: 264 seconds]
mattp_ has quit [Quit: WeeChat 1.9.1]
mattp_ has joined #ruby
alnewkirk has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
dopie has joined #ruby
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
nowhereman has joined #ruby
jdawgaz has joined #ruby
alnewkirk has quit [Ping timeout: 260 seconds]
yqt has quit [Read error: Connection reset by peer]
|ifei5good has joined #ruby
DTZUZU has quit [Quit: WeeChat 1.9]
jottr has joined #ruby
|ifei5g00d has quit [Ping timeout: 268 seconds]
alnewkirk has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
|ifei5g00d has joined #ruby
LocaMocha has joined #ruby
GodFather has quit [Quit: Ex-Chat]
alnewkirk has quit [Ping timeout: 260 seconds]
GodFather has joined #ruby
rhyselsmore has joined #ruby
|ifei5good has quit [Ping timeout: 240 seconds]