text:
How can I use for nuxt 3?

Hello, I tried using this package for Nuxt, but I couldn't manage it. I couldn't find any examples related to it.
If anyone has experience with this topic, could you please share?

@technoeren13 See if you can find something useful in #287 and #88.

repo: serebrov/emoji-mart-vue


text:
hwo to let stored procedure keep first times layout for ddl

for example i don't need for that format
WHILE DateDiff(
'Month',
@OpTime,
@EndTime
)>= 0 DO
SET @YearMonth = SUBSTR(
CHAR( YEAR( @OpTime )),
1,
4
)|| Char2(
MONTH(@OpTime),
1
);

What is your database?

db2,

You can change DDL format in the bottom toolbar (DDL Format combo)

okay,i see

source: gharchive/issue

authors: bouyeijiang serge-rider

repo: serge-rider/dbeaver

license_type: permissive

license_source: bigquery


text:
Please, where can I set codepage for Teradata driver in DBeaver?

Subj.

You can set any advanced properties in connection properties (tab Driver properties).
Taradata JDBC doc:
https://developer.teradata.com/doc/connectivity/jdbc/reference/current/jdbcug_chapter_2.html
Try CHARSET.

It helped! Thank U very much!

authors: serge-rider winichenkomy


text:
Table autocomplete won't trigger after show view

teradata has  a command called show view <object_name>
If I type show table <schema>. and press control space autocomplete triggers but if I type show view <schema>. it won't.
Note the exception here is that if show table exists earlier in the editor tab it will work.

Thanks for report

authors: r-richmond serge-rider


text:
Opt out of consuming external activities

Hello, @nblumhardt,
I was just recently integrating OpenTelemetry in a project that already uses Serilog and SerilogTimings, so naturally I was very excited when I heard about this one. I gave it a quick browse, and I wonder if I can share some perspective with you.
But first, let me give you a quick view of the context. The application we're working on is more of a platform; meaning there's a lot of code produced by third parties, which runs in our context and uses our facilities. Naturally, as much as I personally love an endorse Serilog, we decided to hide it from third-party code, making them use Microsoft.Extensions.Logging instead. Inside, in our own code, we use Serilog, and M.E.L loggers use Serilog behind the scenes as well. We also use SerilogTimings internally so that we can have nice information of some operations interesting to us (you might even remember me contributing a tiny bit there).
Enter the OpenTelemetry. We add the otel support to our platform, the out-of-the-box instrumentations gather some data, we also add some of our own. We do not expect the third-party code to add their instrumentation, but if they want to, System.Diagnostics.Activity is already a part of the API, so no worries on our side.
In the back-end it's simple: otel goes to the collector, logs go to some Serilog-supported sink. When want everything in otel? We plug in Serilog.Sinks.OpenTelemetry (and we can route it back from the collector to Seq if we want). But in any case we have the correlation ids, so everything works more or less magically.
The last moving part that was missing was SerilogTimings, which - as you also show in this project - is a natural candidate for the inclusion in the trace, in addition to logs. Here comes this project, and with it do come some concerns unfortunately.
The thing is, for our use case I believe I only need the part that allows to simultaneously open an Activity and write to logs - i.e., logger.StartActivity from your example. I don't want all the other instrumentation-generated activities to end up in our logs. Nor do I want to use Serilog as an otel producer (i.e. the part that captures the Activities and outputs them to otel backend), because I'd prefer to use OpenTelemetry SDK for that.
I think that you'll end up with enough configuration to achieve what we need anyways, so we'll be able to use this anyway, but it has occurred to me that might be a more granular approach would be of use here. What I mean is that, from what I see, there are three different concerns in this project that might be better off as a separate components:

Capturing existing Activities to logs, which you mention:

In addition to generating spans, SerilogTracing also consumes spans generated elsewhere in an application via the System.Diagnostics.Activity APIs, such as those produced by ASP.NET Core or HttpClient. Activity sources can be enabled or disabled using the logger's MinimumLevel.Override settings."
It would be very helpful to have an option to dump some already emitted activities (that come from existing instrumentations) into logs with configurable levels - i.e., I would want to write HttpClient activities as Verbose, but incoming HTTP requests as Information. As such, it is not a "minimum level -> logs" kind of setup, but "activity -> level" one.
This part ensures that something that is already being written to otel trace, is also added to logs.

