Timeframe for Azure Text Analytics 3.1 general availability

Hi,
I have developed a Dataiku DSS plugin for Azure Cognitive Services Text Analytics: https://github.com/dataiku/dss-plugin-azure-cognitive-services-nlp.
This plugin used the entities/recognition/pii REST API endpoint. Unfortunately, this endpoint is still on the v3.1-Preview.1. I am looking at this page.
Could you please share an approximate timeframe for general availability of the v3.1 API?
Cheers,
Alex

@assafi could you comment on an approx timeframe?

I don't have specific timeframe, but we are hard at work on making sure it turns GA ASAP.

Thanks! I have to say, I find the PII endpoint very promising. A unique selling point compared to other similar NLP-as-a-Service APIs.

Hi @kristapratico !
I hope all is well. Do you have an update on the timeline?
Thanks,
Alex

Hi @alexcombessie - I don't have an update for you yet, but I'll be sure to post here when I do have information I can share. Thank you for being patient. :)

Not yet unfortunately. We will be having at least one additional preview iteration very soon, adding support for different offset interpretations (e.g. offsets in UTF8 code points vs code units) and built-in redaction capability. We also still need to iterate on the SDK itself. I would assume that it will be around the Fall of 2020 before we would GA it, but can't really give a hard date ATM.

@assafi is there a channel where you would normally make these kinds of GA timeline details public. Wondering if we can just point to that. That way we don't need to keep an issue open tracking it and remember to update in both places.

@Petermarcu I don't believe we have such a channel externally.

@assafi @Petermarcu I'm interested in the channel if you decide to create it!

Hi @alexcombessie, just letting you know that today we released the GA version of the Python Text Analytics client library (which includes the PII feature) - https://pypi.org/project/azure-ai-textanalytics/
Thanks for your patience! :)


ResolvePolicy NOWAIT does not behave as expected

According to the API docs, NOWAIT should not wait for promise and should not unwrap it. This is not the case as you can see in this plunker.
data is already resolved in onEnter hook where a resolved value is injected and not a promise. The same with the bound value in a template - it doesn't render until the data is resolved and promise unwrapped.
It contradicts the API docs stating that for resolve policy async: NOWAIT "The promise will not be unwrapped. The promise itself will be provided when the resolve is injected or bound elsewhere."
Related to https://github.com/angular-ui/ui-router/issues/2691

Agreed, this needs to be fixed.

Will be fixed in rc.1: https://plnkr.co/edit/2kOzXARHMEi1PQfPnLHK?p=preview

Fixed  by https://github.com/ui-router/core/commit/05d4c7348c171f31a83e2c5d1f3ef6ee0751e024
and https://github.com/angular-ui/ui-router/commit/cb57ce96a4b0d96ef123589495c3209b800d1016


When selecting Oracle-compatible mode, attempting to insert data with a timestamp(7) type results in an error.

