Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Sep 22 14:39
    ejsmith commented #104
  • Sep 22 14:26
    niemyjski commented #104
  • Sep 22 14:23
    niemyjski commented #104
  • Sep 22 14:21
    niemyjski commented #104
  • Sep 22 14:20
    niemyjski commented #104
  • Sep 22 14:16
    niemyjski labeled #104
  • Sep 22 14:16
    niemyjski edited #104
  • Sep 22 14:15
    niemyjski commented #104
  • Sep 22 13:35
    polluterofminds commented #104
  • Sep 21 14:01

    niemyjski on v3.1.6

    (compare)

  • Sep 21 14:00

    niemyjski on master

    use npx for vs code tasks Added News, Privacy Policy and … (compare)

  • Sep 20 13:42
    ejsmith commented #104
  • Sep 20 13:12
    niemyjski commented #104
  • Sep 20 12:15
    polluterofminds commented #104
  • Sep 20 12:14
    polluterofminds commented #104
  • Sep 20 11:32
    niemyjski commented #104
  • Sep 20 11:32
    niemyjski commented #104
  • Sep 20 11:19
    niemyjski commented #104
  • Sep 20 11:18
    niemyjski commented #104
  • Sep 17 14:34
    ejsmith commented #104
Blake Niemyjski
@niemyjski
@srijken what did you find?
good morning :)
@frankebersoll looking
Sander Rijken
@srijken
I have an added property FooBar
I have to search for data.foobar
data.FooBar doesn’t give results
Blake Niemyjski
@niemyjski
hmm.
we call too lower on it
maybe to normalize it
maybe we shouldn’t be
@ejsmith thoughts?
Sander Rijken
@srijken
in that case, call tolower on that part of the query as well?
Blake Niemyjski
@niemyjski
yeah
I guess we should eh
I’ll fix it
Blake Niemyjski
@niemyjski
pushing it to a branch with some other changes
will merge it in today
so question for you guys
For log stacks we set the title to the source which is the full type name in most cases… but you can also specify a custom stacking title too (not typical)...
so we have these ugly stack titles we could collapse but we aren’t 100% sure if they are a full type name..
so should I add a special check to see if it the title contains at least 1 period and there are no spaces
in any of the parts
like blah.xyz.blah would match
but blah. xyz.blah wouldn't
what are your thoughts
Eric J. Smith
@ejsmith
calling you Blake
Blake Niemyjski
@niemyjski
        // allow any single hour to have 10 times the monthly limit converted to hours
        //return (int)Math.Ceiling(organization.GetMaxEventsPerMonthWithBonus() / 30d * 0d);
        int eventsLeftInMonth = organization.GetMaxEventsPerMonthWithBonus() - organization.GetCurrentMonthlyTotal();
        if (eventsLeftInMonth < 0)
            return 0;

        var hoursLeftInMonth = (DateTime.UtcNow.EndOfMonth() - DateTime.UtcNow).TotalHours;
        if (hoursLeftInMonth < 1)
            return eventsLeftInMonth;

        return (int)Math.Ceiling(eventsLeftInMonth / hoursLeftInMonth * 10d);
new :)
Eric J. Smith
@ejsmith
nice
Blake Niemyjski
@niemyjski
not sure how our unit tests are going to work now
lol
since it’s a revolving period of time based on when the tests are running
lol
Eric J. Smith
@ejsmith
yeah, will have to figure something out for that.
or get rid of the tests.
Blake Niemyjski
@niemyjski
I got them working
:)
Blake Niemyjski
@niemyjski
        var data = new Dictionary<string, object>();
        string source = stack.SignatureInfo?.GetString("Source");
        if (String.IsNullOrWhiteSpace(source) || !String.Equals(source, stack.Title)) {
            data.Add("Title", stack.Title);
        } else {
            data.Add("Source", source);
            var parts = source.Split(new[] { '.' }, StringSplitOptions.RemoveEmptyEntries);
            if (!String.Equals(source, parts.Last()) && parts.All(p => p.IsValidIdentifier()))
                data.Add("SourceShortName", parts.Last());
        }
sucks I gotta have a lot more overhead for summaries
but you could stick anything in a log source
at least this verifies that it’s a log source
makes me wonder if I should just call this title and tileshortname
make the code simplier
Jamie Clarke
@jamie94bc
wonder what theme gitter uses
i quite like it
for code syntax
:smile:
Blake Niemyjski
@niemyjski
:)
could ask em