Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 03:41
    Blacksmoke16 edited #12393
  • 01:59
    Blacksmoke16 edited #12393
  • 01:57
    Blacksmoke16 edited #12393
  • 01:57
    Blacksmoke16 edited #12393
  • 01:49
    Blacksmoke16 labeled #12393
  • 01:49
    Blacksmoke16 labeled #12393
  • 01:49
    Blacksmoke16 labeled #12393
  • 01:49
    Blacksmoke16 opened #12393
  • 01:09
    phil294 edited #12392
  • 01:08
    phil294 edited #12392
  • 01:07
    phil294 edited #12392
  • 01:00
    phil294 edited #12392
  • 00:58
    phil294 edited #12392
  • 00:58
    phil294 edited #12392
  • 00:57
    phil294 edited #12392
  • 00:56
    phil294 edited #12392
  • 00:55
    phil294 labeled #12392
  • 00:55
    phil294 opened #12392
  • Aug 15 23:55
    HertzDevil labeled #12391
  • Aug 15 23:55
    HertzDevil labeled #12391
George Dietrich
@Blacksmoke16
ho oh boy, do i have something for you :)
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