Bug Report
IvorySQL Version
3.2
OS Version (uname -a)
CentOS 7
Configuration options  ( config.status --config )
None
Current Behavior
In Oracle-Compatible mode, IvorySQL appears to support timestamp(7) with precision exceeding 6. However, attempting to insert data will result in an error.
Expected behavior/code
Allow to insert timestamp(7) type data
Step to reproduce
ivorysql=#  SET ivorysql.compatible_mode to oracle;
ivorysql=#  CREATE TABLE timestamp_precision_7(id int, name text, created_at timestamp(7));
WARNING:  TIMESTAMP(7) effective number of fractional seconds is 6,the part of excess is 0
LINE 1: ...mestamp_precision_7(id int, name text, created_at timestamp(...
WARNING:  TIMESTAMP(7) effective number of fractional seconds is 6,the part of excess is 0
CREATE TABLE
ivorysql=# INSERT INTO timestamp_precision_7 values(1, 'precision test', '2024-04-23 07:54:55.1234567');
ERROR:  timestamp(7) precision must be between 0 and 6
LINE 1: ...timestamp_precision_7 values(1, 'precision test', '2023-10-2...
Additional context that can be helpful for identifying the problem

Bug Report
IvorySQL Version
3.2
OS Version (uname -a)
CentOS 7
Configuration options ( config.status --config )
None
Current Behavior
In Oracle-Compatible mode, IvorySQL appears to support timestamp(7) with precision exceeding 6. However, attempting to insert data will result in an error.
Expected behavior/code
Allow to insert timestamp(7) type data
Step to reproduce
ivorysql=# SET ivorysql.compatible_mode to oracle; ivorysql=# CREATE TABLE timestamp_precision_7(id int, name text, created_at timestamp(7)); WARNING: TIMESTAMP(7) effective number of fractional seconds is 6,the part of excess is 0 LINE 1: ...mestamp_precision_7(id int, name text, created_at timestamp(...
WARNING: TIMESTAMP(7) effective number of fractional seconds is 6,the part of excess is 0 CREATE TABLE ivorysql=# INSERT INTO timestamp_precision_7 values(1, 'precision test', '2024-04-23 07:54:55.1234567'); ERROR: timestamp(7) precision must be between 0 and 6 LINE 1: ...timestamp_precision_7 values(1, 'precision test', '2023-10-2...
Additional context that can be helpful for identifying the problem

When IvorySQL 3.3 is released, this issue will be fixed. If you wanna try it now correctly, please re-install IvorySQL with source code based on IVORY_REL_3_STABLE branch.


fix: ensure assetState.assetSymlinks is not undefined

Perhaps we can throw an error in this case rather - must call initAssetCache when using webpack caching?

Actually, looking at the code I think the root place to add this is in the asset object creation at https://github.com/vercel/webpack-asset-relocator-loader/blob/main/src/asset-relocator.js#L78.

Fixed with your suggestion.


💡 RFC: EditorConfig compatibility

Background & Motivation
EditorConfig is very convenient standard for setting indent style and to trim trailing whitespace to do minimal formatting during saving. It is also standard that work in lots of editors.
Can new setting be added to disable prettier formatting? Only way to disable it is disable all formatting. But then have to spend lots of time changing indent and trim trailing whitespace in manual way because no formatting is possible.
If new setting is there then it is possible to disable prettier but EditorConfig extension can still do its useful formatting which helps a lot.
Proposed Solution
Possible solutions
New setting to disable prettier in astro files but compatible with EditorConfig settings.
Detailed Design
No response
Help make it happen!

[ ] I am willing to submit a PR to implement this change.
[ ] I am willing to submit a PR to implement this change, but would need some guidance.
[ ] I am not willing to submit a PR to implement this change.

A similar thing happens to me, I want to keep my indentations to 2 spaces but the Astro plugin keeps formatting it to 4 spaces. Seems to ignore the tab_width setting even though Prettier documentation explicitly says that is supported here


inrupt.com does not accept application/ld+json

inrupt.com does not accept application/json+ld as mimetype, only application/json
shouldn't Entreprise inrupt server accept application/json+ld ?
      try{
        const savedFile = await overwriteFile(
          n['ve:url'],
          new Blob([JSON.stringify(n, undefined, 2)], { type: "application/json" }),
          { contentType: "application/json", fetch: sc.fetch }
          // new Blob([JSON.stringify(n, undefined, 2)], { type: "application/ld+json" }),
          // { contentType: "application/ld+json", fetch: sc.fetch }
        );
        console.log(`File saved at ${getSourceUrl(savedFile)}`);
        //n.url = await getSourceUrl(savedFile)
        //  store.dispatch('nodes/saveNode', n)
        return n
      }catch(e){
        console.log(e)
      }

the app https://scenaristeur.github.io/verse/
the code https://github.com/scenaristeur/verse/blob/e2e7f4c895d62222d33eee6d05e6033c2c96e36c/src/plugins/solid-data.js#L55

The mime-type application/json+ld is not valid. Perhaps you mean application/ld+json?

@scenaristeur the server may not support arbitrary external contexts. If you must use JSON-LD for writes, try embedding the context in the data payload.

is there a list of compatible / not arbitrary external  contexts ?

@acoburn I just saw this, and, I'm wondering why ESS would care about the contentType of a file? (i.e., arbitrary blob of data) — the code above is using overwriteFile

In order to support content negotiation (per Solid protocol) for RDF resources, if a client uploads a JSON-LD document and then tries to content negotiate the representation as Turtle, the server necessarily has to download the (arbitrary) context URL.
A client forcing a server to download arbitrary resources on the web is a classic example of Server Side Request Forgery. Without any sort of allow list of the remote context documents, you can use your imagination for the kinds of exploits that are possible here.

In order to support content negotiation (per Solid protocol) for RDF resources, if a client uploads a JSON-LD document and then tries to content negotiate the representation as Turtle, the server necessarily has to download the (arbitrary) context URL.
A client forcing a server to download arbitrary resources on the web is a classic example of Server Side Request Forgery. Without any sort of allow list of the remote context documents, you can use your imagination for the kinds of exploits that are possible here.

Right, but here we're working with a File not a Resource. Though I've just checked the spec and it doesn't seem to differentiate, though our SDK definitely does.
if I upload a File that's an image/png, would it make sense that you would content-negotiate it to turtle? That seems like it'd be asking for trouble?

JSON-LD is an RDF resource. Unless you are uploading that with Content-Type: text/plain or Content-Type: application/octet-stream, that resource will be treated as RDF. Therefore, a client can content negotiate it. This is unrelated to PNGs.
The client may distinguish between Files and Resources, but from a server's perspective, there are two indicators: HTTP Method (e.g., PUT) and Content-Type (e.g., application/ld+json). Given a PUT with application/ld+json, it's an RDF resource, regardless of what the SDK may think it is.


equiv_make is confused by feedback through module port

Steps to reproduce the issue
Run the following script:
read_ilang bug.il
equiv_make gold gate equiv
hierarchy -top equiv
techmap -autoproc -map +/simcells.v
equiv_induct
equiv_status -assert

bug.il
module \gold
  wire output 2 \o
  wire input 1 \sys_clk
  attribute \init 3'001
  wire \v
  wire \v$next
  wire input 3 \x
  wire input 4 \y
  cell $_MUX_ \_0_
    connect \A \o
    connect \B \x
    connect \S \y
    connect \Y \v$next
  end
  cell $_DFF_P_ \_1_
    connect \C \sys_clk
    connect \D \v$next
    connect \Q \o
  end
  connect \v \o
end
module \gate
  wire $auto$dff2dffe.cc:158:make_patterns_logic$5123
  wire output 2 \o
  wire input 1 \sys_clk
  attribute \init 3'001
  wire \v
  wire \v$next
  wire input 3 \x
  wire input 4 \y
  cell $_XOR_ $auto$simplemap.cc:85:simplemap_bitop$5127
    connect \A \y
    connect \B 1'0
    connect \Y $auto$dff2dffe.cc:158:make_patterns_logic$5123
  end
  cell $_MUX_ \_0_
    connect \A 1'x
    connect \B \x
    connect \S \y
    connect \Y \v$next
  end
  cell $_DFFE_PP_ \_1_
    connect \C \sys_clk
    connect \D \v$next
    connect \E $auto$dff2dffe.cc:158:make_patterns_logic$5123
    connect \Q \o
  end
  connect \v \o
end

The gate module was produced from gold module by running dff2dffe -direct-match $_DFF_*.
Expected behavior
Equivalence check succeeds.
Actual behavior
Equivalence check fails.
My understanding of this is as follows. Here are the gold and gate modules:

When combined, it looks like equiv_make is confused by module ports, and wires one of the $equiv cells as an input to another $equiv cell via a combinatorial network. This probably breaks it:

Adding a rename command to hide things such as the name of the $MUX cell makes it pass:
read_ilang bug.il
rename -hide n:_*_ n:*$*
equiv_make gold gate equiv
hierarchy -top equiv
techmap -autoproc -map +/simcells.v
equiv_induct
equiv_status -assert

Otherwise equiv_make will assume that the mux _0_ in gold and the mux _0_ in gate are equivalent because they have the same name. But they are not equivalent, because dff2dffe re-wires the A input of that mux. (Same for v$next: the two nets of that name are not equivalent after dff2dffe.)

@cliffordwolf Thanks for the investigation! However, wouldn't it be better to teach equiv_make that cells of the identical name but different type should not be considered identical?

That's already what's happening. If they would be of different types they would not be considered equivalent. Same if they are of the same type but with different parameters. (See find_same_cells() in equiv_make.cc.) But those cells are both of type $_MUX_.

@cliffordwolf I'd like to make this work out of the box for the equiv_opt pass. What do you think is the best way to do it, add the rename -hide call?

I don't think you can do anything here "out of the box" because the whole idea of equiv_make is that it is allowed to match things of the same name.
You could add some extra rules, like say don't use names matching regexes like _[0-9]+_, and an extra option that disables those extra rules.
Maybe even add a -whitelist option that allows to specify the names that equiv_make is allowed to use.
But if you just hide all the names indiscriminately then you are just crippling equiv_make.
Another question is if dff2dffe should do anything to mark the paths it makes non-equivalent so that a later equiv_make doesn't struggle with it. But that needs to be done in dff2dffe. Afaict there is no easy way for equiv_make to know which paths are effected by this.
(People using external equivalence checkers, such as formality, would run into the exact same problems. There you just manually blacklist names of problematic nodes until the check succeeds.)

Thanks. That was my guess but I wanted to recheck. If someone (including me) hits this problem again we can revisit this.


[RuneQuest:Glorantha] Final Attack and Parry Values and Magical damage bonus

Changes / Comments
Added inputs for final attack and parry values
Added input for magical damage bonus
Added support for minimum chance of  success of 5%
Increased the size of the modifier inputs in the weapons to allow for calculations instead of fixed value e.g. 10-25 as possible clarification for reducing skills to 100 for opposed rolls.
Added Other Notes section
Roll20 Requests
Comments are very helpful for reviewing the code changes. Please answer the relevant questions below in your comment.

[X] Does the pull request title have the sheet name(s)? Include each sheet name.
[ ] Is this a bug fix?
[X] Does this add functional enhancements (new features or extending existing features) ?
[X] Does this add or change functional aesthetics (such as layout or color scheme) ?
[ ] If changing or removing attributes, what steps have you taken, if any, to preserve player data ?
[ ] If this is a new sheet, did you follow Building Character Sheets standards ?

If you do not know English. Please leave a comment in your native language.

Character Sheet Info Roll20 Internal Use only.


Flatline rule doesn't respect realert

Flatline rule will wait until timeframe has elapsed after every alert. It is expected that it would continue alerting at realert intervals.

Will this be addressed?

This should be fixed by #751


Fixing the action type for the deleteTransaction action creator.

As discussed on Twitter, simple fix for the action type used in the deleteTransaction action creator.
Great work on this - great to have up to date examples of React / Redux and Webpack to play with.

Thanks for contributing, James 👍


Automatically disable buttons/menu items when bound command is not found.

Sometimes it's useful to bind a button/menu item to a command that may not be present in the current view, e.g.:
<Window>
    <Menu>
        <MenuItem Header="Save" Command="{Binding CurrentDocument.Save}"/>
    </Menu>
</Window>

In this case, when CurrentDocument is null, the Save menu item needs to be disabled.
It should be possible to disable the control automatically when a binding error is received on the Command property.

It should be possible to disable the control automatically when a binding error is received on the Command property.

Is the fact that the binding returns null considered an error? I'm noticing a strange behavior, and I think it could be related to this feature.
I have a dialog window with dynamic buttons, bound to a list of DialogButton (basically, a viewmodel for a button):
    public class DialogButton
    {
        public string Text { get; set; } = string.Empty;
        public bool? DialogResult { get; set; }
        public bool IsDefault { get; set; }
        public bool IsCancel { get; set; }
        public ICommand? Command { get; set; }
        public object? CommandParameter { get; set; }
    }

The buttons are displayed like this in an ItemsControl
                <DataTemplate DataType="{x:Type dlg:DialogButton}">
                    <Button Classes="dialogButton"
                            Content="{Binding Text}"
                            IsDefault="{Binding IsDefault}"
                            IsCancel="{Binding IsCancel}"
                            Command="{Binding Command}"
                            CommandParameter="{Binding CommandParameter}"
                            Click="DialogButton_Click"/>
                </DataTemplate>

For some DialogButtons, the Command property is null. This is normal behavior, and in this case the click should be handled by the DialogButton_Click handler. This works fine in WPF, but in Avalonia the button remains disabled if the command is null.
Is there a way to suppress this behavior, and just leave the button enabled if the command binding returns null?

Found a workaround: just add FallbackValue={x:Null} on the binding.
That said, I think it shouldn't be necessary. The fact that the binding returns a null value shouldn't be an error; null is a valid value for the Command property.


Simulation mode documentation.

I added some documentation as it was not obvious that the Rust SGX SDK could be run in simulation mode (and on my Macbook Pro).
Finally I could see that there was a setting

Thanks for your contribution @davidp94 !


More fanfare on victory screen

Currently the career mode victory screen just shows up and you dismiss it with "OK". It would be more fun if we dressed it up a little

visual elements should be introduced one at a time, with cloud poofs. "poof!" you did it! "poof!" customers: 0
numeric elements should accumulate. dodododododoot! 17 customers served!
Fat Sensei (or you) should talk about your gameplay style or some goals:

(1st or 2nd time) It's time to go home! Tomorrow we'll try another six levels. Maybe we can get even further!
(failed to get anywhere) Hmm we didn't get very far today! Let's try to beat a few levels next time. If we need to, we can always turn on cheats in the options.
(didn't reach the boss level) Oh, we just needed to make it 5 more steps! We were so close. I bet we can do it tomorrow!
(failed the boss level) That level is really tough! We'll get it eventually~
(cleared a boss level) Wow, we made it all the way to (area name)! Let's try tackling some of those new levels tomorrow~
(replaying an area) We beat our scores on 3 levels today!

This might also be a place to inject hints. (The hints which used to show up on the receipt)

Duplicate of #1208.


[Repository] Design a co-branding logo template for quickstarts

We are beginning to have cases where quickstarts are co-branded, where New Relic is offering a quickstart that integrates or directly relates to a 3rd party service. We'll want to come up with a standard of how to present those quickstarts to users and define our approach to co-branding.
Examples:

https://newrelic.com/instant-observability/github-for-codestream/364b0de9-f9b3-4ce2-a084-e01ccc328c43
There will be other codestream quickstarts like this soon
All of our kentik quickstarts are co-branded now

Design direction from Marketing
We should look to combine logos together. When we say something like "Slack for Codestream" but only have the slack logo, one may assume it's a slack integration for NR1.
Here are a few guidelines that we can work from:

Left-right layout for two logos.
If it's something like "X integration for Y" then X would go on the left, Y on the right.
Logos should be approximately equal in height.

Mockup ideas  👨🎨

Acceptance Criteria

[ ] Provide a design approach for co-branded quickstarts
[ ] Provide documentation in our contributing guide so users know how to handle these types of quickstarts

The guidance on this came from @louisleungk and once @legnaleama  is back, I've added this to our design sync agenda to discuss.


Handle HTTP 406 errors

After making about 40-50 edits all subsequest requests fail with HTTP 406 error.

Looks like 406 errors are caused by throttling. Changing IP address resolves this temporarily, so does waiting some time (not sure how much time exactly, but order of hours).
There's nothing like X-Rate-Limit in response headers, so I had to experiment to determine the allowed rate. I made the program pause for some time after sending a number of edit requests:

pause
pause every
edits
total time
edits/sec
sec/edit
result

30 s
5 edits
175
1370 s
0.127737
7.828585
OK

30 s
10 edits
292
1423 s
0.205200
4.873294
OK

30 s
15 edits
158
623 s
0.253611
3.943046
OK

30 s
20 edits
42
~139 s
0.302158
3.309526
THROTTLED

25 s
15 edits
64
231 s
0.277056
3.609378
OK

This looks pretty bad. On the other hand, lastfm-bulk-edit somehow works and is much faster, so maybe there's a workaround?

The way lastfm-bulk-edit works is different. It doesn't send one HTTP request per scrobble, instead it uses edit_all=true parameter of the HTTP request. It also handles rate limiting errors.
This is very different to what lfmedit is doing: lfmedit edits scrobbles specified by their timestamps one by one. And the idea behind lfmedit is to do exactly that, so changing the approach is out of the question.
It appears that the plan to rewrite lfmedit in Go makes no sense now. I won't be able make it faster because of the rate limiting.


Add Vaadin Expense Manager

Would be great to have our Expense Manager Demo app featured on the site as an example of a Progressive Business Web Application
https://demo.vaadin.com/expense-manager

It doesn’t trigger app install banner for some reason, investigating.

Hm, interesting. I do get the banner on Chrome. Are there any documented differences in requirements between the two for installing the banner?

Added in the expense branch, will test it a bit more and merge. Thank you for suggestion!

Thanks!

Added, will be deployed soon.


Use new GS registry for core images in the cluster chart

Task
Use new GS registry for core images in the cluster chart.
Backround
The cluster chart has a reference to docker.io in the KubeadmControlPlane definition.
{{- if $.Values.providerIntegration.resourcesApi.controlPlaneResourceEnabled }}
apiVersion: controlplane.cluster.x-k8s.io/v1beta1
kind: KubeadmControlPlane
metadata:
  ...
spec:
  machineTemplate:
    ...
  kubeadmConfigSpec:
    ...
    clusterConfiguration:
      # Avoid accessibility issues (e.g. on private clusters) and potential future rate limits for
      # the default `registry.k8s.io`.
      imageRepository: docker.io/giantswarm

Links

Epic;
State after initial investigation.

Hey!
What's the progress on this? @Rotfuks what kind of refinement do you need here?

@yulianedyalkova can you PTAL at this?

That need for refinement was a while back when we still had some open points around how the cluster chart will work. I guess @yulianedyalkova can give you more information here if it's still needed.

I think that's already the case (link) so unless it's explicitly overwritten, it will use ACR as a default value.

Cool, thanks for confirmation.


Use SI prefix for axis

it would be very useful to be able to use the SI prefix (milli , micro, kilo, mega) for the x-axis.
This is what i made with pgfplots (using this link https://tex.stackexchange.com/questions/183225/engineering-notation-scientific-as-tick-labels-with-pgfplots-maybe-via-siunit) and using the option of siunitx:
\sisetup{
	exponent-mode = engineering,
	prefix-mode = combine-exponent,
	drop-zero-decimal,
	round-mode = places,
}%

I am unable to reproduce your plot, but the package is already set up to transfer pgf keys to various environments. For example, if you are using a command of the form xticklabel=\mycommand{\tick} to generate the plot you showed, you can do that with
\documentclass{standalone}
\usepackage{bodeplot,siunitx}
\usepgfplotslibrary{units}
\begin{document}
\begin{BodeMagPlot}[
  axes/{xticklabel=\mycommand{\tick}}
  ]{0.01}{100}
  \addBodeZPKPlots{magnitude}{%
    z/{0,{-0.1,-0.5},{-0.1,0.5}},
    p/{{-0.5,-10},{-0.5,10}},
    k/10%
  }
\end{BodeMagPlot}
\end{document}

In the code above, the xticklabel=\mycommand{\tick} option is passed through to the axis environment, and then pgf does its thing as usual.
Is this what you were looking for?

Yes, I was looking for something like this but doesent work. This is my code
\sisetup{
	exponent-mode = engineering,
	prefix-mode = combine-exponent,
	drop-zero-decimal,
	round-mode = places,
}%
\DeclareSIUnit{\noop}{\relax}% added for get no unit
\newcommand{\mynum}[1]{ % for log axis
		% =\pgfmathparse{e^\tick}\pgfmathresult : ! Dimension too large. ; - use exp(x)
		\pgfkeys{/pgf/fpu}% else dimension too large!
		\pgfmathparse{exp(#1)}%
		\edef\tmp{\pgfmathresult}%
		% \pgfmathprintnumberto{\pgfmathresult}{\tmp}% nope, gives 1Y5.0012e-1]
		\pgfmathfloattofixed{\pgfmathresult}% also outputs in \pgfmathresult
		\edef\tmp{\pgfmathresult}%
		\pgfkeys{/pgf/fpu=true}%
		\typeout{tick #1, tmp \tmp}%
		\qty{\pgfmathresult}{\noop} %cambiare \noop con la quantità desiderata \V ex
	}

\newcommand{\mynume}[1]{ %for no log axis
		\pgfkeys{/pgf/fpu}% else dimension too large!
		\pgfmathparse{#1}%
		\edef\tmp{\pgfmathresult}%
		% \pgfmathprintnumberto{\pgfmathresult}{\tmp}% nope, gives 1Y5.0012e-1]
		\pgfmathfloattofixed{\pgfmathresult}% also outputs in \pgfmathresult
		\edef\tmp{\pgfmathresult}%
		\pgfkeys{/pgf/fpu=true}%
		\typeout{tick #1, tmp \tmp}%
		\qty{\pgfmathresult}{\dB} %cambiare \noop con la quantità desiderata \dB ex
	}

\begin{BodeMagPlot}[axes/xticklabel=\mynum{\tick},
tikz/{%
frequency unit=Hz%
},
  ]{0.01}{100000}
  \addBodeZPKPlots{magnitude}{
    z/{0,{-0.1,-0.5},{-0.1,0.5}},
    p/{{-0.5,-10},{-0.5,10}},
    k/{10}%
  }
\end{BodeMagPlot}

but i get this

This seems to be an issue with how your macro interacts with the pgf semilogxaxis environment. For example, with the same \mynum macro, I see the same problem even if I plot just sine wave.
\begin{tikzpicture}
    \begin{semilogxaxis}[log basis x = 10, xticklabel=\mynum{\tick}]
        \addplot [samples = 1000, domain=0.01:100000] {sin(x)};
    \end{semilogxaxis}
\end{tikzpicture}

I know that the pgfplots units library does not work with logscale plots either, and this might be related to that.
Unfortunately, there is nothing I can do about it in the bodeplot package.

This works, just need to use base 10 logarithm. I just changed  \pgfmathparse{exp(#1)}% in your macro to  \pgfmathparse{10^#1}%
\documentclass{standalone}
\usepackage{bodeplot,siunitx,pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
    \sisetup{
        exponent-mode = engineering,
        prefix-mode = combine-exponent,
        drop-zero-decimal,
        round-mode = places,
    }%
    \DeclareSIUnit{\noop}{\relax}% added for get no unit
    \newcommand{\mynum}[1]{ % for log axis
            \pgfkeys{/pgf/fpu}% else dimension too large!
            \pgfmathparse{10^#1}%
            \edef\tmp{\pgfmathresult}%
            \pgfmathfloattofixed{\pgfmathresult}% also outputs in \pgfmathresult
            \edef\tmp{\pgfmathresult}%
            \pgfkeys{/pgf/fpu=true}%
            \typeout{tick #1, tmp \tmp}%
            \qty{\pgfmathresult}{\noop} %cambiare \noop con la quantità desiderata \V ex
        }

    \newcommand{\mynume}[1]{ %for no log axis
            \pgfkeys{/pgf/fpu}% else dimension too large!
            \pgfmathparse{#1}%
            \edef\tmp{\pgfmathresult}%
            \pgfmathfloattofixed{\pgfmathresult}% also outputs in \pgfmathresult
            \edef\tmp{\pgfmathresult}%
            \pgfkeys{/pgf/fpu=true}%
            \typeout{tick #1, tmp \tmp}%
            \qty{\pgfmathresult}{\dB} %cambiare \noop con la quantità desiderata \dB ex
        }
    \begin{BodeMagPlot}[%
        axes/xticklabel=\mynum{\tick},
        tikz/{frequency unit=Hz},
    ]{0.01}{100000}
    \addBodeZPKPlots{magnitude}{
        z/{0,{-0.1,-0.5},{-0.1,0.5}},
        p/{{-0.5,-10},{-0.5,10}},
        k/{10}%
    }
    \end{BodeMagPlot}
\end{document}

Thank you. It's perfect! You should put this stuff in your next release. 😃

ps. Be careful, there is a different placement of numbers between my implementation and yours. In mine the numbers are centered, in yours the numbers are placed further to the right of the tick.
Mine:

Yours:

Weird, I wonder why! I will try to find out.
As for including it in the next release, if I can think of a way to do it that is flexible and easy to use, I will add it. At the very least, I can put this example in the package documentation.


labels for custom dataset when using Object-Detector-App

with a custom dataset that has a single class, should I create a new .pbtxt file in object_detection/data that has my class, then change the line in object_detection_app.py to point to my new file?
# List of the strings that is used to add correct label for each box. PATH_TO_LABELS = os.path.join(CWD_PATH, 'object_detection', 'data', 'mscoco_label_map.pbtxt')
# List of the strings that is used to add correct label for each box. PATH_TO_LABELS = os.path.join(CWD_PATH, 'object_detection', 'data', 'my_custom_labels.pbtxt')

Yes you should as the label map is used to show the classes while running the app.


Perception module not working

System information

OS Platform and Distribution (e.g., Linux Ubuntu 20.04):
Apollo installed from (source or binary):
Apollo version (5.5):
Output of apollo.sh config if on master branch:

Steps to reproduce the issue:

**Perception module not working----I am unable to switch on perception module **:

hi, please try to launch the perception module in a terminal manually and find any errors in the console output.

@ntutangyun I got the following errors on console output
[perception]  WARNING: Logging before InitGoogleLogging() is written to STDERR
[perception]  I0201 15:12:54.318677 54397 module_argument.cc:81] []command: mainboard -d /apollo/modules/perception/production/dag/dag_streaming_perception.dag /apollo/modules/perception/production/dag/dag_streaming_perception_camera.dag -p perception -s CYBER_DEFAULT
[perception]  I0201 15:12:54.318744 54397 module_argument.cc:120] []Found non-option ARGV-element "/apollo/modules/perception/production/dag/dag_streaming_perception_camera.dag"
[perception]  I0201 15:12:54.318749 54397 module_argument.cc:29] []Usage:
[perception]      mainboard [OPTION]...
[perception]  Description:
[perception]      -h, --help : help information
[perception]      -d, --dag_conf=CONFIG_FILE : module dag config file
[perception]      -p, --process_group=process_group: the process namespace for running this module, default in manager process
[perception]      -s, --sched_name=sched_name: sched policy conf for hole process, sched_name should be conf in cyber.pb.conf
[perception]  Example:
[perception]      mainboard -h
[perception]      mainboard -d dag_conf_file1 -d dag_conf_file2 -p process_group -s sched_name
[perception_trafficlights]  WARNING: Logging before InitGoogleLogging() is written to STDERR
[perception_trafficlights]  I0201 15:12:54.319600 54399 module_argument.cc:81] []command: mainboard -d /apollo/modules/perception/production/dag/dag_streaming_perception_trafficlights.dag -p perception_trafficlights -s CYBER_DEFAULT
[perception_trafficlights]  I0201 15:12:54.320253 54399 global_data.cc:153] []host ip: <IP_ADDRESS>
[perception_trafficlights]  I0201 15:12:54.320417 54399 module_argument.cc:57] []binary_name_ is mainboard, process_group_ is perception_trafficlights, has 1 dag conf
[perception_trafficlights]  I0201 15:12:54.320423 54399 module_argument.cc:60] []dag_conf: /apollo/modules/perception/production/dag/dag_streaming_perception_trafficlights.dag
[motion_service]  WARNING: Logging before InitGoogleLogging() is written to STDERR
[motion_service]  I0201 15:12:54.320730 54401 module_argument.cc:81] []command: mainboard -d /apollo/modules/perception/production/dag/dag_motion_service.dag -p motion_service -s CYBER_DEFAULT
[motion_service]  I0201 15:12:54.321365 54401 global_data.cc:153] []host ip: <IP_ADDRESS>
[motion_service]  I0201 15:12:54.321576 54401 module_argument.cc:57] []binary_name_ is mainboard, process_group_ is motion_service, has 1 dag conf
[motion_service]  I0201 15:12:54.321581 54401 module_argument.cc:60] []dag_conf: /apollo/modules/perception/production/dag/dag_motion_service.dag
[motion_service]  E0201 15:12:54.322608 54401 module_controller.cc:87] [mainboard]Path does not exist: /apollo/bazel-bin/modules/perception/camera/lib/motion_service/libmotion_service.so
[motion_service]  E0201 15:12:54.322623 54401 module_controller.cc:67] [mainboard]Failed to load module: /apollo/modules/perception/production/dag/dag_motion_service.dag
[motion_service]  E0201 15:12:54.322626 54401 mainboard.cc:39] [mainboard]module start error.
[motion_service]

[motion_service] E0201 15:12:54.322608 54401 module_controller.cc:87] [mainboard]Path does not exist: /apollo/bazel-bin/modules/perception/camera/lib/motion_service/libmotion_service.so
[motion_service] E0201 15:12:54.322623 54401 module_controller.cc:67] [mainboard]Failed to load module: /apollo/modules/perception/production/dag/dag_motion_service.dag
[motion_service] E0201 15:12:54.322626 54401 mainboard.cc:39] [mainboard]module start error.
[motion_service]

