havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.1, 2.3.3 & 2.2.7: 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
blackmes1 has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 264 seconds]
blackmesa has quit [Ping timeout: 260 seconds]
noob has left #ruby ["Leaving"]
patarr has quit [Ping timeout: 240 seconds]
pwnd_nsfw` has joined #ruby
Snickers has quit [Quit: Snickers]
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
chouhoulis has joined #ruby
Robtop__ has quit [Ping timeout: 260 seconds]
brent__ has quit [Remote host closed the connection]
bkxd has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
rakm has joined #ruby
<ineb> what mechanism gives me the #<Pathname:/tmp> representation here? how can i change it to #<MyClass:/tmp>? https://paste.xinu.at/BwWAo8/
mikecmpbll has quit [Quit: inabit. zz.]
<matthewd> ineb: That's #inspect
<ineb> nice
wald0 has quit [Quit: Lost terminal]
username2 has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
<ineb> matthewd: so i came up with https://paste.xinu.at/De1/ yet initialize still gives me Pathname#inspect
caboclo-tau is now known as tau
Gaelan has quit [Quit: Gaelan]
<matthewd> Simple debugging would confirm whether your method is getting called
fmartingr has quit [Quit: Connection closed for inactivity]
Gaelan has joined #ruby
patarr has joined #ruby
tolerablyjake has joined #ruby
blackmesa has joined #ruby
blackmesa has quit [Client Quit]
blackmes1 has quit [Ping timeout: 240 seconds]
patarr has quit [Ping timeout: 264 seconds]
Vile` has joined #ruby
__Yiota has joined #ruby
patarr has joined #ruby
__Yiota has quit [Client Quit]
dionysus69 has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
__Yiota has joined #ruby
<ineb> matthewd: iam unable to figure out the issue. i may ask another time and leave it as is right now. altough a wrong #inspect is propably an express train to bugs
LuckyABA has joined #ruby
roamingdog has joined #ruby
<matthewd> What have you tried?
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
antoniobeyah has quit [Quit: Connection closed for inactivity]
<ineb> what is there to try? patching Pathnames #inspect did the trick but otherwise i was unable to make it call my MyClass#inspect on initilization
Robtop__ has joined #ruby
<matthewd> Put a puts or raise inside your method to check whether it's getting called, or make it return a test string
<ineb> its not getting called
dionysus69 has quit [Ping timeout: 256 seconds]
<matthewd> How have you determined that?
c0dy has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 240 seconds]
<ineb> matthewd: yes
<matthewd> "yes" is not an answer to a "how" question
<ineb> oh, by whatever you said.
<ineb> or pry session
aeontech has joined #ruby
br0d1n has quit [Ping timeout: 240 seconds]
gsilva has joined #ruby
<matthewd> Oh, pry is new information. pry doesn't [directly] use inspect.
c0dy has quit [Client Quit]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ineb> oh i see, irb behaves different
Rodya_ has joined #ruby
Channel6 has joined #ruby
<ineb> it can be an issue with pry, i will inspect it further and maybe open an issue
<matthewd> It's a known and intended behaviour of pry
gdonald has quit [Read error: Connection reset by peer]
karmatr0n has joined #ruby
gdonald has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
patarr has joined #ruby
<ineb> you think its intended to send #inspect to the delegatee class instead to the delegator?
<ineb> in my case use Pathname#delegate instead of MyClass#delegate
<ineb> errr inspect
<ineb> sorry.
<matthewd> As I said, pry is not calling inspect
<matthewd> From memory, I think it calls pretty_print
Rodya_ has quit [Ping timeout: 246 seconds]
biberu has quit []
<ineb> ill go and ask in #pry
patarr has quit [Ping timeout: 240 seconds]
GodFather has quit [Quit: Ex-Chat]
GodFather_ has quit [Quit: Ex-Chat]
GodFather_ has joined #ruby
GodFather has joined #ruby
[k- has quit [Ping timeout: 268 seconds]
ixti has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
jameser has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
bkxd has joined #ruby
jusa has joined #ruby
vondruch has quit [Ping timeout: 258 seconds]
vondruch has joined #ruby
[k- has joined #ruby
jenrzzz has joined #ruby
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
username1 has quit [Ping timeout: 240 seconds]
bmurt has joined #ruby
s2013 has joined #ruby
username2 has quit [Ping timeout: 260 seconds]
bkxd has quit [Ping timeout: 240 seconds]
Azure|dc is now known as Azure
jusa has quit [Ping timeout: 260 seconds]
agent_white has joined #ruby
Mia has quit [Read error: Connection reset by peer]
Mia has joined #ruby
gsilva has quit [Ping timeout: 258 seconds]
TheMoonMaster has quit [Quit: Later!]
bpmedley has quit [Quit: Textual IRC Client: www.textualapp.com]
Kallis has joined #ruby
knight33 has joined #ruby
rakm_ has joined #ruby
rakm has quit [Remote host closed the connection]
[k- has quit [Read error: Connection reset by peer]
aeontech has quit [Quit: aeontech]
[k-_ has joined #ruby
marxarelli is now known as marxarelli|afk
ahuman has quit [Ping timeout: 264 seconds]
willardg has joined #ruby
ahuman has joined #ruby
__Yiota has joined #ruby
knight33 has quit [Quit: Textual IRC Client: www.textualapp.com]
Didac has quit [Ping timeout: 260 seconds]
Didac has joined #ruby
minimalism has joined #ruby
zapata has quit [Ping timeout: 240 seconds]
Channel6 has quit [Quit: Leaving]
patarr has joined #ruby
rakm_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jonatin has quit [Quit: jonatin]
gusrub has quit []
montanonic has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
herbmillerjr has quit [Remote host closed the connection]
karmatr0n has quit [Ping timeout: 260 seconds]
gusrub has joined #ruby
zapata has joined #ruby
montanonic has quit [Ping timeout: 246 seconds]
montanonic has joined #ruby
oncall-pokemon has quit [Quit: Connection closed for inactivity]
gusrub has quit []
<Gaelan> Any way to read a null-terminated array with ffi?
d^sh has quit [Ping timeout: 260 seconds]
d^sh has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
libastral has quit [Ping timeout: 240 seconds]
libastral has joined #ruby
Vile` has quit [Ping timeout: 240 seconds]
montanonic has quit [Ping timeout: 258 seconds]
hutch34_ has joined #ruby
TheMoonMaster has joined #ruby
chouhoulis has quit [Remote host closed the connection]
aeontech has joined #ruby
__Yiota has joined #ruby
<Verity> people don't have as many issues with ruby as they do with python
HoierM has quit [Ping timeout: 256 seconds]
nuck has joined #ruby
greenhat has quit [Ping timeout: 268 seconds]
jtdowney has quit [Ping timeout: 240 seconds]
JoshL has quit [Ping timeout: 240 seconds]
D9 has quit [Ping timeout: 264 seconds]
Madper has quit [Ping timeout: 240 seconds]
greenhat has joined #ruby
willardg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rakm has joined #ruby
JoshL has joined #ruby
aeontech has quit [Quit: aeontech]
D9 has joined #ruby
sylario has quit [Quit: Connection closed for inactivity]
A124 has quit [Ping timeout: 260 seconds]
xnxq has joined #ruby
nertzy has joined #ruby
enterprisey has joined #ruby
bheesham has joined #ruby
krzysztoff has quit [Ping timeout: 240 seconds]
Gaelan has quit [Quit: Gaelan]
xnxq has quit [Client Quit]
xnxq has joined #ruby
Gaelan has joined #ruby
Channel6 has joined #ruby
postmodern has quit [Quit: Leaving]
hutch34_ has quit [Ping timeout: 240 seconds]
nertzy has quit [Quit: Leaving]
karmatr0n has joined #ruby
krzysztoff has joined #ruby
futilegames has joined #ruby
karmatr0n has quit [Ping timeout: 268 seconds]
Jayson_Virissimo has joined #ruby
futilegames has quit [Client Quit]
nekomune has joined #ruby
bkxd has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
nertzy has joined #ruby
Autolycus has joined #ruby
davorb has quit [Read error: Connection reset by peer]
davorb has joined #ruby
bpmedley has joined #ruby
Gaelan has quit [Quit: Gaelan]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cahoots_ has quit [Ping timeout: 268 seconds]
gix has quit [Ping timeout: 268 seconds]
Gaelan has joined #ruby
gsingh93 has quit [Ping timeout: 240 seconds]
daed has quit [Ping timeout: 260 seconds]
vcavallo has quit [Ping timeout: 258 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gix has joined #ruby
gsingh93 has joined #ruby
Jayson_Virissimo has quit []
ixti has quit [Quit: WeeChat 1.7]
marcdel has joined #ruby
daed has joined #ruby
vcavallo has joined #ruby
elaptics_ has quit [Read error: Connection reset by peer]
cahoots has joined #ruby
Autolycus has quit []
Gaelan has quit [Quit: Gaelan]
A124 has joined #ruby
t-recx has quit [Quit: t-recx]
raspado has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 240 seconds]
__Yiota has joined #ruby
amclain has quit [Quit: Leaving]
astrobunny has joined #ruby
Gaelan has joined #ruby
jane_booty_doe has joined #ruby
bazz_ has quit [Ping timeout: 240 seconds]
Kallis has quit [Read error: Connection reset by peer]
bazzy has joined #ruby
TheWhip has joined #ruby
gdonald has quit [Read error: Connection reset by peer]
Channel6 has quit [Quit: Leaving]
gdonald has joined #ruby
ozcanesen has joined #ruby
karmatr0n has joined #ruby
karmatr0n has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
marcdel has quit [Ping timeout: 240 seconds]
bheesham has quit [Ping timeout: 240 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Verity> >> "str".bytes.map{ |b| out << b.to_s }
<ruby[bot]> Verity: # => undefined local variable or method `out' for main:Object (NameError) ...check link for more (https://eval.in/763193)
<Verity> >> out = ''; "str".bytes.map{ |b| out << b.to_s }
<ruby[bot]> Verity: # => ["115116114", "115116114", "115116114"] (https://eval.in/763194)
<Verity> why is that the result?
<Verity> I just want one string
jane_booty_doe has quit [Quit: Leaving]
marcdel has joined #ruby
_djbkd has joined #ruby
<matthewd> &ri Enumerable#map
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nofxxx has joined #ruby
<Verity> doesnt seem like there is a lot of info there
<Verity> abpout map
<matthewd> There isn't a lot to say about it ¯\_(ツ)_/¯
TheWhip has quit [Remote host closed the connection]
pjaspers has quit [Ping timeout: 246 seconds]
pjaspers has joined #ruby
nofxx has quit [Ping timeout: 240 seconds]
s2013 has joined #ruby
__Yiota has joined #ruby
<havenwood> >> 'str'.bytes.join # Verity
<ruby[bot]> havenwood: # => "115116114" (https://eval.in/763198)
<matthewd> Verity: map is important. Take the time to play with it and understand it.
<havenwood> Verity: I'd suggest experimenting with #each and #map in irb or pry. It's worth reading up and developing a firm understanding of these essential methods.
<Verity> ok, I will definitely do that then
gnufied has quit [Quit: Leaving]
Gaelan has quit [Quit: Gaelan]
bheesham has joined #ruby
Gaelan has joined #ruby
Gaelan has quit [Client Quit]
moei has quit [Read error: Connection reset by peer]
xnxq has quit [Ping timeout: 260 seconds]
Gaelan has joined #ruby
moei has joined #ruby
Autolycus has joined #ruby
[k-_ is now known as [k-
TheWhip has joined #ruby
kegster has quit [Ping timeout: 260 seconds]
bokayio has quit [Read error: Connection reset by peer]
bokayio has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kegster has joined #ruby
renchan has joined #ruby
xnxq has joined #ruby
_djbkd has quit [Quit: My people need me...]
Gaelan has quit [Quit: Gaelan]
chaos95 has joined #ruby
bkxd has joined #ruby
krzysztoff has quit [Ping timeout: 240 seconds]
aeontech has joined #ruby
krzysztoff has joined #ruby
naturehack has joined #ruby
tolerablyjake has joined #ruby
ozcanesen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bkxd has quit [Ping timeout: 240 seconds]
naturehack has quit [Remote host closed the connection]
xall has joined #ruby
roamingdog has quit []
enterprisey has quit [Ping timeout: 268 seconds]
armyriad has quit [Quit: Leaving]
karmatr0n has joined #ruby
armyriad has joined #ruby
enterprisey has joined #ruby
karmatr0n has quit [Ping timeout: 240 seconds]
cahoots has quit [Ping timeout: 260 seconds]
nadir has quit [Quit: Connection closed for inactivity]
A124 has quit [Ping timeout: 240 seconds]
krzysztoff has quit [Ping timeout: 240 seconds]
nadir has joined #ruby
Autolycus has quit []
Eiam has quit [Ping timeout: 240 seconds]
bheesham has quit [Quit: leaving]
* dminuoso has stopped using things like #each
<dminuoso> They just lead to silly programming. :o)
karmatr0n has joined #ruby
TheWhip has quit [Remote host closed the connection]
enitiz has joined #ruby
patarr has joined #ruby
jsilver has joined #ruby
<jsilver> is there anything like faraday I can use to HTTP upload a file... but with a callback for upload chunks so I can make a progressbar?
cahoots has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
karmatr0n has quit [Ping timeout: 240 seconds]
TomyLobo2 has joined #ruby
willardg has joined #ruby
willardg has quit [Client Quit]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ahuman has quit [Ping timeout: 268 seconds]
TheWhip has joined #ruby
grillon has joined #ruby
ahuman has joined #ruby
naztharune has quit [Quit: naztharune has no reason]
raspado has joined #ruby
TheWhip has quit [Ping timeout: 240 seconds]
JoshS has joined #ruby
nahra` has joined #ruby
<havenwood> jsilver: It can be done with net/http manually or mechanize and rest-client are net/http wrappers that have added streaming uploads. Or http.rb, httpclient, excon, em-http-request, and curb all implement streaming uploads.
nahra has quit [Remote host closed the connection]
ta_ has joined #ruby
raspado has quit [Ping timeout: 264 seconds]
<jsilver> nice
<jsilver> do you know how to do it with http.rb
<jsilver> i'd rather use http.rb than anything
karmatr0n has joined #ruby
<havenwood> jsilver: i was just having second thoughts about whether excon and http.rb actually support upload streaming too, and was wondering if typohoeus does too (the others i listed above do)
<havenwood> lemme confirm
xnxq has quit [Quit: WeeChat 1.7]
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
renatosilva has quit [Quit: http://renatosilva.net]
<jsilver> alright
<jsilver> i'd prefer http.rb, it seems to support it but docs seem thin
<havenwood> jsilver: yeah, it looks like my list above is correct, but the docs are better for other libs
jdeen has quit [Remote host closed the connection]
iamayam has quit [Ping timeout: 240 seconds]
xMopxShell has quit [Ping timeout: 240 seconds]
MasterNayru has quit [Quit: No Ping reply in 180 seconds.]
Sp4rKy has quit [Ping timeout: 240 seconds]
genta has quit [Read error: Connection reset by peer]
ByronJohnson has quit [Ping timeout: 240 seconds]
Sp4rKy has joined #ruby
MasterNayru has joined #ruby
Sp4rKy is now known as Guest76477
xMopxShell has joined #ruby
ByronJohnson has joined #ruby
genta has joined #ruby
karmatr0n has quit [Ping timeout: 260 seconds]
<BabyMario> what's better about libs written in ruby, vs c++?
<jsilver> looks good
<jsilver> i don't love having 25 http clients
<jsilver> lol
<BabyMario> (I read the http.rb documentation)
iamayam has joined #ruby
<havenwood> jsilver: aye, i'd be tempted to figure it out with HTTP.rb too
<jsilver> c++ libs are faster
<jsilver> ruby libs are more readable
<jsilver> havenwood I saw
<agent_white> BabyMario: What is better on a hike, heels or socks?
<havenwood> but you probably also saw
<havenwood> agent_white: socks
<jsilver> httpclient doesnt look to support it
<BabyMario> agent_white: for some reason, that question leaves me perplexed
<havenwood> jsilver: it does!
<agent_white> Well. Sometimes. Mostly they don't match cause I can't find the sibling
<jsilver> i cant tell from that code lol
<havenwood> jsilver: oh, you mean http.rb
<jsilver> yupyup
<jsilver> the client doesn't matter, i just want the same easy syntax open-uri has
<havenwood> jsilver: yeah, the docs don't give enough clues
<jsilver> open-uri has nice callbacks for downloading with open()
<jsilver> yeah
<jsilver> im doing some edge stuff with serverside downloading + action cable updating client side progressbar
<havenwood> httpclient or excon maybe?
<havenwood> both are top-notch pure ruby implementations
<jsilver> download progress works, upload doesnt since faraday didnt have progress
<havenwood> jsilver: maybe it's way-too-much but refile supports streaming upload and progress is an option
<jsilver> i just need a simple syntax let get("/thing", :progress_proc => -> (blah)
<havenwood> it includes sinatra as a dep to handle the streaming ;-P
<jsilver> i'd like to avoid WayTooMuch but sometimes it's ok
<jsilver> lol sinatra rather not lol
<havenwood> but these days sinatra tends to be a dep of one or another rails gems already
<jsilver> already running rails
<jsilver> oh i see, whys that
<havenwood> jsilver: see if you're already using it?: grep sinatra Gemfile.lock
<havenwood> jsilver: it's a dep of resque and various other gems, often for the streaming support
<jsilver> nope i'm not
<jsilver> my dependencies are pretty sane
<havenwood> nice
TheWhip has joined #ruby
<jsilver> i'm not a typical enterprisey app
TheWhip has quit [Client Quit]
<jsilver> yeah no rescue here
<jsilver> no jobs, no db, no users, no caching, etc
enterprisey has quit [Ping timeout: 240 seconds]
<jsilver> i get the job done while avoiding enterprise bloatware lol
minimalism has quit [Quit: minimalism]
<jsilver> ive worked on a lot of bad rails apps
MittelDank has quit [Ping timeout: 258 seconds]
<havenwood> BabyMario: Try implementing the same non-trivial thing in both and see how they feel?
minimalism has joined #ruby
username_ has joined #ruby
<BabyMario> havenwood: yeah, I get that ruby is a nicer language, but if you're just using a lib; not writing it, does it matter?
username1 has joined #ruby
enterprisey has joined #ruby
<havenwood> BabyMario: Depends on what you're doing. It can.
<jsilver> if you need to change the lib it matters
<BabyMario> yeah okay, I guess it also matters when installing the lib sometimes, less portable
<jsilver> just use what is fast and works
<jsilver> C++ can edited too
cahoots has quit [Ping timeout: 256 seconds]
username1 has quit [Ping timeout: 268 seconds]
username_ has quit [Ping timeout: 268 seconds]
naprimer has joined #ruby
TomyLobo2 has quit [Ping timeout: 264 seconds]
Arpanet69 has joined #ruby
naprimer has quit [Ping timeout: 240 seconds]
<jsilver> havenwood: it looks like excon only provides streaming responses, this is a post i'm doing
<jsilver> POST*
<havenwood> jsilver: look at that "Chunked Requests" portion
<havenwood> jsilver: it's a post of a chunker lambda
aeontech has quit [Quit: aeontech]
<havenwood> Excon.post('http://geemus.com', :request_block => chunker)
<jsilver> i saw that
<jsilver> doesn't look like the lambda takes the proper parameters to make the calculation tho
<jsilver> i need bytes transferred and bytes total
<havenwood> you do as many chunks as you want - though it's not quite pretty like streaming
<jsilver> oh i see it's every 1mb out of the total size
<jsilver> actually no
<jsilver> the chunker function provides the upload data
<jsilver> am i being stupid
<jsilver> nvm i think i can do it
bkxd has joined #ruby
bronson has joined #ruby
govg has quit [Ping timeout: 260 seconds]
bronson_ has quit [Ping timeout: 264 seconds]
aganov has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
BabyMario has quit [Quit: bye]
code_zombie has quit [Quit: Leaving]
govg has joined #ruby
maattdd has joined #ruby
ta_ has quit [Remote host closed the connection]
tau has quit [Remote host closed the connection]
doublemalt_ has quit [Ping timeout: 260 seconds]
aufi has joined #ruby
mark_66 has joined #ruby
CloCkWeRX has quit [Ping timeout: 260 seconds]
rgtk has quit [Ping timeout: 264 seconds]
jsilver has quit [Quit: Page closed]
fmartingr has joined #ruby
pulkit4tech has joined #ruby
jaruga has joined #ruby
nowhere_man has quit [Ping timeout: 260 seconds]
andikr has joined #ruby
conta has joined #ruby
Snickers has joined #ruby
jgnagy has quit [Remote host closed the connection]
TomyWork has joined #ruby
jgnagy has joined #ruby
enitiz has quit [Quit: Mutter: www.mutterirc.com]
esObe_ has joined #ruby
brent__ has joined #ruby
pwnd_nsfw has joined #ruby
montanonic has joined #ruby
Verity has quit [Remote host closed the connection]
jgnagy has quit [Ping timeout: 240 seconds]
igniting has quit [Ping timeout: 246 seconds]
tvw has joined #ruby
brent__ has quit [Ping timeout: 240 seconds]
Robtop__ has quit [Ping timeout: 240 seconds]
nlvkjq has joined #ruby
aufi has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
patarr has joined #ruby
Guest76477 is now known as Sp4rKy
Sp4rKy has quit [Changing host]
Sp4rKy has joined #ruby
esObe_ has quit [Remote host closed the connection]
patarr has quit [Ping timeout: 240 seconds]
Qchmqs has joined #ruby
_djbkd has joined #ruby
nobitanobi has joined #ruby
jameser_ has joined #ruby
jameser has quit [Ping timeout: 240 seconds]
ddffg has joined #ruby
montanonic has quit [Ping timeout: 240 seconds]
last_staff has joined #ruby
doublemalt_ has joined #ruby
xall has quit [Ping timeout: 260 seconds]
Arpanet69 has quit [Ping timeout: 260 seconds]
gdonald has quit [Read error: Connection reset by peer]
gdonald has joined #ruby
llaine has joined #ruby
ta_ has joined #ruby
Deviation has quit [Ping timeout: 258 seconds]
millerti has quit [Read error: Connection reset by peer]
aufi has joined #ruby
ddffg has quit [Quit: Leaving]
nowhere_man has joined #ruby
dionysus69 has joined #ruby
igniting has joined #ruby
esObe_ has joined #ruby
jdm has joined #ruby
meshsmith has quit [Read error: Connection reset by peer]
Burgestrand has joined #ruby
dionysus69 has quit [Quit: dionysus69]
xall has joined #ruby
jsrn_ has joined #ruby
kazo has joined #ruby
_djbkd has quit [Quit: My people need me...]
BTRE has quit [Quit: Leaving]
armyriad has quit [Ping timeout: 246 seconds]
mikecmpbll has joined #ruby
Burgestrand has quit [Ping timeout: 256 seconds]
marr has joined #ruby
Deviation has joined #ruby
cajone has quit [Ping timeout: 260 seconds]
spicerack has joined #ruby
pwnd_nsfw` has joined #ruby
Burgestrand has joined #ruby
BTRE has joined #ruby
armyriad has joined #ruby
pwnd_nsfw has quit [Ping timeout: 258 seconds]
iMadper has joined #ruby
iMadper has joined #ruby
iMadper has quit [Changing host]
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jane_booty_doe has joined #ruby
spicerack has joined #ruby
jsilver has joined #ruby
<jsilver> yo havenwood you still here
bkxd has joined #ruby
<jsilver> using fileupload library, i am able to do progress stuff with chunking. but i'm sending the data wrong. i think i need to use this some how http://realityforge.org/code/rails/2006/03/02/upload-a-file-via-post-with-net-http.html to upgrade https://github.com/ggiamarchi/ruby-uploader
cfec0b8d has joined #ruby
<jsilver> it wants the data to come from a form, not a straight up upload
jameser_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jameser has joined #ruby
maloik has quit [Remote host closed the connection]
jenrzzz has joined #ruby
maloik has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
tomphp has joined #ruby
jeyraof^mbpr has joined #ruby
jane_booty_doe has quit [Quit: Leaving]
Silthias1 has quit [Read error: Connection reset by peer]
eb0t has quit [Quit: WeeChat 1.4]
tvw has quit [Read error: Connection reset by peer]
tvw has joined #ruby
eblip has quit [Quit: WeeChat 1.4]
eb0t has joined #ruby
meshsmith has joined #ruby
certainty has quit [Ping timeout: 240 seconds]
eblip has joined #ruby
Silthias has joined #ruby
Arpanet69 has joined #ruby
tvw has quit [Ping timeout: 260 seconds]
martin430 has joined #ruby
govg has quit [Ping timeout: 240 seconds]
cfec0b8d has quit [Ping timeout: 240 seconds]
govg has joined #ruby
vondruch has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
jsilver has quit [Quit: Page closed]
vondruch has joined #ruby
Deviation has quit [Ping timeout: 240 seconds]
Beams has joined #ruby
jusa has joined #ruby
naprimer has joined #ruby
naprimer is now known as grzegorz
davorb has quit [Read error: Connection reset by peer]
grzegorz is now known as krzysztoff
davorb has joined #ruby
username_ has joined #ruby
jusa has quit [Ping timeout: 258 seconds]
jenrzzz has quit [Ping timeout: 258 seconds]
fxa90id has joined #ruby
fxa90id is now known as Guest41456
username_ has quit [Ping timeout: 240 seconds]
pulkit4tech has quit [Quit: Connection closed for inactivity]
jgnagy has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jgnagy has quit [Ping timeout: 258 seconds]
mim1k has joined #ruby
patarr has joined #ruby
pulkit4tech has joined #ruby
spicerack has quit [Quit: Textual IRC Client: www.textualapp.com]
marxarelli|afk is now known as marxarelli
marxarelli is now known as marxarelli|afk
patarr has quit [Ping timeout: 258 seconds]
P1ro has quit [Remote host closed the connection]
<adaedra> >> [1, 2].inject:+
<ruby[bot]> adaedra: # => 3 (https://eval.in/763416)
<adaedra> wtf
martin430 has left #ruby [#ruby]
skweek has quit [Ping timeout: 264 seconds]
Deviation has joined #ruby
doublemalt_ has quit [Ping timeout: 268 seconds]
enterprisey has quit [Remote host closed the connection]
raspado has joined #ruby
astrobunny has quit [Remote host closed the connection]
<herwin> and exactly what is wtf about that?
<adaedra> I would have expected it to raise error (missing space between inject and :+)
doublemalt_ has joined #ruby
raspado has quit [Ping timeout: 246 seconds]
biberu has joined #ruby
rgr has joined #ruby
GodFather has quit [Quit: Ex-Chat]
GodFather_ has quit [Quit: Ex-Chat]
GodFather_ has joined #ruby
GodFather has joined #ruby
rgr_ has quit [Ping timeout: 256 seconds]
jusa has joined #ruby
certainty has joined #ruby
GodFather has quit [Ping timeout: 240 seconds]
GodFather_ has quit [Ping timeout: 246 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jusa has quit [Ping timeout: 256 seconds]
opus has joined #ruby
workmad3 has joined #ruby
nowhere_man has quit [Ping timeout: 240 seconds]
jeyraof^mbpr has quit [Quit: Leaving]
ferr1 has joined #ruby
camilasan has quit [Ping timeout: 240 seconds]
camilasan has joined #ruby
etehtsea has joined #ruby
ar1a has joined #ruby
<ar1a> :/ hey guys, i have this problem. I'm getting this error when i execute a simple script game.rb:23:in `<main>': undefined method `+@' for nil:NilClass (NoMethodError)
cajone has joined #ruby
<ar1a> but the line is just "end", closing off an else statement
opus has quit [Quit: Textual IRC Client: www.textualapp.com]
<tobiasvl> ar1a: paste the code at https://gist.github.com
<elomatreb> +@ is the unary plus, that's a little strange
<ar1a> tobiasvl: kk gimme a sec
<elomatreb> There is no ++ in Ruby, use `+= 1` instead
<tobiasvl> ar1a: the error is in line 14, tries++
<tobiasvl> it says the error is at line 23 because it thinks you're trying to do tries + +(result of if/else)
<tobiasvl> which is also where the unary + comes from
<ar1a> ah
<ar1a> ok
<ar1a> Guess the number between 1 and 100!
<ar1a> 50
<ar1a> You got it! Congratulations Aria! It took you 1 tries.
<ar1a> lol
bkxd has joined #ruby
doublemalt_ has quit [Ping timeout: 240 seconds]
fxa90id has joined #ruby
Guest41456 has left #ruby ["Leaving"]
govg has quit [Ping timeout: 246 seconds]
bkxd has quit [Ping timeout: 260 seconds]
nadir has quit [Quit: Connection closed for inactivity]
maattdd has quit [Ping timeout: 260 seconds]
agent_white has quit [Quit: leaving]
jaruga has quit [Ping timeout: 240 seconds]
Fernando-Basso has joined #ruby
bkxd has joined #ruby
Fernando-Basso has quit [Client Quit]
hanmac has quit [Ping timeout: 260 seconds]
Fernando-Basso has joined #ruby
nobitanobi has quit [Remote host closed the connection]
thadtheman has quit [Ping timeout: 264 seconds]
bkxd has quit [Ping timeout: 256 seconds]
bkxd has joined #ruby
jameser has quit [Ping timeout: 240 seconds]
awk has joined #ruby
maattdd has joined #ruby
<awk> Hi, I was wondering if anyone could help. This ruby script, https://pastebin.com/WUQPyApM runs and tails a file trying to find a string, the problem is it's to slow and misses the line, yet if I use tail -f /path/to/file/blah.log | grep whatIneed it works... So in bash I have done this https://pastebin.com/NrMDvzer which also works... Please can someone advise what I can do to have ruby read this as I don't wan
<ruby[bot]> awk: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/cffc2208e100548a565589fde4f2cc1e
<ruby[bot]> awk: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<awk> t to use bash
hanmac has joined #ruby
<awk> erp, sorry
nlvkjq has quit [Ping timeout: 260 seconds]
xall has quit [Ping timeout: 260 seconds]
<matthewd> awk: "the problem is it's to slow and misses the line"
<matthewd> Which one is it?
rgr_ has joined #ruby
cfec0b8d has joined #ruby
rgr has quit [Ping timeout: 260 seconds]
thadtheman has joined #ruby
potatoe has joined #ruby
<potatoe> hello guys, I'm getting this error ERROR: Could not find a valid gem 'logstash-core-event-java' (>= 0) in any repository even though the gem exists on rubygems
<potatoe> any idea why?
<matthewd> potatoe: As the name suggests, the gem is only available for jruby
xall_ has joined #ruby
<potatoe> matthewd should I install that seperately?
cajone has quit [Ping timeout: 240 seconds]
<potatoe> and matthewd I've installed jruby and I still cant install it
<matthewd> I'd suggest following the install instructions for logstash.. afaik they don't recommend installing it as a gem anyway
GodFather has joined #ruby
<potatoe> matthewd but the installation for logstash doesn't actually work for its plugins
<matthewd> You'd need to be installing gems into jruby, not your default system ruby
<potatoe> this is the error: Make sure that `gem install logstash-core-event-java -v '5.0.2'` succeeds before bundling
ar1a has left #ruby [#ruby]
jgnagy has joined #ruby
<awk> matthewd: sorry to sound stupid, what are you meaning... that ruby script I run with /path/to/file 'CoreConfigurationService STARTING'
<awk> It sometimes catches it, and sometimes it doesn't, but tail -f /path/to/file | grep 'CoreConfigurationService STARTING' gets it each time
cajone has joined #ruby
<matthewd> awk: My question was mostly what "too slow" means here, to you
<matthewd> awk: There's a difference between what this does and what tail -f does, which seems like it could be relevant, so I'm trying to understand more context
<awk> matthewd: I'm watching a logfile, and when I get an entry i'm looking for in the logfile, I'm then happy to move to another systemd process I need to run
<awk> So it's a startPost step on a startup service
jgnagy has quit [Ping timeout: 240 seconds]
<awk> Service starts, then kicks off this script to wait for the entry, if it doesnt display that log entry then there is problems elsewhere (DB related), if it gets the response its good to move to the next service
<matthewd> tail -f outputs the last 10 lines of the file
<matthewd> If the event happens before your script runs, tail will find it if it gets lucky (nothing else has logged > 10 lines); the ruby script seeks to the end of the log, so has no such luck-buffer
infernix has quit [Ping timeout: 245 seconds]
<matthewd> (in case that was too subtle: "This is a flawed design, because it relies on ~winning a race to notice the event. If you need it to work reliably, you should do something else.")
patarr has joined #ruby
<awk> matthewd: got it... thanks..
DaveTaboola has quit [Quit: Textual IRC Client: www.textualapp.com]
DaveTaboola has joined #ruby
patarr has quit [Ping timeout: 260 seconds]
jaruga has joined #ruby
doublemalt_ has joined #ruby
xall_ has quit [Ping timeout: 256 seconds]
conmaxo has joined #ruby
milardovich has joined #ruby
thadtheman has quit [Ping timeout: 240 seconds]
JeanCarloMachado has joined #ruby
infernix has joined #ruby
DaveTaboola has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DaveTaboola has joined #ruby
brent__ has joined #ruby
conmaxo has left #ruby ["Leaving"]
yasu is now known as yasu__
yasu_ is now known as yasu
yasu has quit [Quit: ZNC 1.6.5 - http://znc.in]
yasu has joined #ruby
hutch34_ has joined #ruby
brent__ has quit [Ping timeout: 256 seconds]
meshsmith has quit [Remote host closed the connection]
jusa has joined #ruby
thadtheman has joined #ruby
synthroid has joined #ruby
jusa has quit [Ping timeout: 260 seconds]
bkxd has quit [Ping timeout: 240 seconds]
thadtheman has quit [Ping timeout: 264 seconds]
mim1k has quit [Ping timeout: 240 seconds]
HoierM has joined #ruby
User458764 has joined #ruby
nitrix has quit [Ping timeout: 260 seconds]
Elenaltarien has joined #ruby
sheepman has quit [Quit: ZNC - http://znc.in]
synthroi_ has joined #ruby
synthroid has quit [Ping timeout: 246 seconds]
xall_ has joined #ruby
brent__ has joined #ruby
xall_ has quit [Excess Flood]
thadtheman has joined #ruby
DaveTaboola has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest96 has quit [Remote host closed the connection]
certainty has quit [Ping timeout: 258 seconds]
brent__ has quit [Ping timeout: 246 seconds]
thadtheman has quit [Ping timeout: 240 seconds]
antgel has joined #ruby
zinggggg has quit [Quit: Leaving]
alibby1 has joined #ruby
patarr has joined #ruby
deduped has joined #ruby
deduped is now known as misterpink
dionysus69 has joined #ruby
mim1k has joined #ruby
swills has quit [Read error: Connection reset by peer]
swills has joined #ruby
xenops has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gnufied has joined #ruby
patarr has quit [Ping timeout: 260 seconds]
Guest96 has joined #ruby
Silthias1 has joined #ruby
bauruine_ has quit [Read error: Connection reset by peer]
nowhere_man has joined #ruby
bauruine has joined #ruby
Silthias has quit [Ping timeout: 260 seconds]
leito has quit [Ping timeout: 260 seconds]
mim1k has quit [Ping timeout: 260 seconds]
xenops has joined #ruby
Guest43457 has quit [Quit: https://fnordserver.eu]
aupadhye has joined #ruby
alibby1 has quit [Ping timeout: 268 seconds]
yurikoles has joined #ruby
mim1k has joined #ruby
<darix> havenwood: seems a good candidate to cause 2.3.4
meshsmith has joined #ruby
jameser has joined #ruby
leito has joined #ruby
milardovich has quit [Remote host closed the connection]
DaveTaboola has joined #ruby
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
bauruine has quit [Quit: ZNC - http://znc.in]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
jelle1 has joined #ruby
jelle1 has left #ruby [#ruby]
bauruine has joined #ruby
yurikoles has quit [Read error: No route to host]
yurikoles has joined #ruby
andikr has quit [Remote host closed the connection]
zel has joined #ruby
ramortegui has joined #ruby
zel is now known as Guest9071
j3ll3 has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
j3ll3 has left #ruby [#ruby]
raz has left #ruby ["*fump*"]
mim1k has joined #ruby
sofubi has joined #ruby
terens has joined #ruby
duckpupp1 has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
Guest96 has quit [Quit: Guest96]
username1 has joined #ruby
username2 has joined #ruby
charliesome has joined #ruby
jgnagy has joined #ruby
username1 has quit [Ping timeout: 258 seconds]
milardovich has quit [Remote host closed the connection]
username2 has quit [Ping timeout: 258 seconds]
milardovich has joined #ruby
nOwz has joined #ruby
milardovich has quit [Remote host closed the connection]
jgnagy has quit [Ping timeout: 256 seconds]
milardovich has joined #ruby
GodFather has quit [Ping timeout: 264 seconds]
csk has joined #ruby
pulkit4tech has quit [Quit: Connection closed for inactivity]
sofubi has quit [Quit: Textual IRC Client: www.textualapp.com]
Snickers has quit [Quit: Snickers]
DLSteve has joined #ruby
DLSteve has quit [Client Quit]
hs366 has joined #ruby
millerti has joined #ruby
ferr1 has quit [Quit: WeeChat 1.7]
chouhoulis has joined #ruby
gigetoo has quit [Read error: Connection reset by peer]
DLSteve has joined #ruby
raspado has joined #ruby
gsilva has joined #ruby
gigetoo has joined #ruby
certainty has joined #ruby
gdonald has quit [Read error: Connection reset by peer]
gdonald has joined #ruby
raspado has quit [Ping timeout: 260 seconds]
haylon has joined #ruby
jrafanie has joined #ruby
jrafanie has quit [Client Quit]
ddffg has joined #ruby
jameser has quit [Read error: Connection reset by peer]
jameser_ has joined #ruby
GodFather has joined #ruby
mim1k has joined #ruby
jgpawletko has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jgpawletko has quit [Client Quit]
croberts has joined #ruby
igniting has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
yasu has quit [Quit: ZNC 1.6.5 - http://znc.in]
yasu has joined #ruby
Rodya_ has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
jameser_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jameser has joined #ruby
gbfrow has joined #ruby
bkxd has joined #ruby
chouhoulis has quit [Remote host closed the connection]
jameser has quit [Client Quit]
chouhoulis has joined #ruby
mim1k has joined #ruby
cdg has joined #ruby
cdg has quit [Read error: Connection reset by peer]
cdg has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nobitanobi has joined #ruby
NL3limin4t0r has joined #ruby
doublemalt_ has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jsrn_ has quit [Ping timeout: 240 seconds]
<LyndsySimon> Rubocop complains when I have more than five parameters for a method, but I often have more than five optional parameters passed in as an options hash. I prefer to explicitly write those options out now as named parameters, and am refactoring some of my old code to reflect that. Is it idiomatic Ruby to have a long list of named, optional parameters for a
<LyndsySimon> method?
__Yiota has joined #ruby
<LyndsySimon> I'm specifically talking about helpers in Rails, by the way. I use them to abstract out complex things like creating an HTML table of data. Lots of parameters in that case means I get to use a consistent interface for generating the table in my views.
yasu has quit [Quit: ZNC 1.6.5 - http://znc.in]
krzysztoff has quit [Ping timeout: 260 seconds]
<darix> LyndsySimon: i think hash to carry long options are more common
yasu has joined #ruby
griffindy has joined #ruby
patarr has joined #ruby
<LyndsySimon> darix: I agree that it's more common; I'm eschewing it because named parameters have better IDE support.
mim1k has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
Snickers has joined #ruby
ta_ has quit [Remote host closed the connection]
gsnedders has quit [Quit: leaving]
gsnedders has joined #ruby
yasu has quit [Client Quit]
yasu has joined #ruby
griffindy has quit [Ping timeout: 240 seconds]
gsnedders has left #ruby [#ruby]
naprimer has joined #ruby
adavia has joined #ruby
etehtsea has quit [Ping timeout: 240 seconds]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
daveomcd has joined #ruby
chouhoul_ has joined #ruby
haylon has quit [Ping timeout: 256 seconds]
bkxd has quit [Ping timeout: 260 seconds]
chouhoulis has quit [Ping timeout: 246 seconds]
Karunamon|2 is now known as Karunamon
s2013 has joined #ruby
aryaching has joined #ruby
xall_ has joined #ruby
ekinmur has joined #ruby
troulouliou_div2 has joined #ruby
kent\n has quit [Remote host closed the connection]
naprimer is now known as krzysztoff
ldnunes has joined #ruby
alibby has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
kent\n has joined #ruby
ozcanesen has joined #ruby
milardov_ has joined #ruby
choke has joined #ruby
shinnya has joined #ruby
jgpawletko has joined #ruby
infernix has quit [Ping timeout: 260 seconds]
milardovich has quit [Ping timeout: 256 seconds]
<szulak> a quote from "Humble Little Ruby Book" made my day... "Firstly, if it is querying an attribute, it should end in a question mark; for example, if you were to write a method to get the number of French military victories, you could do something like France.has_military_victories?. This would, of course, return false."
<szulak> about methods naming.
etehtsea has joined #ruby
xall has joined #ruby
asdf234 has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
xall_ has quit [Ping timeout: 264 seconds]
centrx has joined #ruby
centrx has joined #ruby
centrx has quit [Changing host]
JeanCarloMachado has quit [Ping timeout: 260 seconds]
sepp2k has joined #ruby
aganov has quit [Remote host closed the connection]
joneshf-laptop has quit [Ping timeout: 260 seconds]
JeanCarloMachado has joined #ruby
antoniobeyah has joined #ruby
jrafanie has joined #ruby
llaine_ has joined #ruby
VladGh_ has quit [Remote host closed the connection]
polishdub has joined #ruby
llaine has quit [Ping timeout: 258 seconds]
VladGh has joined #ruby
et09 has joined #ruby
VladGh has quit [Remote host closed the connection]
<et09> i have [1,2,3,4]. i want to say, please execute ->(x){x**2 == 9} and return the x**2 for the first match (or whatever computation). i.e., please return the return value of lambda x of enumerable y that is truthy
<et09> is there a non-manual way to do that
gsilva has quit [Ping timeout: 268 seconds]
VladGh has joined #ruby
VladGh has quit [Remote host closed the connection]
choke has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
psychicist__ has joined #ruby
haylon has joined #ruby
<hxegon> >> [1, 2, 3, 4].find { |n| n**2 == 9 } # et09
* hxegon kicks ruby[bot]
davorb has quit [Read error: Connection reset by peer]
cdg_ has joined #ruby
<Papierkorb> >> [1,2,3,4].lazy.map{|x| x ** 2}.find{|x| x == 9} # et09
<ruby[bot]> Papierkorb: # => 9 (https://eval.in/763743)
VladGh has joined #ruby
<et09> lazy! omg
<et09> when did they add that
<Papierkorb> depends if you need it, for such a small set, it adds more complexity that's worth
<Papierkorb> lazy has been with us for some time now
davorb has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
<hxegon> >> [1, 2, 3, 4].find { |n| n**2 == 9 } # et09
<et09> it's doing a database query for each member, in my actual case
<ruby[bot]> hxegon: # => 3 (https://eval.in/763745)
<et09> trying to resolve a polymorphic association on a list of objects
<et09> in priority
<et09> hxegon: trying to avoid the double-query
mim1k has joined #ruby
cdg has quit [Ping timeout: 246 seconds]
armyriad has quit [Read error: Connection reset by peer]
joneshf-laptop has joined #ruby
Silthias1 has quit [Read error: Connection reset by peer]
benlieb has joined #ruby
etehtsea has quit [Ping timeout: 240 seconds]
rippa has joined #ruby
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Papierkorb> et09: you shouldn't do that, instead, query all at once if you need almost all OR write a WHERE clause which finds the correct item if you're looking for exactly one or two
<Papierkorb> or 'few'
<Papierkorb> et09: a good ol' JOIN might already help too
ResidentBiscuit has joined #ruby
<et09> you're probably right
<hxegon> why not just .lazy.find?
djbkd has quit [Remote host closed the connection]
<Papierkorb> hxegon: database queries? that's a premier way of producing n+1 queries
djbkd has joined #ruby
<et09> this query would prob never exceed 2ms
patarr_ has joined #ruby
<Papierkorb> 2ms here, 2ms there ...
<et09> although uh, the list is prioritized
jgnagy has joined #ruby
<et09> so it'd have to order and then limit...
<Papierkorb> That's the job of a database
<et09> Papierkorb: and a max base set of length 3
patarr has quit [Ping timeout: 256 seconds]
djbkd has quit [Ping timeout: 260 seconds]
infernix has joined #ruby
doublemalt_ has joined #ruby
marr has quit [Ping timeout: 240 seconds]
igniting has joined #ruby
jgnagy has quit [Ping timeout: 268 seconds]
asdf234 has quit [Ping timeout: 246 seconds]
Rodya_ has quit [Remote host closed the connection]
aufi has quit [Quit: Leaving]
mim1k has quit [Ping timeout: 240 seconds]
mark_66 has quit [Remote host closed the connection]
Rodya_ has joined #ruby
flying has joined #ruby
hostess has quit [Remote host closed the connection]
Burgestrand has quit [Quit: Closing time!]
Burgestrand has joined #ruby
rgr_ has quit [Quit: rgr_]
meshsmith has quit [Remote host closed the connection]
conta has quit [Ping timeout: 268 seconds]
nobitanobi has quit [Remote host closed the connection]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
mim1k has joined #ruby
cfec0b8d has quit [Ping timeout: 258 seconds]
brent__ has joined #ruby
milardov_ has quit [Remote host closed the connection]
nowhere_man has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
milardovich has joined #ruby
dionysus70 has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dionysus69 has quit [Ping timeout: 264 seconds]
dionysus70 is now known as dionysus69
Qchmqs has quit [Quit: Konversation terminated!]
Burgestrand has quit [Quit: Closing time!]
certainty has quit [Ping timeout: 258 seconds]
milardovich has quit [Ping timeout: 268 seconds]
leito has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Ping timeout: 260 seconds]
amclain has joined #ruby
montanonic has joined #ruby
jrafanie has joined #ruby
boombox_ has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
willardg has joined #ruby
mim1k has joined #ruby
username1 has joined #ruby
username2 has joined #ruby
renchan has quit [Quit: Leaving...]
jgnagy has joined #ruby
username2 has quit [Client Quit]
username1 has quit [Client Quit]
raspado has joined #ruby
milardovich has joined #ruby
raspado_ has joined #ruby
govg has joined #ruby
raspado has quit [Read error: Connection reset by peer]
willardg has quit [Client Quit]
hxegon has quit [Quit: leaving]
Jayson_Virissimo has joined #ruby
leito has joined #ruby
Jayson_Virissimo has quit [Client Quit]
TomyWork has quit [Ping timeout: 240 seconds]
rakm has joined #ruby
TomyWork has joined #ruby
hxegon has joined #ruby
gsilva has joined #ruby
planigan has quit [Remote host closed the connection]
GodFather has quit [Ping timeout: 240 seconds]
planigan has joined #ruby
inerkick has joined #ruby
nOwz has quit [Ping timeout: 240 seconds]
nOwz has joined #ruby
hndk has joined #ruby
[Butch] has joined #ruby
boombox_ has quit [Remote host closed the connection]
jge has joined #ruby
<jge> hey all
weaksauce has quit [Ping timeout: 256 seconds]
<jge> trying to get ruby install in ubuntu server, which is not allowed to connect out to the internet except ubuntu repos.
armyriad has joined #ruby
<jge> so I went with installing from source, however, I'm running into an issue on my last step (installing bundler) I do "gem install bundler" but then of course that fails since it tries to connect to rubygems.org
<jge> any other way do install bundler without using gem command?
<jge> or im pretty much screwed at this point..
<baweaver> few options
<baweaver> gem install --local /path/to/bundler.gem
<baweaver> gem sources -a https://your.internal.gemserver.com
<havenwood> jge: Or you can `bundle package` on a system that has internet and ship that package of pre-downloaded gems.
<baweaver> that too
montanonic has quit [Ping timeout: 246 seconds]
djbkd has quit [Quit: My people need me...]
<havenwood> jge: But you're not screwed, lots of options!
<jge> thank goodness for this community ;)
<jge> I'm not familiar with ruby apps
<jge> sounds like gem install --local could be easier?
xall has quit [Ping timeout: 240 seconds]
<jge> any benefit of doing a 'bundle package' ?
SesMan has joined #ruby
<jge> or same result
xall has joined #ruby
SesMan has quit [Ping timeout: 240 seconds]
ekinmur has quit [Quit: Textual IRC Client: www.textualapp.com]
flying has quit []
patarr_ has quit [Read error: Connection reset by peer]
shinnya has quit [Ping timeout: 268 seconds]
bmurt has joined #ruby
MittelDank has joined #ruby
maattdd has quit [Ping timeout: 260 seconds]
kus_ubuntui686 has joined #ruby
kus_ubuntui686 has quit [Max SendQ exceeded]
tolerablyjake has joined #ruby
inerkick has quit [Quit: Leaving]
Doow has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sarbs has quit [Read error: Connection reset by peer]
Rodya_ has quit [Remote host closed the connection]
saltsa has quit [Ping timeout: 264 seconds]
gusrub has joined #ruby
saltsa has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
chouhoulis has joined #ruby
mim1k has quit [Ping timeout: 264 seconds]
tomphp has quit [Ping timeout: 240 seconds]
sarbs has joined #ruby
SeepingN has joined #ruby
pilne has joined #ruby
cahoots has joined #ruby
xenops has quit [Quit: Textual IRC Client: www.textualapp.com]
Rodya_ has joined #ruby
patarr has joined #ruby
marr has joined #ruby
synthroi_ has quit [Remote host closed the connection]
cahoots has quit [Ping timeout: 240 seconds]
llaine_ has quit [Quit: llaine_]
agent_white has joined #ruby
<agent_white> Mornin' folks
bkxd has joined #ruby
Renich has quit [Remote host closed the connection]
skweek has joined #ruby
nadir has joined #ruby
gdonald has quit [Read error: Connection reset by peer]
Beams has quit [Quit: .]
gdonald has joined #ruby
xzhao has quit [Remote host closed the connection]
patarr has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 268 seconds]
xzhao has joined #ruby
xzhao has quit [Remote host closed the connection]
benlieb has quit [Quit: benlieb]
xzhao has joined #ruby
montanonic has joined #ruby
blackpajamas has joined #ruby
TomyWork has quit [Ping timeout: 240 seconds]
benlieb has joined #ruby
mostlybadfly has joined #ruby
jaruga has quit [Quit: jaruga]
gusrub has quit [Remote host closed the connection]
polar_ice has joined #ruby
gusrub has joined #ruby
<centrx> Agent has arrived
<centrx> Secret surveillance commencing
lxsameer has quit [Quit: WeeChat 1.5]
patarr has joined #ruby
<polar_ice> Is there an idiomatic way to get the result of sending the same message to an object multiple times? i.e., "a".next.next.next.next
montanonic has quit [Ping timeout: 258 seconds]
<centrx> polar_ice: [:next, :next, :next].each { |method_name| a.send(method_name) }
unreal has quit [Ping timeout: 260 seconds]
<baweaver> no no no no
gusrub has quit [Ping timeout: 268 seconds]
<baweaver> send can be slow
gbfrow has quit [Remote host closed the connection]
<polar_ice> Something *like* this: (1..10).reduce("a") {|a,_| a.next}
<baweaver> 3.times { value.next }
<baweaver> that too
synthroid has joined #ruby
Rodya_ has quit [Remote host closed the connection]
gusrub has joined #ruby
Rodya_ has joined #ruby
kazo has quit [Ping timeout: 260 seconds]
polar_ice has left #ruby [#ruby]
bocaneri has quit [Read error: Connection reset by peer]
mim1k has joined #ruby
pupsicle has joined #ruby
miah has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 256 seconds]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
hndk has quit [Quit: Leaving]
Arpanet69 has quit [Ping timeout: 260 seconds]
nOwz has quit [Ping timeout: 264 seconds]
mim1k has quit [Ping timeout: 240 seconds]
gusrub has quit [Remote host closed the connection]
SeepingN has joined #ruby
gusrub has joined #ruby
cahoots has joined #ruby
certainty has joined #ruby
antgel has quit [Ping timeout: 240 seconds]
marxarelli|afk has quit [Quit: Textual IRC Client: www.textualapp.com]
marxarelli has joined #ruby
montanonic has joined #ruby
cfec0b8d has joined #ruby
daveomcd has quit [Quit: Leaving]
skweek has quit [Ping timeout: 260 seconds]
fmartingr has quit [Quit: Connection closed for inactivity]
pwnd_nsfw has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 246 seconds]
kirun has joined #ruby
jusa has joined #ruby
rahul_bajaj has joined #ruby
planigan has quit [Ping timeout: 246 seconds]
planigan has joined #ruby
skweek has joined #ruby
rakm_ has joined #ruby
rgtk has joined #ruby
mikecmpbll has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
polishdub has quit [Remote host closed the connection]
jamesaxl has joined #ruby
rakm has quit [Ping timeout: 240 seconds]
nOwz has joined #ruby
polishdub has joined #ruby
skweek has quit [Ping timeout: 258 seconds]
milardovich has quit [Remote host closed the connection]
miah has joined #ruby
skweek has joined #ruby
jenrzzz has joined #ruby
cdg_ has quit [Ping timeout: 240 seconds]
gsilva has quit [Remote host closed the connection]
futilegames has joined #ruby
jrafanie has joined #ruby
xenops has joined #ruby
tolerablyjake has quit [Ping timeout: 246 seconds]
havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.1, 2.3.4 & 2.2.7: 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
nOwz has quit [Ping timeout: 240 seconds]
TomyLobo2 has joined #ruby
troulouliou_div2 has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 240 seconds]
snockerton has joined #ruby
patarr has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
patarr has joined #ruby
xall has quit [Ping timeout: 240 seconds]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrafanie has joined #ruby
jrafanie has quit [Client Quit]
rakm_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
planigan has quit [Ping timeout: 264 seconds]
planigan has joined #ruby
futilegames has quit [Quit: futilegames]
tvw has joined #ruby
rakm has joined #ruby
centrx has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 256 seconds]
planigan has quit [Ping timeout: 246 seconds]
renchan has joined #ruby
nOwz has joined #ruby
Rodya_ has quit [Remote host closed the connection]
IRCFrEAK has joined #ruby
preyalone has joined #ruby
IRCFrEAK has left #ruby [#ruby]
planigan has joined #ruby
jrafanie has joined #ruby
centrx has joined #ruby
centrx has joined #ruby
centrx has quit [Changing host]
benlieb has quit [Quit: benlieb]
nowhere_man has joined #ruby
planigan has quit [Ping timeout: 240 seconds]
_n3xus__ has quit [Quit: leaving]
benlieb has joined #ruby
futilegames has joined #ruby
planigan has joined #ruby
jusa has quit [Ping timeout: 256 seconds]
electrostat has quit [Quit: uwotm8]
electrostat has joined #ruby
davorb has quit [Read error: Connection reset by peer]
davorb has joined #ruby
IRCFrEAK has joined #ruby
nOwz has quit [Ping timeout: 260 seconds]
benlieb has quit [Quit: benlieb]
planigan has quit [Ping timeout: 258 seconds]
IRCFrEAK has left #ruby [#ruby]
planigan has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
montanonic has quit [Ping timeout: 260 seconds]
camonz has joined #ruby
psychicist__ has quit [Quit: leaving]
planigan has quit [Ping timeout: 256 seconds]
skweek has quit [Ping timeout: 256 seconds]
planigan has joined #ruby
chrisgopher has joined #ruby
AndBobsYourUncle has joined #ruby
skweek has joined #ruby
<LyndsySimon> I'm going through a static analysis report, and am confused. It says that passing a user-supplied value to `ActiveRecord::Base.find` is a SQL injection vuln. I can't figure out any way that's possible. Anyone have an opinion on this?
planigan has quit [Client Quit]
psychicist__ has joined #ruby
<LyndsySimon> The line that's raising the warning is: `@my_object = MyObject.find(params[:id])`
<LyndsySimon> Seems like pretty standard stuff to me.
goldpank has joined #ruby
bmurt has quit [Ping timeout: 246 seconds]
<centrx> LyndsySimon: yeah it's probably just wrong
foxness has joined #ruby
DLSteve has joined #ruby
<LyndsySimon> centrx: It seems odd, because the report is from a big-name security vendor. Why would they not be able to handle literally the first case that's used in the Rails tutorial?
<centrx> Maybe their analysis doesn't take ActiveRecord into account?
goldpank has left #ruby [#ruby]
<LyndsySimon> That appears to be the case, it's just really odd. Saying "No, this is fine" when the entity we're paying to do analysis as part of an audit says there is an issue gives me heartburn.
dionysus69 has joined #ruby
<centrx> LyndsySimon: That's the way it is. Sometimes things will be flagged that maybe you should look into, but you decide they are okay.
<centrx> LyndsySimon: Other things will need to be remediated. Other things won't be flagged at all. No one ever gets 100% on a first assessment/audit
nobitanobi has joined #ruby
<LyndsySimon> True. I guess it's better to be "fail-safe" on a first pass.
daivyk has joined #ruby
bmurt has joined #ruby
<centrx> LyndsySimon: false positives better than false negatives
psychicist__ has quit [Quit: Lost terminal]
centrx has quit []
skweek has quit [Ping timeout: 240 seconds]
maattdd has joined #ruby
milardovich has joined #ruby
nobitanobi has quit [Ping timeout: 256 seconds]
milardovich has quit [Ping timeout: 246 seconds]
futilegames has quit [Ping timeout: 240 seconds]
futilegames has joined #ruby
_I_R_C_F_R_E_A_K has joined #ruby
benlieb has joined #ruby
foxness has quit [Quit: WeeChat 1.7]
futilegames_ has joined #ruby
milardovich has joined #ruby
futilegames has quit [Ping timeout: 260 seconds]
agent_white has quit [Ping timeout: 240 seconds]
daivyk has quit [Quit: Quit]
futilegames_ is now known as futilegames
NL3limin4t0r has quit [Read error: Connection reset by peer]
enterprisey has joined #ruby
jphase has joined #ruby
psychicist__ has joined #ruby
grillon has quit []
_I_R_C_F_R_E_A_K has left #ruby [#ruby]
cdg has joined #ruby
jrafanie has joined #ruby
grillon has joined #ruby
Rodya_ has joined #ruby
agent_white has joined #ruby
jrafanie has quit [Client Quit]
sonOfRa has quit [Quit: Bye!]
bkxd has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sonOfRa has joined #ruby
raspado_ has quit [Quit: Leaving...]
s2013 has joined #ruby
Rodya_ has quit [Ping timeout: 246 seconds]
bkxd has quit [Ping timeout: 260 seconds]
Eiam has joined #ruby
jrafanie has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
muelleme_ has joined #ruby
millerti has joined #ruby
<jge> Ok so I'm using bundle install, bundle package then transfer to machine that's offline to install gems.. thing is that every time I do this, some other gem dependency comes up and I have to do this repeatedly for I don't know how many times.. what would be a faster way as this is a real PITA
<jge> someone suggested earlier to set up an offline mirror but how much space would this take?
<havenwood> jge: you can just mirror the gems you use
<havenwood> jge: you don't have to mirror the whole of rubygems
daivyk has joined #ruby
<jge> havenwood: how would I find out which gems I use? I've already done it for whatever is on Gemfile but my plugins (for Redmine app) appearently require additional ones
workmad3 has joined #ruby
<baweaver> Gemfile.lock
<havenwood> jge: bundle show
<baweaver> that too.
<jge> Ok got it, let me try that
<jge> thanks all
gheegh has joined #ruby
jenrzzz has joined #ruby
br0d1n has joined #ruby
montanonic has joined #ruby
marxarelli has quit [Ping timeout: 260 seconds]
<gheegh> hey guys.. i've got a question. i'm using this gem: https://github.com/robmiller/ruby-wpdb (gives you access to a wordpress database). it configures the DB with a WPDB.init class method.. that seems to be "globalish".. I'm trying to copy between two sites (hence two differently configured WPDB's) and its not letting me to it.. then one initializes, it overwrites the "init" of the previous one..
<gheegh> i tried cloning into a variable and freezing. .but that doesn't seems to work.. any other suggestions, other than re-writing it?
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
daivyk has quit [Quit: Quit]
knight33 has joined #ruby
daivyk has joined #ruby
bmurt has joined #ruby
milardovich has quit [Ping timeout: 246 seconds]
planigan has joined #ruby
xychix has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
rahul_bajaj has quit [Quit: Leaving]
Scient has quit [Ping timeout: 245 seconds]
<xychix> Any security minded ruby devvers here? I've got a almost finished exploit Pull request for metasploit. It needs some finishing off (~3 hours for devver with experience). PM me and you might get a change to be co-author on a MSF module ;) credits for life!
futilegames has quit [Quit: futilegames]
dfoolz has quit [Ping timeout: 264 seconds]
snapcase has quit [Ping timeout: 240 seconds]
<hxegon> gheegh: My only idea is Classname.clone to another constant, but I'm not sure if that would work
knight33 has quit [Quit: Textual IRC Client: www.textualapp.com]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Scient has joined #ruby
<dminuoso> hxegon: I'd be careful with that. Cloning such abstract objects might backfire because it will not be a deep copy.
marxarelli has joined #ruby
dfoolz has joined #ruby
snapcase has joined #ruby
renchan has quit [Remote host closed the connection]
duckpupp1 has quit [Ping timeout: 240 seconds]
blackpajamas has quit [Quit: WeeChat 1.7]
ozcanesen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jdm has quit [Remote host closed the connection]
ozcanesen has joined #ruby
brent__ has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 260 seconds]
llaine_ has joined #ruby
llaine_ has quit [Remote host closed the connection]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrafanie has joined #ruby
jrafanie has quit [Client Quit]
j2k has joined #ruby
jrafanie has joined #ruby
gizmore has joined #ruby
jdm has joined #ruby
psychicist__ has quit [Read error: Connection reset by peer]
chrisgopher has quit [Remote host closed the connection]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
montanonic has quit [Ping timeout: 260 seconds]
jdm has quit [Read error: Connection reset by peer]
<gheegh> hxegon: yeah, that didn't work.
<gheegh> first thing I tried
<gheegh> I'm going to rewrite it I guess.
preyalone has quit [Quit: Connection closed for inactivity]
Rodya_ has joined #ruby
daivyk has quit [Quit: Quit]
psychicist__ has joined #ruby
duderonomy has joined #ruby
duderonomy is now known as Guest96190
soud has quit [Ping timeout: 255 seconds]
Lildirt|SomeoneT has quit [Ping timeout: 240 seconds]
Rodya_ has quit [Ping timeout: 246 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
daivyk has joined #ruby
daivyk has quit [Client Quit]
soud has joined #ruby
jusa has joined #ruby
rakm has quit [Read error: Connection reset by peer]
Guest96190 has quit [Client Quit]
rakm has joined #ruby
duderono_ has joined #ruby
jdm has joined #ruby
jenrzzz_ has joined #ruby
duderono_ has quit [Client Quit]
duderono_ has joined #ruby
jdm has quit [Max SendQ exceeded]
yurikoles has quit [Remote host closed the connection]
Didac has quit [Ping timeout: 240 seconds]
jdm has joined #ruby
synthroid has quit []
nOwz has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
jenrzzz has quit [Ping timeout: 258 seconds]
Didac has joined #ruby
jrafanie has joined #ruby
montanonic has joined #ruby
davorb has quit [Read error: Connection reset by peer]
jusa has quit [Ping timeout: 260 seconds]
davorb has joined #ruby
jrafanie has quit [Client Quit]
jrafanie has joined #ruby
jrafanie has quit [Client Quit]
nOwz has quit [Ping timeout: 258 seconds]
snockerton has quit [Quit: Leaving.]
brent__ has joined #ruby
aupadhye has quit [Quit: Leaving]
brent__ has quit [Ping timeout: 260 seconds]
jrafanie has joined #ruby
muelleme_ has quit [Ping timeout: 260 seconds]
ldnunes has quit [Quit: Leaving]
psychicist__ has quit [Read error: Connection reset by peer]
brent__ has joined #ruby
ta_ has joined #ruby
eba has joined #ruby
ramortegui has quit [Quit: Ex-Chat]
<eba> When ever I try to run my code it say that the variable is incorrect on line 23 https://pastebin.com/mJgnUJpe
<ruby[bot]> eba: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/f23aa89d2777efd81f5f377055bbcabf
<ruby[bot]> eba: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
JeanCarloMachado has quit [Ping timeout: 264 seconds]
rob_ has quit [Ping timeout: 240 seconds]
Azure has quit [Quit: Oops.]
tenderlo_ has joined #ruby
balo_ has quit [Ping timeout: 268 seconds]
AgentVenom has quit [Quit: Textual IRC Client: www.textualapp.com]
balo has joined #ruby
eba has quit [Read error: Connection reset by peer]
rob_ has joined #ruby
tenderlove has quit [Ping timeout: 260 seconds]
<cahoots> hi, is there a way to search for a string in a file that may have newline characters in it, and return the line where it starts?
<hxegon> cahoots: as in return any line where a string is matched?
<cahoots> hxegon, get the line of each occurrence
<pupsicle> cahoots: File.readlines("path/to/file.txt").select { |line| line =~ /pattern/ }
<cahoots> pupsicle, the string may have newlines
<cahoots> we can't split on the newline char
Didac has quit [Changing host]
Didac has joined #ruby
<pupsicle> cahoots: what do you mean you can't split on newline char? Is this a homework question?
JeanCarloMachado has joined #ruby
<havenwood> cahoots: File.readlines doesn't split by default, it leaves newlines in place.
<havenwood> cahoots: Each line, with whatever line ending it has.
hutch34_ has quit [Ping timeout: 240 seconds]
<cahoots> maybe split is the wrong word, but readlines won't allow me to match multi-line strings
<havenwood> cahoots: so you need to match content across lines, but find the line it started on?
<cahoots> havenwood, yes
<havenwood> cahoots: what have you tried so far?
<cahoots> havenwood, crying
Azure has joined #ruby
mim1k has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<cahoots> sadness-driven development
blackwind_123 has joined #ruby
<hxegon> It's actually Tears Driven Development, common mistake cahoots
rhyselsmore has joined #ruby
<cahoots> ah of course
<havenwood> >> example = "one line\ntwo lines\nred line\nblue line"; match_position = example =~ /lines\nred/; example[0, 13].count("\n") # cahoots
<ruby[bot]> havenwood: # => 1 (https://eval.in/763884)
mim1k has quit [Ping timeout: 240 seconds]
<cahoots> yeah, we hoping for something more efficient that's not super nitty gritty. that's ok
<havenwood> err, i mean:
<havenwood> >> example = "one line\ntwo lines\nred line\nblue line"; match_position = example =~ /lines\nred/; example[0, match_position].count("\n") # cahoots
<ruby[bot]> havenwood: # => 1 (https://eval.in/763885)
<havenwood> cahoots: Simpler than counting the lines up to the matched position?
<havenwood> hrmm
<havenwood> cahoots: Are you worried that it'll be slow or take too much memory or?
ozcanesen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
planigan has quit [Quit: leaving]
et09 has quit [Quit: leaving]
<cahoots> havenwood, worried on slowness, it has to a lot of searches on a large code base
<cahoots> grep can do it well enough, was just curious for a ruby alternative that was idiomati
<cahoots> c
ozcanesen has joined #ruby
benlieb has quit [Quit: benlieb]
Lildirt has joined #ruby
milardovich has joined #ruby
snockerton has joined #ruby
johnzorn has quit [Read error: Connection reset by peer]
last_staff has quit [Quit: last_staff]
fxa90id has quit [Read error: Connection reset by peer]
meshsmith has joined #ruby
millerti has joined #ruby
johnzorn has joined #ruby
bazzy has quit [Ping timeout: 240 seconds]
snockerton has quit [Quit: Leaving.]
benlieb has joined #ruby
bazzy has joined #ruby
raspado has joined #ruby
bkxd has joined #ruby
paramourne has quit [Ping timeout: 256 seconds]
milardovich has quit [Read error: Connection reset by peer]
nfsnobody has quit [Changing host]
nfsnobody has joined #ruby
ruby[bot] has joined #ruby
milardovich has joined #ruby
bkxd has quit [Ping timeout: 268 seconds]
chouhoulis has quit [Ping timeout: 260 seconds]
jenrzzz_ has quit [Ping timeout: 258 seconds]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
JeanCarloMachado has joined #ruby
blackwind_123 has quit [Ping timeout: 260 seconds]
blackwind_123 has joined #ruby
haylon has quit [Quit: Leaving]
milardovich has quit [Ping timeout: 260 seconds]
muelleme_ has joined #ruby
milardovich has joined #ruby
kirun has quit [Quit: Konversation terminated!]
yehowyada has joined #ruby
JeanCarloMachado has quit [Remote host closed the connection]
JeanCarloMachado has joined #ruby
muelleme_ has quit [Ping timeout: 260 seconds]
biberu has quit [Read error: Connection reset by peer]
mim1k has joined #ruby
ResidentBiscuit has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
workmad3 has quit [Ping timeout: 246 seconds]
hutch34_ has joined #ruby
dar123 has joined #ruby
enterprisey has quit [Read error: Connection reset by peer]
nobitanobi has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
BubonicPestilenc has joined #ruby
JeanCarloMachado has quit [Ping timeout: 246 seconds]
nobitanobi has quit [Ping timeout: 260 seconds]
JeanCarloMachado has joined #ruby
ozcanesen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
krzysztoff has quit [Ping timeout: 260 seconds]
gloscombe_ has joined #ruby
benlieb has quit [Quit: benlieb]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
krzysztoff has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
yehowyada has quit [Ping timeout: 246 seconds]
Rodya_ has joined #ruby
polishdub has quit [Quit: Leaving]
jdm has quit [Ping timeout: 240 seconds]
t-recx has joined #ruby
charliesome has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
s2013 has joined #ruby
Rodya_ has quit [Ping timeout: 246 seconds]
cdg has quit [Remote host closed the connection]
HillBill1999 has joined #ruby
<HillBill1999> What kind of projects are you most impressed with?
<adam12> HillBill1999: in what sense?
<HillBill1999> If I was to get a job
<Radar> Depends on the company I would say.
<HillBill1999> But ruby is only used for websites right?
<Radar> If you were applying at the company I work for (Culture Amp) having an app which took in survey responses would definitely be beneficial to your application process :)
<bougyman> HillBill1999: no.
<HillBill1999> All companies use ruby to make sites no?
<bougyman> I use ruby every day and I never touch teb programming.
<bougyman> *web
<SeepingN> same
<bougyman> I use it for infrastructure automation. oh, and as a dhcp server.
<Radar> HillBill1999: No, there are plenty of other languages out there that people use to build websites. PHP, ASP.NET, Elixir...
<HillBill1999> Infrawhat?
<bougyman> replacing system adminstrators with code.
<SeepingN> we got a young'n
volty has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<adam12> bougyman: You're using it for DHCP?
<bougyman> adam12: hahaha, yeah.
<bougyman> it outperforms ISC.
<adam12> bougyman: I threatened doing that. Is it OSS?
<bougyman> nope.
<adam12> I'm using ISC right now, but the reloads suck.
<bougyman> unfortunately.
<adam12> I wanted something I could hook any kind of backend to - http, etc.
<bougyman> this is distributed, multi-master with a shared db behind it.
<adam12> Since I already store mac+ip assignments in a database.
<adam12> Damn.
<bougyman> but nodes can operate (giving out already-seen leases) even if disconnected from the db.
<adam12> Yeah - I was thinking something very similar.
<adam12> I ended up building a tiny roda app to manage the dhcpd.conf file, but it's meh.
<adam12> (the app is fine, managing the conf file is meh)
dlitvak has quit [Quit: Connection closed for inactivity]
jusa has joined #ruby
HillBill1999 has quit [Ping timeout: 260 seconds]
benlieb has joined #ruby
nOwz has joined #ruby
jusa has quit [Ping timeout: 240 seconds]
Trynemjoel has quit [Ping timeout: 264 seconds]
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
milardovich has quit [Remote host closed the connection]
davorb has quit [Read error: Connection reset by peer]
davorb has joined #ruby
chouhoul_ has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
chouhoul_ has quit [Remote host closed the connection]
chouhoul_ has joined #ruby
JeanCarloMachado has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
gigetoo has quit [Ping timeout: 240 seconds]
ledestin has joined #ruby
chouhoulis has joined #ruby
nOwz has quit [Ping timeout: 240 seconds]
hutch34_ has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
Trynemjoel has joined #ruby
chouhou__ has joined #ruby
DarkBushido has quit [Ping timeout: 260 seconds]
chouhou__ has quit [Remote host closed the connection]
minimalism has quit [Quit: minimalism]
chouhoulis has quit [Ping timeout: 240 seconds]
CloCkWeRX has joined #ruby
muelleme_ has joined #ruby
enterprisey has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
cyphase has quit [Ping timeout: 240 seconds]
JeanCarloMachado has quit [Ping timeout: 256 seconds]
muelleme_ has quit [Ping timeout: 258 seconds]
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
charliesome has joined #ruby
milardovich has joined #ruby
cyphase has joined #ruby
erlend has quit [Remote host closed the connection]
agent_white has quit [Quit: brb]
mim1k has quit [Ping timeout: 260 seconds]
adavia has quit [Quit: Leaving]
Fernando-Basso has quit [Quit: WeeChat 1.7]
bkxd has joined #ruby
maattdd has quit [Ping timeout: 240 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Tharbakim has quit [Changing host]
Tharbakim has joined #ruby
erlend has joined #ruby
gloscombe_ has quit [Quit: gloscombe_]
bkxd has quit [Ping timeout: 256 seconds]
j2k has quit [Quit: Connection closed for inactivity]
erlend has quit [Client Quit]
erlend has joined #ruby
jamesaxl has quit [Quit: WeeChat 1.6]
livcd has quit [Remote host closed the connection]
pwnd_nsfw` has joined #ruby
cyphase has quit [Ping timeout: 246 seconds]
pwnd_nsfw has quit [Ping timeout: 240 seconds]
erlend has quit [Quit: Bye]
cyphase has joined #ruby
GodFather has joined #ruby
skord has joined #ruby
aryaching has quit [Ping timeout: 260 seconds]
Rodya_ has joined #ruby
BubonicPestilenc has quit [Quit: Textual IRC Client: www.textualapp.com]
marr has quit [Ping timeout: 240 seconds]
cyphase has quit [Ping timeout: 260 seconds]
Rodya_ has quit [Ping timeout: 246 seconds]
kristofferR has joined #ruby
ddffg has quit [Ping timeout: 246 seconds]
<cahoots> hi, i want to do a gem install without sudo, but i get problems. any ideas? https://gist.github.com/michaeleiselsc/7610cd3c343f74cfd0a4b43f3b7dfca9
<Radar> cahoots: what operating system?
<cahoots> Radar, osx
<Radar> Rightio.
<cahoots> Radar, i'm looking for something that won't need any sudo, that i can run on a fleet of remote machines without needing to update each one. any ideas?
Snickers has quit [Quit: Snickers]
<Radar> cahoots: Are all the remote machines Mac?
<cahoots> Radar, yes
marxarelli is now known as marxarelli|afk
<Radar> cahoots: I know there's jamf to manage a whole suite of machines, but that might be overkill for this particular instance.
cyphase has joined #ruby
<cahoots> Radar, yeah we might have jamf, but going through IT is a pain
Snickers has joined #ruby
Snickers has quit [Client Quit]
moei has quit [Quit: Leaving...]
BabyMario has joined #ruby
<cahoots> i tried a --local install, also no dice
<adam12> What about --user?
<adam12> Or am I imagining that as a real option. LOL.
<adam12> s/--user/--user-install
<Radar> I think the best option would be to somehow install chruby + ruby-install on those remote machines and install gems as per the regular way.
<Radar> `gem install fastimage`.