<random-jellyfish>
is there some gem that can help me find the main div on a webpage, for example in a news article I want to automatically extract the text of the article and ignore other text like title, navbar, menus, adds, etc. ?
<cuppajoeman>
Which somehow solved my issue
postmodern has joined #ruby
<adam12>
random-jellyfish: Nothing automatic AFAIK. You could use nokogiri or Oga and just work through some known selectors for main elements.
<adam12>
cuppajoeman: Not even the TypeError is concerning; you have a segfault too. Glad you got it working on 2.7 tho.
<adam12>
random-jellyfish: You'd need some sort of ML maybe. I saw a library for Python not too long ago.
<cuppajoeman>
the weird thing is that I'm sure I followed two diff install instructions to a tee (arch linux one and then jekyll) one both with same result
<random-jellyfish>
adam12 do you remember the name of the python lib?
<adam12>
random-jellyfish: Checking my GH stars now :)
<dviola>
adam12: let's say I want to create other classes, so that my class App won't grow too large, should I just pass r to other class/methods in that case?
Rounin has quit [Ping timeout: 244 seconds]
<dviola>
and continue from there
<adam12>
dviola: Depends on what your doing. If it's related to routing, look at the plugins for splitting apps. multi_route, hash_route, etc.
<adam12>
dviola: If it's application code, then definitely split it out but I wouldn't pass in `r`. That's unnecessary binding.
<nakilon>
but lol, the website that is linked in that 2014 article is some crap, with some page about aimbots and banned video embedded; website says it's already has nothing to do with original authors
<nakilon>
so they've implemented it and then abandoned?...
<adam12>
Isnt' there another markdown that's standard? CommonMark?
BSaboia has quit [Remote host closed the connection]
justHaunt has quit [Read error: Connection reset by peer]
justHaunt has joined #ruby
<dviola>
adam12: interesting, I'll take a look, thanks
markong has joined #ruby
<dviola>
I'm enjoying working with roda, Jeremy Evans gems are really good
Tempesta has quit [Quit: See ya!]
Tempesta has joined #ruby
shiru has quit [Quit: leaving]
Rounin has quit [Ping timeout: 260 seconds]
<adam12>
dviola: I have lots of apps built on Roda + Sequel.
<dviola>
adam12: nice
steerpike has quit [Remote host closed the connection]
darkxploit has left #ruby [#ruby]
exeqcius has joined #ruby
exeqcius has quit [Remote host closed the connection]
darkxploit has joined #ruby
roshanavand has quit [Ping timeout: 245 seconds]
___nick___ has joined #ruby
___nick___ has quit [Client Quit]
___nick___ has joined #ruby
dviola has quit [Quit: WeeChat 3.3]
dviola has joined #ruby
dviola has quit [Quit: WeeChat 3.3]
roshanavand has joined #ruby
ur5us_ has joined #ruby
markong has quit [Ping timeout: 260 seconds]
donofrio has quit [Read error: Connection reset by peer]
ur5us_ has quit [Ping timeout: 245 seconds]
roshanavand has quit [Ping timeout: 260 seconds]
CrazyEddy has joined #ruby
Inline has quit [Ping timeout: 245 seconds]
<rapha>
evening all
<rapha>
is there a nice library not depending on curses for editing a string on the commandline? before reading it back with gets/etc.?
<rapha>
oh, nevermind ... tty provides the answer as usual ... they have tty-prompt :P
jpw has quit [Remote host closed the connection]
_ht has joined #ruby
___nick___ has quit [Ping timeout: 260 seconds]
_ht has quit [Remote host closed the connection]
<cAMP>
I was looking at Jeremy Evans Roda introduction. It says Roda applications are "meant to be frozen." What does a frozen application imply? Is it a process inside which the ruby interpreter is frozen?
<adam12>
cAMP: Frozen means that mutable objects are "frozen". I quote frozen because nothing in Ruby is truly frozen.
<adam12>
cAMP: So, let's say Roda maintains plugins inside an Array. Adding a plugin mutates that Array. But you don't want to mutate that Array when handling a request, as it might be a sign of something unsafe, so you call `freeze` after booting your app, and now that Array will raise a FrozenError if it's mutated, showing you that you might have an
<adam12>
unsafe operation somewhere.
<adam12>
cAMP: This generally means that when booting your Roda app, the call inside your config.ru would look something like `run App.freeze.app`