Running the contributed command:'extension.viewInBrowser' failed

I can't able to use view in browser instead encounter the following problem:"Running the contributed command:'extension.viewInBrowser' failed" my os windows 10 ,visual studio code version 1.11.2

I'm afraid the error is coming from another extension.
Maybe this one? https://marketplace.visualstudio.com/items?itemName=qinjia.view-in-browser


i18n support

Hello everyone,
Currently, the plugin doesn't seem to generate much internationalization data when running docusaurus write-translations. Only a single i18n label appears to be generated, at least in my environment:
{
  "version.label": {
    "message": "Next",
    "description": "The label for version current"
  }
}

This makes it very difficult to translate API documentation generated by this plugin into different languages.
Is your feature request related to a problem?

No

Describe the solution you'd like
Ideally, when generating translation data using docusaurus write-translations, the plugin would create i18n labels for every string that can be reasonably translated, as other plugins (including the built-in ones) already do. That would mean generating labels for, for example:

Headers and table data in the intro doc
Collapsible header titles in the endpoint docs ("Request", "Authorization")
Buttons and other interactive elements ("Send API Request", "Example")
Labels ("required")

The site owners could then localize these elements to the different languages they need for their site.
Describe alternatives you've considered
I've considered hiding the language select dropdown while browsing the API documentation or generating a new, separate docusaurus instance that only contains the API documentation, isolated from the rest of the more general docs that we currently provide in different languages. This can certainly be done, but it takes extra work to host and manage and makes our global documentation solution... less inclusive, for lack of a better word.
Additional context

Hi @karjona, thanks for reporting this issue! I am not too familiar with i18n and would appreciate any help you can provide. To start, can you explain how "labels" can/should be applied or point to an example? Thanks!

Hi, same necessity here.
Another question is how to write swagger with internationalization support (maybe using something similar to this?)
Probably faster solution could be related to integrate docusaurus-openapi-docs to give support to crowdin or similars

Hello everyone,
To give a bit more context: when you run docusaurus write-translations, all supported plugins generate a .json file in the i18n folder of the docusaurus instance or update the code.json file in that same directory. The file contains all labels you can translate for that plugin and the description of where those labels are used.
For example, when running docusaurus write-translations on my instance that contains the @easyops-cn/docusaurus-search-local plugin, the code.json file contains the labels to translate all the strings related to the search box.
"theme.SearchBar.noResultsText": {
  "message": "No results"
},
"theme.SearchBar.seeAll": {
  "message": "See all results"
},
"theme.SearchBar.label": {
  "message": "Search",
  "description": "The ARIA label and placeholder for search button"
},

You can then use these labels to translate the site.
This same feature would be great for the API docs. Generating these labels for "required", "Requests", "Responses", etc. would be great.

Thanks @karjona, I believe I identified how this is being done:
Lifecycle method: https://docusaurus.io/docs/api/plugin-methods/i18n-lifecycles#getDefaultCodeTranslationMessages
Example: https://github.com/easyops-cn/docusaurus-search-local/blob/master/docusaurus-search-local/src/server/index.ts#L38
We'll add this to our roadmap.

FYI crowdin integration breaks things with generated code. This is not a problem on docusaurus-openapi-docs , is crowdin application breaking thins on .mdx files
https://community.crowdin.com/t/broken-mdx-components-on-download/2912
https://community.crowdin.com/t/exclude-single-line-on-markdown-headers/2897

Any update?

I tried to wrap the text in theme components with <Translate></Translate> from @docusaurus/Translate, then ran docusaurus write-translations, and it worked.

Once the translation mechanism is created, we can develop the Polish language.


Bug Report: Low Battery Warning in the log

Describe The Bug:
The following Error is logged for my Motion Sensor that is low on battery:
[28/06/2023, 13:28:18] [Xfinity Home] Livingroom Motion: Unknown trouble detected!
[28/06/2023, 13:28:18] [Xfinity Home] Livingroom Motion: Please open an issue about this.
[28/06/2023, 13:28:18] [Xfinity Home] Livingroom Motion: [
{
"description": "Unknown trouble",
"name": "senPreLowBat",
"criticality": false,
"timeStamp":<PHONE_NUMBER>875
}
]
This equates to the following message on the panel:
Livingroom Motion "Near Low Battery" (so it is like a pre-warning)
"The battery in your Livingroom Motion Sensor needs to be replaced soon"
To Reproduce:
Sensor with Low Battery
Expected behavior:
Output as a warning. Not sure what this would translate to in the HomeKit world.
Logs:
[28/06/2023, 13:28:18] [Xfinity Home] Livingroom Motion: Unknown trouble detected!
[28/06/2023, 13:28:18] [Xfinity Home] Livingroom Motion: Please open an issue about this.
[28/06/2023, 13:28:18] [Xfinity Home] Livingroom Motion: [
  {
    "description": "Unknown trouble",
    "name": "senPreLowBat",
    "criticality": false,
    "timeStamp":<PHONE_NUMBER>875
  }
]

Config:
Homebridge Xfinity plugin 3.3.0

Operating System:
Raspberian
Node Version:
18.16.0
NPM Version:
9.5.1
Homebridge Version:
4.50.4
Plugin Version:
3.3.0

Fixed version 3.4.0, please let me know if it worked before closing this issue


Could we move this project to rom-rb org?

Hey! I think I've proposed this some time ago, but I'd like to bring this up again. Would you be interested in moving this repo to rom-rb org? The reason is better visibility of the project and increasing the chance that core devs will help with it. I just had a chat with my friend who was considering a dynamo adapter and he didn't find this one. We can of course just update the docs on the website and point to it, which would help, but it's still not the best solution. Right now there's rom-dynamo, with a couple forks, and this one. I think this is confusing and we'd all benefit if there was just one under rom-rb org, and this one seems like the most updated, production-ready one :)

@davidkelley @solnic personally I think that would be nice.  I just started trying to integrate rom & dynamodb into an application, and I first came across a couple other peoples implementations and/or forks of this project that didn't work.  It took me some digging around github before I stumbled upon this version which seems to be the most up to date, and thoroughly developed so far.


unable to uninstall atom-typescript

Error occurs when tries to uninstall the package from Settings
Uninstalling “atom-typescript” failed.Hide output…
Failed to delete atom-typescript: Does not exist

Closing this issue because same Issues right under


Updates to Transceiver-9: zr_laser_bias_current_test

Corrected the logic to get the opticalComponentName, in accordance with the YANG documentation.
In the previous logic the code was to get the optical component name by traversing through the parents of the PORT component, this would lead to no results. Hence changed it to, find the OPTICAL_CHANNEL comp first and match its parent against HARDWARE_PORT of the interface.
Current flow : PORT <-- TRANSCIEVER <-- OPTICAL_CHANNEL

Pull Request Functional Test Report for #2893 / ca827d8dab91743226add2e0a7c03e32f239df1e
Virtual Devices

Device
Test
Test Documentation
Job
Raw Log

Arista cEOS

TRANSCEIVER-9: Telemetry: 400ZR TX laser bias current telemetry values streaming.

Cisco 8000E

TRANSCEIVER-9: Telemetry: 400ZR TX laser bias current telemetry values streaming.

Cisco XRd

TRANSCEIVER-9: Telemetry: 400ZR TX laser bias current telemetry values streaming.

Juniper ncPTX

TRANSCEIVER-9: Telemetry: 400ZR TX laser bias current telemetry values streaming.

Nokia SR Linux

TRANSCEIVER-9: Telemetry: 400ZR TX laser bias current telemetry values streaming.

Openconfig Lemming

TRANSCEIVER-9: Telemetry: 400ZR TX laser bias current telemetry values streaming.

Hardware Devices

Device
Test
Test Documentation
Raw Log

Arista 7808

TRANSCEIVER-9: Telemetry: 400ZR TX laser bias current telemetry values streaming.

Cisco 8808

TRANSCEIVER-9: Telemetry: 400ZR TX laser bias current telemetry values streaming.

Juniper PTX10008

TRANSCEIVER-9: Telemetry: 400ZR TX laser bias current telemetry values streaming.

Nokia 7250 IXR-10e

TRANSCEIVER-9: Telemetry: 400ZR TX laser bias current telemetry values streaming.

Help

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
1949

Relevant Lines:
3515

💛  - Coveralls

Closing this as recent merge had similar changes


feat: enable compiled plugins

Add extism.CompiledPlugin, which may be provided as the wasm parameter to extism.Plugin.

(Tests will fail until we cut a new release of extism/extism!)

Thanks for the review! I tested via:
~/extism/extism-maturin $ git rev-parse --short HEAD
4db57de

~/extism/extism-maturin $ maturin build -i python3.11
🔗 Found cffi bindings
🐍 Using CPython 3.11 at<EMAIL_ADDRESS>to generate the cffi bindings
📡 Using build options bindings from pyproject.toml
💻 Using `MACOSX_DEPLOYMENT_TARGET=11.0` for aarch64-apple-darwin by default
   Compiling extism v0.0.0+replaced-by-ci (~/extism/runtime)
   Compiling extism-sys v0.0.0+replaced-by-ci (~/extism/extism-maturin)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.00s
💼 Using the existing header at ~/extism/target/header.h
📦 Built wheel to ~/extism/target/wheels/extism_sys-0.0.0+replaced.by.ci-py3-none-macosx_11_0_arm64.whl

~/extism/extism-maturin $ cd ../python-sdk

~/python-sdk $ rm -f uv.lock && uv add --force-reinstall ~/extism/target/wheels/extism_sys-0.0.0+replaced.by.ci-py3-none-macosx_11_0_arm64.whl

~/python-sdk $ uv run python -m unittest discover
.............
----------------------------------------------------------------------
Ran 13 tests in 1.738s

OK

I might run a libextism patch release tomorrow just to boot out those changes.


when the OS does not have /dev/gpiomem