seems that the motion service is causing the error.
what command did you use to start the perception module?
could you try mainboard -d modules/perception/production/dag/dag_streaming_perception.dag  and see the console output ?

@ntutangyun....Once i entered the following command:
mainboard -d modules/perception/production/dag/dag_streaming_perception.dag
I got the following console output
[manoj@in-dev-docker:/apollo]$ mainboard -d modules/perception/production/dag/dag_streaming_perception.dag
WARNING: Logging before InitGoogleLogging() is written to STDERR
I0201 15:43:02.222260 60826 module_argument.cc:81] []command: mainboard -d modules/perception/production/dag/dag_streaming_perception.dag
I0201 15:43:02.222978 60826 global_data.cc:153] []host ip: <IP_ADDRESS>
I0201 15:43:02.223189 60826 module_argument.cc:57] []binary_name_ is mainboard, process_group_ is mainboard_default, has 1 dag conf
I0201 15:43:02.223198 60826 module_argument.cc:60] []dag_conf: modules/perception/production/dag/dag_streaming_perception.dag
Input filename:   /apollo/modules/perception/production/data/perception/lidar/models/detection/point_pillars/rpn.onnx
ONNX IR version:  0.0.6
Opset version:    9
Producer name:    pytorch
Producer version: 1.5
Domain:
Model version:    0
Doc string:
WARNING: onnx2trt_utils.cpp:198: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
WARNING: onnx2trt_utils.cpp:198: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
WARNING: onnx2trt_utils.cpp:198: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
WARNING: onnx2trt_utils.cpp:198: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
WARNING: onnx2trt_utils.cpp:198: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
WARNING: onnx2trt_utils.cpp:198: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
WARNING: onnx2trt_utils.cpp:198: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
WARNING: onnx2trt_utils.cpp:198: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
WARNING: onnx2trt_utils.cpp:198: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
WARNING: onnx2trt_utils.cpp:198: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
WARNING: onnx2trt_utils.cpp:198: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
WARNING: onnx2trt_utils.cpp:198: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
WARNING: onnx2trt_utils.cpp:198: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
WARNING: onnx2trt_utils.cpp:198: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
WARNING: onnx2trt_utils.cpp:198: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
WARNING: onnx2trt_utils.cpp:198: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
WARNING: onnx2trt_utils.cpp:198: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
WARNING: onnx2trt_utils.cpp:198: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
WARNING: onnx2trt_utils.cpp:198: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
WARNING: onnx2trt_utils.cpp:198: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
WARNING: onnx2trt_utils.cpp:198: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
WARNING: onnx2trt_utils.cpp:198: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
WARNING: onnx2trt_utils.cpp:198: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
WARNING: onnx2trt_utils.cpp:198: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
WARNING: onnx2trt_utils.cpp:198: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
WARNING: onnx2trt_utils.cpp:198: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
WARNING: onnx2trt_utils.cpp:198: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
WARNING: onnx2trt_utils.cpp:198: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
WARNING: onnx2trt_utils.cpp:198: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
WARNING: onnx2trt_utils.cpp:198: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
WARNING: onnx2trt_utils.cpp:198: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
WARNING: onnx2trt_utils.cpp:198: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
WARNING: onnx2trt_utils.cpp:198: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
WARNING: onnx2trt_utils.cpp:198: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
WARNING: onnx2trt_utils.cpp:198: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
WARNING: onnx2trt_utils.cpp:198: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
 Please ensure there are no enqueued operations pending in this context prior to switching profiles
