Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 11:06
    straight-shoota edited #12547
  • 11:05
    straight-shoota opened #12547
  • 11:05
    straight-shoota labeled #12547
  • 11:05
    straight-shoota labeled #12547
  • 10:24
    straight-shoota closed #11354
  • 10:24
    straight-shoota closed #12536
  • 10:24
    straight-shoota closed #12494
  • 10:22
    straight-shoota ready_for_review #12541
  • 10:22
    straight-shoota synchronize #12541
  • 10:22
    straight-shoota closed #12539
  • 10:21
    straight-shoota closed #12290
  • 10:21
    straight-shoota closed #12537
  • 10:21
    straight-shoota edited #12537
  • 10:20
    straight-shoota milestoned #12545
  • 10:20
    straight-shoota milestoned #12545
  • 05:44
    HertzDevil edited #12546
  • 05:44
    HertzDevil labeled #12546
  • 05:44
    HertzDevil labeled #12546
  • 05:44
    HertzDevil opened #12546
  • 05:20
    HertzDevil labeled #12545
moe
@moe:busyloop.net
[m]
w000t!
ha, i was so close on giving up on this one
muchos gracias 🙇
George Dietrich
@Blacksmoke16
(it's new in 1.4)
moe
@moe:busyloop.net
[m]
just in time! 💪
From IRC (bridge bot)
@FromIRC
<riza> doing dev on a shard and i want to specify a local target as the source for a dependency...i've done this a hundred times by just adding path: ../other_shard and commenting out the version/github bits.
<riza> today it's failing with a "unable to satisfy the following requirements" message
<riza> other_shard (*) required by shard.yml and other_shard (1.0 at ../other_shard) required by shard.lock
<riza> am I missing something obvious here or did the strategy for doing this change
From IRC (bridge bot)
@FromIRC
<riza> oh, adding the version specifier back but leaving the repo path seemed to work...
<riza> that feels a bit dirty, but I guess I undertsatd
From IRC (bridge bot)
@FromIRC
<riza> is there an easy way to get the compiler to tell me where the method I'm calling is defined?
<riza> I'm writing a test against a stdlib modification I've made -- the spec is running fine but I can't get the change I've made to do anything. Even dropping a 'raise' at the top of the method yields no change
George Dietrich
@Blacksmoke16
calling a diff overload?
From IRC (bridge bot)
@FromIRC
<riza> Oh I see. The stdlib specs don't run against the source like they do in a typical project, they run against the current compiler. So it's a 2 step process, make crystal and then bin/crystal spec ...?
George Dietrich
@Blacksmoke16
prob could do something with CRYSTAL_PATH
and point that at your local compiler stdlib versus the one included with the installed package
From IRC (bridge bot)
@FromIRC
<riza> I have no problem using bin/crystal to make that work. I just didn't realize that it required doing that.
George Dietrich
@Blacksmoke16
https://github.com/crystal-lang/crystal/blob/master/bin/crystal#L141 wrapper script is setting it to the local compiler for you
yea, stdlib dev is separate from compiler
From IRC (bridge bot)
@FromIRC
<riza> yeah for sure, when I run bin/crystal I get the warning message about the local compiler
emanzx
@emanzx
hi guys.. :-)
can I use this query
SELECT
  time_bucket('86400.0s',"time") AS "time",
  qname AS "domain",
  client_ip AS "IP",
  sum(count) AS "count"
FROM bind_rpz_log
WHERE
  "time" BETWEEN '2022-04-15T06:07:27.34Z' AND '2022-04-15T07:07:27.34Z' AND
  rpz_zone ~* 'feeder.csm.rpzdb.com'
GROUP BY 1, qname, client_ip
ORDER BY 1, qname
in granite?
George Dietrich
@Blacksmoke16
prob could do it as a one off query versus something you could make via the query builder or something
one off query meaning a raw query off the underlying DB::Database instance
Filip Samuel
@1337M0nst3r
why doesn't this work?
a = 2/1
p! a # prints 2.0
sorry, I meant
p! a.round # prints 2.0
George Dietrich
@Blacksmoke16
what would you expect it to be?
Ary Borenszweig
@asterite
I guess an int instead of a float
moe
@moe:busyloop.net
[m]
fixed 😛
George Dietrich
@Blacksmoke16
2 // 1 :wink:
Benjamin Wade
@RespiteSage
"Proposal to add Float#rount to the standard library"
Also, serious question: (x / y).round.to_i is different than x // y, right?
George Dietrich
@Blacksmoke16
they're the same if #round happens to round down
Benjamin Wade
@RespiteSage
Yeah, I see.
Rounding to even is the default for #round, right?
So I guess maybe they're the same all the time if you're using RoundingMode::TO_ZERO?
I'm getting too wrapped up in this..
George Dietrich
@Blacksmoke16
or like (x / y).floor.to_i yea
From IRC (bridge bot)
@FromIRC
<frojnd> Hi there.
<frojnd> I would like to build a simple file server with Kemal. I am looking at apps that are built with Kemal so I can see what's the file structure of source code. Any good examples?
moe
@moe:busyloop.net
[m]
From IRC (bridge bot)
@FromIRC
<frojnd> @moe thank you will take a look right away
3 replies
From IRC (bridge bot)
@FromIRC
<frojnd> Hm hm
<frojnd> But when I try to upload some file I get: Exception: Cannot extract form-data from HTTP request: could not find boundary in Content-Type (HTTP::FormData::Error)
moe
@moe:busyloop.net
[m]
sounds like you'e posting with the wrong content-type