when the OS does not have /dev/gpiomem
and if the application using rppal is packed in a snap
the library will return at: Err(e @ Error::DevGPIOMemPermissionDenied)
and never check if it has access to /dev/mem
This is happening because in a OS using snap (e.g. Ubuntu Core) as a packaging system you can have access to /dev/mem without having access to /dev/gpiomem because /dev/gpiomem does not exist. (see snap interfaces)
As a fix I suggest removing the lines: Err(e @ Error::DevGPIOMemPermissionDenied) => return Err(e);

Thanks for the suggested fix. Just to clarify, since I'm not familiar with Ubuntu Core/snap's security sandboxing - even though /dev/gpiomem doesn't exist, it returns a permission denied error instead of a file not found error?
In that case, could you check if std::path::Path::new("/dev/gpiomem").exists()) still returns false? Adding that check to map_devgpiomem() would fix your issue, while still allowing the permission denied error to be returned for situations where it's fixable (like misconfigured raspbian distros).

Ok.
I will be able to try on Monday to add std::path::Path::new("/dev/gpiomem").exists() in the snap and see if it works.
Either way I will get back to you with a reply.

Thanks! I may give Ubuntu Core a try as well in the coming days, but if I don't get around to it I look forward to your results.

I had some time to check out Ubuntu Core 16, and create a rust snap that uses rppal. While /dev/gpiomem exists and works fine if you have read/write permissions, an application installed through snap won't be able to open it, because /dev/gpiomem requires superuser privileges, and there doesn't seem to be an interface available that provides access.
It seems a bit odd, considering /dev/gpiomem was specifically added as a more secure GPIO interface that doesn't require access to /dev/mem. In Raspbian, non-privileged users do have access to /dev/gpiomem.
As a workaround I'm adding a fix that will try to open /dev/mem if /dev/gpiomem can't be accessed, and returns an error indicating permission issues for both devices if both of them fail. I'll have an updated release available within the next few days.

Thanks.


Addition of 2x2 Matrix in C

Addition of 2x2 Matrix in C -
It will add two 2x2 Matrix in C language -
Type of Issue -
Please add/delete options that are not relevant.

[x] Adding New Code

Programming Language
Please add/delete options that are not relevant.

[x] C

Self Check

Ask for issue assignment before making Pull Request.
Add your file in the proper folder
Clean Code and Documentation for better readability
Add Title and Description of the program in the file

:star2: Star it :fork_and_knife:Fork it :handshake: Contribute to it!
Happy Coding,

can i be assigned to this?

I have raised the issue so that it can be assigned to me.

i would like to contribute can u assign me

Can i please be assigned to this issue?

can i be assigned? I'm new to this Git. I want to contribute.

i like to contribute...can you assign to me

Please assign me this issue. @Gaurisha21  @div-bargali


Further API breakages in 1.10.0

Sorry folks, my issue yesterday (#1022) failed to catch the full suite of breakages we accidentally shipped in 1.10.0. I missed this at the time, but when we went to update another project we caught some more.
I finally decided to run SwiftNIO's check_no_api_breakages script, comparing 1.9.0 and 1.10.1. This is what else slipped through:
Checking SwiftProtobuf.json... ERROR
==============================
ERROR: public API change in SwiftProtobuf.json
==============================

/* Generic Signature Changes */

/* RawRepresentable Changes */

/* Removed Decls */

/* Moved Decls */

/* Renamed Decls */
Func Message.array(fromJSONString:options:) has been renamed to Func array(fromJSONString:extensions:options:)
Func Message.array(fromJSONUTF8Data:options:) has been renamed to Func array(fromJSONUTF8Data:extensions:options:)

/* Type Changes */
Func Message.array(fromJSONString:options:) has parameter 1 type change from SwiftProtobuf.JSONDecodingOptions to SwiftProtobuf.ExtensionMap
Func Message.array(fromJSONUTF8Data:options:) has parameter 1 type change from SwiftProtobuf.JSONDecodingOptions to SwiftProtobuf.ExtensionMap

/* Decl Attribute changes */

/* Fixed-layout Type Changes */

/* Protocol Conformance Change */

/* Protocol Requirement Change */

/* Class Inheritance Change */
Checking SwiftProtobufPluginLibrary.json... OK
done

This points out that we need the same patch as #1023 but for returning .array(fromJSONString:options:) and .array(fromJSONUTF8Data:options). This will require a 1.10.2.
Sorry about not running the full validation earlier. Perhaps we should consider integrating a variant of NIO's script to CI?

I'll get to this later today.
re validation script - if there is one we can use, please open an issue with details so we can track setting that up.  clearly something we should do.  😄

Sure, filed #1026.

Tagged and CocoaPods pushed.


PM5: Array for PalettedBlockArray must have exactly 16 defined entries

Version of PocketMine-MP: https://github.com/pmmp/PocketMine-MP/commit/8fd4918429651f01ba3b5440646496930bd40284
2022-12-27 [02:28:31.073] [AsyncWorker#1 thread/CRITICAL]: Error: "Array for PalettedBlockArray must have exactly 16 defined entries." (EXCEPTION) in "/home/container/plugins/VanillaGenerator-NG/src/muqsit/vanillagenerator/generator/OverworldGenerator" at line 69
--- Stack trace ---
  #0 /home/container/plugins/VanillaGenerator-NG/src/muqsit/vanillagenerator/generator/OverworldGenerator(69): OverworldGenerator->generateChunk(array[24], string[256] ................................................................................, int 783)
  #1 pmsrc/src/world/generator/PopulationTask(117): muqsit\vanillagenerator\generator\OverworldGenerator->generateChunk(object pocketmine\world\SimpleChunkManager#16, int 19, int 19)
  #2 pmsrc/src/world/generator/PopulationTask(88): pocketmine\world\generator\PopulationTask::setOrGenerateChunk(object pocketmine\world\SimpleChunkManager#16, object muqsit\vanillagenerator\generator\OverworldGenerator#12, int 19, int 19, null)
  #3 pmsrc/src/scheduler/AsyncTask(89): pocketmine\world\generator\PopulationTask->onRun()
  #4 (): pocketmine\scheduler\AsyncTask->run()
--- End of exception information ---

The generator does not work with PM5 at this moment, and I believe major changes are needed to support PM5. I will be trying to make this generator compatible with the new PM server soon in the future.

I'm really hoping for this to be fixed as soon as possible. Extremely important plugin for dozens of servers. 🙈

PM5 is still in beta, at NG we've slowly started to update our software. But it'll take time

The current latest release should provide enough support for PM5 to work, if you found any bugs in the extension, you can open another issue or create a PR :)


Cleanup settingsMapping from MeiliSearchService

Pull Request
What does this PR do?
Fixes #147
PR checklist
Please check if your PR fulfills the following requirements:

[x] Does this PR fix an existing issue?
[x] Have you read the contributing guidelines?
[x] Have you made sure that the title is accurate and descriptive of the changes?

bors merge

Thanks @norkunas


[WebUI/ScrapePoolList] Case-insensitive search of "Scrape Pools"

What this PR does / why we need it:

[PROBLEM] Searching Scrape Pool targets in web UI does not support case-insensitive matching
[FIX] This PR adds a case-insensitive search of Scrape Pool targets

Appropriate images are attached below:

:+1: Thanks!


Use click function in modal's child elements?

I have a custom modal template, but the button to close doesn't do anything on click and there are no errors in the console.

Close×

plunkr please - https://github.com/angular-ui/bootstrap#support

Plunkr: http://plnkr.co/edit/atEaIWsh6pXeDSFBFBaO?p=preview
Thanks karianna

But in the plnkr, it works ...

Here is a working plunkr: http://plnkr.co/edit/AWXNHPEDzhOOe0q7aBwO?p=preview
There are 2 issues with your code:

The function "close" is not defined
There exists a "$close" function which is defined in the tranclude controller. Therefore, it can not be called within the window template. It can be called from the modal template.

regards,


Allow clicking at x=0

I have set my bar width to 100% and defined a clickable area spanning the whole bar. However when I click in the leftmost corner the click is not registered. If I move my cursor one pixel to the right it works.

Can you give me the output of the polybar when you start it with -l info

Can confirm.
Debugging this a little, polybar definitely receives the click and warns me that there is No matching input area found. So definitely a polybar bug

Fixed the issue in #663


Reduce usage of Network in the public API

Minimize usage of the Network enum in the public API.
See #2225 for context, and https://github.com/rust-bitcoin/rust-bitcoin/pull/1291#discussion_r1492993788 for an interpretation of that long discussion.
Close: #2169

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

30 of 32 (93.75%)  changed or added relevant lines in 3 files are covered.
3 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.006%) to 83.852%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

bitcoin/src/address/mod.rs
15
16
93.75%

bitcoin/src/blockdata/constants.rs
7
8
87.5%

Files with Coverage Reduction
New Missed Lines
%

bitcoin/src/blockdata/constants.rs
3
95.59%

Totals

Change from base Build<PHONE_NUMBER>:
-0.006%

Covered Lines:
19472

Relevant Lines:
23222

💛  - Coveralls

Thanks, will try another approach at a later date.

Needs rebase.

Changes in force push:

Rebased on master.
Amended a few of the commit logs to improve the description and remove stale info.
Fixed one [slightly] incorrect usage of Params::MAINET to use an explicit reference.

Will wait to review til https://github.com/rust-bitcoin/rust-bitcoin/pull/2337 is in because the first many(?) commits seem to be out-of-date copies of the ones from that PR.

You are correct, don't know how that happened, process fail - converted to draft and mentioned what its on top of as I usually do. Thanks

See #2541 if "why is this not const" comes to your mind while reviewing.

Rebased and improved the commit logs of both patches because they were a bit stale.

Address::from_script is going to break for all codebases :)

This isn't man, it will keep working because of the AsRef<Params> for Network - to prove it I removed all the changes that swapped out network for params.