E0201 15:43:23.009835 60826 cyber.cc:38] [mainboard]please initialize cyber firstly.
Segmentation fault (core dumped)

@ntutangyun ...once I checked the perception it was turned on...
But after connecting to bridge, I got the following console output
E0201 15:49:24.684509 60893 transform_wrapper.cc:254] [mainboard]Can not find transform.<PHONE_NUMBER>.766881943 frame_id: novatel child_frame_id: velodyne128 Error info: canTransform: target_frame novatel does not exist. canTransform: source_frame velodyne128 does not exist.:timeout

@ntutangyun....After 5 minutes of continous error messages on console output...It ended with following messages
E0201 15:52:39.678357 60886 detection_component.cc:126] [mainboard]Failed to get pose at time:<PHONE_NUMBER>.666696072
E0201 15:52:39.748929 60889 transform_wrapper.cc:254] [mainboard]Can not find transform.<PHONE_NUMBER>.726696014 frame_id: world child_frame_id: novatel Error info: Lookup would require extrapolation into the future.  Requested time<PHONE_NUMBER>726695936 but the latest data is at time<PHONE_NUMBER>706695936, when looking up transform from frame [novatel] to frame [world]:timeout
E0201 15:52:39.748963 60889 detection_component.cc:126] [mainboard]Failed to get pose at time:<PHONE_NUMBER>.726696014
terminate called after throwing an instance of 'std::runtime_error'
what():  The following operation failed in the TorchScript interpreter.
Traceback of TorchScript, serialized code (most recent call last):
File "code/torch/fueling/perception/pointpillars/second/pytorch/models/pointpillars.py", line 52, in forward
mask0 = torch.unsqueeze(mask, -1)
input0 = torch.mul_(features0, mask0)
_29 = torch.squeeze((_0).forward(input0, ))
~~~~~~~~~~~ <--- HERE
_30 = torch.contiguous(torch.permute(_29, [1, 0]), memory_format=0)
return _30
File "code/torch/fueling/perception/pointpillars/second/pytorch/models/pointpillars.py", line 66, in forward
input1 = torch.contiguous(_32, memory_format=0)
_33 = torch.permute((_31).forward(input1, ), [0, 2, 1])
input2 = torch.contiguous(_33, memory_format=0)
~~~~~~~~~~~~~~~~ <--- HERE
x = torch.relu(input2)
features, _34 = torch.max(x, 1, True)
Traceback of TorchScript, original code (most recent call last):
/home/chenjiahao/data/code/ApolloAuto/apollo-fuel/local/bazel_cache/7e10e8559c5568eba6bbbebc781c72fc/execroot/fuel/bazel-out/k8-fastbuild/bin/fueling/perception/pointpillars/pipelines/convert_libtorch_pipeline.runfiles/fuel/fueling/perception/pointpillars/second/pytorch/models/pointpillars.py(58): forward
/usr/local/miniconda/envs/fuel/lib/python3.6/site-packages/torch/nn/modules/module.py(534): _slow_forward
/usr/local/miniconda/envs/fuel/lib/python3.6/site-packages/torch/nn/modules/module.py(548): call
/home/chenjiahao/data/code/ApolloAuto/apollo-fuel/local/bazel_cache/7e10e8559c5568eba6bbbebc781c72fc/execroot/fuel/bazel-out/k8-fastbuild/bin/fueling/perception/pointpillars/pipelines/convert_libtorch_pipeline.runfiles/fuel/fueling/perception/pointpillars/second/pytorch/models/pointpillars.py(353): forward
/usr/local/miniconda/envs/fuel/lib/python3.6/site-packages/torch/nn/modules/module.py(534): _slow_forward
/usr/local/miniconda/envs/fuel/lib/python3.6/site-packages/torch/nn/modules/module.py(548): call
/usr/local/miniconda/envs/fuel/lib/python3.6/site-packages/torch/jit/init.py(1027): trace_module
/usr/local/miniconda/envs/fuel/lib/python3.6/site-packages/torch/jit/init.py(875): trace
/home/chenjiahao/data/code/ApolloAuto/apollo-fuel/local/bazel_cache/7e10e8559c5568eba6bbbebc781c72fc/execroot/fuel/bazel-out/k8-fastbuild/bin/fueling/perception/pointpillars/pipelines/convert_libtorch_pipeline.runfiles/fuel/fueling/perception/pointpillars/second/pytorch/outline_inference.py(132): convert_libtorch
/tmp/Bazel.runfiles_zcw24joq/runfiles/fuel/fueling/perception/pointpillars/pipelines/convert_libtorch_pipeline.py(33): convert_libtorch
/usr/local/miniconda/envs/fuel/lib/python3.6/site-packages/pyspark/util.py(107): wrapper
/usr/local/miniconda/envs/fuel/lib/python3.6/site-packages/pyspark/rdd.py(860): processPartition
/usr/local/miniconda/envs/fuel/lib/python3.6/site-packages/pyspark/rdd.py(425): func
/usr/local/miniconda/envs/fuel/lib/python3.6/site-packages/pyspark/rdd.py(2596): pipeline_func
/usr/local/miniconda/envs/fuel/lib/python3.6/site-packages/pyspark/rdd.py(2596): pipeline_func
/usr/local/miniconda/envs/fuel/lib/python3.6/site-packages/pyspark/rdd.py(2596): pipeline_func
/usr/local/miniconda/envs/fuel/lib/python3.6/site-packages/pyspark/rdd.py(2596): pipeline_func
/usr/local/miniconda/envs/fuel/lib/python3.6/site-packages/pyspark/python/lib/pyspark.zip/pyspark/worker.py(595): process
/usr/local/miniconda/envs/fuel/lib/python3.6/site-packages/pyspark/python/lib/pyspark.zip/pyspark/worker.py(605): main
/usr/local/miniconda/envs/fuel/lib/python3.6/site-packages/pyspark/python/lib/pyspark.zip/pyspark/daemon.py(74): worker
/usr/local/miniconda/envs/fuel/lib/python3.6/site-packages/pyspark/python/lib/pyspark.zip/pyspark/daemon.py(186): manager
/usr/local/miniconda/envs/fuel/lib/python3.6/site-packages/pyspark/python/lib/pyspark.zip/pyspark/daemon.py(211):
/usr/local/miniconda/envs/fuel/lib/python3.6/runpy.py(85): _run_code
/usr/local/miniconda/envs/fuel/lib/python3.6/runpy.py(193): _run_module_as_main
RuntimeError: CUDA out of memory. Tried to allocate 440.00 MiB (GPU 0; 7.79 GiB total capacity; 1021.66 MiB already allocated; 175.88 MiB free; 1.39 GiB reserved in total by PyTorch)
Aborted (core dumped)

