ChanServ changed the topic of #crystal-lang to: The Crystal programming language | https://crystal-lang.org | Fund Crystal's development: https://crystal-lang.org/sponsors | GH: https://github.com/crystal-lang/crystal | Docs: https://crystal-lang.org/docs | Gitter: https://gitter.im/crystal-lang/crystal
Chillfox has joined #crystal-lang
brain-soup has joined #crystal-lang
MiaChillfox has joined #crystal-lang
Chillfox has quit [Ping timeout: 260 seconds]
<FromGitter> <nanobowers> trying to get a plaintext - hex-string of an MD5 checksum and came up with two ways to do it: ⏎ ⏎ ```code paste, see link``` ⏎ ⏎ the latter one is probably a little harder to read, but is that the preferred way? ... [https://gitter.im/crystal-lang/crystal?at=618088e4fb3dcd4e8860d00f]
<FromGitter> <Blacksmoke16> 🤔
<FromGitter> <Blacksmoke16> `Digest::MD5.hexdigest x`?
<FromGitter> <nanobowers> unsure how i missed that, thx
<FromGitter> <Blacksmoke16> API docs aren't the greatest on Digest, just because of how it's implemented
<FromGitter> <Blacksmoke16> those nice methods are on like `Digest::ClassMethods`
ua_ has quit [Ping timeout: 260 seconds]
ua_ has joined #crystal-lang
Guest8553 has quit [Quit: Leaving]
<FromGitter> <perfecto25> hey guys question, is there a way to iterate an array by a span, ⏎ ⏎ ie ⏎ array = [1,2,3,4,5,6,7,8,9] ⏎ puts array.loop(3) ... [https://gitter.im/crystal-lang/crystal?at=6180a255fb8ca0572bf99d1c]
<FromGitter> <Blacksmoke16> https://crystal-lang.org/api/master/Enumerable.html#in_groups_of(size:Int,filled_up_with:U=nil)forallU-instance-method
<FromGitter> <Blacksmoke16> er the one below that
<FromGitter> <perfecto25> perfect thansks!
ur5us has quit [Remote host closed the connection]
ur5us has joined #crystal-lang
ur5us has quit [Ping timeout: 268 seconds]
ur5us has joined #crystal-lang
MiaChillfox has quit [Ping timeout: 260 seconds]
ua_ has quit [Ping timeout: 268 seconds]
ua_ has joined #crystal-lang
hightower3 has quit [Ping timeout: 268 seconds]
hightower3 has joined #crystal-lang
hightower3 has quit [Ping timeout: 268 seconds]
ur5us has quit [Ping timeout: 268 seconds]
wolfshappen has quit [Ping timeout: 260 seconds]
wolfshappen_ has joined #crystal-lang
xyhuvud_ has quit [Quit: No Ping reply in 180 seconds.]
yxhuvud has joined #crystal-lang
repo has quit [Ping timeout: 264 seconds]
guniberas has joined #crystal-lang
guniberas has quit [Ping timeout: 268 seconds]
sagax has quit [Remote host closed the connection]
sagax has joined #crystal-lang
<frojnd> Hi there.
<frojnd> I'm trying to migrate to lexbor parser from myhtml and I get no overload matches after modifying the encoding part: `parser = Lexbor::Parser.new(verse_response.body, encoding: Lexbor::LibEncoding::EncodingT::LXB_ENCODING_WINDOWS_1250)` Is it even possible to encode String with lexbor?
<FromGitter> <oprypin:matrix.org> frojnd, can you paste the whole code of yours and the whole error message - e.g. on https://bpaste.net/
ur5us has joined #crystal-lang
<frojnd> @oprypin https://bpa.st/JUYA
<frojnd> I didn't paste whole code since it's not relevant
brain-soup has quit [Remote host closed the connection]
<FromGitter> <oprypin:matrix.org> frojnd, i.. really don't know. the issue shouldn't be stated as "no overload matches". really seems like this library has a different architecture, so you should simply try to find out how to apply encodings to it, rather than trying to directly convert code from myhtml. in a quick search i wasn't able to find out how to do that, or even any documentation at all for "lexbor" :/
hightower2 has joined #crystal-lang
<hightower2> Do we know that crystal compilation is broken in Compiler Explorer (https://godbolt.org/)? Seems to say that the host system is missing -lpcre
<hightower2> well for 1.2.0 at least; older version seems to work
greenbigfrog has quit [Ping timeout: 260 seconds]
greenbigfrog has joined #crystal-lang
hightower2 has quit [Ping timeout: 260 seconds]
dmgk has left #crystal-lang [#crystal-lang]
<FromGitter> <jrei:matrix.org> Any advantage of having this kind of tool in the browser?
<FromGitter> <jrei:matrix.org> If find this mainly useful to share a code snippet - which is nice by itself