Added a unit test that shows all the calling conventions, an commented them as a well.

Oh, right. I was assuming they would need to & before the network param, but they don't even need to do that.

Yeah I thought we'd need an AsRef<Params> for &Network but turns out core provides
impl<T, U> AsRef<U> for &T where T: AsRef<U>, T: ?Sized, U: ?Sized;

Let's get this in!
After sleeping on it, BTW, I think AsRef is the correct trait here. The idea is that Network is a dumb enum representing an index into a set of &'static Paramses. And that other implementors will either want to do the same thing, or have some more complex struct which actually contains a Params and then as_ref will return a reference to the internal field.
One thing I'm a little confused about is why the example usage for AsRef takes a self instead of a &self, when you only need a reference in order to use the trait. We do the same thing so that we can accept Network rather than &Network, which makes some sense, but it feels weird and like it would potentially encourage unnecessary clones.

One thing I'm a little confused about is why the example usage for AsRef takes a self instead of a &self

I went digging for this but couldn't find it, which example are you refferirng to?

https://doc.rust-lang.org/std/convert/trait.AsRef.html#examples

One thing I'm a little confused about is why the example usage for AsRef takes a self instead of a &self, when you only need a reference in order to use the trait. We do the same thing so that we can accept Network rather than &Network, which makes some sense, but it feels weird and like it would potentially encourage unnecessary clones.

I don't see any code taking self. One or both of us is mixed up right now. For AsRef<T> the function call is as_ref(&self) -> &T
What am I missing?

I'm sorry, it takes s, not self. The function I am complaining about is is_hello and I don't understand why it takes a T by value when it only ever uses it as a reference.

oh I think they are just trying to demonstrate that String implements AsRef<str> ie, AsRef<str> does not take an &str because T is the return type


Stop swallowing "--" after the first one is processed by command parser

Previously, the command parser would swallow all "--" after the first
one. For me, this manifested itself in not allowing corral to be used
with lldb "corral exec -- lldb ponyc -- $(ponyc) -V=0 -o ./build/
./utility" since the second "--" is required to be passed to lldb.
This change is dependency for a PR being submitted to corral to allow
use of corral with lldb (for debugging ponyc itself).

Thanks @KittyMac,
Are there any tests that can be provided to verify that it works and most importantly that it won't get accidentally broken in the future?

@mfelsche I think you know the cli pretty well. Can you review this? Does this could as a changelog- changed, changelog - added or what?

@KittyMac Can you write up a nice "end user friendly" description of this change for the release notes and add them as a comment on this PR?

I see the cli tests now, I can add some when/if @mfelsche confirms the change is correct.
Guideline 10 of the standard says "The first -- argument that is not an option-argument should be accepted as a delimiter indicating the end of options. Any following arguments should be treated as operands, even if they begin with the '-' character."  The parser currently swallows all "--" after the first one, not allowing the arguments to be passed along verbatim.
So, end user friendly description might be:
"Fixed an issue where CommandParser was incorrectly handling cases when arguments contain multiple end-of-option delimiters"

So, if i understand this right, with this change, all tokens after a -- are interpreted as arguments.
If this is the intended behavior then all is good, i think.
A test showing that a second -- is indeed part of the arguments would be cool though.

This shouldnt be merged til after the 0.34.1 hot fix release that is happening tomorrow. I've marked "DO NOT MERGE" accordingly.

I'm removing the DO NOT MERGE tag 0.34.1 has been released.


Fix/Incorrect random generators.

I removed the loops which were probably incorrect. They decreased the generation space, so lowered the security of the library. Documentation is not added to the functions until underdocs  is ready. So this merge solves issue #27 partly.

Note: Coverage requirements are ignored as of now.

The new generators look good (compared to the previous ones), however, one thing should be noted.
I might be mistaken, but I think, that because of the mod operation, these generators cannot be considered uniform, as some values may occur with a higher probability than others. I'm not sure whether this is a real issue or not (as we're talking about minor differences regarding the probabilities).

Opened #35 to deal with the uniform issue, and merging this PR as the original issue is resolved.


Improved Ibis Import. When the ibis is now imported, only the pins the associated models will bi imported.

This will make the log much simple

LGTM.


Publish on PyPi

Could you please publish the current version (the one that fixes the issues with dataclass) on PyPi? PyPi contains an old version (August 2023). Thanks!

Are there any plans to publish the newest version on PyPi? Thanks!

Yep, I'm just away from home for a week or so. I'll do it when I get home
ASAP
On Mon, Dec 2, 2024, 16:27 Roque López @.***> wrote:

Are there any plans to publish the newest version on PyPi? Thanks!
—
Reply to this email directly, view it on GitHub
https://github.com/ivanp1994/PyMart/issues/4#issuecomment-2511847627,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AUDNGPOTFBGLPVWSWFEC6DD2DR36NAVCNFSM6AAAAABRXAML62VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMJRHA2DONRSG4
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Thanks!


Add simple config test framework

Add a simple test framework for configs.  Required making linter.ProcessFile public.

Looks great @moorereason, thanks very much for your work on this!

@moorereason I added a io.Writer to the Linter struct to be the target for ProcessFile()'s output. That way, the test functions you added can use io.Discard instead of writing to io.Stdout behind the scenes. https://github.com/cu-library/ezproxy-config-lint/commit/10ddd2911681d3a1ac2d397a57799c648b0bb505


Fail to get columns from Access Database with str table name

Environment

Python: 2.7.16
pyodbc: 4.0.27
OS: Microsoft Windows 10
DB: Access Database
driver: Microsoft Access Driver (*.mdb, *.accdb) 16.00.4513.10000

Issue
Seems similar to #506. Connecting to an Access database and then getting the columns by passing in a str literal which fails with TypeError: bad argument type for built-in operation and in some cases causes the application to crash. Passing a unicode table name seems to work fine. I assume this is a strictly python 2 issue.
connection = pyodbc.connect(u'UID=;DBQ=C:\\Testing\\pyodbc_test.accdb;DRIVER=Microsoft Access Driver (*.mdb, *.accdb);PWD=')
cursor = connection.cursor()
cursor.columns(table='Table1')

Associated SQL traces:
Passing unicode column name:
__init__        5668-228	ENTER SQLColumnsW
		HSTMT               0x0000000016E04EF0
		WCHAR *             0x0000000000000000 <null pointer>
		SWORD                       -3
		WCHAR *             0x0000000000000000 <null pointer>
		SWORD                       -3
		WCHAR *             0x000000000F143210 [      -3] "Table1\ 0"
		SWORD                       -3
		WCHAR *             0x0000000000000000 <null pointer>
		SWORD                       -3

Passing str column name:
__init__        1bcc-6320	ENTER SQLColumnsW
		HSTMT               0x0000000016F54EF0
		WCHAR *             0x0000000000000000 <null pointer>
		SWORD                       -3
		WCHAR *             0x0000000000000000 <null pointer>
		SWORD                       -3
		WCHAR *             0x00000000033B8B40 [      -3] "(\ 0"
		SWORD                       -3
		WCHAR *             0x0000000000000000 <null pointer>
		SWORD                       -3

And I have seen in another scenario with:
run_geo         56a4-55a0	ENTER SQLColumnsW
		HSTMT               0x00000258F8A82620
		WCHAR *             0x0000000000000000 <null pointer>
		SWORD                       -3
		WCHAR *             0x0000000000000000 <null pointer>
		SWORD                       -3
		WCHAR *             0x00000258FFFFFFFF <Bad null-terminated string!>
		SWORD                       -3
		WCHAR *             0x0000000000000000 <null pointer>
		SWORD                       -3

pyodbc_test.zip
I can provide the full trace output if necessary. Also attached is the database.

Passing a unicode table name seems to work fine.

Seeing as how Python_2 will ride into the sunset in ~2 months why not just use the workaround of passing a Unicode table name?

That is what I chose to do. Wanted to bring it up as it seems like the fix for #506 wasn't fully complete and this provided another test case. I am fine if you want to close given Python 2 sunset.


Update code render and format auto-generate list

Deploy Preview

Official Website

/assign

@angao Pls resolve the conflicts and review comments.

/lgtm
/approve


Add support for Chinese

Hi
I tried to add support for Chinese.
And my local test is OK.
Have a look.
Thank you.

You can find a fixe for testing.
It include some simplification.
fix-chinese-implementation.zip
g

@AirsQ btw this is a great job ;) Handling all this translations is a big task.

OK， I will try。

look in the zip, it's a fix from your branch.

@AirsQ i pushed a PR with the fix on your branch.


DataTypeString: remove asm code that most likely doesn't make sense for performance

No changes to prev. release.

After this change, the error in #4623 started to be visible in tests.

2019-03-08 16:45:57 00910_zookeeper_custom_compression_codecs_replicated: FAIL - return code 231
2019-03-08 16:45:57 Received exception from server (version 19.3.4):
2019-03-08 16:45:57 Code: 999. DB::Exception: Received from localhost:9000, ::1. Coordination::Exception. Coordination::Exception: Connection loss.

Flappy test.


[amazon-neptune] Add <IP_ADDRESS>, <IP_ADDRESS> and <IP_ADDRESS>

See https://docs.aws.amazon.com/neptune/latest/userguide/engine-releases.html.

https://github.com/endoflife-date/endoflife.date/pull/5296


Prepare for 0.15.3 release

Prep for a minor release needed by the Yoshi team.

Hmm can you triage the smoke test failures?

It looks like it has something to do with this experimental_features field (maybe it was removed?):
https://github.com/googleapis/artman/blob/fbde0386d7ebc697410ddf3c431549df10b00682/test/tasks/data/googleapis/google/pubsub/v1/pubsub_gapic.yaml#L79
@pongad is this related to what you were doing? I recall seeing some changes related to iam?

Do the failing artman commands pass if you ran them locally?

nope, failing locally too. I think it's because I didn't update the googleapis hash. That experimental_features flag seems to no longer be there. We'll see in a moment...