seems that you need a GPU with bigger Graphic Memory

@ntutangyun  Current GPU I am using is:
NVIDIA Corporation TU104BM [GeForce RTX 2080 Mobile]
Its Memory is 8GB...isnt this enough

based on this CUDA out of memory message, i guess it's not enough...

I think its due to error...but is there any other way to overcome this perception problem

@ntutangyun ....i am using third party perception, ego vehicle is able to follow the pre-defined path..the problem here is with object detection and tracking...I found that ego vehicle does not detect and track any objects. I have provided screenshot of the same in below:

Any ideas to overcome the issue

I'm not sure what exactly the third party perception you're using.... I only Lidar Perception provided by Apollo

You state in your opening message that you're using Apollo v5.5 but in the debug messages I see something related to point pillars.  I don't believe that the algorithm using point pillars was introducted until version 6.0 so I'm wondering if you've pulled in some updates from v.6.0.
Check this folder: apollo/modules/perception/lidar/lib/
If you're on v5.5 then you shouldn't have a point pillars folder.

@Autofoxsys Thank you ....will look into it

@ntutangyun Current GPU I am using is:
NVIDIA Corporation TU104BM [GeForce RTX 2080 Mobile]
Its Memory is 8GB...isnt this enough

If I remember correctly, Apollo 5.5 does not include support for the RTX 2080. You need to use Apollo 6.0 or later, but in 6.0 and later perception may not be working yet due to in-progress re-factoring. So to use perception on 5.5 you'll need to use a GTX-1080 GPU.


[Bug Report] Select component randomly launch an "Uncaught TypeError: str.replace is not a function"

