gusrub has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 255 seconds]
amclain has quit [Quit: Leaving]
blindMoe has joined #ruby
zebird has quit [Ping timeout: 240 seconds]
<blindMoe>
Is there a trick to checking the existing of a variable deep down into an array stack without checking every step? Ie: if !session[:foobar][:this][:that]['test'].nil? In this case if session[:foobar] is nil it throws an error and checking if every level is defined does not seem very elegant
<havenwood>
blindMoe: #dig
<blindMoe>
ahh nice
<blindMoe>
thank you very much
<havenwood>
you're welcome. happy coding!
<blindMoe>
so essentially if session.dig(:foobar, :this, :that, 'test') ?
<blindMoe>
my god that is so much cleaner :)
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
Renich has joined #ruby
boombox_ has joined #ruby
marr has quit [Ping timeout: 240 seconds]
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
olivi____ has quit [Remote host closed the connection]
<blindMoe>
havenwood: any method that compares for ruby < 2.3 ?
millerti has joined #ruby
eckhardt has joined #ruby
oliv_____ has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
<blindMoe>
found a gem for it.. thanks again!
SteenJobs_ has quit [Quit: SteenJobs_]
SteenJobs_ has joined #ruby
oliv_____ has quit [Ping timeout: 260 seconds]
Rodya_ has joined #ruby
tacoboy has quit [Remote host closed the connection]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
kculpis has joined #ruby
wingedsnake has joined #ruby
Rodya_ has quit [Ping timeout: 240 seconds]
enterprisey has joined #ruby
boombox_ has quit [Remote host closed the connection]
BlkDynmt has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sarmiena_ has quit [Quit: sarmiena_]
gusrub has joined #ruby
tacoboy has joined #ruby
SteenJobs_ has quit [Quit: SteenJobs_]
cagomez has quit [Remote host closed the connection]
ar1a_ has quit [Ping timeout: 246 seconds]
cagomez has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
gusrub has quit [Ping timeout: 260 seconds]
ar1a has joined #ruby
wnd has quit [Excess Flood]
cagomez has quit [Ping timeout: 240 seconds]
wnd has joined #ruby
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wingedsnake has quit [Remote host closed the connection]
bronson has joined #ruby
vee_ has quit [Ping timeout: 248 seconds]
swills has quit [Remote host closed the connection]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
minimalism has quit [Ping timeout: 240 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has joined #ruby
kwesidev has quit [Ping timeout: 268 seconds]
oleo has quit [Quit: irc client terminated!]
__Yiota has quit [Ping timeout: 276 seconds]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
patrontechnosoft has joined #ruby
Ropeney has joined #ruby
Ropeney has quit [Client Quit]
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has joined #ruby
Rodya_ has joined #ruby
bruno- has quit [Ping timeout: 248 seconds]
mim1k has quit [Ping timeout: 268 seconds]
Rodya_ has quit [Remote host closed the connection]
patrontechnosoft has quit [Remote host closed the connection]
sarbs has joined #ruby
nunchuck has quit [Ping timeout: 240 seconds]
jaruga has joined #ruby
Rodya_ has joined #ruby
hutch34_ has quit [Ping timeout: 255 seconds]
johnzorn has quit [Ping timeout: 258 seconds]
ta_ has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
aurelien` has joined #ruby
jameser has joined #ruby
AxelAlex has quit [Quit: AxelAlex]
aurelien has quit [Ping timeout: 240 seconds]
ta_ has quit [Ping timeout: 248 seconds]
high_fiver has joined #ruby
bruno- has joined #ruby
Bock has joined #ruby
bronson has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jameser has joined #ruby
bronson has quit [Ping timeout: 255 seconds]
alveric1 has quit [Quit: WeeChat 1.9]
high_fiver has quit [Remote host closed the connection]
jaruga has quit [Quit: jaruga]
Dimik has joined #ruby
high_fiver has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
nunchuck has joined #ruby
rabajaj has joined #ruby
bruno- has quit [Ping timeout: 255 seconds]
jaruga has joined #ruby
sarmiena_ has joined #ruby
KeyJoo has joined #ruby
anisha has joined #ruby
grant has joined #ruby
minimalism has joined #ruby
uZiel has joined #ruby
enterprisey has quit [Remote host closed the connection]
guardianxx has quit []
AxelAlex has joined #ruby
TomyLobo2 has joined #ruby
muzik is now known as muzik_gone
Asher has quit [Quit: Leaving.]
lxsameer has joined #ruby
high_fiver has quit [Ping timeout: 246 seconds]
djbkd has joined #ruby
uZiel has quit [Remote host closed the connection]
bronson has joined #ruby
hutch34_ has joined #ruby
ur5us has quit [Remote host closed the connection]
rabajaj has quit [Ping timeout: 255 seconds]
muzik_gone has quit [Ping timeout: 240 seconds]
sarmiena_ has quit [Quit: sarmiena_]
bronson has quit [Ping timeout: 240 seconds]
AxelAlex has quit [Quit: AxelAlex]
hutch34_ has quit [Ping timeout: 255 seconds]
TomyLobo2 has quit [Ping timeout: 255 seconds]
grant has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nacsurte has joined #ruby
antgel has joined #ruby
nacsurte has quit [Ping timeout: 260 seconds]
uZiel has joined #ruby
blindMoe has quit [Ping timeout: 240 seconds]
andikr has joined #ruby
jinie- has quit [Ping timeout: 240 seconds]
jinie_ has joined #ruby
ta_ has joined #ruby
apofis has joined #ruby
aurelien` has quit [Changing host]
aurelien` has joined #ruby
cam27 has quit [Quit: cam27]
aufi has joined #ruby
mzelin has joined #ruby
KeyJoo has quit [Ping timeout: 240 seconds]
high_fiver has joined #ruby
alveric has joined #ruby
Asher has joined #ruby
<mzelin>
hey. I wanna mount a usb stick via my ruby script, when it gets unplugged it should get umounted. this works already. Then, when mounted, I want to write into a file on it. Works too. Problem: when I exit my program while mounted, it gets umounted and the file is saved. good. But when I unplug while running, the file is not permanently saved. While
<mzelin>
it is plugged in, the file content is what it should be, looking at it with an external editor. But when unplugging, the file modification is lost. why? script: https://bpaste.net/show/dbc5c516ef6e
kculpis has quit [Quit: Leaving]
<mzelin>
in line 22 i write to it and close the file, so it should be saved, and like i told you already, watching the file tells me that it is saved ...
<dminuoso>
mzelin: Stop abusing Ruby for this.
<mzelin>
Sorry? what you mean?
<dminuoso>
mzelin: Look at udev.
<mzelin>
okay, but i still wanna know what I've done wrong
<dminuoso>
mzelin: The entire attempt is ill-conceived in my perspective.
<mzelin>
nono, cause the log file is getting bigger and bigger all time, so i need handling what is on stick already and waht not
olivi____ has joined #ruby
<dminuoso>
mzelin: Sure, but the interaction to figure out when devices are mounted or not is something you should do with udev rules.
opekktar_ has joined #ruby
<dminuoso>
It's trivial.
<mzelin>
dminuoso: my mounting works, so this is no topic. saving the file is a topic or not?
<dminuoso>
Sorry I'm not going to assist in writing horrible system scripts. I've seen far too much bullshit like that in our infrastructure from admins that are no longer around.
<dminuoso>
Use udev rules.
<mzelin>
for what? mounting?
<dminuoso>
Or autofs perhaps.
<mzelin>
oh i jsut need to mount it with -o sync ... i forgot about that option. thanks anyway dminuoso ;)
<mzelin>
of course i'll listen to you, but I don't understand why i should do it complicated when I can use my already-working-stuff
olivi____ has quit [Ping timeout: 246 seconds]
<dminuoso>
mzelin: That thing will clog up CPU by permanently doing a system("") calls, which in turn use `ls` for absolutely no good reason.
SeepingN has quit [Quit: The system is going down for reboot NOW!]
<mzelin>
dminuoso: you are right, for performance reasons it is bullshit. but it is a hacking script. I don't know why, but i like such hacks
aaoiki has joined #ruby
<dminuoso>
mzelin: It's not a hack.
<mzelin>
sure it is
<dminuoso>
mzelin: There's nothing even remotely elegant about the solution. You could do it in _half_ the code by just using udev rules to take care of the mounting part.
opekktar_ has quit []
kahra has joined #ruby
<dminuoso>
Or autofs, but I think udev might be a bit shorter.
<mzelin>
okay, so you think at least the mounting i should do in duev rules?
ShekharReddy has joined #ruby
<dminuoso>
mzelin: mounting/unmounting. have the "manager" emit a pid file, on unmount you can then just signal the process to terminate.
<mzelin>
maybe you convinced me .. but so, you need to explain me more detailed
<dminuoso>
And then the manager can just a simple loop {} with lines 21-23
<mzelin>
I haven't understand how I should realizhe that
<mzelin>
so, udev is mounting and umounting automatically, well
<mzelin>
how let my program determine that?
<mzelin>
i mean if it is mounted
<dminuoso>
your program does not care
<mzelin>
?
<dminuoso>
It just runs when it is mounted.
<dminuoso>
and udev will ensure that your program only runs when it is.
<mzelin>
this could be an idea, yeah
<mzelin>
dminuoso: this is a good solution, wow
high_fiver has quit [Ping timeout: 240 seconds]
<mzelin>
one problem: i am working on a freebsd system, there is no udev ...
<ineb>
lol, what a twist.
hkdsun has quit [Ping timeout: 255 seconds]
<mzelin>
yeah :D
vuoto has joined #ruby
<ineb>
there is /etc/devd.conf on freebsd for such things. but i dont know much about that
hkdsun has joined #ruby
vuoto has quit [Remote host closed the connection]
Silthias has joined #ruby
Silthias1 has quit [Ping timeout: 260 seconds]
high_fiver has joined #ruby
mark_66 has joined #ruby
bronson has joined #ruby
Mortomes|Work has joined #ruby
cgfbee has joined #ruby
<Radar>
lol
nofxxxx has joined #ruby
bronson has quit [Ping timeout: 260 seconds]
lxsameer has quit [Quit: WeeChat 1.7]
djbkd has quit [Remote host closed the connection]
rundor has quit [Remote host closed the connection]
rundor has joined #ruby
aufi has quit [Ping timeout: 255 seconds]
<Terens>
hello
<Terens>
Which is a good way to get progress for a future in concurrent ruby/
tunaBee_ has quit [Ping timeout: 255 seconds]
rundor has quit [Ping timeout: 246 seconds]
Silthias1 has joined #ruby
<dminuoso>
?xy Terens
<ruby[bot]>
Terens: it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
cagomez has joined #ruby
Silthias has quit [Ping timeout: 240 seconds]
marr has joined #ruby
mim1k has joined #ruby
<Terens>
Ok I will give an example. I create a Future that downloads a file and I can get how many bytes are downloaded. What is the best way to share its progress?
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cagomez has quit [Ping timeout: 268 seconds]
jackjackdripper has joined #ruby
garethrees has joined #ruby
<herwin>
the future doesn't have any notion of the amount of downloaded bytes
<herwin>
or even that it's downloading
<Terens>
Using threads i could store a local variable with progress self[:progress]=.... . Any other suggestion then?
aufi has joined #ruby
sysvalve has joined #ruby
bronson has joined #ruby
rundor has joined #ruby
Rodya_ has quit [Quit: Leaving...]
clamstar has quit [Ping timeout: 240 seconds]
nug has quit [Ping timeout: 246 seconds]
<dminuoso>
Terens: I don't think a Future is a good fit for that.
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso>
I want to be able to do something like.... defmethod(:length, []) &-> { 0 }; defmethod(:length, [:first, :"*Rest"]) &-> { (first, rest) 1 + length(rest) }
oliv_____ has quit [Quit: Leaving...]
<Papierkorb>
Me not :D
<pootiscoder>
why isn't there a fat arrow function like javascript in ruby? it's so much faster
oliv_____ has joined #ruby
<dminuoso>
pootiscoder: ther eis.
<dminuoso>
pootiscoder: I just used it in fact.
chouhoulis has quit [Ping timeout: 246 seconds]
<dminuoso>
pootiscoder: ruby blocks/procs/lambdas are the equivalent.
<pootiscoder>
ik
<pootiscoder>
syntax tho
bkxd has quit [Ping timeout: 240 seconds]
<dminuoso>
-> { |a| }
<dminuoso>
(a) -> {}
<pootiscoder>
like this (arg1, arg2) => {}
<dminuoso>
not too terribly different.
<pootiscoder>
oh cool
<Papierkorb>
->(x){ } *
<dminuoso>
that
<pootiscoder>
can you do it with do/end?
<dminuoso>
I suck at Ruby.
mim1k has quit [Ping timeout: 246 seconds]
<dminuoso>
pootiscoder: You can use them interexchangablebalbly
<Papierkorb>
of course. `lambda do |x| .. end`
<dminuoso>
pootiscoder: it's just common to use do/end for multiline things
<pootiscoder>
interexchangablebalby
<Papierkorb>
though if you want to pass in some logic, you probably meant to use a block
<dminuoso>
pootiscoder: I started typing and couldn't figure out the spelling.
<dminuoso>
Just added enough letters until it looked about right.
<dminuoso>
Or...
<dminuoso>
use pattern matching!
<pootiscoder>
dminuoso you probably know cos you are in #reactjs too, you were just answering someone
oliv_____ has quit [Remote host closed the connection]
SuperL4g is now known as SuperLag
olivi____ has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
dhaller has joined #ruby
<octomancer>
dminuoso: idgi ... a) what does the * do and b) how does that apply to my line of code ;-)
bronson has joined #ruby
<octomancer>
i've written a lot of perl, where there is a subtle difference between a list and an array, am i falling foul of something similar in ruby?
<Papierkorb>
Thankfully, not
<Papierkorb>
Ruby is funny, but not insane like perl
<octomancer>
heh
mikecmpbll has joined #ruby
hutch34_ has joined #ruby
<Papierkorb>
octomancer: The leading star is the (unary) splat operator. it takes the following array and 'expands' it on the stack, effectively turning the array into a list of arguments you can pass into a method.
<ytti>
python is the new perl
<ytti>
first langauge people pick-up, not because they want to program
<ytti>
but because they have to automate something
<ytti>
consequently like perl, there is tons of really poor quality python code
<ytti>
no classes, long functions
<ytti>
but this of course also means python won
<ytti>
which makes me sad
<octomancer>
Papierkorb: that sounds exactly like the Perlish difference between a list and an array which you denied i was falling foul of ;-)
<Papierkorb>
octomancer: The difference is, that ruby has no "list"
bronson has quit [Ping timeout: 255 seconds]
<Papierkorb>
octomancer: you can't accidentally splat something, like you can use a list without even knowing in Perl
warrshrike has joined #ruby
<polishdub>
ytti: If There was more of a push to use Ruby beyond RoR, then Ruby might see more usage
<octomancer>
well, stap me vitals, this worked: out << sprintf("%s %s - %s %s %s", *l.slice(:neigh, :asn, :asname, :time, :pfx).values)
<polishdub>
but because people only see it as a single purpose, they discard it
<octomancer>
thanks all :-)
<Papierkorb>
polishdub: I'm not even sure if loosing cargo-cult developers is such a bad thing
<Papierkorb>
They moved on to NodeJS, and probably then to whatever is hip after that. Eh.
<octomancer>
i'm of the opinion that if you are coding for fun then the concept of cargo-culting does not even exist. not saying people should get paid for it though
bruno- has quit [Ping timeout: 246 seconds]
dhaller has quit [Read error: Connection timed out]
<Papierkorb>
When I code for fun, I don't get paid. When I get paid, coding is hopefully fun, but it's not the main objective. (Do not mis-read that as "if it's never fun, that's fine")
<octomancer>
i tend to agree. work should be as much fun as possible, but sometimes it's just work
<dminuoso>
octomancer: * is kind of like ... in javascript
<dminuoso>
it kind of can be used in all the same places and it usually has the same effect everywhere
<dminuoso>
Papierkorb: Im not sure why you think that node js has lots of cargo cult programming
pootiscoder has quit [Quit: pootiscoder]
<Papierkorb>
dminuoso: I don't care and only used nodejs as example.
<havenwood>
tynamite: It's as simple as adding Puma to your Gemfile typically.
rundor has quit [Remote host closed the connection]
<tynamite>
I'm a web developer, not a sysadmin so I wouldn't know about how to reverse proxy all that stuff and set it up. Is there a tutorial somewhere?
apeiros has joined #ruby
rundor has joined #ruby
jinie_ has joined #ruby
rundor has quit [Remote host closed the connection]
rundor has joined #ruby
rundor has quit [Remote host closed the connection]
_sfiguser has joined #ruby
rundor has joined #ruby
rundor has quit [Remote host closed the connection]
adlerdias has quit [Quit: adlerdias]
hurricanehrndz has joined #ruby
Snowy has quit [Ping timeout: 260 seconds]
ldnunes has joined #ruby
rgtk has joined #ruby
<havenwood>
tynamite: Are you using Windows Server or Apache or?
<havenwood>
IIS?
<tynamite>
apache
<tynamite>
on my windows laptop
oliv_____ has joined #ruby
<tynamite>
I'll use puma in future thank you havenwood
bonhoeffer has joined #ruby
<havenwood>
tynamite: You should find a bunch of options if you search for: reverse proxy apache puma
<havenwood>
tynamite: no prob, you're welcome
oliv_____ has quit [Remote host closed the connection]
kies has quit [Ping timeout: 240 seconds]
olivi____ has joined #ruby
<havenwood>
tynamite: Puma is the Rails default option now. Unicorn, Passenger, Thin, etc are nice alternatives.
<tynamite>
I'll look into that now. Lots of good results I think came up.
<tynamite>
I don't use Rails I use Ramaze.
<tynamite>
Because I can't find any good rails tutorials smh
<havenwood>
tynamite: Ah, nice. Even Rack itself should choose Puma when available.
<tynamite>
Looks like I'm going to change from webrick to puma
<havenwood>
tynamite: The Rails docs themselves are very polished. There could be more of them but they are solid.
<tynamite>
Maybe they've improved it since I checked 5 years ago.
<havenwood>
tynamite: Switching from WEBrick to Puma is a good idea! It should be more reliable and faster.
mtkd has quit [Ping timeout: 268 seconds]
<guacamol_>
hi friends, does anyone have a good recommendation for a gem that will format phone #s based on country? looked into carr/phone and floere/phoney but wondering if there are other good alternatives out there
mtkd has joined #ruby
olivi____ has quit [Remote host closed the connection]
SteppenII has quit [Remote host closed the connection]
<tynamite>
Looking at the code in the link I gave you, it looks like all you have to do is change :webrick to :puma but that doesn't work.
<guacamol_>
i think you need the puma gem to do that, maybe try making that gemfile?
<tynamite>
Ramaze isn't very active so I suppose I'll email manveru instead.
<tynamite>
I've put puma in my gemfile and my app.rb file
bronson has quit [Ping timeout: 260 seconds]
<guacamol_>
did you bundle?
<tynamite>
I'll do that now.
<guacamol_>
out of curiousity, does it work if you change :webrick to :thin? just asking because that's on the list of adapters in the docs (puma isn't listed there)
<tynamite>
I use ramaze for my debate and Q&A website.
<tynamite>
I suppose that's the only active use for it to my knowledge.
<manveru>
hehe
olivi____ has quit [Ping timeout: 246 seconds]
<manveru>
well for puma you might need to fork Ramaze
<manveru>
because innate uses very old rack
sarmiena_ has joined #ruby
<manveru>
I'm mobile at the moment. but I can maybe help you tonight
kies has joined #ruby
raspado has joined #ruby
MichaelBurge has joined #ruby
<tynamite>
gem rdiscount failed to install
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<tynamite>
Here's the error from the log file.
<tynamite>
C:\mowes\ruby\lib\ruby\gems\1.9.1\gems\rdiscount-2.1.8\ext/conftest.c:8: undefined reference to `random'
<tynamite>
I'm going to have to use an old version of rdiscount to work with ruby 1.9.3
eckhardt has joined #ruby
ResidentBiscuit is now known as SageBiscuit
MrBismuth has joined #ruby
cdg__ has joined #ruby
cam27 has joined #ruby
cdg_ has quit [Ping timeout: 260 seconds]
MrBusiness has quit [Ping timeout: 276 seconds]
monument has quit [Remote host closed the connection]
Eiam has joined #ruby
MrBismuth has quit [Ping timeout: 240 seconds]
MrBusiness has joined #ruby
olivi____ has joined #ruby
guacamol_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bayed has quit [Ping timeout: 258 seconds]
mikecmpbll has joined #ruby
bayed has joined #ruby
high_fiver has joined #ruby
csk has quit [Ping timeout: 240 seconds]
csk has joined #ruby
high_fiver_ has joined #ruby
jackjackdripper has joined #ruby
high_fiver has quit [Read error: Connection reset by peer]
SageBiscuit is now known as Guest90210
olivi____ has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
olivi____ has joined #ruby
chouhoulis has joined #ruby
ur5us has joined #ruby
ur5us has quit [Ping timeout: 246 seconds]
dionysus70 has joined #ruby
dionysus69 has quit [Ping timeout: 255 seconds]
dionysus70 is now known as dionysus69
ozcanesen has joined #ruby
SeepingN has joined #ruby
jaruga has joined #ruby
guacamol_ has joined #ruby
Bock has quit [Ping timeout: 240 seconds]
<tynamite>
How do I change my ramaze adapter from webrick to thin manveru?
uZiel has quit [Ping timeout: 248 seconds]
[Butch] has quit [Quit: I'm out . . .]
wilbert has joined #ruby
bronson has joined #ruby
xuanrui has joined #ruby
guacamol_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tynamite has left #ruby [#ruby]
romankapitonov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roshanavand has quit [Quit: roshanavand]
bronson has quit [Ping timeout: 255 seconds]
gusrub has quit []
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
gusrub has joined #ruby
high_fiver_ has quit [Ping timeout: 255 seconds]
Prutheus has joined #ruby
<Prutheus>
Hello! I am working with https://github.com/gushonorato/google-scraper ... wanna run their example, but get an error: /lib/capybara/node/finders.rb:49:in `block in find': Unable to find css "#pnnext" (Capybara::ElementNotFound)
kamilkucharski has quit [Ping timeout: 240 seconds]
<Prutheus>
this should be a mistake, google has the element #pnnext at its page
<Prutheus>
what should i do?
conta3 has joined #ruby
enterprisey has quit [Ping timeout: 260 seconds]
eelster has joined #ruby
pwned has quit [Ping timeout: 268 seconds]
rundor has joined #ruby
jaruga has quit [Quit: jaruga]
eelster has quit [Client Quit]
<Prutheus>
could someone please tell me why this error occurs?
eelster has joined #ruby
MrBusiness has quit [Ping timeout: 240 seconds]
<adam12>
Prutheus: Maybe it actually doesn't, when the scraper sees it. Maybe the scraper sees the captcha/bot activity page.
<adam12>
Prutheus: I don't know what your code looks like, but you could try rescuing Capybara::ElementNotFound and outputting the HTML of what is currently being parsed.
<adam12>
Prutheus: You've never seen it? Google can spot scrapers and forces a captcha.
cdg__ has quit [Ping timeout: 260 seconds]
<adam12>
I see it all the time if I'm using DuckDuckGo and using the !g bang too often.
Fraeon has quit [Ping timeout: 268 seconds]
Fraeon has joined #ruby
<naitian>
:wq
jtd has quit [Quit: No Ping reply in 180 seconds.]
jtd has joined #ruby
Eiam has quit [Max SendQ exceeded]
rabajaj has quit [Quit: Leaving]
ledestin has joined #ruby
enterprisey has joined #ruby
Eiam has joined #ruby
cagomez has quit [Remote host closed the connection]
guacamol_ has joined #ruby
cagomez has joined #ruby
Salih has left #ruby ["Leaving"]
<havenwood>
naitian: 'readonly' option is set (add ! to override)
_sfiguser has quit [Ping timeout: 240 seconds]
domgetter has joined #ruby
quobo has joined #ruby
jenrzzz has joined #ruby
t-recx has quit [Quit: t-recx]
cagomez has quit [Ping timeout: 260 seconds]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gusrub has quit [Remote host closed the connection]
gusrub has joined #ruby
InfinityFye has quit [Ping timeout: 240 seconds]
Guest90210 is now known as ResidentBiscuit
gusrub has quit [Ping timeout: 240 seconds]
_sfiguser has joined #ruby
workmad3 has quit [Ping timeout: 268 seconds]
gusrub has joined #ruby
raspado_ has joined #ruby
alex`` has quit [Quit: WeeChat 1.9]
romankapitonov has joined #ruby
raspado has quit [Ping timeout: 240 seconds]
<Prutheus>
adam12: i am using the example posted on their github, can't modify the lib code right now, no access, could you please check this up for me?
conta3 has quit [Ping timeout: 255 seconds]
ElFerna has joined #ruby
bronson has joined #ruby
lxsameer has joined #ruby
Snowy has joined #ruby
InfinityFye has joined #ruby
InfinityFye has quit [Client Quit]
bronson has quit [Ping timeout: 268 seconds]
brent___ has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
MrBusiness has joined #ruby
cagomez has joined #ruby
cdg has joined #ruby
Rapture has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rapture has joined #ruby
_2easy has quit [Quit: leaving]
cagomez has quit [Ping timeout: 260 seconds]
mtkd has quit [Ping timeout: 255 seconds]
ta_ has quit [Remote host closed the connection]
Asher has quit [Ping timeout: 260 seconds]
MrBusiness has quit [Ping timeout: 240 seconds]
cdg_ has joined #ruby
Asher has joined #ruby
ta_ has joined #ruby
mtkd has joined #ruby
eckhardt has joined #ruby
cdg has quit [Ping timeout: 260 seconds]
moeabdol has quit [Quit: WeeChat 1.9]
Snowy has quit [Remote host closed the connection]
adlerdias has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 268 seconds]
<Prutheus>
`/quit
Prutheus has quit [Quit: leaving]
Dbugger has joined #ruby
ElFerna has quit [Read error: Connection reset by peer]
ta_ has quit [Remote host closed the connection]
Dbugger has quit [Quit: Leaving]
brent__ has joined #ruby
rRru has joined #ruby
rRru has left #ruby [#ruby]
pwned has joined #ruby
jtd has quit [Quit: No Ping reply in 180 seconds.]
jtd has joined #ruby
t-recx has joined #ruby
ozcanesen has quit [Max SendQ exceeded]
jtd has quit [Client Quit]
cagomez has joined #ruby
jtd has joined #ruby
romankapitonov has quit [Read error: Connection reset by peer]
cagomez has quit [Remote host closed the connection]
loincloth has joined #ruby
cagomez has joined #ruby
romankapitonov has joined #ruby
HoierM has joined #ruby
Dreamer3_ has quit [Quit: Computer has gone to sleep.]
cagomez has quit [Ping timeout: 240 seconds]
tunaBee_2 has joined #ruby
rundor has quit [Remote host closed the connection]
gusrub has quit [Remote host closed the connection]
MrBusiness has joined #ruby
tunaBee_ has quit [Ping timeout: 240 seconds]
bronson has joined #ruby
dviola has quit [Quit: WeeChat 1.9]
dviola has joined #ruby
sepp2k has quit [Quit: Leaving.]
bronson has quit [Ping timeout: 248 seconds]
moeabdol has joined #ruby
ElFerna has joined #ruby
synthroid has quit []
enterprisey has quit [Read error: Connection reset by peer]
moei has quit [Quit: Leaving...]
ta_ has joined #ruby
DoubleMalt has joined #ruby
cagomez has joined #ruby
marxarelli is now known as marxarelli|afk
milardovich has joined #ruby
jenrzzz has joined #ruby
gusrub has joined #ruby
Dimik has quit [Ping timeout: 248 seconds]
herbmillerjr has quit [Excess Flood]
raspado has joined #ruby
hays has quit [Quit: No Ping reply in 180 seconds.]
herbmillerjr has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
cagomez has joined #ruby
hays has joined #ruby
pwned has quit [Ping timeout: 240 seconds]
raspado_ has quit [Ping timeout: 240 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ldnunes has quit [Quit: Leaving]
milardov_ has joined #ruby
ElFerna has quit [Ping timeout: 255 seconds]
wilbert has quit [Ping timeout: 260 seconds]
knight33 has joined #ruby
ta_ has quit [Remote host closed the connection]
dmtd has joined #ruby
milardovich has quit [Ping timeout: 255 seconds]
Xentil has joined #ruby
rundor has joined #ruby
milardov_ has quit []
lianj has quit [Read error: Connection reset by peer]
electrostat has quit [Ping timeout: 255 seconds]
Mrgoose2 has joined #ruby
<Mrgoose2>
im using GRPC and getting a return object of type :Google::Protobuf::RepeatedField . How do i turn that into json?
romankapitonov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has joined #ruby
theunraveler has quit []
mim1k has joined #ruby
anjen has joined #ruby
romankapitonov has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
anjen has quit [Client Quit]
segmond has quit [Ping timeout: 240 seconds]
mim1k has quit [Ping timeout: 240 seconds]
gizmore|2 has quit [Read error: Connection reset by peer]
bronson has joined #ruby
Murda has joined #ruby
jenrzzz has joined #ruby
loincloth has quit []
gizmore has joined #ruby
oleo has quit [Read error: Connection reset by peer]
bronson has quit [Ping timeout: 262 seconds]
KeyJoo has joined #ruby
moei has joined #ruby
johnny56 has quit [Ping timeout: 264 seconds]
MrBusiness has quit [Ping timeout: 240 seconds]
DoubleMalt has quit [Ping timeout: 240 seconds]
romankapitonov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<zenspider>
elcontrastador: you should probably be using .result instead of eval
deep-book-gk_ has left #ruby [#ruby]
cagomez has quit [Remote host closed the connection]
ElFerna has quit [Ping timeout: 248 seconds]
cagomez has joined #ruby
olivi____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
olivi____ has quit [Remote host closed the connection]
<elcontrastador>
I was using erb.result(binding) when i was using ERB... this example is shown using Erubis as described in their docs. I agree, thought that was odd using eval
oliv_____ has joined #ruby
jameser has joined #ruby
cagomez has quit [Remote host closed the connection]
gusrub has quit [Remote host closed the connection]
cagomez has joined #ruby
lxsameer has quit [Quit: WeeChat 1.7]
gusrub has joined #ruby
mim1k has joined #ruby
jameser has quit [Client Quit]
spiette has quit [Quit: :qa!]
mim1k has quit [Ping timeout: 240 seconds]
jameser has joined #ruby
oliv_____ has quit [Remote host closed the connection]