The capture above would generate very generic-looking logs, which might not be sufficient for all cases. Here's where I'd use logger.StartActivity, which would emit both an activity and a log entry of our choosing.
This part ensures that something that wasn't previously written at all, would be written to both otel trace and logs.
And finally, for the environments where there is no OpenTelemetry SDK, a sink that would gather all the trace-related information from the log pipeline and export it as traces (I believe this is what you're implying in #13).
This part ensures that something that was being written to logs, ends up in trace too.

I'm sorry for a very large message, especially at such an early stage of your project, but I believe that some things are better done earlier than later.

Thanks for the thoughtful input @srogovtsev, much appreciated!
I think we're on the same page; so far, things have been in bootstrapping mode without much configuration exposed (a lot of nuts and bolts still being figured out), but I'm expecting this to change fairly soon.
Would it be correct for me to re-title this thread as "Opt out of consuming external activities", and implement it (logically) like:
    .CreateTracingLogger(options => options.ConsumeExternalActivities = false)

which would, behind the scenes, disable the ActivityListners?
In this mode I don't think any instrumentation would be applied, but I'm also expecting that the minimal instrumentation we're implementing will be removable using something equivalent to options.ActivityEnrichers.Clear() in the same scheme.

Would it be correct for me to re-title this thread as "Opt out of consuming external activities",

I don't know if it would be better to opt-out or opt-in, but you can of course rename the item to better reflect the issue; I was struggling to find something appropriate myself.

.CreateTracingLogger(options => options.ConsumeExternalActivities = false)

Frankly, I would expect that if I wanted to only use the first part (logger.StartActivity), I wouldn't have to do anything at the logger configuration at all. Why would that be necessary?

Thanks for the reply!
Consuming external activities is a "pit of success" choice, I think; without them, the traces arriving at sinks are incomplete, and in the case of HTTP client requests, not having a listener present will (indirectly) end up preventing trace id propagation.
I can see how it's undesirable in your scenario. For people giving this a shot straight out of the box without some other infrastructure at play, those activities will be important, though.

I understand the argument for the "pit of success", and yet I believe the things that we want are not mutually exclusive.
Here's a very small PoC based on the latest version of your code:
using System.Diagnostics;
using OpenTelemetry;
using OpenTelemetry.Trace;
using Serilog;
using Serilog.Formatting.Compact;
using SerilogTracing;
using SerilogTracing.Interop;

using var logger = new LoggerConfiguration()
    .Enrich.WithProperty("Application", typeof(Program).Assembly.GetName().Name)
    .WriteTo.Console(new RenderedCompactJsonFormatter())
    .CreateLogger()
    ;

using var source = new ActivitySource("qqq");

using var tracerProvider = Sdk.CreateTracerProviderBuilder()
    .AddSource(source.Name)
    .AddSource(LoggerActivitySource.Instance.Name)
    .AddConsoleExporter()
    .Build();

using var rootActivity = source.StartActivity();

logger.Information("Start");

using (var a1 = logger.StartActivity("Activity 1: {prop}", "abc"))
{
    logger.Information("Inside activity 1");

    using (var a2 = logger.StartActivity("Activity 2: {prop}", "qwe"))
    {
        logger.Information("Inside activity 2");
    }
}

logger.Information("End");

(the required dependencies are:
<PackageReference Include="OpenTelemetry" Version="1.7.0" />
<PackageReference Include="OpenTelemetry.Exporter.Console" Version="1.7.0" />
<PackageReference Include="Serilog.Formatting.Compact" Version="2.0.0" />
<PackageReference Include="Serilog.Sinks.Console" Version="5.0.0" />

)
This simulates my situation: tracing goes to otel, logging goes to Serilog.
And here's sample output:
{"@t":"2024-01-10T23:09:29.4239356Z","@m":"Start","@i":"b72c5e85","@tr":"eda3d89ae8a5b35b590bfcb037c25385","@sp":"95e817ef13ebd065","Application":"ConsoleApp1"}
{"@t":"2024-01-10T23:09:29.4441182Z","@m":"Inside activity 1","@i":"3b149571","@tr":"eda3d89ae8a5b35b590bfcb037c25385","@sp":"d6174fcb83060b0b","Application":"C
onsoleApp1"}
{"@t":"2024-01-10T23:09:29.4443063Z","@m":"Inside activity 2","@i":"2959f1f4","@tr":"eda3d89ae8a5b35b590bfcb037c25385","@sp":"cfed38d24ef80c76","Application":"C
onsoleApp1"}

Activity.TraceId:            eda3d89ae8a5b35b590bfcb037c25385
Activity.SpanId:             cfed38d24ef80c76
Activity.TraceFlags:         Recorded
Activity.ParentSpanId:       d6174fcb83060b0b
Activity.ActivitySourceName: Serilog
Activity.DisplayName:        Activity 2: {prop}
Activity.Kind:               Internal
Activity.StartTime:          2024-01-10T23:09:29.4442924Z
Activity.Duration:           00:00:00.0010566
StatusCode: Ok
Resource associated with Activity:
    telemetry.sdk.name: opentelemetry
    telemetry.sdk.language: dotnet
    telemetry.sdk.version: 1.7.0
    service.name: unknown_service:ConsoleApp1

{"@t":"2024-01-10T23:09:29.4453490Z","@m":"Activity 2: \"qwe\"","@i":"29ecd511",
"@tr":"eda3d89ae8a5b35b590bfcb037c25385","@sp":"cfed38d24ef80c76","prop":"qwe","
SpanStartTimestamp":"2024-01-10T23:09:29.4442924Z","ParentSpanId":"d6174fcb83060
b0b","Application":"ConsoleApp1"}

Activity.TraceId:            eda3d89ae8a5b35b590bfcb037c25385
Activity.SpanId:             d6174fcb83060b0b
Activity.TraceFlags:         Recorded
Activity.ParentSpanId:       95e817ef13ebd065
Activity.ActivitySourceName: Serilog
Activity.DisplayName:        Activity 1: {prop}
Activity.Kind:               Internal
Activity.StartTime:          2024-01-10T23:09:29.4437213Z
Activity.Duration:           00:00:00.0398132
StatusCode: Ok
Resource associated with Activity:
    telemetry.sdk.name: opentelemetry
    telemetry.sdk.language: dotnet
    telemetry.sdk.version: 1.7.0
    service.name: unknown_service:ConsoleApp1

{"@t":"2024-01-10T23:09:29.4835345Z","@m":"Activity 1: \"abc\"","@i":"14c015d8",
"@tr":"eda3d89ae8a5b35b590bfcb037c25385","@sp":"d6174fcb83060b0b","prop":"abc","
SpanStartTimestamp":"2024-01-10T23:09:29.4437213Z","ParentSpanId":"95e817ef13ebd
065","Application":"ConsoleApp1"}
{"@t":"2024-01-10T23:09:29.4849365Z","@m":"End","@i":"1a68c028","@tr":"eda3d89ae8a5b35b590bfcb037c25385","@sp":"95e817ef13ebd065","Application":"ConsoleApp1"}

Activity.TraceId:            eda3d89ae8a5b35b590bfcb037c25385
Activity.SpanId:             95e817ef13ebd065
Activity.TraceFlags:         Recorded
Activity.ActivitySourceName: qqq
Activity.DisplayName:        <Main>$
Activity.Kind:               Internal
Activity.StartTime:          2024-01-10T23:09:29.4226745Z
Activity.Duration:           00:00:00.0624634
Resource associated with Activity:
    telemetry.sdk.name: opentelemetry
    telemetry.sdk.language: dotnet
    telemetry.sdk.version: 1.7.0
    service.name: unknown_service:ConsoleApp1

I get what I need: StartActivity opens trace and writes log, all the correlation is there, and the only change to your code that I needed to make this work was to make LoggerActivitySource public, so that I could tell otel to watch it.
Seems to be an easy win?

I've also noticed that while activity.AddProperty will add Tag to activity, values passed as part of starting call won't

Thanks for raising the tags issue, I've opened a new ticket to track it and figure out the best way forward with it :+1:
LoggerActivitySource.Instance.Name should (currently) always just be "Serilog", so at least in the short term, this setup should work without any changes, as far as I can tell.
I'm revisiting how CreateTracingLogger() and the activity listener work, now, I'll keep all of this in mind and see what I can come up with. Thanks again!

Setup is now:
Log.Logger = new LoggerConfiguration()
    ...
    .CreateLogger();

using var _ = new TracingConfiguration().EnableTracing();

The EnableTracing() step is optional, and everything should work as expected when you listen to the "Serilog" activity source directly. Hopefully this covers it.

This was fixed in #21, it'd be great to hear how it goes!

I'll do my best to check it this week.

I've pulled the last version (fd43e88ff324bf342f3232ba8cb4fb5bec6df36d), and so far it lines up with my checklist just nicely:

[x] create net48 console, and reference SerilogTracing (thanks to #33 by @KodrAus)
[x] SerilogTracing has no other dependencies but Serilog (and no version bump either)
[x] ILogger.StartActivity doesn't require any configuration on underlying logger

The only thing that slightly bothers me here is that I have to use magic string to reference activities from SerilogTracting:
using var tracerProvider = Sdk.CreateTracerProviderBuilder()
    .AddSource(source.Name)
    .AddSource("Serilog") //<---here
    .AddConsoleExporter()
    .Build();

Is there any conceptual reason why we cannot expose this as a constant?

As a separate observation, when one comes from SerilogTimings, and looks at this as a logging implement, there's a couple of things "missing", which would make this kind of usage easier. The idea is that as we configure our logging and tracing separately, we want them to be cross-correlated, but independent; i.e. in our particular case logging is enabled more often than tracing, so we were relying heavily on SerilogTimings to gather some insight into the system performance.
Which means that if we want to replace SerilogTiming with SerilogTracing, it would be nice to be able to gather the same things from the logs, most importantly the span duration (which used to be ElapsedMs, if I'm not mistaken), and the status ( completed/error/aborted, or something along those lines). I'm not sure if we can achieve the same level of human-readable messages as SerilogTimings has, without compromising the concept of activities, but at least having the data would be nice.
I can move this out to a separate issue if you think this is useful, but I wanted to start here to keep the context.

RE the "Serilog" constant, the original intention was for the source name to be derived from the logger's context/type, though I've cooled on that idea for now. I'll PR a Constants.ActivitySourceName - thanks!

RE:

it would be nice to be able to gather the same things from the logs, most importantly the span duration (which used to be ElapsedMs, if I'm not mistaken), and the status ( completed/error/aborted, or something along those lines).

The Formatters.CreateConsoleTextFormatter() method shows some of how this could be achieved, but although the "completed" and "failed" states are carried through in the log level (and could be included in the message this way using #if), there's no equivalent to "abandoned".
Let me know if you need a hand getting the text format you're after. It'd be interesting to explore whether or not there's still a case for tracking some kind of "abandoned" status, too.

Let me know if you need a hand getting the text format you're after.

Thanks for the offering of help, but we're not using text formatting - we're either dumping the data into JSON with CompactJsonFormatter to be later parsed by tools or simply ingested into Seq, or send it via our own sink to a proprietary system.
So I probably wasn't articulate enough - I'm looking for a regular log event property which would carry the duration of the specific activity. I understand that we can calculate it ourselves based on SpanStartTimestamp, but it would be much easier to just have the ElapsedMs as SerilogTimings did.

the original intention was for the source name to be derived from the logger's context/type, though I've cooled on that idea for now

It's great that you've changed your mind on this, because integrating multiple dynamic sources into OpenTelemetry would be... a challenge.

Ah I see what you mean, RE the elapsed property. Might be one to discuss in a new ticket? I can see either an optional enricher, or a tweaked CompactJsonFormatter both doing a reasonable job of this but need to nail down the constraints :-)

authors: nblumhardt srogovtsev

repo: serilog-tracing/serilog-tracing

license_source: github-api


text:
SerilogTracing.Instrumentation.AspNetCore target .NET6 and .NET8

Fixes #131

SerilogTracing.Instrumentation.AspNetCore now targets both .NET6 and .NET8
Replaced the call to Activity.EnumerateTagObjects() because it is not available in .net6

Thanks! 👍

source: gharchive/pull-request

authors: iustinT-Yokogawa nblumhardt


text:
Dispose and CloseAndFlush not working

I'm not using a durable sink but my logs never show up in elastic search when I call Dispose and CloseAndFlush then crash the app right afterwards.

I would suggest to enable the Serilog selflog functionality and see if it shows any issues. With the amount of information you provide now I can not really help you.

authors: AceHack mivano

repo: serilog/serilog-sinks-elasticsearch


text:
AssemblyVersion downgrade

Hi,
Per commit there is downgrade of AssemblyVersion to 3.0.0
For NuGet 3.2.0 AssemblyVersion was 3.2.0
For NuGet 3.3.0 AssemblyVersion is 3.0.0
This way there are some conflicts between different versions introduced for dependent projects (if consumers update Sinks.Seq to 3.3.0
Q: How should we approach this?
Should all dependent projects re-release and target 3.3.0 or will you make a new release with at least 3.2.0 assembly version?

Hi - thanks for the report! Unfortunately this slipped in with an upgrade to VS2017 tooling. Thought I'd checked it but seems not :-(.
3.0.1 patch coming shortly....

Fixed, thank you for that.

authors: GerardasB nblumhardt

repo: serilog/serilog-sinks-seq


text:
ENH: Load should (?) return a xr.Dataset instead of a dict

For now, the result of the load function is a dictionary.
This is a bit oldschool.
It would be maybe better to replace the dict object by a xr.Dataset. The access to the bands wouldn't change.

Don't forget to add all relevant attributes to the dataset

repo: sertit/eoreader


text:
Cron ignores cron expression schedule

I am creating a cron job lambda function with a non-trivial schedule. When I deploy the function it creates the stack successfully. However it is running every minute instead of following the schedule. When I reviewed the CloudFormation stack's created resources the cron schedule for the event rule was '* * * * ? *' instead of the schedule I defined in code.
I was able to workaround for now by manually editing the the cron expression to '0/30 11-2 * * ? *' in the AWS console which showed the expected times of execution and saved successfully. This looks like a bug in either sst or possibly CDK.
Here is the stack code:
// ./stack/CronStack.ts:
import * as cdk from '@aws-cdk/core'
import * as sst from '@serverless-stack/resources'

export class CronStack extends sst.Stack {
  constructor(scope: sst.App, id: string, props?: sst.StackProps) {
    super(scope, id, props)
    new sst.Cron(this, 'ScheduleSomeFunction', {

// This gets turned into 'cron(* * * * ? *)' in deployed event rule:
      schedule: '0/30 11-2 * * ? *',

      job: new sst.Function(stack, 'SomeFunction', {
        handler: 'src/someFunction.handler',
        timeout: cdk.Duration.seconds(29),
      }),
    })
  }
}

// ./stack/index.ts
import { CronStack } from './CronStack'
import * as sst from '@serverless-stack/resources'

export default function main(app: sst.App): void {
  app.setDefaultFunctionProps({
    runtime: 'nodejs14.x',
  })

  new CronStack(app, 'assistant-stack')
}

Have you tried with AWS CDK V2?

Have you tried with AWS CDK V2?

If you mean if I've tried using CDK directly rather than SST for this project, then no. I created a new project with SST last week then deployed it. My project is a pair of simple cron job lambdas that execute code I was previously running locally.
I partially posted this to inform anyone else who runs across this of the issue and the workaround in case others are using SST for non-trivial cron jobs. My deployment worked and my functions were running with no obvious problems; only the non-obvious problem of running every minute instead of when I needed them to, which would have caused much higher charges against APIs those lambdas call than I'd be expecting.

Hey @meticoeus, the cron expression needs to be wrapped inside cron(), give this a try:
schedule: "cron(0/30 11-2 * * ? *)",

Read more about it here https://docs.serverless-stack.com/cron-jobs#cron-expressions

authors: Manitej66 fwang meticoeus

repo: serverless-stack/serverless-stack

license: MIT


text:
Doc: add examples for sharing a construct across stacks

Issue
It is not obvious how to create an Auth construct in 1 stack and use it to authorize Api constructs in other stacks.
https://serverless-stack.slack.com/archives/C01HQQVC8TH/p1625680302310000
Solution
Add a doc teaching people the concept of sharing constructs across stacks.

Added a doc here https://docs.serverless-stack.com/advanced/cross-stack-references


text:
Loading from SSM into environment

Hey!
I wanted to load secrets from AWS SSM into a lambda environment so that it can be read from my little Golang service. I came up with this, but I am unsure if this is the way to go.
sst.config.ts
import { SSTConfig } from "sst";
import { Api } from "sst/constructs";
import { Config } from "sst/constructs";

export default {
  config(_input) {
    return {
      name: "demo",
      region: "eu-central-1",
    };
  },
  stacks(app) {
    app.setDefaultFunctionProps({
      runtime: "go1.x",
    });
    app.stack(function Stack({ stack }) {
      const SMTP_HOST = new Config.Secret(stack, "SMTP_HOST");
      const SMTP_PORT = new Config.Secret(stack, "SMTP_PORT");
      const SMTP_USER = new Config.Secret(stack, "SMTP_USER");
      const SMTP_PASS = new Config.Secret(stack, "SMTP_PASS");

      const api = new Api(stack, "api", {
        routes: {
          "POST /": "functions/lambda/main.go",
        },
      });

      api
        .getFunction("POST /")
        ?.addEnvironment("AM_SMTP_HOST", SMTP_HOST.toString())
        .addEnvironment("AM_SMTP_PORT", SMTP_PORT.toString())
        .addEnvironment("AM_SMTP_USER", SMTP_USER.toString())
        .addEnvironment("AM_SMTP_PASS", SMTP_PASS.toString())
        .addEnvironment("AM_SMTP_AUTH_MECHANISM", "plain");

      stack.addOutputs({
        ApiEndpoint: api.url,
      });
    });
  },
} satisfies SSTConfig;

I also had a look into the docs, but could not find a suitable entry.
Is there a more idiomatic approach to do that?
Thanks!

Can you open a new thread in #help on Discord and link to this?

If someone has an idea ... https://discord.com/channels/983865673656705025/1095718796397912085

We are transition this repo to https://github.com/sst/v2 and are closing this issue for now. If it is still relevant please reopen it there - sorry for the trouble

authors: codedge jayair thdxr

repo: serverless-stack/sst


text:
🛑 sg3ray.serverssh.net is down

In 6f1545e, sg3ray.serverssh.net (http://sg3ray.serverssh.net/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: sg3ray.serverssh.net is back up in e3ee24a.

repo: serversshnet/server-status


text:
🛑 sg2grpc.serverip.my.id is down

In 5aaec21, sg2grpc.serverip.my.id (sg2grpc.serverip.my.id) was down:

HTTP code: 0
Response time: 0 ms

Resolved: sg2grpc.serverip.my.id is back up in 1e0c28b after 5 hours, 16 minutes.


text:
🛑 ustro.ipservers.xyz is down

In 10e53d3, ustro.ipservers.xyz (ustro.ipservers.xyz) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ustro.ipservers.xyz is back up in b586bcd.

repo: serversshnet/uptime


text:
🛑 id2tro.ipservers.xyz is down

In 562827d, id2tro.ipservers.xyz (id2tro.ipservers.xyz) was down:

HTTP code: 0
Response time: 0 ms

Resolved: id2tro.ipservers.xyz is back up in 6b2189b after 8 hours, 47 minutes.


text:
🛑 sg3-ray.ipservers.xyz is down

In b14857a, sg3-ray.ipservers.xyz (sg3-ray.ipservers.xyz) was down:

HTTP code: 0
Response time: 0 ms

Resolved: sg3-ray.ipservers.xyz is back up in 51ec5ef after 5 days, 3 hours, 1 minute.


text:
🛑 usgo.ipservers.xyz is down

In 14d1312, usgo.ipservers.xyz (usgo.ipservers.xyz) was down:

HTTP code: 0
Response time: 0 ms

Resolved: usgo.ipservers.xyz is back up in a3fcaa0.


text:
Update the derive crate

I just encountered an issue where the heapSizeOf derive wasn't able to parse dyn Trait in a struct, so I thought I'd make a PR to update heapsize_derive to use the latest versions of syn and quote... Unfortunately almost all of syn's API has changed since the custom derive was originally written, so the simple cargo update turned into a rewrite :disappointed:
We'll probably want to test this PR against a large-ish codebase that already uses heapsize to make sure I didn't accidentally introduce any regressions.

This change is

When trying to run the tests on my machine I encountered some funny behaviour with Box<T>. Does anyone know why these tests might be failing?
#[test]
fn sanity_check_heapsize_works_as_expected() {
    assert_eq!(Box::new(1_u8).heap_size_of_children(), mem::size_of::<u8>());
    assert_eq!([Box::new(1), Box::new(2)].heap_size_of_children(), 2 * 4);
}

What is the test failure message?

This is what I'm seeing when running the tests:
---- sanity_check_heapsize_works_as_expected stdout ----
thread 'sanity_check_heapsize_works_as_expected' panicked at 'assertion failed: `(left == right)`
  left: `8`,
 right: `1`', test.rs:21:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.

---- tuple_struct stdout ----
thread 'tuple_struct' panicked at 'assertion failed: `(left == right)`
  left: `24`,
 right: `9`', test.rs:13:5

---- normal_struct stdout ----
thread 'normal_struct' panicked at 'assertion failed: `(left == right)`
  left: `32`,
 right: `17`', test.rs:43:5

@jdm  It looks like Box::new(1_u8).heap_size_of_children() is returning the size of the box (i.e. the 64-bit pointer) instead of the size of the u8.

@jdm I made appveyor test the heapsize_derive crate and apparently the sanity test is now passing on Windows.
Perhaps this is something particular to whatever allocator is being used on my machine? Apparently the amount of heap memory used by a Box<[u8; 10]> is zero...
#[test]
fn sanity_check_heapsize_works_as_expected() {
    assert_eq!(
        Box::new([1_u8; 10]).heap_size_of_children(),
        10 * mem::size_of::<u8>()
    );
}

---- sanity_check_heapsize_works_as_expected stdout ----
thread 'sanity_check_heapsize_works_as_expected' panicked at 'assertion failed: `(left == right)`
  left: `0`,
 right: `10`', test.rs:21:5

It looks like the CI failure is because the top-level heapsize crate contains tests which depend on nightly APIs that no longer exist (in particular, the allocator_api feature which has been moved around).

authors: Michael-F-Bryan jdm

repo: servo/heapsize


text:
Stop setting $CARGO_HOME to its default value

In buildbot/master/files/config/environments.py we set CARGO_HOME to Cargo’s default value. Now that mach does not set it (since https://github.com/servo/servo/pull/19395), this has no effect. We can remove these lines.

Fixed by #800.

authors: SimonSapin aneeshusa

repo: servo/saltfs


text:
Add caching of Cargo and Rust bits to Windows

r? @edunham @aneeshusa
Fixes #358
I decided to use the msys home dir instead of %APPDATA% for consistency with the other unix builds, but could be convinced otherwise if we get to a point where Servo is not building inside of the msys/mingw environment.

This change is

I put all of the environment variables in alphabetical order, so please move SERVO_CACHE_DIR to be after PATH and then r=me.

@bors-servo r=aneeshusa

:pushpin: Commit 955790e has been approved by aneeshusa

:hourglass: Testing commit 955790e with merge 99a690f...

:sunny: Test successful - travis

authors: aneeshusa bors-servo larsbergstrom


text:
Compilation error when used as a dependency

Compilation error when installating tectonic, for which hyper-native-tls is a dep:
error: proc-macro derive panicked
  --> ~/.cargo/registry/src/github.com-1ecc6299db9ec823/tectonic-0.1.5/src/config.rs:30:10
   |
30 | #[derive(Deserialize)]
   |          ^^^^^^^^^^^
   |
   = help: message: proc_macro::__internal::with_parse_sess() called before set_parse_sess()!

Seems like a bug to file on techtonic?

Sorry, you're right. I misread the output!

authors: sbp sfackler

repo: sfackler/hyper-native-tls


text:
Dynamic ESS

Possible to implement the new feature Dynamic ESS?

Where can I find further information about this feature?

Unfortunately I cannot implement what victron doesn't expose via the modbus server.
You could open an issue here: https://github.com/victronenergy/dbus_modbustcp/issues to request that they expose this information via an modbus register.
Until then I'm closing this issue as wontfix as the solution lies outside the scope of the integration (for now)

repo: sfstar/hass-victron


text:
🛑 CatamarcaCapital is down

In 76bf049, CatamarcaCapital (https://www.catamarcaciudad.gob.ar) was down:

HTTP code: 0
Response time: 0 ms

Resolved: CatamarcaCapital is back up in d9bb1dc after 4 minutes.

repo: sfvc/upptime


text:
🛑 CatamarcaCapital is down

In 3c785a8, CatamarcaCapital (200.69.145.244) was down:

HTTP code: 0
Response time: 0 ms

Resolved: CatamarcaCapital is back up in 6a31257 after 24 minutes.


text:
🛑 Rentas is down

In 0e9983f, Rentas (rentas.catamarcaciudad.gob.ar) was down:

HTTP code: 500
Response time: 1160 ms

Resolved: Rentas is back up in 640094b.


text:
Update sbt-pgp to 2.3.0

About this PR
📦 Updates com.jsuereth:sbt-pgp from 2.1.1 to 2.3.0
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

🔍 Files still referring to the old version number
The following files still refer to the old version number (2.1.1).
You might want to review and update them manually.
build.sbt
docs/public/docs/installation.md

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.jsuereth", artifactId = "sbt-pgp" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "com.jsuereth", artifactId = "sbt-pgp" }
}]

labels: sbt-plugin-update, early-semver-minor, semver-spec-minor, artifact-migrations, old-version-remains, commit-count:1

Superseded by #734.

repo: shadaj/slinky

license: mit


text:
some of tailwind classes not working in react/vite

Hey, I just copied the entire table from dataTable tutorial and thats how it looks like in my project:

while it should look like this:

I have no idea why some styles are missing, i already reinstalled all shadcn stuff with everything default, here are my configuration files on my main project:

The second screenshot is from newly created vite app and all the styles work there, all the configs are exactly the same on my main project and that new one, the only difference i think are some extra dependencies on main project. Any ideas what might be causing the issue?

Hi @ezrnew, I just tried to replicate your issue but it works fine to me. I see that you're using emotion, maybe it's causing a conflict with Tailwind but I'm not sure.
Can you share the affected repo?

Hi @ezrnew, I just tried to replicate your issue but it works fine to me. I see that you're using emotion, maybe it's causing a conflict with Tailwind but I'm not sure. Can you share the affected repo?

Hey @dan5py, its on my company repo so I dont think I can. What do you mean by 'emotion'?

Okay just fixed it by copying identical DataTable component from working repo but i placed it next to App.tsx in folder structure, used it in App.tsx, and then switched back to use the previous table that hasnt been working before... I assume i might have had something fcked up in my cache maybe, because on my first shadcn installation on this project i have not configured it correctly?

repo: shadcn-ui/ui


text:
Warn on marking function with known side-effects with [PreferRecompute]

Right now, its possible to accidentally mark a method that relies on global/shared memory side-effects with [PreferRecompute]. The additional calls for recomputation will produce inconsistent output, and cause seemingly random gradients.
We should throw a warning if the compiler data-flow analysis detects a method with side-effects being marked recompute, and provide a way to suppress it if it is intentional (the user may be collecting statistics on how many times the method is recomputed, etc..)

Autodiff quality of life, putting in Q2 to reflect that

repo: shader-slang/slang


text:
add documentation process in readme

README update
Please add some documentation about your project.

Added documentation section in readme file

Added Documentation section in readme.


text:
4.4.1 not published on NPM

Have you read the Tutorials?
Yes
Have you read the FAQ and checked for duplicate open issues?
Yes
What version of Shaka Player are you using?
4.4.0
Please ask your question
I cannot find 4.4.1 on NPM, why? :)

In the workflow logs, I see that the npm publish workflow failed:
https://github.com/shaka-project/shaka-player/actions/runs/6070157677/job/16465708155
Run npm publish
  npm publish
  shell: /usr/bin/bash -e {0}
  env:
    NPM_CONFIG_USERCONFIG: /home/runner/work/_temp/.npmrc
    NODE_AUTH_TOKEN: ***

> shaka-player@4.4.1 prepublishOnly
> python build/checkversion.py && python build/all.py --force

Error:  Player version does not match git version.
git version: v4.4.1
npm version: 4.4.1
player version: v4.4.0-uncompiled
changelog version: 4.4.1
npm ERR! code 1
npm ERR! path /home/runner/work/shaka-player/shaka-player
npm ERR! command failed
npm ERR! command sh -c -- python build/checkversion.py && python build/all.py --force

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/runner/.npm/_logs/2023-09-04T07_00_27_651Z-debug-0.log
Error: Process completed with exit code 1.

The release PR did not update the version in player.js: https://github.com/shaka-project/shaka-player/pull/5591/files
The release PR for 4.3.11 has the same problem: https://github.com/shaka-project/shaka-player/pull/5592/files
I did not notice that the player.js change was missing.
Compare to v4.3.10, which worked correctly: https://github.com/shaka-project/shaka-player/pull/5563/files
The most likely culprit is a workflow change I made recently: https://github.com/shaka-project/shaka-player/pull/5585 and the follow-up https://github.com/shaka-project/shaka-player/pull/5588

Both missing versions patched and published manually

Thanks for fixing this, unfortuntately it looks one more thing needs to be done, the latest tag on npm should point to 4.1.1  instead 4.3.11, which it currently points to.

That's what I get for doing it manually and doing 4.3 last.  I'll fix it.
In general, this could still happen from the automated workflows, though.  They don't differentiate between branches, so latest == most recent.  Ideally, the workflow would be explicit about only updating latest when we release from the most recent release branch.  The appspot parts of the workflow do something similar, so it shouldn't be hard to adapt if I can figure out the npm commands.

Fixed manually for now.
$ npm dist-tag ls
latest: 4.4.1

Many thanks for the quick fix. 👍

Thank you for the quick fixes. Please don't be too harsh on yourself, I don't think it's possible to make GitHub actions workflows or changes to them that work the first time, at least nobody I've talked to has managed it.

Yes, it's tough, even when you test workflows on a fork first, you can't fully test releasing without doing a release.
I think the permanent fix for "latest" will be up for review soon.  Thanks to you both for the feedback!

authors: absidue francoism90 joeyparrish

repo: shaka-project/shaka-player


text:
🛑 Shakedown Social - Uploads is down

In 0eca277, Shakedown Social - Uploads (https://files.shakedown.social/accounts/avatars/109/357/389/718/265/462/original/dd80d2c95e48cfd2.jpeg) was down:

HTTP code: 403
Response time: 539 ms

Resolved: Shakedown Social - Uploads is back up in 50751f3.

repo: shakedown-social/upptime


text:
🛑 Shakedown Social - Uploads is down

In 8c5f56a, Shakedown Social - Uploads (https://files.shakedown.social/accounts/avatars/109/357/389/718/265/462/original/dd80d2c95e48cfd2.jpeg) was down:

HTTP code: 403
Response time: 262 ms

Resolved: Shakedown Social - Uploads is back up in e0fae47.


text:
🛑 Shakedown Social - Uploads is down

In 08dc118, Shakedown Social - Uploads (https://files.shakedown.social/accounts/avatars/109/357/389/718/265/462/original/dd80d2c95e48cfd2.jpeg) was down:

HTTP code: 403
Response time: 1636 ms

Resolved: Shakedown Social - Uploads is back up in a2903fe.


text:
🛑 Shakedown Social - Uploads is down

In b10b1a1, Shakedown Social - Uploads (https://files.shakedown.social/accounts/avatars/109/357/389/718/265/462/original/dd80d2c95e48cfd2.jpeg) was down:

HTTP code: 403
Response time: 279 ms

Resolved: Shakedown Social - Uploads is back up in 724ed6b.


text:
Is there a way to change the toast colors and button shapes?

Thanks for creating this utility.  it is really good.  I am looking to change the colors but all the css seems to be minified.

You could register a custom toast and pass a classname as an option. In that class name you could set the background color:
    Vue.toasted.register('myToastName', function (message) {return message }, {
        type : 'info',
        duration: 3000,
        className: ['your-custom-class',]
    });

And in your css:
.your-custom-class {
    background-color: #ffffff !important;
}

thanks @ManuLG 🙌 closing this issue !

You could register a custom toast and pass a classname as an option. In that class name you could set the background color:
    Vue.toasted.register('myToastName', function (message) {return message }, {
        type : 'info',
        duration: 3000,
        className: ['your-custom-class',]
    });

And in your css:
.your-custom-class {
    background-color: #ffffff !important;
}

esto no funciona

This works for style but there doesn't seem to be a way to pass the options, if we wanted to add custom actions per toast on a custom registered toast.

/* toast notification */
.v-toast__item--success{
background-color: #c41e3a !important;
}

authors: ManuLG devanflaherty deylyn sbasi5576 shakee93 thechromosomes


text:
npm publish

@shakyShane would you please :)

@shakyShane would you mind adding me to npm so i can publish on my own by simply typing:
npm owner add soenkekluth
?

Done

you can publish now

Will do the same on svg-sprite-data

authors: shakyShane soenkekluth

repo: shakyShane/gulp-svg-sprites


text:
[Self-Signed] Telegraf is unable to connect to the TLS enabled Mosquitto Broker

With the current code on the branch selfsigned, the telegraf container keeps trying to connect to the mosquitto container configured with TLS certificates and available on port 8883 on a machine.
Publishing/Subscribing from mosquitto-clients is possible and data is being sent via usage of client certificates, but telegraf is unable to connect with the broker.
Suspicion lies in using the Common Name (CN) during creation of the Certificates.
Perhaps add CN=0.0.0.0 or CN=mosquitto
Sources
MQTT TLS Ubuntu 18.04

Solution
It turns out generating certificates with a bit more precision is the way to go.
Based on the Generating a TLS Certificate for Mosquitto Asciicinema follow the steps to create:

Certificate Authority key and cert (ca)
MQTT-Server key and cert (mqtt-server)
InfluxDB-Server key and cert (influx-server)

However for each certificate keep the subjects with Common Name  (CN) same as that of the container names.
SUBJECT_CA="/C=DE/ST=Bremen/L=Bremen/O=TIGUITTO/OU=Certificate Authority"
SUBJECT_MQTT_SERVER="/C=DE/ST=Bremen/L=Bremen/O=TIGUITTO/OU=MQTTSERVER/CN=mosquitto"
SUBJECT_INFLUXDB="/C=DE/ST=Bremen/L=Bremen/O=TIGUITTO/OU=INFLUXDB/CN=influxdb"

Else they will create a lot of problems in terms of connectivity.

NOTE

When generating Self-Signed certificates for Docker Containers which are connected to other containers, it is preferable to use the name of the container as CN value in certificate generation.

repo: shantanoo-desai/tiguitto


text:
Shap.plots.bar and shap.plots.waterfall - Are these working currently?

Hi -
Issue# 1
I am following the example plot for for bar and waterfall here but not able to run the code. Can anyone confirm are these deprecated in the latest versions of SHAP.
import xgboost
import shap

# train XGBoost model
X,y = shap.datasets.adult()
model = xgboost.XGBClassifier().fit(X, y)

# compute SHAP values
explainer = shap.Explainer(model, X)
shap_values = explainer(X)

Exception                                 Traceback (most recent call last)
/usr/local/lib/python3.6/dist-packages/shap/explainers/_linear.py in supports_model_with_masker(model, masker)
268         try:
--> 269             Linear._parse_model(model)
270         except e:
3 frames
/usr/local/lib/python3.6/dist-packages/shap/explainers/_linear.py in _parse_model(model)
255         else:
--> 256             raise Exception("An unknown model type was passed: " + str(type(model)))
257
Exception: An unknown model type was passed: <class 'xgboost.sklearn.XGBClassifier'>
During handling of the above exception, another exception occurred:
NameError                                 Traceback (most recent call last)
 in ()
7
8 # compute SHAP values
----> 9 explainer = shap.Explainer(model, X)
10 shap_values = explainer(X)
/usr/local/lib/python3.6/dist-packages/shap/explainers/_explainer.py in init(self, model, masker, link, algorithm, output_names, feature_names, **kwargs)
97
98                 # use implementation-aware methods if possible
---> 99                 if explainers.Linear.supports_model_with_masker(model, self.masker):
100                     algorithm = "linear"
101                 elif explainers.Tree.supports_model_with_masker(model, self.masker): # TODO: check for Partition?
/usr/local/lib/python3.6/dist-packages/shap/explainers/_linear.py in supports_model_with_masker(model, masker)
268         try:
269             Linear._parse_model(model)
--> 270         except e:
271             return False
272         return True
NameError: name 'e' is not defined
Issue 2:
When I try to use plots.bar and plots.waterfall with TreeExplainer, I get below error:
shap.plots.bar(shap_values_train)

AssertionError                            Traceback (most recent call last)
 in ()
----> 1 shap.plots.bar(shap_values_train)
/usr/local/lib/python3.6/dist-packages/shap/plots/_bar.py in bar(shap_values, max_display, order, clustering, clustering_cutoff, merge_cohorts, show_data, show)
49         cohorts = shap_values.cohorts
50     else:
---> 51         assert isinstance(shap_values, dict), "You must pass an Explanation object, Cohorts object, or dictionary to bar plot!"
52
53     # unpack our list of Explanation objects we need to plot
AssertionError: You must pass an Explanation object, Cohorts object, or dictionary to bar plot!
Note: I am using Colab

Hi, I am not able to run the code either...
Python 3.8.3
Shap version: 0.37.0
I get the same error

hi, have u solved the problem, I met the same problem when running this  https://github.com/slundberg/shap/blob/master/notebooks/general/Explainable AI with Shapley Values.ipynb

I am getting:
shap.plots.waterfall(shap_values[1])

TypeError                                 Traceback (most recent call last)
 in
----> 1 shap.plots.waterfall(shap_values[1])
TypeError: 'module' object is not callable

I am getting:
shap.plots.waterfall(shap_values[1])

TypeError                                 Traceback (most recent call last)
 in
----> 1 shap.plots.waterfall(shap_values[1])
TypeError: 'module' object is not callable

I had the same problem, replaced the shap.values with explainer(X) and it worked.

I had the same problem, replaced the shap.values with explainer(X) and it worked.

Could you please provide the code detailed? I can't fix this either. Thank you very very much in advance

I'm having the same issue. Upvoting for visibility.

same issue here,
TypeError: 'module' object is not callable

Has this issue ever been resolved?

I had the same problem, replaced the shap.values with explainer(X) and it worked.

Could you please provide the code detailed? I can't fix this either. Thank you very very much in advance
@slundberg

In this line: shap.plots.bar(shap_values_train), I replaced the shap_values_train parameter with explainer(X). I hope this solves your problem too. I will re-run my script and will update this answer if anything changes.

It seems that waterfall has become a module, and the function to be called is waterfall_plot. But curiously, it's not specified that way in the docs.

For me
This:
ex = shap.TreeExplainer(model)

ex(X)

resulted in:

ValueError: could not convert string to float: 'MY_CATEGORY_NAME'

and this:
ex = shap.TreeExplainer(model, X)

resulted in

Found a NULL input array in _cext_dense_tree_update_weights!
...
ValueError: could not convert string to float: 'MY_CATEGORY_NAME'
...
Exception: Currently TreeExplainer can only handle models with categorical splits when feature_perturbation="tree_path_dependent" and no background data is passed. Please try again using shap.TreeExplainer(model, feature_perturbation="tree_path_dependent").

Same errors using tree_path_dependent and Explainer instead of TreeExplainer.
Anyone resolved?

I have the same issue. Anyone?

I have the same issue too.

I also have similar issue

Same issue this library looks broken . . .

Given some dataframe with column text that contains a sentence.
cv = CountVectorizer(max_features=4000)
X = cv.fit_transform(sentimentTrain.text)
y = sentimentTrain.sentiment
model = xgboost.XGBClassifier().fit(X, y)
explainer = shap.Explainer(model, X)

Causes that issue.

I have the same issue too. Anyone solved?

shap.plots.bar(explainer(x_test))

The problem solution:
shap.summary_plot(shap_values[1], X_test, plot_type="bar")

The two issues described in the OP both work for me on shap 0.43.0, so maybe this has been resolved and can be closed?

Closing as this issue appears to be fixed since we merged in the various fixes from the "Community fork" in #2943.
Please don't hesitate to open a new issue if you encounter this again.

authors: BaiqingL JuanMLE Mark531 OriKatz1 SandyBy VickyVouk Z-Shakeri alexandrerays chetanambi connortann hiyamgh joelostblom loicmagne luigimontaleone medomatto mrektor ozziejin phister talentingsun tomaszek0 wundermahn

repo: shap/shap


text:
Explore more websites for optional integration

Explore more websites which can be optionally supported by the extension to run code.
I am going to keep this issue open for suggestions to add to the following list.

[x] http://xahlee.info/comp/comp_lang_tutorials_index.html [Python2, Python3, Ruby, Go, PHP, Java]
[x] http://www.learntosolveit.com [C, Python, Ruby, Java, Scala]
[x] https://www.geeksforgeeks.org [C, C++, Java, Python]
Example: https://www.geeksforgeeks.org/kth-smallestlargest-element-unsorted-array-set-2-expected-linear-time/
[x] https://www.tutorialspoint.com/tutorialslibrary.htm [C, C++, Python2/3, Ruby, Go, PHP, Java, Scala]
[x] Sites at https://github.com/ronreiter/interactive-tutorials/tree/master/tutorials
Not suitable for RMCO since the snippets are not standalone programs.

Python 2

Python 3

Ruby

Golang

PHP

Java

Learn To Solve It is implemented.
Screenshots

C

Python

Ruby

Java

GeeksForGeeks is implemented: https://github.com/shatgupt/runmycode-ext/pull/14
Adds a Run Here button.
Screenshots

C

Python3

Java

Tutorialspoint is implemented: https://github.com/shatgupt/runmycode-ext/pull/15.
Adds a Run Here button.
Screenshots

C

C++

Python

Ruby

Java

Scala

repo: shatgupt/runmycode-ext


text:
shellcheck-py installation fails with python 3.9.1 on Mac M1

Versions:

pyenv --version
# pyenv 1.2.23

python --version
# Python 3.9.1

pip --version
# pip 21.0.1

poetry --version
# Poetry version 1.1.5

Installation output:
  • Installing shellcheck-py (0.7.1.1): Failed

  EnvCommandError

  Command ['/Users/arthur/Library/Caches/pypoetry/virtualenvs/kog-W0XsUAqJ-py3.9/bin/pip', 'install', '--no-deps', 'file:///Users/arthur/Library/Caches/pypoetry/artifacts/ee/51/0f/26f88a282e231a2d30fdbb317874d09d9487ab1eb429845789eba208c1/shellcheck_py-0.7.1.1.tar.gz'] errored with the following return code 1, and output:
  Processing /Users/arthur/Library/Caches/pypoetry/artifacts/ee/51/0f/26f88a282e231a2d30fdbb317874d09d9487ab1eb429845789eba208c1/shellcheck_py-0.7.1.1.tar.gz
  Building wheels for collected packages: shellcheck-py
    Building wheel for shellcheck-py (setup.py): started
    Building wheel for shellcheck-py (setup.py): finished with status 'error'
    ERROR: Command errored out with exit status 1:
     command: /Users/arthur/Library/Caches/pypoetry/virtualenvs/kog-W0XsUAqJ-py3.9/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/7p/btbr82r13qd2jr52n6gm9smr0000gn/T/pip-req-build-3d15gqdu/setup.py'"'"'; __file__='"'"'/private/var/folders/7p/btbr82r13qd2jr52n6gm9smr0000gn/T/pip-req-build-3d15gqdu/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/7p/btbr82r13qd2jr52n6gm9smr0000gn/T/pip-wheel-4fr2p1px
         cwd: /private/var/folders/7p/btbr82r13qd2jr52n6gm9smr0000gn/T/pip-req-build-3d15gqdu/
    Complete output (34 lines):
    running bdist_wheel
    running build
    running fetch_binaries
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/7p/btbr82r13qd2jr52n6gm9smr0000gn/T/pip-req-build-3d15gqdu/setup.py", line 163, in <module>
        setup(version=f'{SHELLCHECK_VERSION}.{PY_VERSION}', cmdclass=command_overrides)
      File "/Users/arthur/Library/Caches/pypoetry/virtualenvs/kog-W0XsUAqJ-py3.9/lib/python3.9/site-packages/setuptools/__init__.py", line 153, in setup
        return distutils.core.setup(**attrs)
      File "/Users/arthur/.pyenv/versions/3.9.1/lib/python3.9/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/Users/arthur/.pyenv/versions/3.9.1/lib/python3.9/distutils/dist.py", line 966, in run_commands
        self.run_command(cmd)
      File "/Users/arthur/.pyenv/versions/3.9.1/lib/python3.9/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/Users/arthur/Library/Caches/pypoetry/virtualenvs/kog-W0XsUAqJ-py3.9/lib/python3.9/site-packages/wheel/bdist_wheel.py", line 299, in run
        self.run_command('build')
      File "/Users/arthur/.pyenv/versions/3.9.1/lib/python3.9/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/Users/arthur/.pyenv/versions/3.9.1/lib/python3.9/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/Users/arthur/.pyenv/versions/3.9.1/lib/python3.9/distutils/command/build.py", line 135, in run
        self.run_command(cmd_name)
      File "/Users/arthur/.pyenv/versions/3.9.1/lib/python3.9/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/Users/arthur/.pyenv/versions/3.9.1/lib/python3.9/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/private/var/folders/7p/btbr82r13qd2jr52n6gm9smr0000gn/T/pip-req-build-3d15gqdu/setup.py", line 111, in run
        data = extract(url, archive)
      File "/private/var/folders/7p/btbr82r13qd2jr52n6gm9smr0000gn/T/pip-req-build-3d15gqdu/setup.py", line 62, in extract
        with tarfile.open(fileobj=bio) as tarf:
      File "/Users/arthur/.pyenv/versions/3.9.1/lib/python3.9/tarfile.py", line 1616, in open
        raise ReadError("file could not be opened successfully")
    tarfile.ReadError: file could not be opened successfully
    ----------------------------------------
    ERROR: Failed building wheel for shellcheck-py
    Running setup.py clean for shellcheck-py
  Failed to build shellcheck-py
  Installing collected packages: shellcheck-py
      Running setup.py install for shellcheck-py: started
      Running setup.py install for shellcheck-py: finished with status 'error'
      ERROR: Command errored out with exit status 1:
       command: /Users/arthur/Library/Caches/pypoetry/virtualenvs/kog-W0XsUAqJ-py3.9/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/7p/btbr82r13qd2jr52n6gm9smr0000gn/T/pip-req-build-3d15gqdu/setup.py'"'"'; __file__='"'"'/private/var/folders/7p/btbr82r13qd2jr52n6gm9smr0000gn/T/pip-req-build-3d15gqdu/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/7p/btbr82r13qd2jr52n6gm9smr0000gn/T/pip-record-0_nofc5h/install-record.txt --single-version-externally-managed --compile --install-headers /Users/arthur/Library/Caches/pypoetry/virtualenvs/kog-W0XsUAqJ-py3.9/include/site/python3.9/shellcheck-py
           cwd: /private/var/folders/7p/btbr82r13qd2jr52n6gm9smr0000gn/T/pip-req-build-3d15gqdu/
      Complete output (36 lines):
      running install
      running build
      running fetch_binaries
      Traceback (most recent call last):
        File "<string>", line 1, in <module>
        File "/private/var/folders/7p/btbr82r13qd2jr52n6gm9smr0000gn/T/pip-req-build-3d15gqdu/setup.py", line 163, in <module>
          setup(version=f'{SHELLCHECK_VERSION}.{PY_VERSION}', cmdclass=command_overrides)
        File "/Users/arthur/Library/Caches/pypoetry/virtualenvs/kog-W0XsUAqJ-py3.9/lib/python3.9/site-packages/setuptools/__init__.py", line 153, in setup
          return distutils.core.setup(**attrs)
        File "/Users/arthur/.pyenv/versions/3.9.1/lib/python3.9/distutils/core.py", line 148, in setup
          dist.run_commands()
        File "/Users/arthur/.pyenv/versions/3.9.1/lib/python3.9/distutils/dist.py", line 966, in run_commands
          self.run_command(cmd)
        File "/Users/arthur/.pyenv/versions/3.9.1/lib/python3.9/distutils/dist.py", line 985, in run_command
          cmd_obj.run()
        File "/Users/arthur/Library/Caches/pypoetry/virtualenvs/kog-W0XsUAqJ-py3.9/lib/python3.9/site-packages/setuptools/command/install.py", line 61, in run
          return orig.install.run(self)
        File "/Users/arthur/.pyenv/versions/3.9.1/lib/python3.9/distutils/command/install.py", line 546, in run
          self.run_command('build')
        File "/Users/arthur/.pyenv/versions/3.9.1/lib/python3.9/distutils/cmd.py", line 313, in run_command
          self.distribution.run_command(command)
        File "/Users/arthur/.pyenv/versions/3.9.1/lib/python3.9/distutils/dist.py", line 985, in run_command
          cmd_obj.run()
        File "/Users/arthur/.pyenv/versions/3.9.1/lib/python3.9/distutils/command/build.py", line 135, in run
          self.run_command(cmd_name)
        File "/Users/arthur/.pyenv/versions/3.9.1/lib/python3.9/distutils/cmd.py", line 313, in run_command
          self.distribution.run_command(command)
        File "/Users/arthur/.pyenv/versions/3.9.1/lib/python3.9/distutils/dist.py", line 985, in run_command
          cmd_obj.run()
        File "/private/var/folders/7p/btbr82r13qd2jr52n6gm9smr0000gn/T/pip-req-build-3d15gqdu/setup.py", line 111, in run
          data = extract(url, archive)
        File "/private/var/folders/7p/btbr82r13qd2jr52n6gm9smr0000gn/T/pip-req-build-3d15gqdu/setup.py", line 62, in extract
          with tarfile.open(fileobj=bio) as tarf:
        File "/Users/arthur/.pyenv/versions/3.9.1/lib/python3.9/tarfile.py", line 1616, in open
          raise ReadError("file could not be opened successfully")
      tarfile.ReadError: file could not be opened successfully
      ----------------------------------------
  ERROR: Command errored out with exit status 1: /Users/arthur/Library/Caches/pypoetry/virtualenvs/kog-W0XsUAqJ-py3.9/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/7p/btbr82r13qd2jr52n6gm9smr0000gn/T/pip-req-build-3d15gqdu/setup.py'"'"'; __file__='"'"'/private/var/folders/7p/btbr82r13qd2jr52n6gm9smr0000gn/T/pip-req-build-3d15gqdu/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/7p/btbr82r13qd2jr52n6gm9smr0000gn/T/pip-record-0_nofc5h/install-record.txt --single-version-externally-managed --compile --install-headers /Users/arthur/Library/Caches/pypoetry/virtualenvs/kog-W0XsUAqJ-py3.9/include/site/python3.9/shellcheck-py Check the logs for full command output.

  at ~/.poetry/lib/poetry/utils/env.py:1074 in _run
      1070│                 output = subprocess.check_output(
      1071│                     cmd, stderr=subprocess.STDOUT, **kwargs
      1072│                 )
      1073│         except CalledProcessError as e:
    → 1074│             raise EnvCommandError(e, input=input_)
      1075│
      1076│         return decode(output)
      1077│
      1078│     def execute(self, bin, *args, **kwargs):

weird, that line should just be extracting the tarfile that it downloads from github.  note that shellcheck itself doesn't support M1 so it's just emulating x86_64 via rosetta.  the really strange bit is you've gotten past the sha256 check which should ensure the archive integrity.
I've asked a friend who has an M1 and they were able to install this so I'm not sure what's up here -- are you running in native or rosetta? maybe there's a bug in the tarfile module itself

apparently this is just when you have poorly compiled python (missing zlib) -- so I'd recommend fixing your setup to make sure that zlib is available when building
this is again why I don't recommend pyenv, it's all too easy to break the install: https://bugs.python.org/issue8978

authors: arthurvasconcelos asottile

repo: shellcheck-py/shellcheck-py


text:
"not a valid add-on repository"

I tried adding a custom addon repository, but ended up with:
21-06-16 15:18:18 INFO (MainThread) [supervisor.store.git] Cloning add-on https://github.com/shenxn/ha-dyson repository
21-06-16 15:18:25 ERROR (MainThread) [supervisor.store] https://github.com/shenxn/ha-dyson is not a valid add-on repository
21-06-16 15:18:25 INFO (MainThread) [supervisor.resolution.module] Create new issue IssueType.CORRUPT_REPOSITORY - ContextType.STORE / 51459f1f
21-06-16 15:18:25 INFO (MainThread) [supervisor.resolution.module] Create new suggestion SuggestionType.EXECUTE_REMOVE - ContextType.STORE / 51459f1f
21-06-16 15:18:25 INFO (MainThread) [supervisor.store.git] Removing custom add-on repository https://github.com/shenxn/ha-dyson/
21-06-16 15:18:25 WARNING (MainThread) [supervisor.store.data] No repository information exists at /data/addons/git/51459f1f

This is not an add-on but a custom integration. You should use HACS.

Oh sorry, got confused :]

authors: Saviq shenxn

repo: shenxn/ha-dyson


text:
Updated Registers, Cache and RAM section of the ReadMe

Added more info about Registers such as the basic types of registers , their function , and their storage capacity. Also added a new definition of registers that they are a collection of flip flop (which is a device which stores 1 bit of memory).

PR for Issue #1

@ayushanand16 change the requested.

@ayushanand16 change the requested.

Will do. Thanks

@shhossain  Made the requested changes.


text:
Adapt to ephemeral links

Probably a better UX to have links be saved in a list for a set time, like 5 minutes, then disappear forever. Right now, permanent link tracking is probably confusing for some when links don't show because they were saved months ago or whatever, and it might be nicer to have a more live representation of chat.
Links would also not disappear when clicked, and instead have a save/ban feature that adds it to a permanent list.

Completed with V2.0.1

repo: shiboe/TwitchLinks


text:
Different sizes of photos shown on the website

Leon's photo is longer than the others.

@CicoZhang thanks, I will look into fixing the template :)

should be fixed now :)

authors: CicoZhang shiltemann

repo: shiltemann/choosegalaxy


text:
feat: add workflow to validate GitHub Actions

Context

GitHub Actionsの実装をチェックするワークフロー
本リポジトリで用いるのではなく各リポジトリのワークフロー内で利用する予定

deplicate #19 .
close this #18.


text:
feature/1: Added print msg.

Again!

test this please

test this please

repo: shinbero/hello-world


text:
help request: #58 template에서 backend쪽으로 입력 넘기는 부분에서의 에러

Description
https://github.com/shinhancard/dev-portal/issues/58#issuecomment-1670828777
탬플릿쪽에서 입력넣는 부분
https://github.com/shinhancard/dev-portal-catalog-template/blob/main/frd-core-template/template.yaml

backend쪽에서 입력을 받는 부분
packages/backend/src/plugins/scaffolder/actions/create-file/dependcy.ts
import { createTemplateAction } from '@backstage/plugin-scaffolder-node';
import { writeFile } from 'fs';
import {createGradle} from "./gradle";

export const createNewFileAction = () => {
    return createTemplateAction<{ contents: string; filename: string }>(
        {
        id: 'builtin:create:file',
        schema: {
            input: {
                required: ['filename','contents'],
                type: 'object',
                properties: {
                    filename: {
                        title: 'File Name',
                        type: 'string',
                        description: 'name of file'
                    },
                    contents: {
                        title: 'file contents',
                        type: 'string',
                        description: 'content'
                    },
                },
            },
        },
        async handler(ctx) {
            const { signal } = ctx;
            await writeFile(
                `${ctx.workspacePath}/${ctx.input.filename}`,
                ctx.input.contents,
                { signal },
                _ => {},
            );
        },
    });
};

export const createDependencyAction = () => {
    return createTemplateAction<{ dependencies }>(
        {
            id: 'create:dependency:gradle',
            schema: {
                input: {
                    required: ['dependencies'],
                    type: 'array',
                    properties: {
                        dependencies: {
                            title: 'Dependencies',
                            type: 'object',
                            description: 'array of dependencies',
                            items: {
                                type: {
                                    title: 'type',
                                    type: 'string',
                                    description: 'ex) implementation, runtimeOnly, testImplementation'
                                },
                                dependency:{
                                    title: 'dependency-name',
                                    type: 'string',
                                    description: 'ex) org.springframework.boot:spring-boot-starter-cache'
                                },
                                version: {
                                    title: 'version',
                                    type: 'string',
                                    description: 'version'
                                }

                            }
                        }
                    }
                }
            },
            async handler(ctx) {
                const { signal } = ctx;
                console.log(ctx.input.dependencies);
                await writeFile(
                    `${ctx.workspacePath}/build.gradle`,
                    createGradle(ctx.input.dependencies),
                    _ => {},
                );
            },
        });
};

문제가 되는 부분은 템플릿쪽에서 입력 넣어서 backend 쪽으로 입력이 넘어가는 과정에서 제대로된 입력값이 넘어가지 않는 것으로 추정됨 혹은 넘어온 것을 제대로 처리하지 못한듯함
Environment

DevPortal version :
Backstage version (run backstage-cli version):
OS Type / Version :
React/ NodeJS version :

일단 리베이스를 먼저 해야할듯...

일단 리베이스를 먼저 해야할듯...
한번 진행한 상태인데 문제가 있는 상황인가요??

브랜치 커밋 로그로 변경사항을 확인해야해서 리베이스를 해주면 알아보기 쉽습니다.
진행사항을 확인하니 custom action으로 시작했네요.
먼저 템플릿 레포에 develop 브랜치를 생성해서, 작업 중일때는 이곳을 바라보는게 좋겠습니다.(생성완료)
문제 상황을 확인하니

template.yaml에 바인딩을 input.value.dependencies로 지정해서 backend의 구조와 맞지 않았음

    - id: create
      name: create gradle file
      action: create:dependency:gradle
      input:
        url: ./skeleton
        copyWithoutRender:
          - .github/workflows/*
        dependencies: ${{ parameters.dependencies }} # 다음과 같이 수정함

schema 불일치 -> 커밋함(dependency.ts)

참고로 required에 필드를 제거하면 스키마 체크를 하지 않고 넘어가서 디버깅이 가능합니다.

수정 내용과 에러상황 해결된 것 확인했습니다! 감사합니다

repo: shinhancard/dev-portal


text:
Simple S3 bucket using Terraform

[x] Define an S3 bucket in Terraform
[x] Use random resource string for the bucket name
[x] Install the AWS Terraform Provider
[x] Configure AWS Provider
[x] Make sure random generates only lower and no upper for bucket name
[x] Terraform apply and destroy

[x] Define an S3 bucket in Terraform
[x] Use random resource string for the bucket name
[x] Install the AWS Terraform Provider
[x] Configure AWS Provider
[x] Make sure random generates only lower and no upper for bucket name
[x] Terraform apply and destroy


text:
Update protobuf@8.3

Build protobuf@8.3

:beers: @BrewTestBot has triggered a merge.

repo: shivammathur/homebrew-extensions


text:
Update php@7.4-debug-zts

Build php@7.4-debug-zts

:beers: @BrewTestBot has triggered a merge.

repo: shivammathur/homebrew-php


text:
Update php@8.2

Build php@8.2

:beers: @BrewTestBot has triggered a merge.


text:
Overall Project enhancement

There are various projects and code available in the repository and it is open for updates and enhancement. If one believes that the project can be updated with more features and any complexity can be tackled then feel free to pull.
NOTE
Only serious enhancements would be accepted, as we don't want to ruin the original projects.

Hey @shivangdubey I'm interested in tree traversal code, I can provide an iterative solution.
Can you assign it to me?

authors: shivangdubey thetanyasrivastava


text:
routingtable:getTopK

Is it necessary to add this code?
heap.Init(&topkHeap).

No, it's not necessary because the heap is empty when the function getTopK starts.

authors: ffhelicopter shiyanhui

repo: shiyanhui/dht


text:
Activate / Deactivate Option

As I understand it the plugin is always active for now and we have the options to be in "match mode" or in "practice mode".
It would be nice to have the option to choose neither.
So that neither is active on startup, and we can use the server for retake or whatever and then to have the ability to activate the "match mode" if we want to scrim, activate the "practice mode" if we want to practice.
And then again send the plugin in “sleep mode” to use the server otherwise.

Hey!
I will check this whether we can fully de-activate the functionalities of MatchZy using some command, thanks for the suggestion!

I think it don’t need to be "fully de-activate", if this is not possible or hard to implement.
Features like the “.rcon” command could be useful in general.
It would be enough if the plugin just "sleeps" and doesn’t do anything actively, like checking for ready up or execute the practice cvars. So next to the “match mode” and “practice mode” a “I do nothing mode” would be highly appreciated.

You can load/unload or stop/start MatchZy plugin using css_plugins command.
Usage:
css_plugins stop/start/restart/load/unload/reload <pluginname>
So you can have css_plugins stop "MatchZy" command in your cfg where you'll start retake mode to deactivate MatchZy
And when you want to enter match mode, you can use css_plugins start "MatchZy", that will re-activate MatchZy

@shobhit-pathak
I think @Dying-Ducks is asking for a way to disable the .ready commands rather than disabling the plugin so that the plugin is in a 'neutral state'. Not in match mode or prac mode. It's simply in a permanent warmup state. Then it can be changed to whatever he wants.
Basically what I asked for in https://github.com/shobhit-pathak/MatchZy/issues/29
Match zy should compliment other plugins. Disabling it in this case isn't the way to go IMO. Most plugins won't add an rcon command which your plugin supports and it has good admin support.
Currently, if you switch to a different config or plugin eg retake the messages will keep appearing to ready up. I realise you have a workaround but I think @Dying-Ducks is asking to stop the ready up messages.

Hey @ChocOranger, thanks for the explanation.
I'll explore disabling ready messages based on a config variable, but I think this can be picked up a bit later.
Till then, the temporary solutions can be:

Disabling the plugin through cfgs
Set matchzy_minimum_ready_required to the maximum number and matchzy_chat_messages_timer_delay to a large number.

Hey @Dying-Ducks!
Thanks for your PR, I've included it in the v0.5.1-alpha release of MatchZy (https://github.com/shobhit-pathak/MatchZy/releases/)
Thanks!

authors: ChocOranger Dying-Ducks shobhit-pathak

repo: shobhit-pathak/MatchZy


text:
fix package name missing

Summary by CodeRabbit

Documentation

Updated the reference to DBConfig in the documentation to reflect the latest package changes.

Pull Request Test Coverage Report for Build 8293260224
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 66.358%

Totals

Change from base Build 7543424919:
0.0%

Covered Lines:
716

Relevant Lines:
1079

💛  - Coveralls


text:
Handle invalid setting of random subset size in random forest

The parameter can be set via the method get_num_random_features or a couple of the constructors. This parameter is a member of RandomCARTree.
Currently, if the parameter is larger than number of features, a non-informative shogun::ShogunException is thrown. To reproduce, for instance call rand_forest.set_num_random_features in multiclass_randomforest_modular.py.
The idea is to handle incorrect settings of this parameter and abort training/testing when appropriate.
Note that RandomCARTree::set_feature_subset_size already makes sure that the number is positive. However, it cannot check that feature subset size is smaller than or equal to the number of features since this depends on the data at hand (and it can change in the life-time of a RandomCARTree instance).

Hey @iglesias , I will take this.
One question.
The number of features while inside set_num_random_feature can only be known if the data was locked right?

Hey @kislayabhi. That seems to reconcile with the last paragraph in the first comment, correct? What do you think?

Ah. I see. I will add a check in CRandomForest::train_machine after the data is confirmed to exist.

authors: iglesias kislayabhi

repo: shogun-toolbox/shogun


text:
Patch files - PPRM block

I have started to decode the PPRM block, and have located the patch volume, but don't know what any of the other bits/bytes might represent... any suggestions?
https://github.com/mungewell/zoom-zt2/blob/master/decode_preset.py#L56

The bits before the patch volume are reported as unknown key and (at least for the GCE-3) there is little variation.
simon@thevoid:/media/simon/OS/Users/simon/Documents/ZoomFW/GCE-3_v1.20_Win_E/unzipped/.rsrc/1041/BIN/extract_zptc$ cat *.dump | grep -e "PPRM" -A 5 | grep "unknown" | sort | uniq -c
    168                 unknown = 12816
     25                 unknown = 17185
      5                 unknown = 21554
      2                 unknown = 25923

And in binary...
>>> "{0:029b}".format(12816)
'00000000000000011001000010000'
>>> "{0:029b}".format(17185)
'00000000000000100001100100001'
>>> "{0:029b}".format(21554)
'00000000000000101010000110010'
>>> "{0:029b}".format(25923)
'00000000000000110010101000011'

Looking at those with '25923', there are 2 patches.
52992.zptc.dump:                unknown = 25923 => u'StringGt  '
53728.zptc.dump:                unknown = 25923 => u'Rezo Cln  '

Hi @mungewell
I am tied up next week - broke me Burny LP55s (dropped) and was patching it back together.
Anyhow next weekend I will try to catch up with what you are doing.
My approach would be to write out the known patch params, then see which ones are missing. See if varying them modifies that area. But I guess you are already doing this?
What I notice from the older G5 is one could set pedal parameters. We believe the PRME is the PaRMeter in English right? The JSON we generate tells us what parameters there are? So wouldnt the PPRM have the PaRMater Midi values??
So would we expect any hidden stuff in there (other than maybe a checksum?).
Like I said on the older pedals one can set, in the patch, what the control in pedal will control. And the expression pedal - the G1XFour etc is more verbose than the earlier pedals. For example the description (which I havent found a sysex for - dont think I have). You hinted it is possible to load patches between eachother on the newer pedals? So maybe there is more info in the PPRM block?

I made progress in writing patches to pedal types that they didn't come from... actual when padded to the correct size they pedal accepts and corrects some things.
https://github.com/mungewell/zoom-zt2/issues/40
You mentioned G1XFour, and now mine is back in reach I tried a few tests on that...
# output commands to read all patches from pedal

for patch in range(10,60):
    print("python3 ../../zoomzt2.py -p %d patch%d.ztpc" % (patch, patch))

And then..
$ python3 grab_all.py > grab_all.sh
$ bash grab_all.sh
$ find . -name '*.ztpc' -exec bash -c "python3 ../../decode_preset.py -d {} > {}.dump" \;
$ cat *.dump | grep -e "PPRM" -A 5 | grep "unknown" | sort | uniq -c
     15                 unknown = 0
      8
    unknown = 1
      2                 unknown = 1074
      1                 unknown = 12816
      2                 unknown = 17185
      4                 unknown = 2
      9                 unknown = 3
      9                 unknown = 4

>>> "{0:029b}".format(1074)
'00000000000000000010000110010'
>>> "{0:029b}".format(12816)
'00000000000000011001000010000'
>>> "{0:029b}".format(17185)
'00000000000000100001100100001'

Will dig into whether there is a noticable commonality of the patches with the same lower bits for unknown.

Didn't see any parameter/feature of the patch which would explain these bits, however I did note that they are automatically reset (to their 'normal' value) if I deliberately change and then reload the adjusted patch. ie they mean something to the pedal, they aren't just unused values.
$ python3 ../../decode_preset.py -d test.ztpc | grep -A 10 "PPRM"
    PPRM = Container:
        length = 12
        autorev = b'\x00\x00\x002\x00\x00\x00\x00\x00\x00\x00\x00' (total 12)
        reversed = Container:
            control = Container:
                punknown = 0
                volume = 100
                pad = 0
            unknown = b'\x00\x00\x00\x00\x00\x00\x00' (total 7)
$ python3 ../../zoomzt2.py -P 50 test.ztpc
$ python3 ../../zoomzt2.py -p 50 test2.ztpc
$ python3 ../../decode_preset.py -d test2.ztpc | grep -A 10 "PPRM"
    PPRM = Container:
        length = 12
        autorev = b'\x00\x0c\x842\x00\x00\x00\x00\x00\x00\x00\x00' (total 12)
        reversed = Container:
            control = Container:
                punknown = 12816 <------------ reset to previous value
                volume = 100
                pad = 0
            unknown = b'\x00\x00\x00\x00\x00\x00\x00' (total 7)

I don't think that they are a checksum, as they do not change if the name or order of effects are changed within the patch.

Very kindy. So PPRM is parameter block for an FX.
I wonder - if you make a patch with say 5 identical FX do these values remain same in each FX?
I was going to suggest changing FX order in a patch with different FX  but like we know the PPRM is per FX.
We don't have any FX where the version has been updated? And are the unknown bits the same regardless of patch? IE if it can be seen to be constant then it's some sort of signature or fixed attribute (I guess).

Just for clarity the PPRM block is NOT for individual effects, it is overall setting for the patch ('.ztpc' file). We know it contains the patch volume (different from individual effect's volume).

On the question of ZD2 effects which have changed/have different versions. I made a list of the ones offered via GL...
https://github.com/mungewell/zoom-zt2/blob/master/zoom_fx/master.txt
I can run through all the ones I have extracted from FW images to see if there's any which are different from the above...

Thanks for the clarification. I guess you have some candidates.
0x02000051 : Gt GEQ (v1.10), 0xab2c491e83f2e755bbf05dd35017286d0x02000053 : Gt GEQ 7 (v1.10), 0x2ee248d8194055c6adaeeeef113c4b520x02000054 : Gt GEQ 7 (v1.10), 0x47afd7dbfc1cfc309f455dba1f36207a0x02000060 : St Gt GEQ (v1.10), 0x149879b7fb183f6df9f67aae90fc63820x02000061 : St Gt GEQ (v1.10),
I wonder if they generate different PPRM when put in a patch (inplace of eachother)

These two... are actually the 2screen (G3n/etc) and 1screen versions (G1Four/etc).
0x02000050 : Gt GEQ (v1.10), 0x46d90b7a39c68c95d256a07e4a57ba13
0x02000051 : Gt GEQ (v1.10), 0xab2c491e83f2e755bbf05dd35017286d

They have different filenames and 2screen versions are blocked on the G1Four with GUARD.ZT2. Don't know what happens if you bypass that protection...
https://github.com/mungewell/zoom-zt2/blob/master/zoom_fx/G3n/unzipped/list_sorted.txt#L15
https://github.com/mungewell/zoom-zt2/blob/master/zoom_fx/G1 FOUR/unzipped/list_sorted.txt#L15
I'll be looking for ZD2 with exactly the same ID and different (embedded) version numbers.

Wow, there were way more that I expected - for example:
0x01000010 : Comp (v1.10), 0x4fa7a52bc19e7e5152c11284bc7e23ad
0x01000010 : Comp (v1.20), 0xef9f226550c8ff0456043fa32b144f96
0x01000010 : Comp (v1.30), 0xed47bb3a16fb16d537c4a1e105520a47
0x01000010 : Comp (v1.40), 0x734b3be53622c6d6930775fca9089301

uniq.txt

Another interesting observation, if I upload a complete set of patches and then download again all the 'punkown' values (in PPRM) are low numbers (ie <=4).
When I edit/save a patch on the pedal, then then number becomes high. Note I have auto-save turned off. For example 'MonkeyRCT' starts as 1, but becomes 17185 ('00000000000000100001100100001')

Figured out a few more bits - the lower 3 bits are the slot which is currently being edited, these can only be read as 'download current patch' as placing pedal in PC mode clears any unsaved changes.
This also only reports correctly if the pedal is 'edit' phase, where the individual parameters of the effect are shown on the screen. This may be different for the larger pedals.
I've checked in the changes to allow this, command is like... slots labelled 0 through 4 on G1Four.
$ python3 ../../zoomzt2.py -c test.ztpc
$ python3 ~/zoom-zt2-sdw-github/decode_preset.py -d test.ztpc | grep "slot"
                slot = 0

Still have more bits to identify in PPRM, but haven't figured what makes them change.

is there some new code I should pull to play along? I have the G3n and G5n so could see if anything changes.

I added some stuff to repo in:
https://github.com/mungewell/zoom-zt2/blob/master/decode_preset.py
The is a --pad command line to set the size/padding when saving changed files with --output. If you use the --dump command then there is additional information decoded from the files.
Things to check:
'target' - ie which pedal this patch came from.
'pslot' - from the PPRM block, I think this only applies when read 'current patch' (possibly with auto-save turned off).
Still don't know what the unknowns are.....

authors: mungewell shooking

repo: shooking/ZoomPedalFun


text:
Make more obvious that the product price must be set in cents through the dashboard

I'm testing Shopper and faced troubles to setting a price for a product through the dashboard. I tried setting the price to 72.99 (seventy-two and ninety-nine cents) and saved the product.

But when I checked the product on the catalog list the price was like "0.73".

Then I tried to set the price in another format like 7299 and I got it.

But the format doesn't seem right in the price amount field, it's like the number is "7,299" (seven thousand, two hundred and ninety-nine), for non-programmers this is hard to figure out.
My suggestion is to apply a mask to these fields to force the price to be defined in cents.

Done.

authors: iagobruno mckenziearts

repo: shopperlabs/shopper


text:
PageLoader in ErrorController

1. Why is this change necessary?
In the ErrorController, the GenericPageLoadedEvent is not dispatched when a 404 page is rendered and no CMS Layout is configured as error page.
2. What does this change do, exactly?
Always use the ErrorPageLoader, also when no CmsLayout is configured.
3. Describe each step to reproduce the issue or behaviour.

Do not configure a 404 error page.
Go to a non-existent page
The ErrorLoader will not be used, causing no PageLoaded events to be dispatched (Which can cause broken headers & footers in projects if custom code relies on these events)

4. Please link to the relevant issues (if any).
https://github.com/shopware/platform/issues/1762
5. Checklist

[ ] I have written tests and verified that they fail without my change
[x] I have squashed any insignificant commits
[x] I have created a changelog file with all necessary information about my changes
[x] I have written or adjusted the documentation according to my changes
[x] This change has comments for package types, values, functions, and non-obvious lines of code
[x] I have read the contribution requirements and fulfil them.

This PR was closed due to inactivity. If this change is still important to you, feel free to create a new pull request.
For more information about our contribution guidelines, see https://docs.shopware.com/en/shopware-platform-dev-en/contribution/contribution-guideline

authors: J-Rahe runelaenen

repo: shopware/platform


text:
Newsletter Recipient saving dont work as intended

Description
When you are editing/updating an Newsletter-Recipient via the Newsletter-Recipient-Detail page its not possible to save a value twice. E.g.: My recipients language is set to english. When you hit save after switching it to german the update is successful (network-tab also shows the request). When you now switch the language back to english and hit save your changed value wont get saved (network-tab also appears blank/ with no request).

Hello,
Within our company roadmap and work capacity, we try to address each bug or improvement request but admit that not each one will be resolved. To continue our culture of honesty and openness, we are closing this issue to focus on our roadmap on behalf of all Shopware users.
If you feel like this issue is still impacting you, please create a new issue and let us know.
Thank you again for your valuable feedback.

repo: shopware/shopware


text:
window.router gets URL with starting / (slash)

PHP Version: 8.2.26   | Shopware Version: 6.6.8.2  | Affected area / extension: Platform(Default)

Actual behaviour:
Sometimes the window.router will return the URL with a starting slash.
So the checkout and all dynamic loaded widgets will end in a 404call, so the shop won't work.
After clearing the Cache, the error is gone, until a random time (sometimes 5x a day, or sometimes 1 a week).

Expected behaviour:
The window.router should always return the correct URL
How to reproduce:
I really dont know, i did not figure any idea out :(

[public] Shopware automated response: This issue is linked to the internal issue: NEXT-39974
[created from NEXT-39974, comment 522513]

authors: busaku shopwareBot


text:
compatibility with virtual box 5.x.x missing

Last time I tried to use this box I got:
Vagrant has detected that you have a version of VirtualBox installed
that is not supported. Please install one of the supported versions
listed below to use Vagrant:
4.0, 4.1, 4.2, 4.3

My bad

repo: shopwareLabs/shopware-vagrant


text:
allow mount options to be set on gluster mount

I ran into the case where I wanted to mount a glusterfs volume read only, which led me to implement a more generic way to set options on the mount point.

Thanks! Once i merge https://github.com/shortdudey123/chef-gluster/pull/42 can you add the new mount_options attribute to the doc

Yes, no problem.

@joyofhex merged https://github.com/shortdudey123/chef-gluster/pull/42, can you update the doc? :)

oops. git screwup.

Ok, that should be fixed, I think. Sorry about that.

Thanks, can you squash the commits?

Squashed as requested (with only mild swearing at git).

nice, thanks!


text:
🛑 Blog is down

In 266e0fd, Blog (https://shouge.me) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Blog is back up in 1a6d7f8.

repo: shouge/uptime


text:
「同相」と「微分同相」が混同されていないか確認

過去のノートの雑さ加減から不安になっているので確認したい。

第 2 章までは無問題であることを確認した。

OK

repo: showa-yojyo/notebook


text:
Security Issue: transitive dependency y18n@4.0.0 is vulnerable

Here is the dependency tree for showdown:

showdown@1.9.1
  -- yargs@14.2.3
    -- y18n@4.0.0

The y18n@4.0.0 has been marked vulnerable and we are being hit with the following vulnerability: https://snyk.io/vuln/SNYK-JS-Y18N-1021887
The remediation section of the issue linked above mentions upgrading the y18n dependency to 5.0.5.
The latest version of yargs (16.1.1) is already updated to use y18n@5.0.5
Is there a release for showdown in the works where the yargs version would be updated to the latest to resolve this issue?
Any update or workaround for this will be greatly appreciated. Thanks.

I have run into this as well - is this possible?

yikes. even if there is a solution to update the dependency nobody will publicly get it since the library has been abandoned for a year now.

library is not abandoned. see #833
@gauravshah27 you could try updating yargs directly. if you're using yarn you can use resolutions. I imagine npm has some equivalent.

yea, that means the library is abandoned...

@obedm503 I know yarn definitely has the resolutions built in. npm doesn't have an equivalent as of yet and there are third party packages available that rewrite the package-lock.json  (and hence the dependency tree) but that solution in itself does not scale and is not feasible in a CI environment as well (you have to add preinstall scripts and resolutions section in the package.json dynamically). So the cleanest approach for this would be to update the dependency itself that pulls in all these transitives. Thanks for the suggestion for.

Fixed on master. Will release with v2.0.0

repo: showdownjs/showdown


text:
a bug about options！

call:
var converter = new Showdown.converter({ extensions: 'github' });
This will cause an exception：
uncaught exception: Extension 'undefined' could not be loaded. It was either not found or is not a valid extension.
and I found that this problem can be avoided use:
var converter = new Showdown.converter({ extensions: ['github'] });
So I submitted this update to resolve the issue

Should be fixed with the new extension loading mechanism.

authors: superRaytin tivie


text:
[2pt] Navigation panel: Member 2

In the navigation panel, the user can see links to:

Cars items that you selected as a theme.
"Reserve" form.
"My reservations".
"Add cars item that you selected as a theme" (the link is visible to everybody).
"Delete cars item that you selected as a theme" (the link is visible to everybody).

Created the Navigation Panel (Sidebar) and the final look is as:


text:
TimeoutError: View transition update callback timed out.

This is from a project i been working on:
https://github.com/rahuletto/academiapro/tree/next
Steps to reproduce
Basically, its a link from /academia page to /home which both are RSC Server components (it didnt work even when making both pages as client components with 'use client'). Clicking the link gives a small freeze and immediately redirects to the /home page without any transition, with an error
TimeoutError: View transition update callback timed out.

The video clip:
https://github.com/user-attachments/assets/d70431a3-76a9-44f8-8f62-4e4fd232d667

Oops, it was my fault. forgot the <ViewTransitions>

repo: shuding/next-view-transitions


text:
Update go version to 1.14.2

Sorry for the long absence. I've been swamped for the last a few months.
Now I started to maintain this repository again, and this is a good point to begin with! 👍

I just noticed CI did not work. I thought I needed to migrate this project to travis.com, but the API returned 500. What a joke.

repo: shuheiktgw/go-travis


text:
Implement version identifier for EncryptedMessage

This implements the version identifier from
https://github.com/shutter-network/rolling-shutter/issues/443
shcrypto now adds a one byte version to the serialized form of EncryptedMessage to aid migrations to newer versions.
Please comment in the issue first, if you want changes to the specification!

Performance impact benchmark (based on #115):
benchstat /tmp/withversion.txt /tmp/noversion.txt
goos: linux
goarch: amd64
pkg: github.com/shutter-network/shutter/shlib/shcrypto
cpu: Intel(R) Core(TM) i5-8350U CPU @ 1.70GHz
          │ /tmp/withversion.txt │         /tmp/noversion.txt         │
          │        sec/op        │   sec/op     vs base               │
Marshal-8            557.1µ ± 2%   550.5µ ± 1%  -1.19% (p=0.021 n=30)

repo: shutter-network/shutter


text:
How to get the source code of simulator?

Hi Shyam, I'm recently following this work and I want to make some extensions to the simulator. I want to know how you get the jar packages here? If the source code is not open-source, is it possible to send me a copy? Thanks in advance!

Hey! You can find the java code here: https://github.com/shyamsn97/Mario-AI-Framework


text:
[style]: Make the Social media icons hover

What's the style idea?
The social media icons are static.:

Add screenshots
I can add hovering effect to it:

After hovering:

Please Assign this issue to me.
Code of Conduct

[X] I agree to follow this project's Code of Conduct

Thanks for the recommendation, will surely work on it!

PR: #213

repo: shyamtawli/devFind


text:
When failover is not configure

类:com.sia.scheduler.http.impl.OnlineListenableFutureCallback 代码126 行 .
 private boolean onFailure(JobMTask onlineTask, Throwable throwable) {
        boolean isCountDown;
        switch (FailoverEnum.getByValue(onlineTask.getFailover().toLowerCase())) {
            case IGNORE:

onlineTask.getFailover() 为null 的时候转小写出 NPE 了.

failover策略是必填项，onlineTask中总会对应一个failover值。你的场景中onlineTask.getFailover() 为null，说明这个onlineTask配置不正确，但是现在不能确定是配置引起的还是程序内部问题，能简要说一下你在对应job中配置的task的具体内容吗？你在我们的开源社区群中吗，可以加群讨论，方便快速解决问题。

repo: siaorg/sia-task


text:
How do we test it?

Areas to cover.

Unit Test
Integration Test
Functional Test

@siddhartham
I am :heart:ing this https://github.com/modeset/teaspoon

looks good to me :)

authors: siddhartham swapnilabnave

repo: siddhartham/taperecorder


text:
es_rejected_execution_exception 请问有重试机制吗

{"type":"es_rejected_execution_exception","reason":"rejected execution of org.elasticsearch.transport.TransportService$4@6cca0368 on EsThreadPoolExecutor[bulk, queue capacity = 50, org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor@3b8de85c[Running, pool size = 32, active threads = 32, queued tasks = 50, completed tasks = 253247506]]"}

not supported now, why rejected?

因为索引压力大，es-hadoop都是有重试机制的   es.batch.write.retry.count
否则当es系统压力大的情况下 会出现数据丢失的情况

maybe you can help me add this mechanism :-)

authors: lvchenxin siddontang

repo: siddontang/go-mysql-elasticsearch


text:
ix.siemens.com with Next JS

Prerequisites

[X] I have read the Contributing Guidelines.
[X] I have not leaked any internal/restricted information like screenshots, videos, code snippets, links etc.

What happened?
I have tried to configure ix.siemens with Next JS 14.2.5 and as soon as I try to import any component, it throws following error:
D:\code\ixsiemens\next-ixsiemens\node_modules@siemens\ix\components\ix-action-card.js:1
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
^^^^^^
SyntaxError: Cannot use import statement outside a module
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1274:20)
at Module._compile (node:internal/modules/cjs/loader:1320:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at mod.require (D:\code\ixsiemens\next-ixsiemens\node_modules\next\dist\server\require-hook.js:65:28)
at require (node:internal/modules/helpers:177:18)
at Object. (D:\code\ixsiemens\next-ixsiemens\node_modules@siemens\ix-react\dist\index.js:7:25)
at Module._compile (node:internal/modules/cjs/loader:1356:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19) {
page: '/home'
}
Can someone provide guidance to resolve this or file this as a bug?
What type of frontend framework are you seeing the problem on?
React, Others
Which version of iX do you use?
2.4.0
Code to produce this issue.
// Create any page under pages folder and try to import any component.

import { IxContainer, IxNavItem, PageContainer, Panel, SelectOption } from '@motogarages/react-brandville';
import React from 'react'

const index = () => {
  return (
    <div>

        index

    </div>
  )
}

export default index

NextJS is not yet official supported by stencil you can track the process here: https://github.com/ionic-team/stencil/issues/5831 https://github.com/ionic-team/stencil-ds-output-targets/pull/445
After Stencil provide a solution iX will adapt it.
Regardless of the official support please provide a minimal repository to reproduce the issue your snippets are not enough.

authors: danielleroux manojpethe

repo: siemens/ix