@andreamlin I think this is good to go now. Can you take another look?


hugo --minify breaks spaces in breadcrumb

When building a site with this template using the --minify option, some spaces are removed, which is especially noticeable in the breadcrumb at the top of the page. I wonder if this could be worked around somehow?

Thanks for your report! Please see https://github.com/thegeeklab/hugo-geekdoc/issues/81. I will at least include this in the documentation.

Ah, I should have checked existing issues more thoroughly. That's understandable, thanks!

I've got an idea and I have no clue if it would work because I didn't look at the codebase at all, but what if you were to replace spaces with other types of whitespace of equal width? Maybe they would get ignored by Hugo?

Sure, that might or might not work as expected but I dont really like to mess around with unicode chars in the theme. I still think most of the issues should be fixed upstream.


Trend of F1, R-value

Very amazing work and clean code! I have been trying to reproduce the result of your paper, and I have a question about the value of evaluation metrics during training.
I use timit dataset for training and found that F1, R-value achieve the value as paper reported very quickly (in 5 epochs), and then just fluctuate around at certain value as shown below.

Is this a normal situation?

Hi @ericwudayi, thanks for the kind words! Indeed, for TIMIT the model converges very fast.


Replace concurrently with tsc-watch and a Procfile

Bumps version of Parcel to fix https://github.com/sourcegraph/sourcegraph-basic-code-intel/issues/130
I'm more comfortable with goreman and Procfiles than concurrently
I couldn't get concurrently to show prefixes and color

https://www.npmjs.com/package/foreman says it shuts down the app when one process exits with a nonzero code, but it doesn't seem to actually do that. goreman shuts down properly.
I removed fsevents (by removing the only dependent package chokidar-infanticide-cli) and that didn't fix the CPU usage issue.

It's actually parcel which is using up lots of CPU. Parcel 2 might fix this https://medium.com/@devongovett/parcel-2-0-0-alpha-1-is-here-8b160c6e3f7e

But we use Parcel in sourcegraph/sourcegraph too and it doesn't cause high CPU there, so it can't be Parcel v1's fault.
Again, I think we want to use fsevents. It is the native binding to the native macOS file watcher. Not using fsevents causes high CPU usage, because it then needs to do polling.
My sense is still that dependencies are outdated. Did you try upgrading? What steps did you take?

I upgraded from Parcel 1.10.3 -> 1.12.3 and I think that added fsevents to yarn.lock and fixed the CPU usage problem.
To do that, I dropped all version constraints from package.json and completely regenerated yarn.lock, then added back a few relevant constraints.

I'd like to merge this in, any other comments?

@efritz Would you prefer tsc-watch and a Procfile (like the Sourcegraph app)?

I have no other comments than what I said above:

Imo it's a little weird to require installation of Go and a Go tool to develop on / contribute to a TypeScript project.

If you do want to go with this, please add instructions to the README for contributors how to build the repo / install the needed tools.


Parameter check failed at: runtime/api/executionContext.cpp::enqueueInternal::322, condition: bindings[x] != nullptr

When i run "./build/segment ./config/config.yaml", i get an Error "[E] [TRT] 3: [executionContext.cpp::enqueueInternal::322] Error Code 3: Internal Error (Parameter check failed at: runtime/api/executionContext.cpp::enqueueInternal::322, condition: bindings[x] != nullptr)", and what maybe the reason?
If i get the right ONNX and tensorrt_model_bin?
This is my output information of running "build_model" and "demo":
./build/build_model ./config/config.yaml
~/Solov2-TensorRT-CPP/cmake-build-debug/build_model ./config/config.yaml
config_file:./config/config.yaml
createInferBuilder
[05/25/2022-22:57:19] [I] [TRT] [MemUsageChange] Init CUDA: CPU +299, GPU +0, now: CPU 301, GPU 309 (MiB)
createNetwork
createBuilderConfig
createParser
parseFromFile:~/Solov2-TensorRT-CPP/ONNX/SOLOv2_light_R34.onnx
[05/25/2022-22:57:19] [I] [TRT] ----------------------------------------------------------------
[05/25/2022-22:57:19] [I] [TRT] Input filename:  ~/Solov2-TensorRT-CPP/ONNX/SOLOv2_light_R34.onnx
[05/25/2022-22:57:19] [I] [TRT] ONNX IR version:  0.0.4
[05/25/2022-22:57:19] [I] [TRT] Opset version:    11
[05/25/2022-22:57:19] [I] [TRT] Producer name:    pytorch
[05/25/2022-22:57:19] [I] [TRT] Producer version: 1.3
[05/25/2022-22:57:19] [I] [TRT] Domain:
[05/25/2022-22:57:19] [I] [TRT] Model version:    0
[05/25/2022-22:57:19] [I] [TRT] Doc string:
[05/25/2022-22:57:19] [I] [TRT] ----------------------------------------------------------------
[05/25/2022-22:57:19] [W] [TRT] onnx2trt_utils.cpp:364: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
input shape:input (1, 3, 384, 1152)
output shape:cate_pred (3872, 80)
enableDLA
buildEngineWithConfig
[05/25/2022-22:57:20] [I] [TRT] [MemUsageSnapshot] Builder begin: CPU 664 MiB, GPU 671 MiB
[05/25/2022-22:57:21] [I] [TRT] [MemUsageChange] Init cuBLAS/cuBLASLt: CPU +70, GPU +68, now: CPU 822, GPU 1012 (MiB)
[05/25/2022-22:57:21] [I] [TRT] [MemUsageChange] Init cuDNN: CPU +0, GPU +10, now: CPU 822, GPU 1022 (MiB)
[05/25/2022-22:57:21] [W] [TRT] Detected invalid timing cache, setup a local cache instead
[05/25/2022-22:57:24] [I] [TRT] Some tactics do not have sufficient workspace memory to run. Increasing workspace size may increase performance, please check verbose output.
[05/25/2022-22:58:39] [I] [TRT] Detected 1 inputs and 13 output network tensors.
[05/25/2022-22:58:39] [I] [TRT] Total Host Persistent Memory: 274640
[05/25/2022-22:58:39] [I] [TRT] Total Device Persistent Memory: 83921920
[05/25/2022-22:58:39] [I] [TRT] Total Scratch Memory: 0
[05/25/2022-22:58:39] [I] [TRT] [MemUsageStats] Peak memory usage of TRT CPU/GPU memory allocators: CPU 158 MiB, GPU 675 MiB
[05/25/2022-22:58:39] [I] [TRT] [MemUsageChange] Init cuBLAS/cuBLASLt: CPU +0, GPU +8, now: CPU 1298, GPU 1635 (MiB)
[05/25/2022-22:58:39] [I] [TRT] [MemUsageChange] Init cuDNN: CPU +0, GPU +8, now: CPU 1298, GPU 1643 (MiB)
[05/25/2022-22:58:39] [I] [TRT] [MemUsageChange] Init cuBLAS/cuBLASLt: CPU +0, GPU +0, now: CPU 1298, GPU 1627 (MiB)
[05/25/2022-22:58:39] [I] [TRT] [MemUsageChange] Init cuBLAS/cuBLASLt: CPU +0, GPU +0, now: CPU 1297, GPU 1611 (MiB)
[05/25/2022-22:58:39] [I] [TRT] [MemUsageSnapshot] Builder end: CPU 1210 MiB, GPU 1381 MiB
serializeModel
done
Process finished with exit code 0

./build/demo ./config/config.yaml
~/Solov2-TensorRT-CPP/cmake-build-debug/segment ./config/config.yaml
config_file:./config/config.yaml
[05/25/2022-23:35:10] [I] [TRT] [MemUsageChange] Init CUDA: CPU +298, GPU +0, now: CPU 411, GPU 309 (MiB)
[05/25/2022-23:35:11] [I] [TRT] Loaded engine size: 81 MB
[05/25/2022-23:35:11] [I] [TRT] [MemUsageSnapshot] deserializeCudaEngine begin: CPU 411 MiB, GPU 309 MiB
[05/25/2022-23:35:22] [I] [TRT] [MemUsageChange] Init cuBLAS/cuBLASLt: CPU +2140, GPU +980, now: CPU 2804, GPU 1731 (MiB)
[05/25/2022-23:35:22] [I] [TRT] [MemUsageChange] Init cuDNN: CPU +0, GPU +10, now: CPU 2804, GPU 1741 (MiB)
[05/25/2022-23:35:22] [I] [TRT] [MemUsageChange] Init cuBLAS/cuBLASLt: CPU +0, GPU +0, now: CPU 2804, GPU 1725 (MiB)
[05/25/2022-23:35:22] [I] [TRT] [MemUsageSnapshot] deserializeCudaEngine end: CPU 2804 MiB, GPU 1725 MiB
[05/25/2022-23:35:22] [I] [TRT] [MemUsageSnapshot] ExecutionContext creation begin: CPU 2804 MiB, GPU 1725 MiB
[05/25/2022-23:35:22] [I] [TRT] [MemUsageChange] Init cuBLAS/cuBLASLt: CPU +0, GPU +8, now: CPU 2804, GPU 1733 (MiB)
[05/25/2022-23:35:22] [I] [TRT] [MemUsageChange] Init cuDNN: CPU +0, GPU +8, now: CPU 2804, GPU 1741 (MiB)
[05/25/2022-23:35:22] [I] [TRT] [MemUsageSnapshot] ExecutionContext creation end: CPU 2811 MiB, GPU 2166 MiB
[05/25/2022-23:35:23] [E] [TRT] 3: [executionContext.cpp::enqueueInternal::322] Error Code 3: Internal Error (Parameter check failed at: runtime/api/executionContext.cpp::enqueueInternal::322, condition: bindings[x] != nullptr
)
terminate called after throwing an instance of 'c10::Error'
what():  CUDA error: invalid argument
Exception raised from getDeviceFromPtr at ../aten/src/ATen/cuda/CUDADevice.h:13 (most recent call first):
frame #0: c10::Error::Error(c10::SourceLocation, std::__cxx11::basic_string<char, std::char_traits, std::allocator >) + 0x69 (0x7f30d25c1b29 in ~/NVIDIA/libtorch/lib/libc10.so)
frame #1: c10::detail::torchCheckFail(char const*, char const*, unsigned int, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&) + 0xd2 (0x7f30d25beab2 in /home/cqyd/NVIDIA/libtorch/lib/libc10.so)
frame #2:  + 0x36d1ea7 (0x7f306f824ea7 in ~/NVIDIA/libtorch/lib/libtorch_cuda.so)
frame #3:  + 0x7c87c (0x559bd949387c in ~/Solov2-TensorRT-CPP/cmake-build-debug/segment)
frame #4:  + 0x7cdf1 (0x559bd9493df1 in ~/Solov2-TensorRT-CPP/cmake-build-debug/segment)
frame #5:  + 0x7d2a7 (0x559bd94942a7 in ~/Solov2-TensorRT-CPP/cmake-build-debug/segment)
frame #6:  + 0x7dff8 (0x559bd9494ff8 in ~/Solov2-TensorRT-CPP/cmake-build-debug/segment)
frame #7:  + 0x7e0b2 (0x559bd94950b2 in ~/Solov2-TensorRT-CPP/cmake-build-debug/segment)
frame #8:  + 0x79af5 (0x559bd9490af5 in ~/SOLOV2model/Solov2-TensorRT-CPP/cmake-build-debug/segment)
frame #9:  + 0x84b4d (0x559bd949bb4d in ~/SOLOV2model/Solov2-TensorRT-CPP/cmake-build-debug/segment)
frame #10:  + 0x84827 (0x559bd949b827 in ~/Solov2-TensorRT-CPP/cmake-build-debug/segment)
frame #11:  + 0x16f77 (0x559bd942df77 in ~/Solov2-TensorRT-CPP/cmake-build-debug/segment)
frame #12: __libc_start_main + 0xf3 (0x7f306b82c083 in /lib/x86_64-linux-gnu/libc.so.6)
frame #13:  + 0x1606e (0x559bd942d06e in ~/Solov2-TensorRT-CPP/cmake-build-debug/segment)
Process finished with exit code 134 (interrupted by signal 6: SIGABRT)