Element UI version
2.0.0
OS/Browsers version
Windows 10 / Version 62.0.3202.62 (Official Build) (64-bit)
Vue version
2.5.2
Reproduction Link
https://jsfiddle.net/api/post/library/pure/
Steps to reproduce
This one is very hard to reproduce. Using your own example for the select component (https://jsfiddle.net/api/post/library/pure/) you can try switch in random order (I could not find an specific order but the bug appears after some attemps) and in at least 10 different selections, the bug should rise.
What is Expected?
The select should allow us to switch no matter how many times we change it.
What is actually happening?
After some randomly changes, it launches the following error:
Uncaught TypeError: str.replace is not a function
at Object.trim (cs.js:34)
at Object.getText (cs.js:128)
at HTMLDocument.mousedown (cs.js:60)
The cs.js:34 has this code with the offending line:
ret = str.replace(/(^\s*)/, "");

cs.js doesn't seem to be part of Element. Could you turn off all browser extensions and see if this error continues?

Thanks @Leopoldthecoder for take a look into this. I can confirm that the error does not appear in other browsers (Firefox and Edge). But after turning off all my extensions in chrome, it still showing on randomly. If you have already tested it (please give it more than 5 changes randomly) in chrome, and you can't reproduce the error, please feel free to close this ticket. Thanks again for your time.

I tested again in Chrome and didn't reproduce the error, so perhaps this is not caused by Element. Closing this issue now.

I guess it is caused by missing entries in locale file? cs = Czech language?

Thanks Jiewei Qian for take a look into it. Did you face the same issue? It
is something that hapens randomly, but if it only hapens in Chrome (I've
tested it in Edge and Firefox without problems), I just have to be agree
with @Leopoldthecoder in this might be caused by an extension, or something
related with my chrome version. Also, I've tested it directly from the
ElementUI examples in jsfiddle and I suppose they do not use any locale
there. In the other hand, I've never loaded any other language but Spanish,
but I suppose the examples didn't loaded it, and they fails in my stack.
Again, thanks for giving it a shot, I just hope it is a local problem, this
project is awesome.
https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon
Virus-free.
www.avast.com
https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
On Fri, Oct 27, 2017 at 11:12 PM, Jiewei Qian<EMAIL_ADDRESS>wrote:

I guess it is caused by missing entries in locale file? cs = Czech
language?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/ElemeFE/element/issues/7784#issuecomment-340140033,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AIoASLacdIoP4uRP1qJY5cueox_Vvb0Tks5swrengaJpZM4QIlou
.

I did encountered str.replace is undefined previously for missing locale entries. But I take a look at locales directory. There is no cs locale.


nodejs DeprecationWarning: Buffer() is deprecated due to security and usability issues

Q
A

Bug?
yes

Version
master

Actual Behavior
(node:11819) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.

Expected Behavior
No warning.
Steps to Reproduce
make test
Possible Solutions
~

Temporary solution:
Use a very old nodejs version. Travis seems to use v0.6.14, but I found that nvm install lts/argon (using v4.9.1) also works.
Better solution:
Rewrite server.js to work on modern node versions.

Resolved by https://github.com/guzzle/guzzle/pull/2517/files


Native addon seems to use Node.js included openssl version instead of my own, but only on Node.js 10

I have a Node.js bindings for libcurl, and currently I'm trying to fix an issue that I cannot find a solution, even tho I'm building OpenSSL directly, as see here and here, the version being used at runtime is the one bundled with Node.js. This seems to occur only on Windows.
The version set as dependency is 1.0.2o:
https://github.com/JCMais/curl-for-windows/tree/445e537cb2f5656e3a3ede09e9e4782a6b62c299/openssl
However, by building the addon, and running the following
const Curl = require("../lib/Curl");
console.error(Curl.getVersion());

I can see that the one being used is the same used in Node.js 10:
libcurl/7.57.0-DEV OpenSSL/1.1.0h zlib/1.2.11 libssh2/1.7.0_DEV

node -p process.versions
{ http_parser: '2.8.0',
  node: '10.8.0',
  v8: '6.7.288.49-node.19',
  uv: '1.22.0',
  zlib: '1.2.11',
  ares: '1.14.0',
  modules: '64',
  nghttp2: '1.32.0',
  napi: '3',
  openssl: '1.1.0h',
  icu: '62.1',
  unicode: '11.0',
  cldr: '33.1',
  tz: '2018e' }

This started happening only with Node.js 10, I've rechecked if this is really the case by going back to Node.js 8 and recompiling the addon there.
The js file prints:
libcurl/7.57.0-DEV OpenSSL/1.0.2o zlib/1.2.11 libssh2/1.7.0_DEV

node -p process.versions
{ http_parser: '2.8.0',
  node: '8.12.0',
  v8: '6.2.414.66',
  uv: '1.19.2',
  zlib: '1.2.11',
  ares: '1.10.1-DEV',
  modules: '57',
  nghttp2: '1.32.0',
  napi: '3',
  openssl: '1.0.2p',
  icu: '60.1',
  unicode: '10.0',
  cldr: '32.0',
  tz: '2017c' }

This is currently causing some segfaults, since libssh2 1.7, which is being used to build the addon, is not compatible with OpenSSL v1.1.0h, the one shipped with Node.js 10.
I know that if upgrade libssh2 to 1.8 the problem would be resolved, but I still think that there is something wrong there, since it does not feel right to use the OpenSSL from Node.js.

Also I think this section of the wiki is outdated: https://github.com/nodejs/node-gyp/wiki/Linking-to-OpenSSL#windows
Looks like the symbols are exported by Node now, even on Windows. See https://github.com/nodejs/node/commit/b4d4fd939c813177209fc6a2f32a3a125122de7c

Platform: Windows 10 Pro
Compiler:

msbuild 15.1.1012.6693
cl 19.10.25019 x64
Visual Studio 2017

Module node-libcurl

I have tested on linux, and this problem does not happen. I used the following Dockerfile for that:

FROM node:10-stretch
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl libcurl4-openssl-dev libssl-dev && rm -rf /var/lib/apt/lists/*
COPY package.json yarn.lock ./
RUN yarn install --ignore-scripts
COPY . ./
RUN yarn pregyp rebuild

This is probably something wrong I'm doing, but I would love some help, or guidance on what I should do to debug/fix this.

After more investigation, this is probably the same problem mentioned here: https://github.com/nodegit/nodegit/issues/1490, to be more exact, on this comment: https://github.com/nodegit/nodegit/issues/1490#issuecomment-393681634

but I still think that there is something wrong there, since it does feel right to use the OpenSSL from Node.js.

I'm assuming you mean that is _doesn't" feel right, yes?
You would like to link your addons to your provided openSSL and not to the one embedded in node?

@refack yep! Just fixed it, thanks.

After using dumpbin I can see that Node.js really exports many OpenSSL symbols, here is the full output:
DUMPBIN /EXPORTS node.lib

output

After using dumpbin I can see that Node.js really exports many OpenSSL symbols, here is the full output:

Yes, node embbeds and exports the full openSSL library. From a design perspective to me it actually makes sense to reuse it. Otherwise you get two different copies of the library loaded to your process...
But I agree that it should be your choice. I'll research this a little bit and try to give you an answer.

Thank you for taking some time to look into this @refack, if I can help in any way let me know.

Problem solved? I need some help too....
I build addon that use custom functions from custom OpenSSL. It works fine on windows 10 with node 8.12.0 or 10.9.0. But i have problems with ubuntu 17.10
I compiled library on Windows and Linux. They works. After i compiled node addon with node-gyp.
{
  "targets": [
    {
      "target_name": "cryptowrap",
      "sources": [ "libcryptowrap.cc" ],
      "cflags!": [ "-fno-exceptions" ],
      "cflags_cc!": [ "-fno-exceptions" ],
      "conditions": [
        ['OS=="win"', {
          'include_dirs': [
            "<!(node -e \"require('nan')\")",
            '<(module_root_dir)/deps/include'
          ],
          'msvs_settings': {
            'VCCLCompilerTool': {
              'AdditionalOptions': [ '/EHsc' ]
            }
          },
          'conditions': [
            ['target_arch=="ia32"', {
              'libraries': [
                '<(module_root_dir)/deps/win/x86/libcryptowrap.lib',
                '<(module_root_dir)/deps/win/x86/libcrypto-1_1.lib'
              ],
              'copies': [{
                'destination': '<(PRODUCT_DIR)',
                'files': [
                  '<(module_root_dir)/deps/win/x86/libcryptowrap.dll',
                  '<(module_root_dir)/deps/win/x86/libcrypto-1_1.dll',
                ]
              }]
            }],
            ['target_arch=="x64"', {
              'msvs_configuration_platform': 'x64',
              'msbuild_toolset': 'v141_xp',
              'libraries': [
                '<(module_root_dir)/deps/win/x64/libcryptowrap.lib',
                '<(module_root_dir)/deps/win/x64/libcrypto-1_1.lib'
              ],
              'copies': [{
                'destination': '<(PRODUCT_DIR)',
                'files': [
                  '<(module_root_dir)/deps/win/x64/libcryptowrap.dll',
                  '<(module_root_dir)/deps/win/x64/libcrypto-1_1.dll',
                ]
              }]
            }]
          ]
        }],
        ['OS=="linux"', {
          'include_dirs': [
            "src",
            "<!(node -e \"require('nan')\")",
            '<(module_root_dir)/deps/include'
          ],
          'ldflags': [
            '-Wl,-R<(module_root_dir)/deps/linux',
            '-L<(module_root_dir)/deps/linux'
          ],
          'conditions': [
            ['target_arch=="ia32"', {
              'libraries': [ '-lcryptowrap' ]
            }],
            ['target_arch=="x64"', {
              'libraries': [ '-lcryptowrap' ]
            }]
          ]
        }]
      ]
    }
  ]
}

After i call my function in node via addon from libcryptowrap.dll and custom libcrypto.dll in Windows. And it's all fine. On Linux Node call openssl functions from her dependencies, not from custom libcrypto.so. What should I change on Linux ? I want to call a function that uses functions from my library and custom libcrypto.so

@Not4me I still have the issue, I have not found a workaround yet.

@JCMais Why all work on Windows 10 with my files, but work in limux. How i can recompile node without shared openssl?

@Not4me from what I remember it's not possible to do that easily.
@refack sorry to bother, but have you had any luck with this? I kind of gave up trying already.

I created custom openssl with some my functions. Recompile nodejs with custom openssl. Now it works fine for me

I'm having the same kind of problem.
I have a shared library "A" that links against the system installed OpenSSL library that I link to in my custom node addon "B". My shared library "A" is used by other applications and libraries on my system.
I have tried compiling the same system level OpenSSL version as a static library, then linking it directly into my shared library "A". It appears to work when I use "A" in any non-NodeJS applications.
However, when I use library "A" in my node addon with node versions 10.x+, I get segfaults because the build seems to prefer the OpenSSL symbols in the node binary over my shared library "A", even within the shared library "A".
I really think NodeJS should NOT export OpenSSL symbols:

It requires all native addons to be built against the binary compatible version as the NodeJS - every NodeJS version update that changes openSSL ABI means you have to install a new OpenSSL and rebuild all your dependent libraries to this new OpenSSL version.
The current system does not give you a clean way to use other libraries in native addons that use other OpenSSL versions. For example, I should not have to go rebuild the system provided libcurl to match the OpenSSL version NodeJS happens to be using.

I have my original issue here

I'm closing this because ultimately it's not a node-gyp issue. It's been discussed at length at nodejs/node and nodejs/help, see the linked issues.


Live certificates symlinked into archive

I was trying to set up a named volume for the certificates, shared to another container, via certificates:/etc/letsencrypt/live, but it looks like the certificates in the live directory are just symlinks into the archive.
I can of course make the whole /etc/letsencrypt directory a named volume, but I was hoping to limit the part shared to the other container to just the live certificates, not the account info and all the other runtime details of docker-letsencrypt-dns. Could hard-links work here instead?

Seems this is the behavior of https://github.com/certbot/certbot, so not something that can easily be changed in this project.


Add a sample file for streaming reader testing.

Description

This PR adds a sample file to components/core/tests. It will be used as the reference source to test the future clp network reader. The reader is designed to stream data from a given URL using libcurl. When testing the reader, we will stream this sample file from GitHub and compare its content with the local copy.

Commit msg: Add sample file for testing network readers. (#277)?

LGTM


EU4 building scopes

In EU4, there is on_built and on_destroyed keys for buildings in the buildings folder, but CWTools doesnt recognise these and throws errors.

Added in https://github.com/tboby/cwtools-eu4-config/commit/3ad5b0625d9bef8ff0a5f024aae9eb6010fc5401
If you set the settings rules_version to latest, you'll get the update immediately :)


gyb is not an internal or external program

I downloaded the bat installer. I run it and it says that gyb is not an internal or external program .... What should I do?

You can use the MSI installer from https://github.com/GAM-team/got-your-back/releases to install the gyb to your system first before doing the setup.


Typo "GitHub action workflow"→"GitHub Action workflow"

https://docs.microsoft.com/en-us/azure/architecture/reference-architectures/containers/aks-multi-region/aks-multi-cluster https://github.com/MicrosoftDocs/architecture-center/blob/main/docs/reference-architectures/containers/aks-multi-region/aks-multi-cluster-content.md #PingMSFTDocs

Docs Build status updates of commit e957daa:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/reference-architectures/containers/aks-multi-region/aks-multi-cluster-content.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

@EdPrice-MSFT
Can you review the proposed changes? IMPORTANT: When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team


连接Worker出现问题

Xray 日志:
Xray 1.8.16 (Xray, Penetrates Everything.) 9432a60 (go1.22.4 windows/amd64)
A unified platform for anti-censorship.
2024/09/16 00:56:53 [Info] infra/conf/serial: Reading config: configSpeedtest.json
2024/09/16 00:56:53 [Warning] core: Xray 1.8.16 started
2024/09/16 00:56:54 <IP_ADDRESS>:4631 accepted //www.google.com:443 [http10830 -> proxy10830]
2024/09/16 00:56:58 [Warning] [1264435619] app/proxyman/outbound: failed to process outbound traffic > proxy/vless/outbound: failed to find an available destination > common/retry: [transport/internet/websocket: failed to dial WebSocket > transport/internet/websocket: failed to dial to (wss://[Worker地址]/):  > read tcp <IP_ADDRESS>:4632->[Worker地址]:443: wsarecv: An existing connection was forcibly closed by the remote host. transport/internet/websocket: failed to dial WebSocket > transport/internet/websocket: failed to dial to (wss://[Worker地址]/):  > read tcp <IP_ADDRESS>:4633->[Worker地址]:443: wsarecv: An existing connection was forcibly closed by the remote host. transport/internet/websocket: failed to dial WebSocket > transport/internet/websocket: failed to dial to (wss://[Worker地址]/):  > read tcp <IP_ADDRESS>:4634->[Worker地址]:443: wsarecv: An existing connection was forcibly closed by the remote host. transport/internet/websocket: failed to dial WebSocket > transport/internet/websocket: failed to dial to (wss://[Worker地址]/):  > read tcp <IP_ADDRESS>:4637->[Worker地址]:443: wsarecv: An existing connection was forcibly closed by the remote host. transport/internet/websocket: failed to dial WebSocket > transport/internet/websocket: failed to dial to (wss://[Worker地址]/):  > read tcp <IP_ADDRESS>:4638->[Worker地址]:443: wsarecv: An existing connection was forcibly closed by the remote host.] > common/retry: all retry attempts failed

以上Worker地址已被替换
无论是否使用ProxyIP都会出现此问题, 测试路线: 浙江移动
貌似从昨天开始就有这个情况了

研究了一下, 发现是域名问题, 换一个域名绑定就正常工作了


[5.8] delete ForeignKeyDefinition class

the main difference between ForeignKeyDefinition and ColumnDefinition,
that ColumnDefinition is actually created https://github.com/laravel/framework/pull/24444/files#diff-0a0682dbb89567dbcd7c4f50d4d1ece5R1260

So, as for me it is not ok, that we will have return type, which never will be returned.
cc: @staudenmeir
UPD: reverted https://github.com/laravel/framework/pull/28387

The whole point of docblock is to provide helpful information. Hope the class stays this time.

I strongly disagree. The class is highly useful and doesn't cause any harm.

You basically have two sides on this I guess. I'm with @TBlindaruk as the class is dead code basically and only beneficial for IDE's.

only beneficial for IDE's

I assume/hope that most people use IDEs (and foreign keys), so this helps a lot of users.

I assume/hope that most people use IDEs (and foreign keys), so this helps a lot of users.

yes, and IDE will say that foreign method will return the ForeignKeyDefinition class... but it does not true. It will never return the ForeignKeyDefinition

Sorry @TBlindaruk i replied on my PR and should've done it here.
https://github.com/laravel/framework/pull/28387#issuecomment-489801247

New PR that actually uses ForeignKeyDefinition: #28435

@TullariS , Thanks!) I will close my PR

@TBlindaruk you're welcome. Thank you for the feedback.

I think Taylor's comment summarise it perfectly (https://github.com/laravel/framework/pull/28435#issuecomment-490063207)

If it works with PHPDoc only why do we need a code change?


UI: support utf-8 string in user data

ISSUE TYPE
Improvement Request
COMPONENT NAME
UI,
CLOUDSTACK VERSION
<IP_ADDRESS>
CONFIGURATION
basic network, advanced networking
OS / ENVIRONMENT
CentOS 7.9
SUMMARY

STEPS TO REPRODUCE
1、register user data input user data :
#cloud-config
bootcmd:
  - echo hello中文 > /tmp/test.txt

2、raised error:
RegisterUserData.vue 195
Method：handleSubmit (e)  params.userdata = encodeURIComponent(btoa(this.sanitizeReverse(values.userdata)))；
btoa only support ascii， it can'nt support chinese string such as 中文
EXPECTED RESULTS
I checked cloud-init issue https://github.com/canonical/cloud-init/issues/3271， supporting UTF-8  is to be fixed in cloud-init in version 19.2-53，CentOS 7.9 uses cloud-init v19.4.
Maybe we can support utf-8 string in user data

@harikrishna-patnala cc @shwstppr @DaanHoogland - don't we support utf8 characters? Or is it a limitation of our API?

@rohityadavcloud this seems to be a UI only issue. May need a change

fixed by #7749


python312Packages.vehicle: 2.2.1 -> 2.2.2

Diff: https://github.com/frenck/python-vehicle/compare/refs/tags/v2.2.1...v2.2.2
Changelog: https://github.com/frenck/python-vehicle/releases/tag/v2.2.2
Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review pr 326181 run on x86_64-linux 1

5 packages built:

home-assistant-component-tests.rdw
python311Packages.vehicle
python311Packages.vehicle.dist
python312Packages.vehicle
python312Packages.vehicle.dist


Make the service standard searchable

By indexing it in Rummager 💃 🎉

Just commented on using the gds-api-adapter test helpers. Looks good though.
It might be nice to separate the guide indexing task into it's own task so guides can be indexed independently of the service standard? Then the rake rummager:index task could have each of the content type indexing tasks as dependencies.

Yeah, I started going down the route of using the rummager helpers but at the minute I'd have to duplicate some of the changes made in #308, including waiting for a new release of the gds-api-adaptors change. So I held off on that. I think I'll try and get that merged today, rebase on top and fix the tests to use the helper.

:tada: Re-review please @thehenster

Looks good


Ported to Webextension API

Hello, I ported to WebExtensions API so it can be compatible with newer Firefox.
Tested on Chrome and Firefox.

@zn hey thank you very much! i dont have a ton of time to review this immediately but i'll try to get this testing and up on mozilla add-ons soon.

@gaeulbyul thank you for the help!


Templating page elements for commonly re-used elements

🚀 Feature
In our wiki, we have many pages with the same warnings on.
:::warning
This function was added in version 1.2.3 and will not work in previous versions.
:::

For example.
We would like to template this to make it easier to add (and maybe update in future) just like MediaWiki.
Have you read the Contributing Guidelines on issues?
Yes.
Motivation
To save time.
Pitch
It's a neat way to save time when using the same constructs everywhere.
We tried to do it with MDX and building a component but couldn't seem to figure out how to export an admonition.

Hi,
Is this what you are looking for?
https://v2.docusaurus.io/docs/markdown-features/#calloutsadmonitions

No I mean I want to take one of these and template it. We have the same text in 100 pages, authors either copy paste or write again (which leads to slightly different admonitions). Templates would allow us to write one commonly used admonition (or any other type of markup) and place it everywhere (presumably using MDX).
MediaWiki has this feature, it's called templates too https://www.mediawiki.org/wiki/Help:Templates

Hi,
You could write a Remark plugin to transform the input MDX to whatever you want.
For example:
# markdown title

markdown text

:::versionWarning

Would become
# markdown title

markdown text

import VersionWarning from '@site/src/VersionWarning'

<VersionWarning/>

But at the end of the day, your MD document ends up being transpiled to JSX, so you could as well write it in the 2nd form directly.
Note: you can import one MDX from the other too, see for example https://v2.docusaurus.io/examples/markdownPageExample#import-mdx-and-md-files

See also a simple remark plugin to do that for you:
https://github.com/angeloashmore/gatsby-remark-find-replace
(looks to me it can be used  without Gatsby)

Oh, that cross-mdx import is probably what I want, thanks!

please let me know if this works for you, and if we can close this issue ;)

It looks like it works well! Thanks!


Error During Multistep Task exucution

Description
INFO:     <IP_ADDRESS>:56106 - "POST /api/chain/Improving%20Inference%20Speed%20for%20AI%20Models/run HTTP/1.1" 500 Internal Server Error
ERROR:    Exception in ASGI application
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/uvicorn/protocols/http/httptools_impl.py", line 401, in run_asgi
result = await app(  # type: ignore[func-returns-value]
File "/usr/local/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in call
return await self.app(scope, receive, send)
File "/usr/local/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in call
await super().call(scope, receive, send)
File "/usr/local/lib/python3.10/site-packages/starlette/applications.py", line 113, in call
await self.middleware_stack(scope, receive, send)
File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 187, in call
raise exc
File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 165, in call
await self.app(scope, receive, _send)
File "/usr/local/lib/python3.10/site-packages/starlette/middleware/cors.py", line 85, in call
await self.app(scope, receive, send)
File "/usr/local/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 62, in call
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
raise exc
File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 715, in call
await self.middleware_stack(scope, receive, send)
File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 735, in app
await route.handle(scope, receive, send)
File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 288, in handle
await self.app(scope, receive, send)
File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 76, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
raise exc
File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 73, in app
response = await f(request)
File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 301, in app
raw_response = await run_endpoint_function(
File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 212, in run_endpoint_function
return await dependant.call(**values)
File "/agixt/endpoints/Chain.py", line 50, in run_chain
chain_response = await AGiXT(
File "/agixt/XT.py", line 599, in execute_chain
task = await self.run_chain_step(
File "/agixt/XT.py", line 466, in run_chain_step
args = self.chain.get_step_content(
File "/agixt/Chain.py", line 796, in get_step_content
step_response = self.get_step_response(
File "/agixt/Chain.py", line 556, in get_step_response
ChainStep.chain_id == chain_data["id"],
TypeError: list indices must be integers or slices, not str
Operating System

[X] Linux
[ ] Windows
[ ] MacOS

Acknowledgements

[X] I am NOT trying to use localhost for providers running outside of the docker container.
[X] I am NOT trying to run AGiXT outside of docker, the only supported method to run it.
[X] Python 3.10.X is installed and the version in use on the host machine.
[X] The latest version of Docker is installed and running on the host machine.
[X] I am using the latest stable version of AGiXT.
[X] I have provided enough information for the maintainers to reproduce and diagnose the issue.
[X] I have searched the existing issues to make sure this bug has not been reported yet.

he error occurs in Chain.py when trying to access chain_data["id"]. The error suggests chain_data is a list but we're trying to access it like a dictionary.


[BUG] SfCollectedProduct adjust to designs

Describe how this feature will help us improve
Adjust SfCollectedProduct layout with detailed modification to the Figma designs.
Figma:

Current layout:

on hover:

Is your proposal related to a problem?
No.
Describe the solution you'd considered
Add new links to configuration slot according to designs.
Add new slot for text.
Additional context
Anything you would like to add but was not sure which section it fits.

The view that is shown on figma is for Detailed cart view :) so it's not a common view for SfCollectedProduct

@justyna-13 You are right so I close this issue. Thx :)


swagger_client.rest.ApiException: (400)

I have downloaded python-client for 'eastus'  and installed successfully pip by following these steps - https://github.com/Azure-Samples/cognitive-services-speech-sdk/tree/master/samples/batch/python
While running the code for Batch transcription I'm getting the following error:
"""
swagger_client.rest.ApiException: (400)
Reason: Bad Request
HTTP response headers: HTTPHeaderDict({'Cache-Control': 'no-store', 'Transfer-Encoding': 'chunked', 'Content-Type': 'application/json; charset=utf-8', 'api-supported-versions': '2.0,3.0', 'api-deprecated-versions': '2.0', 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains; preload', 'apim-request-id': 'f1c39f84-d268-41bb-a268-1c53f8c1aaab', 'x-content-type-options': 'nosniff', 'Date': 'Thu, 11 Nov 2021 10:02:52 GMT'})
HTTP response body: {
"code": "InvalidRequest",
"message": "Only "Standard" subscriptions for the region of the called service are valid.",
"innerError": {
"code": "InvalidSubscription",
"message": "Only "Standard" subscriptions for the region of the called service are valid."
}
}
"""
I am trying to get the transcript for audio that is 30+ mins long. Using SDK it's just giving partial output. What can be the possible solution for the above issue, have tried other local too.

It looks like you are using a free subscription. Batch transcription is only available with a standard (paid) subscription.


Create Prometheus logger

@danpalmer as there is (now?) a prometheus plugin for routemaster, is this completed?


pre-commit CI's formatting is wrong about multi-line footnotes in mdBook's Markdown

What's up?
https://github.com/PRQL/prql/pull/2237#issuecomment-1474876022
The changes 1aead27d6f5f81b1677527d330051a4a4b670747 made by pre-commit CI is clearly wrong changes.
But I don't know how to stop this...
Before

After

Re-indenting the code block works: https://github.com/PRQL/prql/pull/2237/commits/a6cb5e90b71dff313d03d3348a4e3464b1e6f808
...but doesn't solve this indentation problem here: https://github.com/PRQL/prql/commit/1aead27d6f5f81b1677527d330051a4a4b670747#diff-30aeff354da8b464a99b788a30f3a81597cf6aacae8c3486ad25abf1b4f0fc0bL184-R188
I had put in https://github.com/rust-lang/mdBook/issues/2003, which led to https://github.com/raphlinus/pulldown-cmark/issues/623, which is the underlying issue, I think.

For the book, we can use the {{footnote}} style — this is only a problem when we want to share content between the book & GitHub. But that should be quite rare...

Yes agree. Lmk if you think there's much to do here, otherwise I guess we close without resolving...


DigitalInputDevice.when_activated method has incorrect decorator

Please, fix the bug in the class DigitalInputDevice:
this
    @when_activated.setter
    def when_deactivated(self, value):
        self._when_deactivated = value

must be
    @when_deactivated.setter
    def when_deactivated(self, value):
        self._when_deactivated = value

Thank you. Looks like a classic cut and paste error. Its not been noted before.
Did you experience an error or issue or did you notice the issue in the code?
I am interested because I just tested this program
from picozero import DigitalInputDevice

b = DigitalInputDevice(7, pull_up=True)

def pressed():
    print("pressed")

def released():
    print("released")

b.when_activated = pressed
b.when_deactivated = released

and it works as expected?! Is there a difference here between Python and Micropython?

Fyi - I'll do a release later this week.

I had some issue with it, but don't remember details. I had to make this changes to make it works properly.
Also I can propose supporting brightness for RGBLED.
I implemented it as possible fourth item of a color value.
class RGBLED(OutputDevice, PinsMixin):
    def __init__(
        self, red=None, green=None, blue=None, active_high=True, initial_value=(0, 0, 0), pwm=True
    ):
        ...
        super().__init__(active_high, self._apply_brightness(initial_value))

    def _apply_brightness(self, value):
        if isinstance(value, tuple) and len(value) == 4:
            brightness = value[3]
            value = tuple(v * brightness for v in value[:3])
        return value

    @value.setter
    def value(self, value):
        self._stop_change()
        self._write(self._apply_brightness(value))

    @color.setter
    def color(self, value):
        if len(value) == 4:
            self.value = tuple(self._from_255(v) for v in value[:3]) + (value[3],)
        else:
            self.value = tuple(self._from_255(v) for v in value)

for example:
rgbled.color = (255, 200, 50, 0.5)

The range of brightness must be 0.0...1.0.
I use it in my project and I see it to be quite useful.
It can be implemented better, like using some logarithmic curve for percetage/brightness, but for most cases it's not so important.

I had some issue with it, but don't remember details. I had to make this changes to make it works properly.

Ok.
Can you raise a seperate issue for new feature requests pls. Although my first thought is that adding brightness to RGBLED adding functionality which can already be acheived by lowering the intensity of the RGB values and given the key principle of being lightweight I dont feel this would be a priority.

fix is in dev branch

Resolved in v0.4.1


Fix for the absence of environment variable LOCALAPPDATA on MacOS

Resolves #3 and resolves #4

Tested and confirmed working.  Thanks!


Enable Socket::r#type on all platforms

As far as I can tell SO_TYPE is defined on all platforms (though maybe CI will prove me wrong? :upside_down_face:), it's just SO_PROTOCOL/SO_DOMAIN that are specific to linux/freebsd/etc.

The CI agrees. Thanks @coolreader18.


Chapter 7: MicroProfile Metrics

Adding content for chapter07

Awaiting review feedback and approval.

@donbourne @Channyboy can you review

@donbourne can you double check the new changes to see whether you can approve this PR? thanks

@donbourne can you double check the new changes to see whether you can approve this PR? thanks

Double checked from myside. @donbourne @Emily-Jiang - can you please approve this now.

@ttelang , I will have a look, but may not be until later this week.


Adding Stable Version For Moya

This fixes issue #51 by providing the latest stable version of Moya to depend on

Thanks @ciaranmul !


opt: env NACOS_CLIENT_COMMON_THREAD_CORES to set worker_threads

env NACOS_CLIENT_COMMON_THREAD_CORES to set worker_threads when multi-cpus, default is num_cpus

Codecov Report
Patch coverage: 75.00% and project coverage change: +0.11 :tada:

Comparison is base (21badb1) 10.05% compared to head (6e0fc0a) 10.16%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #135      +/-   ##
==========================================
+ Coverage   10.05%   10.16%   +0.11%
==========================================
  Files          53       53
  Lines        2337     2341       +4
==========================================
+ Hits          235      238       +3
- Misses       2102     2103       +1

Impacted Files
Coverage Δ

src/config/worker.rs
0.00% <ø> (ø)

src/common/executor/mod.rs
88.88% <75.00%> (-2.42%)
:arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Async/await support

Hi,
is it possible to add acorn-es7-plugin to parse async/await function? Thanks

Yes, you can use them both (that's why they're plugins in the first place). But it doesn't require anything special on acorn-jsx side.
Also, async/await are natively supported by Acorn without any plugins now, so you just need to set ecmaVersion correctly.

I have the script:
export function configure(trackpoint, feeds, auth, platform) {
    return async function (dispatch) {
        try {
            const response = await put("/api/feed-checker/shop-config", {
                trackpoint,
                feeds,
                platform,
                auth: auth && auth.password && auth.username ? auth : null
            })
            if (response.body.status === 'ok') {
                dispatch(configureSuccess())
                success('Konfigurace byla úspěšně uložena.')
            }
            else {
                const errors = response.body.errors.reduce((sum, error) => {
                    sum[feedMapping[error[0]]] = error[1]
                    return sum
                }, {})
                dispatch(stopAsyncValidation(platform === 'shoptet' ? 'feedForm' : 'feedForm2', errors))
            }
        } catch (error) {
            console.log(error)
            dispatch(configureError(error))
        }
    }
}

I got the error:
SyntaxError: Unexpected token
i point to line start with async.
I also tried set ecmaVersion: 7 without success.

Oh right, sorry - you confused me with acorn-es7-plugin. async/await is in fact ES2017 (ES8), so you need to set ecmaVersion to either 2017 or 8.

I have tried both, 2017 & 8, but the same SyntaxError appeared.

Certainly doesn't here: http://astexplorer.net/#/gist/899c54bf6d2f2d0cf6f02d0d5098338e/e408ffcd33b233e2f7f3ff50f99bf8612bcbbc4d
Make sure you're using latest version of Acorn or something.


Delay NukeOps round end by 10 seconds after the nuke explodes.

Delays round end from when the nuke explodes during NukeOps by 10 seconds.
The round end in this case is when the window pops up after the nuke would usually explode.
This delay should only occur if the nuke explodes on the right station, on the wrong station it will just cut to the end of round like before.
Note that this PR does not actually add any checks to see if the nukies survived.
Why / Balance

This allows for time for the nuke to actually destory the station, and potentionally kill the NukeOps if they stay near it. This would then allow for their win to be downgraded in future from a major to a minor if they are all dead, with an extra line on the end of round window stating they all died.
It also allows for the nuke to explode the station a little before everything ends and the window gets in the way.
Technical details

Added an Update method to NukeopsRuleSystem, that will check to see if the round should end after the nuke explodes. I am not sure of a better way of doing this, or if this is the "correct" way. I've avoided using Timer since it has the issue of not being well tied to the game, and hard to cancel, leading to bugs.
Requirements

[X] I have read and am following the Pull Request and Changelog Guidelines.
[X] I have added media to this PR or it does not require an ingame showcase.

Changelog

:cl:

tweak: During NukeOps, the round will no longer end immeidately after the nuke explodes, and will instead be delayed by a short time.

This allows for time for the nuke to actually destory the station, and potentionally kill the NukeOps if they stay near it. This would then allow for their win to be downgraded in future from a major to a minor if they are all dead, with an extra line on the end of round window stating they all died.

Aren't they meant to kill themselves on the nuke as a part of the mission? Why would they loose the major win for dying to it?

Aren't they meant to kill themselves on the nuke as a part of the mission? Why would they lose the major win for dying to it? As I understood it it was meant to be an elite agent suicide mission.

I don't think they need to suicide, just nuke the station.
As a side note, I think it would better to have a custom message when the nukie team survives the nuke, for an extra major victory ^^

This allows for time for the nuke to actually destory the station, and potentionally kill the NukeOps if they stay near it. This would then allow for their win to be downgraded in future from a major to a minor if they are all dead, with an extra line on the end of round window stating they all died.

Aren't they meant to kill themselves on the nuke as a part of the mission? Why would they lose the major win for dying to it? As I understood it it was meant to be an elite agent suicide mission.

Doesn't the nukie intro literally state "Get out while the payload detonates"?

Doesn't the nukie intro literally state "Get out while the payload detonates"?

Flavortext might say it, but to my understanding the Nukies should not need to worry about needing to survive the Nuke to declare a victory, gameplay-wise. Keeping survival as a purely player-driven optional goal is better and makes it a "nice to have" than making the Nukies have less of a victory just because they decided to stick with the Nuke and actually engage with the station instead of covering it in 3 layers of reinforced walls.

shouldnt lose major but should say how many nukies lived on roundend and give a special text if they all lived

Im fairly sure Nukies need to survive for a major in SS13. I dont see any issue for downgrading to a minor for dying to the nuke, it makes sense because why would the Syndicate tell perfectly capable operatives to just give up their life in the event they actually win.
However I do think if nukies need to escape there needs to be a 'point of no return' for the nuke countdown where it can no longer be disarmed. (We already kind of do with the very long disarm timer but a more official one accompanied by an announcement would allow newkies to know when to bail)
Also having Nukies need to live might make them actually not treat the nukie shuttle like a throw away hunk  of junk. Overall I think it wouldnt subtract anything and would be a good change.


Polyglot on Backbone Structure

Guys, i have a large project. The Backend will send me a JSON DATA with all translations, in my bb structure how should be my structure with polyglot? what is the best way? put polyglot on a backbone view? or in a general model? Any tips? Thx :dancers:

I use this way: before some render load phrases in locale model like this
    var LocaleModel = Backbone.Model.extend({
        defaults: {
            phrases: [],
        },
        initialize : function(models, options) {},
        url : function() {
            return '/locales/' + this.get('id') + '.json';
        },
    });

Then just create polyglot object and load phrases from model
var polyglot = new Polyglot({locale: browserLocale});
polyglot.extend(localeModel.get('phrases'));

and then use polyglot.t('phraseName') where it need.


Issue #6 add codecov and update readme

Welcome to Codecov :tada:
Once merged to your default branch, Codecov will compare your coverage reports and display the results in this comment.
Thanks for integrating Codecov - We've got you covered :open_umbrella:


Feature/integrate onboarding answers

What does this pull request aim to achieve? 💯
Please be concise and link any related issue(s):

[x] I have checked that no one else is working on similar changes.
[x] I have read the latest README and understand the development workflow.
[x] The name of this branch is: feature/<branch_name> (need to have cloned the repo not forked).
[x] This branch is rebased/merged with the latest master.
[x] There are no merge conflicts.
[x] There are no console warnings and errors.
[x] On the right hand side of this PR, I have linked the appropriate issue(s) under "Issues" and added a project progress under "Projects".

So overall it looks great, but I think the filters are not working still -> https://share.getcloudapp.com/qGuKrGqW
As you can see in the video, the filters appear on the filter section but they do not affect anything from the posts on the feed/ are not being applied? I am not sure. Would you mind to investigate @CeesWang ?

cc: @joshmorel

Thanks @CeesWang
I'm wondering if we're applying the filters correctly with respect to question 1  @ppagarawal @manualzuru ? I thought these were just for our contact list not to actually filter the feed because there isn't a really good correspondence between answers to these questions and filter options:

I'll take a look at the code later today.

@idjevm Regarding the video.

These are the posts that show up when going through the onboarding questions. As in the video.

These posts show up after removing medical supplies.

These posts show up after adding medical supplies back in.
The weird thing is that first and last instance where the medical supplies and location are exactly the same, the api call is also exactly the same.
How can two identical api calls return different posts ? Which makes me believe its a backend issue. @idjevm @ppagarawal @joshmorel

Regarding the video, it has to do with India not having medical supplies posts. There are only two posts in India and they are both information type.


provide button to allow a user to preview their profile

from 4/2 Req Organizing
issue 413 - “Preview Profile” button to see how others see your profile