mtkd has quit [Read error: Connection reset by peer]
^mtkd has joined #ruby
InfinityFye has joined #ruby
mjolnird has joined #ruby
oetjenj has joined #ruby
eb0t has joined #ruby
eblip has joined #ruby
def_jam has quit [Ping timeout: 240 seconds]
eb0t_ has quit [Ping timeout: 240 seconds]
ldepandis has quit [Ping timeout: 240 seconds]
enterprisey_ has joined #ruby
rfoust has quit [Remote host closed the connection]
alnet has joined #ruby
guardianx has quit []
quobo has joined #ruby
conta has joined #ruby
shime has joined #ruby
Seenox has joined #ruby
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jphase has joined #ruby
shime has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
jphase has quit [Ping timeout: 258 seconds]
^mtkd has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
guille-moe has joined #ruby
mim1k has joined #ruby
kanobt61 has joined #ruby
dminuoso_ has joined #ruby
guardianx has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
ShekharReddy has joined #ruby
alex`` has joined #ruby
jinie has quit [Ping timeout: 240 seconds]
kanobt61 has quit [Ping timeout: 240 seconds]
guardianx has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
jinie has joined #ruby
someuser has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
DoubleMalt has joined #ruby
bronson has joined #ruby
ta has joined #ruby
mathys has joined #ruby
r7c has joined #ruby
hs366 has joined #ruby
dminuoso_ has quit [Ping timeout: 240 seconds]
bronson has quit [Ping timeout: 255 seconds]
DoubleMalt has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
mathys has quit [Quit: Leaving]
mathys has joined #ruby
mark_66 has joined #ruby
DoubleMalt has joined #ruby
Alina-malina has left #ruby ["Leaving"]
mjolnird has quit [Remote host closed the connection]
guardianx has joined #ruby
mjolnird has joined #ruby
dionysus69 has joined #ruby
sysvalve has joined #ruby
rakm has joined #ruby
<rakm>
how would I do a while/until look where I assign to an object to a variable and call a method that has a satisfactory return value?
<rakm>
e.g. until x = !get_random_number.even? { puts x }
<rakm>
sorry, that block syntax is wrong i think
zautomata has quit [Ping timeout: 240 seconds]
<rakm>
but the point is that my get_random_number method returns a number, and i want to call a method on it, but i want to assign the number to the variable
zautomata has joined #ruby
<tobiasvl>
uuh
<tobiasvl>
rakm: well you can do !(x = get_random_number).even?
<tobiasvl>
odd? also exists
ramfjord has joined #ruby
alfiemax has joined #ruby
mjolnird has quit [Remote host closed the connection]
<rakm>
hmm maybe, `x = Person.new until x.get` will work...
<rakm>
i have to assign x the first time manually to do that. is there an equivalent oneliner?
shime has joined #ruby
ramfjord has quit [Ping timeout: 258 seconds]
<rakm>
this works: `x = Person.new; x = Person.new until x.get`
alfiemax has quit [Ping timeout: 258 seconds]
DoubleMalt has quit [Remote host closed the connection]
Trynemjoel has joined #ruby
DoubleMalt has joined #ruby
mjolnird has quit [Quit: Leaving]
mjolnird has joined #ruby
mjolnird has quit [Max SendQ exceeded]
Silthias1 has quit [Read error: Connection reset by peer]
ejnahc_ has quit [Quit: Lost terminal]
mjolnird has joined #ruby
Silthias has joined #ruby
Cohedrin_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
imode has quit [Ping timeout: 255 seconds]
guardianx has quit []
rgr has joined #ruby
CrazyEddy has joined #ruby
Bish has quit [Quit: leaving]
mikecmpbll has quit [Quit: inabit. zz.]
ana_ has joined #ruby
kanobt61 has joined #ruby
ramfjord has quit [Ping timeout: 248 seconds]
mim1k has joined #ruby
dminuoso_ has joined #ruby
Burgestrand has joined #ruby
Burgestrand has quit [Client Quit]
kanobt61 has quit [Ping timeout: 255 seconds]
elsevero has joined #ruby
Burgestrand has joined #ruby
mjolnird has quit [Quit: Leaving]
mikecmpbll has joined #ruby
dminuoso_ has quit [Ping timeout: 248 seconds]
elsevero has quit [Client Quit]
mjolnird has joined #ruby
mjolnird has quit [Max SendQ exceeded]
mjolnird has joined #ruby
ElDoggo has joined #ruby
enterprisey_ has quit [Read error: Connection reset by peer]
zautomata has quit [Ping timeout: 240 seconds]
dminuoso_ has joined #ruby
andikr has joined #ruby
ElDoggo has quit [Ping timeout: 248 seconds]
ramfjord has joined #ruby
DoubleMalt has quit [Ping timeout: 240 seconds]
hahuang65 has quit [Read error: Connection reset by peer]
hahuang65 has joined #ruby
ramfjord has quit [Ping timeout: 258 seconds]
lxsameer has joined #ruby
cadillac_ has quit [Read error: Connection reset by peer]
tvw has joined #ruby
cadillac_ has joined #ruby
workmad3 has joined #ruby
Harzilein has joined #ruby
<Harzilein>
hi
anisha has joined #ruby
<Harzilein>
so, many gems and their constituting objects implement the api needed for pp... which makes me wonder if there are alternative pp renderers with, say, html output or something
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has quit [Ping timeout: 255 seconds]
zautomata has joined #ruby
paranoicsan is now known as paranoicsan[Away
mim1k has joined #ruby
marr has joined #ruby
tvw has quit []
claudiuinberlin has joined #ruby
blackmesa1 has joined #ruby
<rob_>
awesome_print - doesnt output html afaik but it's an alternative to pp
ThomasQM has quit [Ping timeout: 258 seconds]
blackmesa has quit [Ping timeout: 246 seconds]
<Harzilein>
rob_: does it use the pp callbacks though?
kies has quit [Ping timeout: 248 seconds]
<rob_>
not sure
jameser has quit [Ping timeout: 248 seconds]
phaul has joined #ruby
jameser has joined #ruby
TomyLobo has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Beams has joined #ruby
ElDoggo has joined #ruby
kanobt61 has joined #ruby
paranoicsan[Away is now known as paranoicsan
kanobt61 has quit [Ping timeout: 240 seconds]
paranoicsan has left #ruby [#ruby]
dminuoso_ has quit [Ping timeout: 258 seconds]
Beams has quit [Quit: .]
dminuoso_ has joined #ruby
yCrazyEdd has joined #ruby
bronson has joined #ruby
CrazyEddy has quit [Remote host closed the connection]
yCrazyEdd is now known as CrazyEddy
Beams has joined #ruby
bronson has quit [Ping timeout: 246 seconds]
DoubleMalt has joined #ruby
Bhootrk_ has joined #ruby
Bhootrk_ has quit [Max SendQ exceeded]
sylario has joined #ruby
ferr has joined #ruby
charliesome has joined #ruby
GodFather has joined #ruby
blackmesa1 has quit [Ping timeout: 255 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Dimik has quit [Ping timeout: 240 seconds]
GodFather has quit [Read error: Connection reset by peer]
dinfuehr has quit [Ping timeout: 246 seconds]
dinfuehr has joined #ruby
nowhereman has quit [Read error: Connection reset by peer]
claudiuinberlin has joined #ruby
ElDoggo has quit [Ping timeout: 264 seconds]
nowhereman has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
claudiuinberlin has joined #ruby
<darix>
Harzilein: you probably want rouge or something
apparition has quit [Quit: Bye]
<Harzilein>
darix: improbable
kanobt61 has joined #ruby
<Harzilein>
darix: i don't want to format code, i want to tap into objects where helpful programmers thought of a pp based presentation. that data would be useful to me when i could control the formatting more
<dionysus69>
I have cronjob with ruby path included but I get bundle command not found
<Harzilein>
darix: naturally before i go and write a formatter myself, i want to look if someone already did that
<darix>
Harzilein: you wanted to render html from code. rouge does that. so
<Harzilein>
-.-
huyderman has quit [Remote host closed the connection]
<Harzilein>
darix: rouge is for formatting _source code_. i don't want to format source code. as for the building html from it part: i can build html myself well enough. the important part is that i'd prefer to stay ignorant of the pp particulars when there's a gem that already interfaces in the same way as pp does
kanobt61 has quit [Ping timeout: 240 seconds]
<Harzilein>
so pp works by providing a bunch of callbacks and passing the pp object into a pretty_print function that calls those. i'd have expected at least a dozen formatters based on that very api, providing the same callback methods as pp does
c0mrad3 has joined #ruby
huyderman has joined #ruby
ferr has quit [Quit: WeeChat 1.9]
ferr has joined #ruby
<Harzilein>
darix: to repeat: i _do not_ want source pretty printing. just because something is called a pretty printer it would _not_ involve source highlighting. thank you but no thanks.
rgr_ has joined #ruby
<Harzilein>
+necessarily
ferr has quit [Client Quit]
adlerdias has joined #ruby
rgr has quit [Ping timeout: 255 seconds]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ferr has joined #ruby
bruno- has joined #ruby
ramfjord has joined #ruby
claudiuinberlin has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
dminuoso_ has quit [Ping timeout: 248 seconds]
charliesome has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
workmad3 has joined #ruby
ramfjord has joined #ruby
alfiemax has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 248 seconds]
apparition has joined #ruby
ferr has quit [Quit: WeeChat 1.9.1]
apparition has quit [Ping timeout: 246 seconds]
Siyfion has joined #ruby
anisha has quit [Ping timeout: 248 seconds]
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
ferr has joined #ruby
anisha has joined #ruby
ShekharReddy has quit [Quit: Connection closed for inactivity]
kanobt61 has joined #ruby
Ishido has joined #ruby
dionysus69 has quit [Remote host closed the connection]
kanobt61 has quit [Ping timeout: 240 seconds]
lexruee has quit [Ping timeout: 240 seconds]
lexruee has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
claudiuinberlin has joined #ruby
bronson has joined #ruby
kanobt61 has joined #ruby
bweston92 has joined #ruby
Ishido has quit [Ping timeout: 240 seconds]
bronson has quit [Ping timeout: 264 seconds]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Paraxial has quit [Remote host closed the connection]
dminuoso_ has joined #ruby
kanobt61 has quit [Ping timeout: 248 seconds]
bruno- has quit [Ping timeout: 255 seconds]
Paraxial has joined #ruby
claudiuinberlin has joined #ruby
FahmeF has joined #ruby
tlaxkit has joined #ruby
Paraxial has quit [Remote host closed the connection]
Paraxial has joined #ruby
Ishido has joined #ruby
ramfjord has joined #ruby
blackmesa1 has joined #ruby
shime has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
ldnunes has joined #ruby
ramfjord has quit [Ping timeout: 258 seconds]
jurep has joined #ruby
jurep has left #ruby [#ruby]
shinnya has joined #ruby
tvw has joined #ruby
ElDoggo has joined #ruby
jurep has joined #ruby
bruno- has joined #ruby
ElDoggo has quit [Ping timeout: 248 seconds]
zautomata has quit [Ping timeout: 240 seconds]
conta1 has joined #ruby
dionysus69 has joined #ruby
conta has quit [Ping timeout: 248 seconds]
conta1 is now known as conta
elsevero has joined #ruby
tvw has quit [Ping timeout: 264 seconds]
mark_66 has quit [Read error: Connection reset by peer]
mark_66 has joined #ruby
ShekharReddy has joined #ruby
knight33 has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
houhoulis has joined #ruby
knight33 has quit [Client Quit]
ramfjord has joined #ruby
Silthias1 has joined #ruby
claudiuinberlin has joined #ruby
Silthias has quit [Ping timeout: 258 seconds]
hs367 has joined #ruby
hs367 has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 246 seconds]
fmcgeough has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
fmcgeough has quit [Ping timeout: 248 seconds]
ldnunes has quit [Ping timeout: 240 seconds]
kanobt61 has joined #ruby
fmcgeough has joined #ruby
tvw has joined #ruby
kanobt61 has quit [Ping timeout: 248 seconds]
bastilian_ has quit [Read error: Connection reset by peer]
Psy-Q has left #ruby ["Leaving"]
simmaniac has joined #ruby
bmurt has joined #ruby
sysvalve has quit [Ping timeout: 240 seconds]
blackmesa1 has quit [Ping timeout: 255 seconds]
ldnunes has joined #ruby
agimenez has joined #ruby
abrcdbr has joined #ruby
bastilian_ has joined #ruby
simmaniac has quit [Ping timeout: 264 seconds]
sysvalve has joined #ruby
rwb has quit [Ping timeout: 240 seconds]
minimalism has joined #ruby
agimenez has quit [Ping timeout: 246 seconds]
bastilian_ has quit [Client Quit]
bastilian_ has joined #ruby
__Yiota has joined #ruby
ShalokShalom_ has joined #ruby
ams__ has joined #ruby
kanobt61 has joined #ruby
hs366 has quit [Quit: Leaving]
ShalokShalom has quit [Ping timeout: 240 seconds]
rfoust has joined #ruby
charliesome has quit [Remote host closed the connection]
hs366 has joined #ruby
audy has quit [Ping timeout: 248 seconds]
gf3 has quit [Ping timeout: 240 seconds]
bazzy has quit [Ping timeout: 240 seconds]
ironcamel has quit [Ping timeout: 248 seconds]
ironcamel has joined #ruby
charliesome has joined #ruby
chouhoulis has joined #ruby
workmad3 has joined #ruby
sepp2k has joined #ruby
truenito has joined #ruby
bazzy has joined #ruby
gf3 has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mson has joined #ruby
truenito has quit [Ping timeout: 255 seconds]
audy has joined #ruby
FastJack has quit [Read error: Connection reset by peer]
FastJack has joined #ruby
tamouse__ has quit [Ping timeout: 240 seconds]
zautomata has joined #ruby
snickers has quit [Ping timeout: 264 seconds]
vondruch has quit [Ping timeout: 248 seconds]
aupadhye has quit [Ping timeout: 255 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
snickers has joined #ruby
ur5us has joined #ruby
alnet has quit [Ping timeout: 240 seconds]
ur5us has quit [Ping timeout: 260 seconds]
tamouse__ has joined #ruby
paranoicsan has joined #ruby
bronson has joined #ruby
tamouse__ has quit [Ping timeout: 258 seconds]
blackmesa1 has joined #ruby
shinnya has quit [Ping timeout: 248 seconds]
__Yiota has joined #ruby
rwb has joined #ruby
bronson has quit [Ping timeout: 264 seconds]
snickers has quit [Ping timeout: 260 seconds]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kanobt61_ has joined #ruby
DLSteve_ has joined #ruby
bruno- has quit [Ping timeout: 246 seconds]
kanobt61 has quit [Ping timeout: 255 seconds]
Siyfion has quit [Read error: Connection reset by peer]
edwardly has quit [Max SendQ exceeded]
Siyfion has joined #ruby
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
alex`` has quit [Ping timeout: 240 seconds]
andikr has quit [Remote host closed the connection]
daveomcd has quit [Quit: Leaving]
Silthias has joined #ruby
ta has quit [Remote host closed the connection]
Silthias1 has quit [Ping timeout: 258 seconds]
rgr_ has quit [Quit: rgr_]
c0mrad3 has quit [Quit: Connection closed for inactivity]
cdg_ has quit [Read error: Connection reset by peer]
cdg__ has joined #ruby
cdg has quit [Ping timeout: 260 seconds]
tamouse__ has quit [Ping timeout: 240 seconds]
orbyt_ has joined #ruby
__Yiota has joined #ruby
<Zarthus>
i use it to cure my migraines
<fChanX>
LOL
blackmesa has joined #ruby
dionysus69 has quit [Ping timeout: 246 seconds]
<havenwood>
fChanX: All sorts of things. It's general purpose.
<havenwood>
fChanX: It's not particularly good for GUI bindings or high FPS-related things.
lxsameer has quit [Ping timeout: 260 seconds]
<havenwood>
fChanX: It's not a system language or embeddable (though there's mruby for the latter).
<fChanX>
Thanks!
andikr has quit [Remote host closed the connection]
blackmesa1 has quit [Ping timeout: 240 seconds]
sekmo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
[Butch] has joined #ruby
<setient>
what about crystal or using ruby llvm stuff to compile down to a binary :) i am kidding.
kies has joined #ruby
paranoicsan has quit [Quit: paranoicsan]
FahmeF_ has joined #ruby
FahmeF has quit [Ping timeout: 248 seconds]
cschneid_ has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dviola has joined #ruby
<cschneid_>
Is there a gem or helper to edit Gemfiles? Operations like: "insert <xyz gem> after <existing gem> into <dev, test> groups"?
spt0 has quit [Ping timeout: 260 seconds]
troys has joined #ruby
fChanX has left #ruby [#ruby]
<darix>
cschneid_: vim
gusrub has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
roshanavand has joined #ruby
Rapture has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
<cschneid_>
darix: trying to automate the setup of a lot of docker images, with different versions of gems & such - basically a CI type system, but locally. "Here's the base Gemfile, but then plug in unicorn plz".
<cschneid_>
So automated, not just a one-off editor thing
ferr has quit [Quit: WeeChat 1.9.1]
<darix>
cschneid_: see what redmine e.g. does with a Gemfile.local
<darix>
you could do something like that
thinkpad has quit [Ping timeout: 248 seconds]
<darix>
and then dump container specific Gemfile.local files
<cschneid_>
interesting. Looking, but it may end up with me just doing silly sed commands...
chmurifree has quit [Ping timeout: 240 seconds]
alfiemax has quit [Remote host closed the connection]
spt0 has joined #ruby
edwardly has quit [Max SendQ exceeded]
cagomez has quit [Remote host closed the connection]
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
blackmesa has quit [Ping timeout: 255 seconds]
amirite has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
SeepingN has joined #ruby
tpendragon has quit [Ping timeout: 255 seconds]
tuelz has quit [Ping timeout: 255 seconds]
alfiemax has joined #ruby
chmurifree has joined #ruby
tuelz has joined #ruby
tpendragon has joined #ruby
cdg has joined #ruby
Beams has quit [Quit: .]
amirite has quit [Remote host closed the connection]
cdg__ has quit [Ping timeout: 248 seconds]
bronson has joined #ruby
bathtub_shark has quit [Remote host closed the connection]
mostlybadfly has quit []
Ishido has quit [Remote host closed the connection]
cagomez has joined #ruby
naftilos76 has joined #ruby
Ishido has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
alfiemax has quit [Remote host closed the connection]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mostlybadfly has joined #ruby
mikecmpbll has joined #ruby
amirite has joined #ruby
neuraload has joined #ruby
bathtub_shark has joined #ruby
alex`` has quit [Read error: No route to host]
eckhardt has joined #ruby
bmurt has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tvw has quit []
alfiemax has joined #ruby
rakm has joined #ruby
mtkd has quit [Ping timeout: 248 seconds]
mtkd has joined #ruby
tcopeland has joined #ruby
neuraload has quit [Quit: This computer has gone to sleep]
ShekharReddy has quit [Quit: Connection closed for inactivity]
dreamthese has quit [Remote host closed the connection]
dreamthese has joined #ruby
dviola has quit [Ping timeout: 246 seconds]
dminuoso_ has joined #ruby
jrafanie has joined #ruby
dminuoso_ has quit [Ping timeout: 258 seconds]
biberu has quit []
graft has quit [Ping timeout: 260 seconds]
graft has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
FahmeF_ has quit [Remote host closed the connection]
rgr has quit [Quit: rgr]
imode has quit [Ping timeout: 258 seconds]
bronson has joined #ruby
troys is now known as troys_
orbyt_ has joined #ruby
rfmind has joined #ruby
bronson has quit [Ping timeout: 255 seconds]
lele has quit [Ping timeout: 246 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
graft has quit [Ping timeout: 240 seconds]
Cohedrin_ has joined #ruby
graft has joined #ruby
graft has quit [Changing host]
graft has joined #ruby
tamouse__ has joined #ruby
lele has joined #ruby
FahmeF has joined #ruby
troys_ is now known as troys
rakm has joined #ruby
tamouse__ has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
jenrzzz has joined #ruby
shinnya has joined #ruby
oetjenj has joined #ruby
marxarelli|afk is now known as marxarelli
ledestin has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
jinie has quit [Ping timeout: 255 seconds]
jinie has joined #ruby
Guest97372 has joined #ruby
bruno- has quit [Ping timeout: 248 seconds]
ramfjord has joined #ruby
Bock has quit [Ping timeout: 248 seconds]
FastJack has quit [Read error: Connection reset by peer]
FastJack has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shime has joined #ruby
troys is now known as troys_
bruno- has joined #ruby
simmaniac has joined #ruby
sysvalve has quit [Ping timeout: 240 seconds]
bathtub_shark has quit [Quit: WeeChat 1.9.1]
ruby_n00b has joined #ruby
jrafanie has quit [Ping timeout: 248 seconds]
shime has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
hahuang65 has quit [Ping timeout: 246 seconds]
bathtub_shark has joined #ruby
bathtub_shark has quit [Client Quit]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrafanie has joined #ruby
claudiuinberlin has joined #ruby
bathtub_shark has joined #ruby
selim has quit [Ping timeout: 248 seconds]
edward_ has joined #ruby
selim has joined #ruby
cagomez has quit [Remote host closed the connection]
Cohedrin_ has quit [Read error: Connection reset by peer]
bathtub_shark has quit [Client Quit]
cagomez has joined #ruby
ryandevilla has joined #ruby
Cohedrin_ has joined #ruby
bathtub_shark has joined #ruby
bmurt has joined #ruby
bathtub_shark has quit [Remote host closed the connection]
bathtub_shark has joined #ruby
cagomez has quit [Ping timeout: 248 seconds]
ta has joined #ruby
bathtub_shark has quit [Client Quit]
bathtub_shark has joined #ruby
FahmeF has quit [Remote host closed the connection]
bathtub_shark has quit [Remote host closed the connection]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
FahmeF has joined #ruby
bathtub_shark has joined #ruby
bathtub_shark has quit [Remote host closed the connection]
theunraveler has joined #ruby
tlaxkit has quit [Quit: Me voy...]
cdg_ has joined #ruby
mtkd has quit [Ping timeout: 248 seconds]
mtkd has joined #ruby
marxarelli is now known as marxarelli|afk
cdg has quit [Ping timeout: 240 seconds]
cdg_ has quit [Ping timeout: 264 seconds]
naftilos76 has quit [Ping timeout: 248 seconds]
dviola has joined #ruby
Cohedrin_ has quit [Read error: Connection reset by peer]
dviola has quit [Changing host]
dviola has joined #ruby
Cohedrin_ has joined #ruby
ams__ has quit [Quit: Connection closed for inactivity]
AlexRussia has joined #ruby
dmtd has quit [Quit: Connection closed for inactivity]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
gusrub_ has joined #ruby
FahmeF has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
ShalokShalom_ is now known as ShalokShalom
rabajaj has joined #ruby
gusrub has quit [Ping timeout: 258 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
guille-moe has quit [Ping timeout: 246 seconds]
orbyt_ has joined #ruby
Xiti has quit [Quit: Xiti]
cagomez has joined #ruby
Xiti has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
adlerdias has left #ruby [#ruby]
charliesome has quit [Ping timeout: 248 seconds]
conta has joined #ruby
bronson has joined #ruby
cagomez has quit [Ping timeout: 248 seconds]
mathys has quit [Quit: Leaving]
cagomez has joined #ruby
jenrzzz_ has joined #ruby
conta has quit [Ping timeout: 248 seconds]
bronson has quit [Ping timeout: 248 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tamouse__ has joined #ruby
alfiemax has quit [Remote host closed the connection]
jrafanie has joined #ruby
hahuang65 has joined #ruby
Dimik has joined #ruby
tamouse__ has quit [Ping timeout: 258 seconds]
tamouse__ has joined #ruby
ur5us has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tvw has joined #ruby
dinfuehr has quit [Ping timeout: 240 seconds]
zachk has joined #ruby
prutheus has joined #ruby
bmurt has joined #ruby
dinfuehr has joined #ruby
charliesome has joined #ruby
<prutheus>
Hello. I need to solve a difficult task. It is a web scraping task. I want to use mechanize. I need to login to this page by entering the right captcha: https://vcheck.ttc.lacounty.gov/ the problem is, the captcha is not loaded directly but later via javascript. I got extracted the image already by getting some variables and urls. But my form submit seems to not work, when i inter the right captcha and submit via mechanize, it retur
<prutheus>
ng the new html
<prutheus>
here you can check my code to extract the image
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
someuser has quit [Ping timeout: 255 seconds]
<eam>
prutheus: you should be aware, circumventing a captcha in this way may constitute a felony
rwb has quit [Ping timeout: 240 seconds]
<eam>
(it's a bit of a grey area)
eckhardt has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
claudiuinberlin has joined #ruby
ryandevilla has quit [Ping timeout: 255 seconds]
<prutheus>
eam: why? what is forbiddin on that way? i view the image and enter it
snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<eam>
you've read the terms of service on that page? It's not criminal to ignore terms of service (civil matter, reasonable outcome of winning) but it can potentially be criminal to bypass a restriction mechanism -- the captcha
claudiuinberlin has quit [Client Quit]
prutheus_ has joined #ruby
guardianx has joined #ruby
<prutheus_>
eam: have you answered already?
<prutheus_>
i had a disconnect
prutheus has quit [Ping timeout: 260 seconds]
<teatime>
prutheus_: if you're in the US, the CFAA can be read to make all kinds of ridiculous things criminal.
<teatime>
grr
tamouse__ has quit [Ping timeout: 246 seconds]
<prutheus_>
well, that is no problem at all, because I do not bypass the captcha illegally. I view it and enter the code manually. So this is legit in sense of the captcha is blocking violential access.
<prutheus_>
please help me submitting the captcha
tamouse__ has joined #ruby
simmaniac has quit [Quit: Leaving]
enterprisey has joined #ruby
ryandevilla has joined #ruby
jphase has quit [Remote host closed the connection]
maciej has joined #ruby
zautomata has quit [Ping timeout: 240 seconds]
maciej has quit [Client Quit]
jphase has joined #ruby
<eam>
you may find your theories don't hold when push comes to shove, but hey, no skin off my back
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
troys_ is now known as troys
<prutheus_>
eam, i am no native american, so could you please explain me what you mean?
milardovich has quit [Remote host closed the connection]
tamouse__ has quit [Ping timeout: 248 seconds]
tamouse__ has joined #ruby
<eam>
prutheus_: their terms request that you not scrape and the captcha is a restriction mechanism attempting to enforce those terms. Violating their terms isn't criminal, but bypassing a control mechanism may be
ruby_n00b has quit [Quit: Page closed]
<eam>
it's a grey area
<prutheus_>
ok, but this is my problem i think ^^ could you please help me breaking the captcha problem i meintioned?
<eam>
I'm no good with frontend stuff, so no :) But I wish you luck
sepp2k has quit [Quit: Leaving.]
jphase has quit [Ping timeout: 255 seconds]
<havenwood>
prutheus_: We have this nasty thing called the DMCA that criminalizes circumventing even feeble technical protections for copyrighted work.
<prutheus_>
havenwood: what do you want me to say?
<havenwood>
prutheus_: If you can lawfully do what you're trying to do, maybe look at Selenium.
fmcgeough has quit [Quit: fmcgeough]
<eam>
interestingly though, and contrary to the claims on that page, I do not think the content in question is under copyright
<prutheus_>
selenium is no option for me :/
ResidentBiscuit has quit [Ping timeout: 258 seconds]
hahuang65 has quit [Ping timeout: 240 seconds]
<eam>
for two reasons: 1) can't copyright facts, and 2) California is one of the states which generally prohibits its government from copyrighting its own works
<eam>
I still wouldn't try to mechanize the captcha though
rgr has joined #ruby
<eam>
I wonder if you can send them an FOIA and just ask for a database dump
<teatime>
a lot of times that second thing is gotten around by hiring a private contractor to create the work.
bmurt has joined #ruby
<eam>
yeah
milardovich has joined #ruby
ResidentBiscuit has joined #ruby
ResidentBiscuit has quit [Max SendQ exceeded]
ResidentBiscuit has joined #ruby
<eam>
honestly, we should just publish the data
<prutheus_>
eam, so you mean I should stop working on that?
<eam>
prutheus_: up to you
claudiuinberlin has joined #ruby
<eam>
it may or may not even be an issue if you're not in the US -- just offering advice
<prutheus_>
well the problem is noone of you guys are helping me :D
<eam>
I would, if I were any good at javascript and web stuff!
<eam>
havenwood suggested Selenium
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<prutheus_>
problem is that noone want to use selenium for web scraping :D it is also too slow
claudiuinberlin has quit [Client Quit]
cdg has joined #ruby
<prutheus_>
i mean i get mechanize nearly workiiiiiiing, there is just one little blob missing to get my problem solved i think
Cohedrin_ has quit [Read error: Connection reset by peer]
<eam>
well I have to thank you because this conversation reminded me to pay my 2017 property taxes ...
Cohedrin_ has joined #ruby
<prutheus_>
hehe
jenrzzz_ has quit [Ping timeout: 240 seconds]
<teatime>
eam: lol
<prutheus_>
teatime: you may have any other ideas?
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<eam>
$3 to process an ACH, what a ripoff
hahuang65 has joined #ruby
bmurt has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
amirite has quit [Ping timeout: 248 seconds]
ryandevilla has quit [Ping timeout: 258 seconds]
rabajaj has quit [Quit: Leaving]
AndBobsYourUncle has joined #ruby
rwb has joined #ruby
milardovich has quit [Remote host closed the connection]
sepp2k has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
ryandevilla has joined #ruby
troys is now known as troys_
wattt has joined #ruby
prutheus_ has quit [Quit: Page closed]
wattt is now known as thomasv314
thomasv314 has quit [Client Quit]
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
thomasv314 has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
ryandevilla has quit [Ping timeout: 240 seconds]
eckhardt has joined #ruby
ldnunes has quit [Quit: Leaving]
thomasv314 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dviola has quit [Quit: WeeChat 1.9.1]
[Butch] has quit [Quit: I'm out . . .]
mim1k has joined #ruby
thomasv314 has joined #ruby
sagax has quit [Ping timeout: 240 seconds]
scottj has joined #ruby
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has quit [Ping timeout: 248 seconds]
bronson has joined #ruby
cdg_ has joined #ruby
theunraveler has quit []
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg has quit [Ping timeout: 240 seconds]
perniciouscaffei has joined #ruby
dionysus69 has quit [Ping timeout: 248 seconds]
jrafanie has joined #ruby
shime has joined #ruby
eckhardt has joined #ruby
chouhoul_ has joined #ruby
bronson has quit [Remote host closed the connection]
troys is now known as troys_
orbyt_ has joined #ruby
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jrafanie has quit [Ping timeout: 248 seconds]
chouhoulis has quit [Ping timeout: 248 seconds]
AndBobsYourUncle has joined #ruby
chouhoul_ has quit [Ping timeout: 240 seconds]
amirite has joined #ruby
iszak has quit [Ping timeout: 240 seconds]
iszak has joined #ruby
iszak has quit [Changing host]
iszak has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 258 seconds]
<rakm>
is it possible to call retry in a method and pass different arguments to it?
shime has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
amirite has quit [Ping timeout: 260 seconds]
tamouse__ has quit [Ping timeout: 258 seconds]
<matthewd>
rakm: That's not what retry does, so.. no.
tamouse__ has joined #ruby
<havenwood>
rakm: but you could check the arity of the current method and call it again with different arguments - where do the alternative arguments come from?
<rakm>
a private method
<havenwood>
rakm: method(__method__).parameters
<havenwood>
rakm: You'll have to show some code or describe more what you're doing for us to give better answers.
<havenwood>
rakm: You can check what your current method allows for parameters from inside the method like above ^
<havenwood>
rakm: and of course you can call it with your params
<havenwood>
>> def example argument, another_argument = nil, keyword: true; method(__method__).parameters end; example 42 # rakm
<rakm>
was wondering if instead of recalling the method, i could use retry to any advantage
<rakm>
sry, indentation on line 9 is messed up
<havenwood>
rakm: So you have a recursive method and are looking for possible better solutions?
<rakm>
not sure if this is recursive...it's a protection against an invalid argument
<havenwood>
So basically is there a better pattern than recursing in the rescue?
<rakm>
but yeah, I guess looking for better patterns in general
<havenwood>
rakm: It seems like flow control recursion to me. Hmm.
<havenwood>
I mean errors as flow control with recursion.
<rakm>
sure, we can call it that. i don't know the formal definition of recursion
<havenwood>
rakm: calling oneself until a condition occurs
<havenwood>
something like that
<rakm>
ok, then this is recursion
ryandevilla has quit [Ping timeout: 240 seconds]
amirite has joined #ruby
<rakm>
basically, i get person ids from a different source, but the update could fail (in some external code) if the person doesn't meet some conditions
<rakm>
i want to assign the thing to someone else in that case
DLSteve_ has quit [Quit: All rise, the honorable DLSteve has left the channel.]
<rakm>
getting a random person is expensive, which is why i memoize it and have a refresh option
<rakm>
my code will only run twice though
<havenwood>
rakm: that's nice, since you'll have no issues with stack level too deep
<rakm>
i'd like to configure it to run multiple times with an variable that only exists in that method's scope. it looked like retry would be able to do it
<rakm>
with an instance-like variable
<havenwood>
rakm: yeah, if you want to change one thing and retry, that might be a good way to go
<rakm>
i don't want to keep a count in an @ivar, since that @ivar will not be relevant outside this method
<rakm>
i guess i can keep a counter (for number of retries) and pass it in as an argument..
tamouse__ has quit [Ping timeout: 248 seconds]
tamouse__ has joined #ruby
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]