According to "Error Code 3: Internal Error (Parameter check failed at: runtime/api/executionContext.cpp::enqueueInternal::322, condition: bindings[x] != nullptr",  I guess there some problems with the ONNX model .

Try a predefined model:baidudisk, fetch code:qdsm


where can i get the Paris StreetView datasets?

I want to train it by myself,but i don't know how to download the datasets.can you give me a link? @leehomyc

You can request from Deepak Pathak -- the author of Context Encoders.

ok~thx


Rename Groups.CAMUNDA_ADMIN to Groups.OPERATON_ADMIN

I’ve noticed that while class names throughout the code have been renamed, the constants haven’t been updated. Should these be renamed as well? I think it would make sense for consistency.
For example:
https://github.com/operaton/operaton/blob/9cc4fd7148be00920acc4a063afc5fdda91160d1/engine/src/main/java/org/operaton/bpm/engine/authorization/Groups.java#L26

Hi @hauptmedia, you raised a good point, here. Some of the renamings were not 100% accurate.
What worries me a little more in the linked example (and what slipped by us in the initial renaming), that renaming the camunda-admin group to operaton-admin might break existing instances, as the group name is also saved in the database and then diverges 🤔

Yes we need to migrate this in the database. Perhaps we can add an SQL script for the migration.
It's a little bit more tricky with external auth configured (ldap, keycloak). We changed the keycloak plugin code that system groups can be defined using roles (vs "normal" groups being just keycloak groups). So we had to change the realm role name to make this work again.

So do we have a consent for renaming this? This is a breaking change for the Keycloak plugin and it would be cool if we can decide on this before BETA-2 release

We do have consent on renaming the variable names, yes!

Already prepared the keycloak plugin for it, now waiting for merge and release of beta-2 => https://github.com/hauptmedia/operaton-keycloak/commit/e4d47b6d214d42439a780a47f395408607fcd920

Fixed by #207


X-Address not supported in iCloud feed

Steps to reproduce

Create an iCloud calendar event with an address
Subscribe Alamanack to the public iCloud calendar feed

I believe this is now fixed in #42.


Habit Tracker App in Flutter

