sz0 has quit [Quit: Connection closed for inactivity]
Raimondi has left #crystal-lang ["WeeChat 1.8-dev"]
picat has quit [Ping timeout: 260 seconds]
snsei has joined #crystal-lang
w-p_ has quit [Ping timeout: 255 seconds]
_whitelogger has joined #crystal-lang
pwned has joined #crystal-lang
snsei has quit [Remote host closed the connection]
<FromGitter>
<codenoid> please, somebody gimme tutorial about (sub) domain management with kemalcr
snsei has joined #crystal-lang
<FromGitter>
<piyushranjan> Sorry to ask this but can't help it. How does Ary's movement out of Manas affect Crystal. I am rooting for Crystal and want it to succeed. Just worried
<FromGitter>
<sdogruyol> Morning everyone
<FromGitter>
<drujensen> Good morning
snsei has quit [Remote host closed the connection]
<FromGitter>
<Qwerp-Derp> Ummm... has anyone done Swift/Crystal interop?
<FromGitter>
<crisward> @piyushranjan I know what you mean. It would be good if the core team could perhaps do a quick post just updating the community.
<FromGitter>
<konovod> > or I'm the first one to use generics
<FromGitter>
<Qwerp-Derp> NVM I got it, I don't know how crystal shards work :P
<FromGitter>
<konovod> @Papierkorb not first, but they bite. especially when combined with inhertance
Groogy__ is now known as Groogy
<Groogy>
Morning!
<FromGitter>
<konovod> Hi!
<FromGitter>
<sdogruyol> Good morning everyone
<FromGitter>
<bew> morning!
<FromGitter>
<code-andres> Morning!
<FromGitter>
<code-andres> Anyone can help me? I'm trying to get a shell output in realtime with crystal... For example a shell script that prints a new line each second, and i need to get that line the moment when is created and use it on crystal. Is that posible?
<FromGitter>
<bararchy> So, I got this erorr: ⏎ ⏎ ```No address found for 172.16.123.129http:80 over TCP (Socket::Error)``` ⏎ ⏎ Using curl or wget to this IP does seems to work, what might be the issue here ? [https://gitter.im/crystal-lang/crystal?at=597af226bc46472974315bf0]
<FromGitter>
<bew> did you miss a new line between 129 & `http` ?
<FromGitter>
<Qwerp-Derp> Ummm... how do I use `crystal play`?
<FromGitter>
<Qwerp-Derp> How do I actually execute my code?
<FromGitter>
<bew> @bararchy what `nurl` looks like?
<FromGitter>
<bew> @Qwerp-Derp you run `crystal play` in a terminal, it'll print a URL, then you go with your browser (firefox, chrome or others) on that URL, and there you'll be able to write & execute code
hightower2 has quit [Ping timeout: 260 seconds]
<FromGitter>
<code-andres> @Qwerp-Derp If your code is in an text file it must be with the extension .cr and you an execute it whit "crystal run your_file.cr"
<FromGitter>
<code-andres> @bew Nope... i will check my connection
<FromGitter>
<abidon> @Qwerp-Derp You can call Crystal code from C, and you can call C code from Swift, so you can call Crystal code from Swift
<FromGitter>
<code-andres> @bew Oh tanks i see... I will try it
<FromGitter>
<abidon> @Qwerp-Derp If you want to figure it out by yourself, just make sure you know how to mix C/Swift, and expose Crystal functions as C functions (no mangling) using the `fun` keyword instead of `def`
<FromGitter>
<bararchy> Someone really need to add Redirect follow in Crystal's HTTP client
<FromGitter>
<code-andres> @bew Its working great, for mi code... Thanks 👍
<FromGitter>
<bew> you're welcome :)
rohitpaulk has joined #crystal-lang
<FromGitter>
<bew> @bararchy there is: #2721, but the discussion went a bit offtopic regarding the original issue..
<FromGitter>
<bararchy> @bew Hm.... I commented there, I hope that maybe this can be moved on and implamented, Right now I use the cossack shard, which is great but I don't want to relay on external shard for a single basic feature like redirect follow
xiljin has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 240 seconds]
<FromGitter>
<watzon> Why is it that every time I search for a library at crystalshards.xyz, Papierkorb is the one that made the library I found? :p
<FromGitter>
<sdogruyol> Oh, thanks for the explanation :)
<FromGitter>
<picatz> It's used for many other things other than just 3D printers, but I've found crystal to be a really neat language to parse STL files with.
<FromGitter>
<sdogruyol> beautiful code with blazing speed = Crystal <3
<FromGitter>
<bew> cool! what do you want to do with those files from crystal?
<FromGitter>
<picatz> Mostly just analysis at the moment. Like, finding the greatest x,y,z coordinates from a file.
<FromGitter>
<code-andres> @picatz Wow that sounds interesting... Thinking in a program for STL graphic editor? jeje
<FromGitter>
<picatz> It's more like, I don't always want to use another program's STL algorithms to the decimate the quality of the file for example.
<FromGitter>
<bew> that sounds interesting!
<FromGitter>
<picatz> I've been having all sorts of fun with fibers and channels.
<FromGitter>
<picatz> ya' know, maybe too much so. :P
<FromGitter>
<picatz> It's been interesting to benchmark where I've seen a performance gain from spawning fibers and channels and where I don't. I still have lots to learn there I'm sure.
<FromGitter>
<code-andres> @picatz It start as a small script just for fun... Later is a big parser with many use on 3D software
<FromGitter>
<code-andres> I created a small scrip that use ffmpeg to convert videos, now is getting form... Maybe i must upload to github
<FromGitter>
<picatz> You should! :D
<FromGitter>
<picatz> Before I release any sort of STL parser / analyzer in crystal I should probably make something I'd feel more confident in taking on. Like porting one of my ruby projects to Crystal.
<FromGitter>
<crisward> Anyone know of a way of converting an ip4 address to an int in crystal?
grottof has joined #crystal-lang
saadq has joined #crystal-lang
<FromGitter>
<crisward> Just found an old stack overflow answer in ruby - `'10.0.2.15'.split('.').inject(0) {|total,value| (total << 8 ) + value.to_i}`
<FromGitter>
<fridgerator> @crisward out of curiosity, what is that useful for?
<FromGitter>
<crisward> storing ip's in database. int is much smaller / quicker than dot notation
<FromGitter>
<crisward> btw, int back to ip is `"#{(ipint >> 24).to_u8}.#{(ipint >> 16).to_u8}.#{(ipint >> 8).to_u8}.#{ipint.to_u8}"`
rohitpaulk has quit [Ping timeout: 240 seconds]
<FromGitter>
<picatz> Cool! :D
<FromGitter>
<codenoid> AAHAHHAHA YASSSS
<FromGitter>
<codenoid> all of webtoons comic saved in my computer
snsei has quit [Remote host closed the connection]
<FromGitter>
<codenoid> I <3 CRYSTAL
<FromGitter>
<codenoid> btw, when i use ⏎ image = ⏎ anu = HTTP::Client.get("image.jpg", headers: HTTP::Headers{"User-Agent" => "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0", "Referer" => "ref"}) # i got a response ⏎ but when use ⏎ HTTP::Client.get("image.jpg", headers: HTTP::Headers{"User-Agent" => "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0", "Referer" =>
<FromGitter>
<kazzkiq> Agreed. Just used it with Kemal to issue an authentication service with JWT. Took less than 5 minutes. Requests are orders of magnitude faster than any other equivalent simple language.
mark_66 has quit [Remote host closed the connection]
rohitpaulk has quit [Ping timeout: 240 seconds]
rohitpaulk has joined #crystal-lang
<FromGitter>
<picatz> I just came across something interesting, figured I'd share so someone can point out if I'm being silly.
<FromGitter>
<picatz> `no overload matches 'Array(Hash(Symbol, String))#<<' with type NamedTuple(ok: String)` That gave me all sorts of confusion. But, figured it out.
<FromGitter>
<picatz> So I have to `container << { :wiggle => "waddle" }`
snsei has joined #crystal-lang
<crystal-gh>
[crystal] straight-shoota opened pull request #4755: Visual and structural improvements to docs generator HTML (master...jm-docs-improvements) https://git.io/v7C3a
rohitpaulk has quit [Ping timeout: 260 seconds]
rohitpaulk has joined #crystal-lang
Split has joined #crystal-lang
Split has quit [Ping timeout: 240 seconds]
tzekid has joined #crystal-lang
snsei has quit [Remote host closed the connection]
pabs has quit [Ping timeout: 240 seconds]
<Groogy2>
exit
Groogy2 has quit [Quit: WeeChat 1.9]
<FromGitter>
<sdogruyol> woot
kubaxvx__ has quit [Read error: Connection reset by peer]
kubaxvx__ has joined #crystal-lang
hightower2 has joined #crystal-lang
<FromGitter>
<crisward> Got 4 outstanding pull requests now. 2 on crystal-mysql and 2 on crystal-db. Looking forward to them getting merged, not sure about other people but my shards files always seem full of my forks. Thinks it's my habit of - "tests pass, next! "
<FromGitter>
<crisward> BTW if there is a ever a big Crystal conference, it should really be held in London at the Shard...
rohitpaulk has quit [Ping timeout: 276 seconds]
<FromGitter>
<sdogruyol> the Shard
<FromGitter>
<sdogruyol> that's really cool
<FromGitter>
<sdogruyol> @crisward thank you, keep up the great work :)
<_tsound>
So i'm attempting to port over the ruby binds for gtk3 over to crystal, but ruby seems to have a lib named pathname that the compiler doesn't recognize.
<_tsound>
Does crystal not have a pathname class, or am I not calling it correctly?