An app that allows users to add, delete and edit habits and track them through their monthly heatmap. I will also be adding an offline database (Hive) to make it beginner friendly.
(I am a GSSoC '24 Contributor and can work on this quickly)

Add the github link of the project here.

@ashitaprasad https://github.com/vamzx/Habit-Tracker
Please let me know if you need any other changes added, I will work on them immediately

Similar projects are already present in the list.


Doesn't compile in Windows - VS2015

I was trying the addon in VS2015 (of 0.9 is being optimized for that upcoming version) and there are several instances of this error
Error	C2065	'uint': undeclared identifier	example_elements_options	C:\Users\drakko\Documents\ofx_090\addons\ofxGuiExtended\src\ofxTabbedPages.cpp	233

It happens in 32 and 64 bits compilations. Changing the type of int solves the compiler error.

Should work now?

Yep it compiles correctly now.


url part of footnotes and links shall not be checked

What does this PR accomplish?

🩹 Bug Fix

@laysauchoa  you should be able to push to this branch directly
Ref #102 .
Closes #97.
Changes proposed by this PR:

Notes to reviewer:

📜 Checklist

[x] Works on the ./demo sub directory
[x] Test coverage is excellent and passes
[x] Documentation is thorough

Once this is merged there will be a v0.4.4 release


Change the types of AkdLabel and AkdValue to be an array of bytes.

https://github.com/novifinancial/akd/issues/104
Previously, these values were traded around as String values for convenience of readability. This change moves these values to Vec<u8> to reflect that these are intended as arbitrary blobs of bytes.
The POC continues to traffic in strings since it's a demonstration meant for the command line, where the readability is more convenient.
Testing
% cargo test
% cargo fmt
% cargo clippy
% cargo bench --features bench --no-run

% cd poc
% cargo run
Please enter a command
> [00:00:00.036] (70000fa7d000) INFO   Starting the verifiable directory host (directory_host:59)
publish banana green
[00:00:08.006] (70000f87a000) INFO   Retrieved 0 previous user versions of 1 requested (directory:98)
[00:00:08.006] (70000f87a000) INFO   Starting database insertion (directory:155)
[00:00:08.100] (70000f87a000) INFO   Preload of tree (10 objects loaded), took 0.093771548 s (append_only_zks:198)
[00:00:08.232] (70000e056000) INFO   Cache hit since last: 63, cached size: 18 items (timed_cache:52)
[00:00:08.232] (70000e056000) INFO   Transaction writes: 0, Transaction reads: 0 (transaction:78)
[00:00:08.239] (70000e056000) INFO   MySQL writes: 31, MySQL reads: 8, Time read: 0.118470512 s, Time write: 0.119331427 s
        Tree size: 7
        Node state count: 11
        Value state count: 3 (mysql:693)
Response: PUBLISHED 'banana' = 'green' in 0.256827742 s (epoch: 3, root hash: 487aa4a60b398ee51b90374a0865aac769d1222cfe6a023933b51edc732ca864)
Please enter a command
> publish banana yellow
[00:00:12.656] (70000f87a000) INFO   Retrieved 1 previous user versions of 1 requested (directory:98)
[00:00:12.656] (70000f87a000) INFO   Starting database insertion (directory:155)
[00:00:12.657] (70000f87a000) INFO   Preload of tree (6 objects loaded), took 0.000360711 s (append_only_zks:198)
[00:00:12.809] (70000e056000) INFO   Cache hit since last: 75, cached size: 28 items (timed_cache:52)
[00:00:12.810] (70000e056000) INFO   Transaction writes: 0, Transaction reads: 0 (transaction:78)
[00:00:12.815] (70000e056000) INFO   MySQL writes: 40, MySQL reads: 1, Time read: 0.01543748 s, Time write: 0.138823311 s
        Tree size: 11
        Node state count: 16
        Value state count: 4 (mysql:693)
Response: PUBLISHED 'banana' = 'yellow' in 0.174664147 s (epoch: 4, root hash: 6526a193ba85f40617cb2805f87df33d34405ffde8c3b84df8fe03067f86dc83)
Please enter a command
> lookup banana
Response: Lookup proof verified for user 'banana'
Please enter a command
> history banana
Response: GOT KEY HISTORY FOR 'banana'
Please enter a command
> x
[00:00:23.132] (10e138600) INFO   Exiting... (akd_app:439)

Hmm, clippy is running here with different params than I've used. It looks like it might be complaining about code outside my changes though?

Hmm, clippy is running here with different params than I've used. It looks like it might be complaining about code outside my changes though?

Ah yeah you might need to update your version of Rust. The one in the CI is always the latest version. You can update your local rust install with rustup (it's happened to me as well)


[lit-html] render issue: always have  added in front

Description
For using lit1, we can simply do templateResult.getHTML() to get the html;
However in lit2, we need to do
const div = document.createElement('div');
render(templateResult, div);
return div.innerHTML;

which will always give back <!---->templateResult
with <!---->in front, which results parsing issues later
Is this a bug? Why will the empty comment always be added to front? Please help! Thanks!

What is it you're trying to do?
Yes, we need to emit the marker comment nodes so that we know where in the DOM to update. If you're never updating the DOM you can remove these nodes.

I am trying to get the string out from the templateResult and set that string as mwc-formfield .label
But I always got <!---->labeltext
Currently I used div.innerHTML.replace('<!---->', ''); as workaround.

The reason I cannot use div.innerText is because I need to keep the html tags, for other use cases

Can you maybe explain why option.display would be a TemplateResult (and why you'd want to parse the label out of the TemplateResult rather than e.g. option carrying both label and display in a more structured form)?

I noticed that in lit1.0 TemplateResult has .getHTML() method, is that possible to also have that in 2.x?

No. We purposefully removed all behavior from TemplateResult to increase the ability for it to be used across copies and versions of lit-html.
You can get the strings and values and join them though. I'm still unsure of the overall reason here and whether there's a more straightforward way. Is it tru that you want the text of HTML tags, like a literal <div> to possibly appear in your label?

I use the text with HTML tags not only for the label here, but also other parts.... They share the code of getting text out of TemplateResult. If it's not doable, I will use the workaround of return div.innerHTML.replace('<!---->', '');
thanks!

Like I said, you can get the strings and values from a TemplateResult and join them.


[ALLUXIO-2564] Clean up service handler logging.

https://alluxio.atlassian.net/browse/ALLUXIO-2564
Follow up to #4801

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/13533/
Test PASSed.


Report and throw errors in production

Errors are not reported and displayed on production. This mr is based on https://github.com/area17/twill/issues/2540 issue and based on a discussion on discord https://discord.com/channels/811936425858695198/811986440569356308/1219656775125700748

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.7 out of 8 committers have signed the CLA.:white_check_mark: Tofandel:white_check_mark: ifox:white_check_mark: joyceverheije:white_check_mark: emanueljacob:white_check_mark: ouuan:white_check_mark: k-msalehi:white_check_mark: zeezo887:x: AidasKYou have signed the CLA already but the status is still pending? Let us recheck it.


OAK-D no intrinsic matrix

The original OAK-D camera has no intrinsic matrix calibration. Is it still supported ? RGB camera output works fine with python API, so camera is not a brick.
depthai-viewer error
Oak cam:  <depthai_sdk.oak_camera.OakCamera object at 0x7f350bf01750>
Failed to get device properties: There is no Intrinsic matrix available for the the requested cameraID

Reproduce
*OAK-D: https://shop.luxonis.com/products/oak-d
*Ubuntu 20.04.6 LTS
depthai-viewer --version
depthai-viewer 0.1.8 [rustc 1.74.1 (a28077b28 2023-12-04), LLVM 17.0.4] x86_64-unknown-linux-gnu b2c2c42, built 2024-03-01T21:18:41Z

@vitalijsfescenko  Interesting, thanks for reporting. You should be able to get it to work by calibrating the device using this procedure: https://docs.luxonis.com/en/latest/pages/calibration/?highlight=calibration
I will also fix the viewer so that if no intrinsics are found a sensible default is assumed - to not error out.
Ran the viewer on a calibrated OAK-D:

Thank you, after calibration it works


tests(ticdc): remove outdated integration test processor_panic

What problem does this PR solve?

Issue Number: ref #8132
What is changed and how it works?
The integration test of processor_panic injects a failpoint in old table pipeline code path, and simulate a resolved ts fallen back scenario, which won't happen in latest source manager and pull based sink mechanism.
This integration test is deprecated and we can remove it safely.
Check List
Tests

Unit test
Integration test

Questions
Will it cause performance regression or break compatibility?
Do you need to update user documentation, design documentation or monitoring documentation?
Release note
None

/run-all-tests

/run-integration-test

/run-kafka-integration-test

/merge

/run-kafka-integration-test

/run-kafka-integration-test


Help

Please help me to integrate your code for telegram bot

I can provide my project, and if you are ready to help make adjustments, we can call in any social network for a detailed discussion
Отправлено из мобильной Почты Mail.ru
понедельник, 27 марта 2023 г. в 15:04 +0300 от @.***  @.***>:

Closed  #62 .
—
Reply to this email directly,  view it on GitHub , or  unsubscribe .
You are receiving this because you authored the thread. Message ID:  <flynnoct/chatgpt-telegram-bot/pull/62/issue_event/8853390051 @ github . com>


polyfill for cancelAnimationFrame is broken

The pachTimer for AnimationFrame prevents animation requests to be cancelled.
This code does not write anything in console normally, but when angular2-polyfills.js is loaded, the callback is executed:
  var callback = function() {
    console.log("Done")
  }
  var i = window.requestAnimationFrame(callback);
  window.cancelAnimationFrame(i);

Looking at this code in browser.ts:
patchTimer(_global, 'request', 'cancelMacroTask', 'AnimationFrame');
patchTimer(_global, 'mozRequest', 'mozCancel', 'AnimationFrame');
patchTimer(_global, 'webkitRequest', 'webkitCancel', 'AnimationFrame');

Shouldn't it be 'cancel' on the first line, instead of 'cancelMacroTask'? That 'MacroTask' string seems out of place.


🧑💻 : Adding the contributors page to mention all the awersome people who have contributed to the website.

Adding the contributors page to mention all the awersome people who have contributed to the website.
Screenshots 📷
N/A

✅ Details to Include When Taking the Issue:
Name : Tarun Kumar
Participant Role: GSSOC, Hacktoberfest

Happy Contributing! 🚀
Wishing you all the best on your open source journey. Enjoy! 😎
@iamrahulmahato Assign this to me under gssoc 2024 ext and hacktoberfest i will work on this issue.

already present in readme file


return =

It's common to want to do some cleanup before actually returning a value.  Declaring a variable to store that value seems superfluous, and less declarative.  Let's use return like a variable we can assign to!
function f(list)
  for item of list
    if match item
      return = item
      break
  if (return.value) return += 1
  list.destroy()
  return
---
function f(list) {
  var returnValue
  for item of list
    if match item
      returnValue = item
      break
  if (returnValue) returnValue += 1
  list.destroy()
  return returnValue
}

[ ] return = foo changes the default return value for a bare return
[ ] return += foo modifies that value
[ ] return.value lets you query that value. So return = foo is shorthand for return.value = foo.
[ ] return? could test for whether a value has been specified i.e. shorthand for return.value?

Open question: If there's no explicit return at the end of a function using return =, should we return the last expression as usual, or should we return return.value?  For example, if there wasn't a bare return in the example above, we could plausibly compile to:
  return ref = list.destroy(), returnValue ?? ref

I'm not sure this is particularly intuitive, though.  Unlike JavaScript and Python, our functions don't have an implicit return at the end.  And I think it makes more sense for return = foo to set the default behavior of return, not implicit return.
On the other hand, I think we could override in the case of no implicit return, like so:
  list.destroy();
---
  list.destroy();
  return returnValue

My feeling is that if a return = is present anywhere inside a function it will override the implicit return. Otherwise you'd always need to change two places in code to switch between using return = and implicit returns.


[BUG] Incorrect deletion of gem rows on 'Skills' tab in skill chain

Steps:

Add new skill chain on 'Skills' tab

Delete name, level and quality of some gem in the middle (Cont Destr here)

After deletion of gem's level from p.2 row for gem 'Slower Proj' was also deleted

Fixed. As it turns out it wasn't actually deleting the last gem but simply failing to update the controls properly. Thanks for the detailed report!


Error reading gemini's memory file

I keep getting this error
gemini spawned.
selected examples:
miner_32: Hey! What are you up to?
grombo_Xx: What do you see?
Awaiting Google API response...
node:internal/process/promises:391
triggerUncaughtException(err, true /* fromPromise */);
^
GoogleGenerativeAIError: [400 Bad Request] Gemini API free tier is not available in your country. Please enable billing on your project in Google AI Studio.
at makeRequest (file:///C:/mindcraft-main/node_modules/@google/generative-ai/dist/index.mjs:210:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async generateContent (file:///C:/mindcraft-main/node_modules/@google/generative-ai/dist/index.mjs:534:22)
at async Gemini.sendRequest (file:///C:/mindcraft-main/src/models/gemini.js:29:24)
at async Prompter.promptConvo (file:///C:/mindcraft-main/src/agent/prompter.js:158:16)
at async Agent.handleMessage (file:///C:/mindcraft-main/src/agent/agent.js:104:23)
Node.js v20.16.0
Agent process exited with code 1 and signal null
Restarting agent...
Using chat settings: { model: 'gemini-1.5-pro', api: 'google' }
Using embedding settings: { api: 'google' }
Loading examples...
Examples loaded.
Logging in...
Error reading gemini's memory file: ENOENT: no such file or directory, open 'C:\mindcraft-main\bots\gemini\memory.json'
Mineflayer detected that you are using a deprecated event (physicTick)! Please use this event (physicsTick) instead.

The issue is directly in the first line. Gemini API free tier is not available in your country. Please enable billing on your project in Google AI Studio.
You need to pay for the use of the API


Take Home Test

I added new pandas function on the introduction to pandas for basic exploration

Thanks! I'll have a look it later.


Show population above SLC (National examination of grade 10 passed) by major field of study

This is part of number 2 in the data pipeline

@ravinepal
Can you provide a comment to this ticket with a link to the data for population above SLC by major field of study?

@cliftonmcintosh thanks. we'd like to. pls allow me to find data and get back to you soon.


Blank page in proxy pass

I have set up reverse proxy in apache for my local code-sever install.
Everything is okay till the login screen, but after that, I get nothing just blank screen. I checked the console log and its full of 200 errors.
Eg. I have set up code-server in local system with IP http://172.x.x.x:8000 and proxy-passed it to https://example.com/abc/test/code-server/
The command I used:

Where am I doing wrong?

then, in your browser, if you go to http://<IP_ADDRESS>:8000, don't you get vscode?

then, in your browser, if you go to http://<IP_ADDRESS>:8000, don't you get vscode?

Yes, I get vs code when I visit the local ip. But proxy-pass isn't working. I even tried with --auth none flag. I just get a blank page.
Console log:

Proxy pass settings:

apache-conf setting(found it somewhere in the issues):

I'm under huge pressure of getting this work done. Please help.

Do you have the mod_proxy_wstunnel module enabled?

Oh you've got a base path. You might just need to include it in the rewrite. Here's a configuration I just tested which seems to work:
<VirtualHost *:8080>
  ServerName localhost

  RewriteEngine On
  RewriteCond %{HTTP:Upgrade} =websocket [NC]
  RewriteRule /test/path/(.*) ws://localhost:8081/$1 [P,L]
  RewriteCond %{HTTP:Upgrade} !=websocket [NC]
  RewriteRule /test/path/(.*) http://localhost:8081/$1 [P,L]
</VirtualHost>

I tried that. Not working. I am getting the same error. After debugging I found something.
debug got message from vs code {"message":{"type":"options","id":"baQ06AJ0CeQaBICxDzAGSvf8","options":{"workbenchWebConfiguration":{"remoteAuthority":"<IP_ADDRESS>","logLevel":0},"remoteUserDataUri":{"$mid":1,"path":"/root/.local/share/code-server","scheme":"vscode-remote","authority":"<IP_ADDRESS>"},"productConfiguration":{"nameShort":"Code - OSS","nameLong":"Code - OSS","applicationName":"code-oss","dataFolderName":".vscode-oss","win32MutexName":"vscodeoss","licenseName":"MIT","licenseUrl":"https://github.com/Microsoft/vscode/blob/master/LICENSE.txt","win32DirName":"Microsoft Code OSS","win32NameVersion":"Microsoft Code OSS","win32RegValueName":"CodeOSS","win32AppId":"{{E34003BB-9E10-4501-8C11-BE3FAA83F23F}","win32x64AppId":"{{D77B7E06-80BA-4137-BCF4-654B95CCEBC5}","win32UserAppId":"{{C6065F05-9603-4FC4-8101-B9781A25D88E}","win32x64UserAppId":"{{C6065F05-9603-4FC4-8101-B9781A25D88E}","win32AppUserModelId":"Microsoft.CodeOSS","win32ShellNameShort":"C&ode - OSS","darwinBundleIdentifier":"com.visualstudio.code.oss","linuxIconName":"com.visualstudio.code.oss","licenseFileName":"LICENSE.txt","reportIssueUrl":"https://github.com/cdr/code-server/issues/new","urlProtocol":"code-oss","extensionAllowedProposedApi":["ms-vscode.references-view"],"commit":"28e91ba70cd70fa9adf3f2e3e3b87631b5667ecf","date":"2020-04-14T22:51:57.043Z","version":"1.43.2","extensionsGallery":{"serviceUrl":"https://extensions.coder.com/api","itemUrl":"","controlUrl":"","recommendationsUrl":""}},"nlsConfiguration":{"locale":"en","availableLanguages":{}},"commit":"28e91ba70cd70fa9adf3f2e3e3b87631b5667ecf"}}}
This is the debug log. Here, it is looking for directories(/root/.local/share/code-server) in <IP_ADDRESS>. But that is not the server in which it is installed. That is the main server to which it is proxy-passed.
How do i make it look into the directory in which it is installed?

The remote authority won't actually affect where it looks for the directory; all files and directories are only accessed on the local machine where code-server is running.
We always set the remote authority to the host header so that's just what your proxy is providing to code-server. I think the only thing it's used for is setting cookies but it won't be used if it's an IP address so in your case it shouldn't have any effect.
Were you able to confirm whether you have the mod_proxy_wstunnel module enabled? So far that's the only other way I've been able to replicate the issue.

I also have this issue using a base-path behind a traefik proxy. It worked fine prior to v3.1. The web debugger is full of errors due code-server looking for dependencies at the root path; ignoring the base-path prefix.

For Traefix this might help: https://github.com/cdr/code-server/issues/1608#issuecomment-627109454

I had the same issue with nginx when just using the basic proxy_pass option alone. Got it working with with:
location / {
      proxy_pass http://localhost:8000;
      proxy_http_version 1.1;
      proxy_set_header Upgrade $http_upgrade;
      proxy_set_header Connection "Upgrade";
      proxy_set_header Host $host;
  }

I had the same issue with nginx when just using the basic proxy_pass option alone. Works with:
location / {
      proxy_pass http://localhost:8000;
      proxy_http_version 1.1;
      proxy_set_header Upgrade $http_upgrade;
      proxy_set_header Connection "Upgrade";
      proxy_set_header Host $host;
  }

Did you try doing that for a sub directory?

It's unlikely this is a bug with code-server.
Can you try to follow our setup guide with caddy and see if you can get it working?
See https://github.com/cdr/code-server/blob/master/doc/guide.md
If not I'll reopen.

I'm having this issue as well with code server using apache

@martiiinthomas It's very likely you don't have apache configured correctly. Please see our configuration guide.
https://github.com/cdr/code-server/blob/v3.7.4/doc/guide.md
We recommend caddy for easiest setup but there's also some docs on using nginx.

just found this issue because i was struggeling too but i got it to work. here is my apache proxy config:
Redirect "/ak22vf3/vscode" "/ak22vf3/vscode/"
<Location "/ak22vf3/vscode/">
    ProxyPass http://<IP_ADDRESS>:8080/
    ProxyPassReverse http://<IP_ADDRESS>:8080/
    ProxyPassReverse /
    RewriteEngine on
    RewriteCond %{HTTP:Upgrade} websocket [NC]
    RewriteCond %{HTTP:Connection} upgrade [NC]
    RewriteRule ^/?(.*) "ws://<IP_ADDRESS>:8080/" [P,L]
</Location>

this config needs mod_proxy, mod_proxy_wstunnel, mod_proxy_http and mod_rewrite to be enabled.
what i did to figure this out: i went to the before mentioned guide.md and basically went through the nginx documentation to decyper what that config does which made me realize, that I was missing the websocket proxy :)
@nhooyr i would suggest to add the above example to the setup guide. I was bound to apache because i needed some of its html rewrite functionalities for another container i was proxying :)


Use Playwright for web UI test automation

Summary
This modifies the GitHub Action CI so that instead of just building the frontend, it uses the Playwright web test framework to run integration tests on the production UI served statically from the backend.
It currently runs on each flavor of Python which may not be necessary. It also only runs on Chromium, but we could easily adopt WebKit and Firefox as desired.
I really wanted to package actually useful tests, but grokking the React component library to instrument the UI was delaying this PR too long, when someone else with more familiarity might be able to run with it.
Tests
I pushed my branch to my forked repo on GitHub and a simple home page test passed.
cc: @wangxiaoyou1993 @tommydangerous

Thanks for putting up the PR and sharing this UI testing framework.
@johnson-mage Could you take a look at it?

@erictse Thank you for setting this up! I think we can use this as a framework for adding tests on the UI. As you alluded to in the summary, we can just run the playwright tests one time, instead of on every Python version.
Can you add another job (e.g. test_backend_3.10_and_frontend) that runs the backend tests on Python 3.10 and runs the Playwright tests there with the additional yml steps as needed? Or split up the jobs another way as you see fit to only set up and run the Playwright tests once. In this separate job, I believe this step (- uses: actions/checkout@v3) only needs to be executed once.

@erictse feel free to tag me or re-request review when you'd like me to take another look at this PR

@johnson-mage Not ready yet, but I'll let you know.

@johnson-mage Ready to go!
I did not opt to set up a separate job for frontend tests since I wanted to avoid code duplication where we run into trouble with changes not occurring in both jobs. Instead, I just have the Python 3.10 variant executing the web UI tests.
When the tests are run locally (such as by the VS Code Playwright plugin) or using yarn playwright test, Playwright will spin up a dev server. The GitHub Action will solely rely on the Python server to serve static frontend code, since it is closest to production.
I wrote a couple Playwright tests to verify that Mage pipeline creation worked. At first, they were mysteriously failing, but using Playwright's tracing ability, I was able to narrow it down to the usage statistics modal dialog, which I decided would be most cleanly dealt with when project is created in the CI.


preloadedState error in store.ts?

Fixed with this:
const store = configureStore({
  reducer: rootReducer,
  preloadedState: preloadedState as Partial<{ settings: never; queues: never; tasks: never; groups: never; servers: never; schedulerEntries: never; snackbar: never; queueStats: never; redis: never; metrics: never; }>,
});

...Now presented with this in browser:


fix(rpc): return eth_call fee errors as invalid params

return invalid params error code if eth_call request misconfigured

Codecov Report

Merging #1559 (7ce63b3) into main (41748e8) will decrease coverage by 53.54%.
The diff coverage is 0.00%.

: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
@@             Coverage Diff             @@
##             main    #1559       +/-   ##
===========================================
- Coverage   75.10%   21.56%   -53.54%
===========================================
  Files         371      371
  Lines       43347    43347
===========================================
- Hits        32554     9349    -23205
- Misses      10793    33998    +23205

Flag
Coverage Δ

integration-tests
21.56% <0.00%> (+0.01%)
:arrow_up:

unit-tests
?

Flags with carried forward coverage won't be shown. Click here to find out more.

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


resolve issue 4296

Description
Fix https://github.com/Azure/autorest.csharp/issues/4296

propagate encode information to each Union variant

Checklist
To ensure a quick review and merge, please ensure:

[ ] The PR has a understandable title and description explaining the why and what.
[ ] The PR is opened in draft if not ready for review yet.

If opened in draft, please allocate sufficient time (24 hours) after moving out of draft for review

[ ] The branch is recent enough to not have merge conflicts upon creation.

Ready to Land?

[ ] Build is completely green

Submissions with test failures require tracking issue and approval of a CODEOWNER

[ ] At least one +1 review by a CODEOWNER
[ ] All -1 reviews are confirmed resolved by the reviewer

Override/Marking reviews stale must be discussed with CODEOWNERS first

micorsoft/typespec pr: https://github.com/microsoft/typespec/pull/3200


[Working again] New CI

Migrates CI runners to use AWS
Some notes:

Use [self-hosted, intel-cpu, 8-cpu, ci] to utilize a CPU runner. These aren't stored in our local runners and are spun up by demand, hence why they do not show up in settings
Use [self-hosted, single-gpu, nvidia-gpu, t4, ci] for GPU runners. (Don't try and specify/fine-tune nightly vs main CI runners, just leave it as CI)
In general now these CI runners assume no persistent storage to make things easier

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.


--group-ids is deprecated

[Enter feedback here]
see subject
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 8785b87f-73f1-ea2d-cbfd-6b598e78d274
Version Independent ID: 62741c33-8c83-fe9e-46fd-1c24fb56250a
Content: Private Link - Azure CLI - Azure Database for MySQL
Content Source: articles/mysql/howto-configure-privatelink-cli.md
Service: mysql
GitHub Login: @kummanish
Microsoft Alias: manishku

@christiankuhtz
Thanks for your feedback! We will investigate and update as appropriate.

@christiankuhtz The document shows where to get the group ids from https://docs.microsoft.com/en-us/cli/azure/network/private-endpoint?view=azure-cli-latest#az-network-private-endpoint-create.
Please check if this is now working for you and get back to us.

that's not what i was referring to. --group-id is fine, but the doc mentions --group-ids which elicits a deprecation warning from azure cli. the doc needs to be updated.

@kummanish Please check the feedback and edit the document if needed. We have assigned this case to you.

Hi, I have merged the changes with --group-id. Please close the issue.

Thanks @kummanish
@christiankuhtz  We are going ahead and closing this issue.


AttributeError: module 'imgaug.augmenters' has no attribute 'BlendAlphaSimplexNoise'

run.sh
# in this example, your images should be "$DATASET_ROOT/images-cropped/$IDENTITY_NAME/*.jpg"
DATASET_ROOT="/content/dataset"
IDENTITY_NAME="id00017"
MAX_BATCH_SIZE=8             # pick the largest possible, start with 8 and decrease until it fits in VRAM
CHECKPOINT_PATH="/content/latent-pose-reenactment/utils/latent-pose-release.pth"
OUTPUT_PATH="outputs/"       # a directory for outputs, will be created
RUN_NAME="tony_hawk_take_1"  # give your run a name if you want

# Important. See the note below
TARGET_NUM_ITERATIONS=230

# Don't change these
NUM_IMAGES=`ls -1 "$DATASET_ROOT/images-cropped/$IDENTITY_NAME" | wc -l`
BATCH_SIZE=$((NUM_IMAGES<MAX_BATCH_SIZE ? NUM_IMAGES : MAX_BATCH_SIZE))
ITERATIONS_IN_EPOCH=$(( NUM_IMAGES / BATCH_SIZE ))

mkdir -p $OUTPUT_PATH

python3 train.py \
    --config finetuning-base                 \
    --checkpoint_path "$CHECKPOINT_PATH"     \
    --data_root "$DATASET_ROOT"              \
    --train_split_path "$IDENTITY_NAME"      \
    --batch_size $BATCH_SIZE                 \
    --num_epochs $(( (TARGET_NUM_ITERATIONS + ITERATIONS_IN_EPOCH - 1) / ITERATIONS_IN_EPOCH )) \
    --experiments_dir "$OUTPUT_PATH"         \

!sudo bash /content/dataset/run.sh

PID 763 - 2021-03-26 01:46:58,894 - INFO - utils.load_config_file - Using config configs/finetuning-base.yaml
PID 763 - 2021-03-26 01:46:58,901 - INFO - utils.get_args_and_modules - Loading checkpoint file /content/latent-pose-reenactment/utils/latent-pose-release.pth
PID 763 - 2021-03-26 01:47:00,262 - INFO - utils.setup - Random Seed: 123
PID 763 - 2021-03-26 01:47:00,262 - INFO - train.py - Initialized the process group, my rank is 0
PID 763 - 2021-03-26 01:47:00,262 - INFO - train.py - Loading dataloader 'voxceleb2_segmentation_nolandmarks'
PID 763 - 2021-03-26 01:47:00,470 - INFO - dataloaders.common.voxceleb.get_part_data (train) - Determining the 'train' data source
PID 763 - 2021-03-26 01:47:00,470 - INFO - dataloaders.common.voxceleb.get_part_data (train) - Checking if '/content/dataset/images-cropped/id00017' is a directory...
PID 763 - 2021-03-26 01:47:00,471 - INFO - dataloaders.common.voxceleb.get_part_data (train) - Yes, it is; the only train identity will be 'id00017'
PID 763 - 2021-03-26 01:47:00,472 - INFO - dataloaders.common.voxceleb.get_part_data (train) - This dataset has 3 images
PID 763 - 2021-03-26 01:47:00,472 - INFO - dataloaders.common.voxceleb.get_part_data (train) - Setting `args.num_labels` to 1 because we are fine-tuning or the model has been fine-tuned
PID 763 - 2021-03-26 01:47:00,472 - WARNING - dataloader - Could not find the '.npy' file with bboxes, will assume the images are already cropped
PID 763 - 2021-03-26 01:47:00,473 - INFO - dataloaders.augmentation - Pixelwise augmentation: True
PID 763 - 2021-03-26 01:47:00,473 - INFO - dataloaders.augmentation - Affine scale augmentation: True
PID 763 - 2021-03-26 01:47:00,473 - INFO - dataloaders.augmentation - Affine shift augmentation: True
Traceback (most recent call last):
  File "train.py", line 129, in <module>
    dataloader_train = m['dataloader'].get_dataloader(args, part='train', phase='train')
  File "/content/latent-pose-reenactment/dataloaders/dataloader.py", line 28, in get_dataloader
    dataset = self.dataset.get_dataset(args, part)
  File "/content/latent-pose-reenactment/dataloaders/voxceleb2_segmentation_nolandmarks.py", line 40, in get_dataset
    augmenter = augmentation.get_augmentation_seq(args)
  File "/content/latent-pose-reenactment/dataloaders/common/augmentation.py", line 24, in get_augmentation_seq
    return ParametricAugmenter(args)
  File "/content/latent-pose-reenactment/dataloaders/common/augmentation.py", line 60, in __init__
    iaa.BlendAlphaSimplexNoise(
AttributeError: module 'imgaug.augmenters' has no attribute 'BlendAlphaSimplexNoise'

You must have not followed the setup instructions and so are running in an incompatible environment.


Fix: 276 - Add ability to set custom User Agent

It'd be useful to set a custom UA for identifying desktop apps. Additionally, some sites require UA spoofing to work.
What kind of change does this PR introduce? (check at least one)

[ ] Bugfix
[x] Feature
[ ] Code style update
[ ] Refactor
[ ] Documentation
[ ] Build-related changes
[ ] Other, please describe:

Does this PR introduce a breaking change? (check one)

[ ] Yes. Issue #___
[x] No

The PR fulfills these requirements:

x ] When resolving a specific issue, it's referenced in the PR's title (e.g. fix: #xxx[,#xxx], where "xxx" is the issue number)
[ ] A change file is added if any packages will require a version bump due to this PR per the instructions in the readme.

If adding a new feature, the PR's description includes:

[x] A convincing reason for adding this feature (to avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it)

Other information:

The Win32 Webview2 API does not support overriding the user agent yet.
The linux and winrt implementations still have to be tested.
@shirakaba mentioned in #276 that ideally it should be possible to update the user agent on the fly. This makes sense, but I do not know the best way to implement this functionality.
I still need to add a change file.

Update;
It works fine on macOS and Linux.
Windows do not support it in the current version and require webview2-1.0.864.35 +.
https://docs.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2settings2?view=webview2-1.0.864.35

adding a custom user-agent is actually a requirement for some servers such as Jira, which blocks requests from certain user-agents and so you must spoof yours
How can I test this PR out? Can I install it as a version with cargo?

@wusyong what you think if we merge it and keep windows noop and document it.

It's possible to do it on win32. Just need to update the webview2 crate.
I'll find some time open a PR there
https://docs.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2settings2?view=webview2-1.0.902.49

It's possible to do it on win32. Just need to update the webview2 crate.
I'll find some time open a PR there
https://docs.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2settings2?view=webview2-1.0.902.49

The binding are not updated
https://github.com/sopium/webview2/tree/master/webview2-sys/Microsoft.Web.WebView<IP_ADDRESS>8.41

That version still has method to set user agent.
If this is in hurry, I can merge this first and open the PR there later.

That version still has method to set user agent.
If this is in hurry, I can merge this first and open the PR there later.

it's not urgent, but the current binding does NOT expose it, it's been introduced in 1.0.864.35 who is 2 release after our current binding version.
Also sopium bindings, hasn't been updated since April so it's something we should consider.
Should we want to keep going like this?
PS; I started to work on sopium PR to update to latest version but didn't had the time to finish.

fork the bindings? april -> aug is a sign of scary bus factor.

fork the bindings? april -> aug is a sign of scary bus factor.

https://github.com/sopium/webview2/tree/master/webview2-sys

https://github.com/sopium/webview2/commit/73732007c24625d2c44f2e9bd33d13e36391d26e
It's not even using modern rust in the CI.

I could help updating the crate.
Tbh the version is not really that outdated imho.
This crate really helps us a lot, I'll try my best to contribute first.
If the author is too busy, we could make a soft fork after it (and switch back once there's updates).

I could help updating the crate.
Tbh the version is not really that outdated imho.
This crate really helps us a lot, I'll try my best to contribute first.
If the author is too busy, we could make a soft fork after it (and switch back once there's updates).

Please see https://github.com/tauri-apps/tauri/issues/2570#issuecomment-913143578
That’s why I want us to keep the binding to the latest version.
MS is moving fast, we need to follow.

Superseded by #464
Thanks for your contribution.


Allow set standup time relative to UTC

Did some changes for jshint and eslint, but the most important thing is that you can set standup time relative to UTC.

This is awesome - thanks so much! Sorry it took a while for me to merge it.