use bpftrace uprobe get arguments,arg0 always get my second argument,I don't know why?

according to pictures,arg0 should be the base,arg0 value is 5.arg1 should be the exponent,arg1 value is 4.
I test a lot of input,arg0 always get my second argument.
I don't know why,please reply me.thank you!

In short, it is impossible to read floating-point arguments.
arg0, arg1, ... read arguments based on a calling convention. On x86, the calling convention is

The first six integer or pointer arguments are passed in registers RDI, RSI, RDX, RCX, R8, R9 [...], while XMM0, XMM1, XMM2, XMM3, XMM4, XMM5, XMM6 and XMM7 are used for the first floating point arguments.
https://en.wikipedia.org/wiki/X86_calling_conventions#System_V_AMD64_ABI

So, registers are different for integer or pointer arguments and floating point arguments. I guess other architectures are the same. arg0, arg1, ... are for accessing integer or pointer arguments. bpftrace cannot access floating pointer registers. I believe there is no kernel support for it.
For the same reason, when using uretprobe, it is impossible to get a return value using retval if the value is a floating-point number.

thank you for answering me.
but when we are tracing some issues,no support for floating pointer will be some fault,I think.

I guess the reason for uprobe not supporting floating values is uprobe is based on kprobe and kernel does not use floating values.
It's a bit tricky, but if you can use USDT, it is possible to store a floating value as a long long value. For example:
#include <stdio.h>
#include <sys/sdt.h>

int main(){
    double a = 10.0;

    union {
       long long l;
       double d;
    } u = {.d = a};
    DTRACE_PROBE1(test, probe, u.l);

    return 0;
}

then
sudo ./src/bpftrace -e 'usdt:./a.out:test:probe { printf("arg: %016llx\n", arg0); }' -c ./a.out
Attaching 1 probe...
arg:<PHONE_NUMBER>000000

I wonder if bpftrace should support %f formatting in printf.

The usdt is very helpful,but this code in my project,Does this code affect performance？

The overhead of USDT itself is the same as the upobe (more precisely, USDT is implemented using uprobe). That is, there is overhead only when tracing and the overhead depends on how much this USDT probe fires and what BPF program attached to the probe does. However, in the above example, there is also overhead due to the data preparation for USDT. In other words,
    union {
       long long l;
       double d;
    } u = {.d = a};

this part is executed no matter if tracing is enabled or not. I guess the overhead is negligible in this example, but if you want to do more complicated data processing, you can use USDT semaphore to see if the program is being traced and run the code for tracing only at the moment. The example of USDT semaphore is https://github.com/iovisor/bpftrace/blob/master/tests/testprogs/usdt_semaphore_test.c

OK,thank you very much!


Installation doesn't check if the port specified is in use

Took me quite some time to figure out that the port I had specified (9000) was being used by an fcgi server.
It would be nice to have gogs try and see if the port is available and cry if it's not.

Thanks your feedback!
Gogs does print an error message if it fails to listen on given address and port. I think you just ignored the logs.

Yes, it does. But at boot time only, not when we have started it and are going through initial installation.

I see, I got your point now!

Hmm... I'm losing idea how to fix this. Any thoughts?

@Unknwon When we specify a port during installation, it should try to listen on that port, if it can't it should not let the user proceed

:D Glad you're still here.
Please see https://github.com/gogits/gogs/blob/master/cmd/web.go#L59
At some point I've implemented this.

That's awesome! Thanks!

:tada:


Does it also work for classification recogonition?

Seems very intuitive, I wonder whether you have tried it on images classification tasks?

No, we only examine it on video classification tasks at present.


Why can't I copy?

Yeah, basically I was wondering why can't I use .clone() function on the Client struct? Is there a main reason you didn't implement the Copy or Clone trait on it?

Mainly just did it like this because of simplicity, and not having to wrap the inner connection manager in an Arc<Mutex<ConnectionManager>>.

Fixed with 84de596 and crate version 0.3.0


Not working in new version on MacOS

Since the new release 0.7.4 the ArrowNavigation plugin isn't working anymore. Probably due the change of path structure and added zip feature.

Previously, files were located by their path, say C:\test.txt. This has now become file://C:/test.txt.

installation error:
Command 'InstallPlugin' raised error.

Traceback (most recent call last):
  File "fman/impl/plugins/plugin.py", line 270, in _run_in_thread
  File "/Applications/fman.app/Contents/Resources/Plugins/Core/core/commands.py", line 1165, in __call__
    dest_dir = self._install_plugin(repo.name, zipball_contents)
  File "/Applications/fman.app/Contents/Resources/Plugins/Core/core/commands.py", line 1199, in _install_plugin
    dir_in_zip, = iterdir(zip_url)
  File "fman/impl/util/__init__.py", line 137, in __next__
  File "fman/impl/util/__init__.py", line 114, in get_next
  File "fman/impl/util/__init__.py", line 118, in _generate_next
  File "/Applications/fman.app/Contents/Resources/Plugins/Core/core/fs/zip.py", line 46, in iterdir
    for candidate in self._iter_names(zip_path, path_in_zip):
  File "/Applications/fman.app/Contents/Resources/Plugins/Core/core/fs/zip.py", line 235, in _iter_names
    for file_info in self._iter_infos(zip_path, path_in_zip):
  File "/Applications/fman.app/Contents/Resources/Plugins/Core/core/fs/zip.py", line 247, in _iter_infos
    raise filenotfounderror(url)
FileNotFoundError: [Errno 2] No such file or directory: 'zip:///var/folders/6r/rf3yfzqd6js8c1p3s7bmz5hc0000gn/T/tmp8luadj51/plugin.zip/'

I unfortunately cannot reproduce this bug (ArrowNavigation installs just fine for me on macOS). What's very strange is the path in the FileNotFoundError you posted: It ends with a slash /, that is, .../plugin.zip/ instead of .../plugin.zip. I have no idea how that can happen.
Does the problem persist when you restart your computer and try again?

@mherrmann thank you for the quick response. A restart doesn't help.
Today i got a pop-up in fman that it has been updated and some plugins may be affected due the change of path management.
In a few hours i'm back at my office, and i'll check my iMac aswel.

So you uninstalled ArrowNavigation with fman's Remove plugin command, then re-installed it with Install plugin?

Let's continue this discussion on the issue tracker of fman please. Closing this issue.


Clean up generated HTML

The generated HTML has various issues.  At the least, run the W3C HTML validator on it and clean up some of the issues.  This may make the display nicer, and is an important first step for further UI improvements.

Commit ac8836f965f1b755aae69f764691015463cc8a5c makes great strides on this.  I'll close this out.


Incoherent patch(servers=...) behavior

As described in #511 it is unclear how to add servers to patch, since the Readme doesn't fit the actual behavior.
The fix is actually to the README file - added unittest so that this kind of behavior won't be missed later on.
In this fix:
Fixing Readme to show the correct behavior of current code (patch(servers=...) behavior).
Adding unittest for patch(servers=...)

Hi Yoav, sorry for the trouble. I had a fix pending that I've just committed to the develop branch.

Ok, Pascal , refreshed my pull request.

Sorry, I wasn't clear, I was writing about 554ce59 which fixes #511, but not in the way you are going.

Gotcha. You can close this if you add 554ce59


Fix captions going missing when switching streams bug

This fix also pertains to #2648.
What problem does this change fix?
The problem is (somewhat) described by the comment (that is included in the diff) from media_source_engine.js. During video playback, if the user switches the caption stream (e.g. CC1 to CC3 which changes languages), the first caption in the next fragment is missing.
Why did this problem exist?
In fragmented MP4s, the end time of a caption is determined by the start time of the next caption. Thus for the last caption in a fragment, the end time cannot be determined until the next fragment is parsed.
Before this fix: the clearing of the caption stream was being called from a chain of function calls originating from clearBuffer_() on the Media source engine. But clearing a buffer and resetting a caption stream are two independent operations. As a result, the caption parser was being reset (its buffer cleared) during video seeks, and during stream switches. This makes sense for video seeks, because the end time of the last caption in the fragment can't be determined if the entire presentation timestamp changes. However for stream switches, resetting the parser doesn't make sense. Clearing the caption parser during a stream switch would actually get rid of the last caption in that fragment (which wasn't emitted since its end time wasn't determined yet), and we would lose the data, causing the problem.
What is the fix?
For reasons mentioned previously, the fix is to reset (and hence clear) the caption parser during seeks, but not during stream switches.

The missing captions were temporary, right?  We would only miss the first caption after changing languages?

The missing captions were temporary, right? We would only miss the first caption after changing languages?

Yes that is correct.

I think this should be await streamingEngine.start()

Yes I agree. I was trying to follow the convention of the preceding test, but I think using await here makes more sense as well.

I think this should be await streamingEngine.start()

Yes I agree. I was trying to follow the convention of the preceding test, but I think using await here makes more sense as well.

You would use streamingEngine.start().catch(fail); if you didn't want to actually wait for startup to complete before calling the next steps of the test.  For example, if you needed to test what happens when something is called during the async startup process.  I'm not 100% sure the previous test needs that, but that would be the only good reason to do it as far as I can tell.


python310Packages.nasdaq-data-link: init at 1.0.4

Description of changes
Library for Nasdaq Data Link's RESTful API
https://github.com/Nasdaq/data-link-python

Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] 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/)
22.11 Release Notes (or backporting 22.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
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

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

2 packages built:

python310Packages.nasdaq-data-link
python39Packages.nasdaq-data-link


[BUG] Date field not displaying properly in table view

What happened?
Inline field
Unless it is in quote, the date value of a field will not display in the table. I also noticed that if it is placed in double quote, it is not possible to use date expressions like <field>.year (which is probably normal I guess?).
YAML front matter
Similar behavior. Only difference : will not display if it is in double or simple quotes. It only displays if a character is added (ex. 2022-01-08a).
DQL
table started
from #project✔
sort started asc

Result :

Metadata in the note :

JS
No response
Dataview Version
0.4.21
Obsidian Version
0.13.19
OS
Windows

It seems that Dataview doesn't extract data from inline fields when they are in a list. If you delete the - behind started:: it will work.
It used to work with inline fields in lists but not anymore, don't know it it is a bug.

@eiffair  Fixed in 0.4.23f - try that.

@blacksmithgu Updated and it's fixed, thank you.

Good to hear.


Server Emojis Getting Displayed As <2389238247823> In The Quoter

Um e-excuse me... Your.... Um Quoter... I Fixed it I think....

what did you just say to me

I-I said um your quoter has a p-problem when h-handling s-server emojis....

I thought you deleted the entire website list I worked tirelessly on 😭


chore: Made Cargo.toml and readme less CLI-centric.

As touched on in #142.
Regarding Cargo.toml changes to categories
See also:

https://crates.io/category_slugs
https://crates.io/categories

The category "command-line-interface" IMO doesn't fit ("Crates to help create command line interfaces, such as argument parsers, line-editing, or output coloring and formatting"), just like "gui" doesn't fit ("Crates to help you create a graphical user interface").
When you read the description for the category "web-programming" - "Crates to create applications for the web" - you may also think that it doesn't fit. But look at the descriptions of the subcategories:

web-programming::http-client
    Crates to make HTTP network requests.
web-programming::http-server
    Crates to serve data over HTTP.
web-programming::websocket
    Crates to communicate over the WebSocket protocol.

These subcategories put "web-programming" in the light of "Crates to create applications augmented with web functionality". And this fits perfectly.
Other

✔ Checklist:

[x] Commit messages have been written in Conventional Commits format;
Not applicable: [ ] Tests for the changes have been added (for bug fixes / features).

@Enyium Thank you!
Please fix all linter's suggestions 🙏


Working example in SimplePlane docs

Description of change

Pre-Merge Checklist

[x] Documentation is changed or added

Thanks @tomcolaa!

Exca made demo: https://pixijs.io/examples/#/demos-basic/simpleplane.js we can just take it from there

I'm going to close this, this doc is not the right approach. I'd suggest something much simpler or removing the SimplePlane example all together from the code. The example Ivan pointed to is a much better example how to use the class.


Git backend: deleted "feature" branches not skipped during properties lookup

According to doc:
https://github.com/spring-cloud/spring-cloud-config/blob/master/docs/src/main/asciidoc/spring-cloud-config.adoc#locating-remote-configuration-resources
its possible to specify on client:
spring.cloud.config.label=myfeature,develop

This leads to ability to deploy service using feature branch and then merge feature branch to master with removal of feature branch, leaving spring.cloud.config.label pointing to missing branch.
Local repo on config server still has deleted branch and serves settings from this branch which no longer exists.
Now, assumption is that deletion of branch is OK and if branch is missing - config server will fallback to master and spring.cloud.config.label can contain missing branch.
There issue is that branch is deleted only in main git repo and if master branch gets updated, w/o restart of config server - changes are not visible by services which have deleted feature branch in startup options.

As this feature is closed and will be available only in  2.0.0.M9 milestone is there any possibility to cherry-pick this feature to 1.4.3 and make release, since we would happy to see this feature on prod w\o using M* version.
PS: I've already cherry-picket it already on my repo and tested in 1.4.3 version, everything seems to be smooth.

@tdanylchuk IDK if it applies so cleanly.  Looks like there are a number of classes that need to be moved over in order to cherry pick this PR even compile.  The major problem I see is that one of the tests appears to be dependent on a JGit API that is only available in JGit 4.* and that required Java 1.8 which we cant swing in the 1.4.x branch.  Maybe the test can be modified, I will have to dig a bit deeper, unless you already did this in your repo and can make a suggestion.

@ryanjbaxter could you check please https://github.com/spring-cloud/spring-cloud-config/pull/947 ?


Avoid deprecated Bundler method all_specs

 [DEPRECATED] Bundler.rubygems.all_specs has been removed in favor of Bundler.rubygems.installed_specs

This is used in several places:
https://github.com/search?q=repo%3Anewrelic%2Fnewrelic-ruby-agent all_specs&type=code

Hi @jcoyne! Thank you for letting us know about this. We still support Bundler v1, which doesn’t have the new installed_specs method, so we won’t be able to switch the methods out. However, we will look into silencing this warning for newer Bundler users. For now, I’m going to remove the bug label for housekeeping purposes.

@hannahramadan can't you check whether installed_specs is present and call that instead of all_specs?

Thank you again for sharing this issue with us @jcoyne! We are including a fix for this in our next release, 9.13.0, which should be available within the next week. cc @gstokkink

@hannahramadan thanks for the quick follow-up!

Ruby agent 9.13.0 is live and includes this update.
Closed by: https://github.com/newrelic/newrelic-ruby-agent/pull/2823


Can't compile translation catalog when installing from source

Setup Information

xscen version: latest
Python version: all
Operating System: any

Description
The setuptools hack we added in setup.py only works for pip install . or pip install xscen, but no when the argument is a git url or if the -e option is specified. This is gossing.
Steps To Reproduce
pip install git+https://github.com/ouranosinc/xscen.git
python -c "import xscen"

Additional context
Opinion : I though gettext and babel would help the work of translating xscen. I do not have that feeling anymore. For some reason, babel only canonically works with setuptools.
There would alternatives : we might be able to hack something by using a build backend that allows running custom commands during the build process (poetry seems to allow that).
OR : we go back to the simple method that xclim uses : put all the strings in a text file (yaml would be better than json). In the end, gettext only... gets texts. We could reimplement the core of what we use from it in only 5-6 lines. And remove the need for "compilation" completely.
Contribution

[X] I would be willing/able to open a Pull Request to address this bug.

I don't have any strong reason to keep gettext if it complicates things needlessly. For now, we indeed only translate a very limited number of lines.

My understanding is that this is essentially an issue when trying to install xscen without going through PyPI/conda. In other words, it's mostly an hassle for developers, which is why I don't have a strong opinion on keeping or removing it.
However for our current needs, it might be overcomplicated.

Edit: make translate doesn't work on Windows, but python setup.py compile_catalog does. At minimum, we should have that info somewhere.

If we want, we can change the way that a Makefile command is called depending on the platform it's running on. This is a very standard practice. If a user is using make commands, they should work for all platforms.

we might be able to hack something by using a build backend that allows running custom commands during the build process (poetry seems to allow that).

Good idea. I was thinking this might happen, so perhaps you could explore this option (https://github.com/taskipy/taskipy). I've contributed it to conda-forge as well.

We could reimplement the core of what we use from [xclim] in only 5-6 lines. And remove the need for "compilation" completely.

Would it make sense to expose this functionality in xclim? I know that other downstream projects (hydro) are also reliant on translation.

The make issue could easily be "fixed" by simply documenting the process. Our makefile really is just a map of aliases.

Would it make sense to expose this functionality in xclim?

Yes, but the idea is still fuzzy in my head:

xclim requires a structured translation database, i.e. specific snippets are associated to specific python objects (indicator -> attribute). There's a 1-to-1 relation from translation to python object. And the database can be very large, it has to have some structure for easier human edition.
figanos has a need for a very shallow dataset, with only a few terms needing translation, but those terms being potentially used in many places (functions). The database is very small.
xscen is in between. Most translations are to be used in specific places, but those underlying objects are not as structured as xclim's indicators (functions vs objects). The database will likely stay small, but who knows...

I'll suggest something soon.


Feature Request: Set a seed for the randomness involved in Random Prompts

Hi,
I really like your Dynamic Prompts extension - there is one feature missing that is crucial to me, though: Being able to set a seed as input for the Random Prompts node. Setting a seed for the random prompt and for the random sampling independently would allow me to create more customizable workflows.
Cheers, Lukas

Yeah this would be really helpful

https://github.com/adieyal/comfyui-dynamicprompts/pull/29


Increase downloader unit tests coverage

Codecov Report

Merging #721 into master will increase coverage by 0.04%.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           master   #721      +/-   ##
========================================
+ Coverage   96.96%    97%   +0.04%
========================================
  Files          29     29
  Lines        2536   2675     +139
  Branches      215    382     +167
========================================
+ Hits         2459   2595     +136
+ Misses         77     67      -10
- Partials        0     13      +13

Impacted Files
Coverage Δ

browser/pages/confirm/controller.js
78.88% <0%> (-2.93%)
:arrow_down:

browser/services/componentLoader.js
98.78% <0%> (-1.22%)
:arrow_down:

browser/services/data.js
97.29% <0%> (-0.77%)
:arrow_down:

browser/pages/location/controller.js
100% <0%> (ø)
:arrow_up:

browser/model/installable-item.js
100% <0%> (ø)
:arrow_up:

browser/pages/start/controller.js
100% <0%> (ø)
:arrow_up:

browser/model/kompose.js
100% <0%> (ø)
:arrow_up:

browser/model/helpers/installer.js
100% <0%> (ø)
:arrow_up:

browser/model/devstudio.js
100% <0%> (ø)
:arrow_up:

browser/directives/pathValidator.js
100% <0%> (ø)
:arrow_up:

... and 16 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9f476a8...37d9b87. Read the comment docs.


[Feature Request]: llm_config with input_price and output_price

Is your feature request related to a problem? Please describe.
https://github.com/microsoft/autogen/issues/2424
As mentioned above, the issue is that Autogen has issues with new models. As all the model pricings are hardcoded. Curently you need to get the latest version to fix this. But you might not always want to get the latest version.
Describe the solution you'd like
Solution Idea A) Propose to allow setting prompt/completion
prices via llm_settings. See here:
{
"model": "gpt-3.5-turbo-1106",
"api_key": "sk-xxx",
"max_tokens": 4000,
"timeout": 100,
"max_retries": 2,
"input_cost" : 10, # USD per mil; alt naming prompt_tokens_cost
"output_cost" : 30 # USD per mil; alt naming completion_tokens_cost
}
It might make sense to also add vision pricing this way then:

Solution Idea B) It seems that curently Autogen is hardcoding the price for each model type
separately. But if it's not present, then you should simply compare the
prefix. So in this case, I believe the prefix "gpt-4-turbo" is enough to
understand what price range it is.
Additional context
No response

Feel free to make a PR. Excited to see it! @WebsheetPlugin

I can do B) as it's very easy to do and in my opinion a better solution compared to how it's handled now, but @sonichi says it's a temporary or hacky solution. So not sure if I should proceed.

@Hk669 I can do B) as it's very easy to do and in my opinion a better solution compared to how it's handled now, but @sonichi says it's a temporary or hacky solution. So not sure if I should proceed.

@WebsheetPlugin sure give it a try. we'll have support from @sonichi too.

So PR #1682 has a partial implementation of this. Can you have a look and see if it us useful here? Maybe revive it?


"Mute This Ad" option for the publisher in DoveKey Auction?

If a publisher chooses not to have a certain advertiser or piece of ad creative appear on their site, will they also be able to set an option similar to "mute this ad" to prevent it from appearing?

Thank you for your question. The Dovekey auction proposal supports publisher controls, e.g. advertiser or creative blocking, as follows.
As explained in Section “Determine auction eligibility”, each conditional bid cached in the Dovekey server is associated with a cache lookup key derived from a limited number of signals, e.g. {page URL, browser language, coarse location}. Before the SSP asks the Dovekey server to cache a conditional bid, the SSP can apply publisher controls applicable to the page URL, browser language and coarse user location, based on the creative information and buyer information associated with the conditional bid.
If there are publisher controls more granular than what can be supported by  {page URL, browser language, coarse location}, please let us know.


Add a 'pending' option to the dropdown

Bug: T294573

Sorry, the PR needed a rebase after #236 was merged, and somehow the approval didn't survive that.


List Item - Design System

Prerequisites
⚠ This ticket can only be start once the ticket 453 is completed

List element will have the .dcx-list class name
List Item element will have the .dcx-list-item class name
List element will have .dcx-list--[variant] class name for all possible variants

Overview
Possible states:

Default

Variants:

ordered
unordered

We need to define tokens for all the combinations between states and variants:

default-ordered
default-unordered

Keeping in mind we have the elements to style:

List Item -> body - We use the body tokens, as it should look as plain body text
Marker (Bullet/Square for unordered, Number/letter/roman numerals for ordered) -> marker

Note that the List element is not mentioned. It's a simple container element that provides semantic context. It should not have any styles, same as a DIV element.
Storybook
Create the pages for:

Playground
Default (Unordered)
Ordered
AccessibleTheme
DarkTheme
MaterialTheme

On each MDX page make examples for:

List with single element
List with multiple elements

Token definition
Considerations:

Take as reference the FormSelect component. Take into consideration FormSelect will be refactored to follow the token names as described bellow in "possible tokens".
Add the tokens to src/design-system/tokens.json
Define all styles in src/design-system/list.css
Add import to the new CSS file in src/design-system/index.css

Possible tokens:

color-text-body
color-marker
color-marker--ordered
etc.

Note that the List Element will use the body tokens. It won't be affected by the different variants. Only the marker element is affected.
Follow the naming pattern:
[token_category]-[property]-[element]-[variant]-[state]

F.e. for color-marker--ordered we have:

category: color
property: NONE -> it would be redundant
element: marker
variant: ordered
state: default -> not necessary to show in name

Please follow these steps to create your branch:
git checkout release/0.8
git pull
git checkout -b 'feature/ds-list-item'

solved by https://github.com/Capgemini/dcx-react-library/pull/495

@cg-mmirca can you please raise another ticket about list in case you need specific classes to be added?

closed by https://github.com/Capgemini/dcx-react-library/pull/519


Compiling my LanguageServer returns TS2792: Cannot find module 'vscode-languageclient/node'

Hello guys,
I have this extension
https://github.com/AvaloniaUI/Avalonia.VSCodeExtension
I can run perfectly locally but when I try to package, the svetle views aren't being included.
After some investigation, looks like I have to use the WebPack to take everything in the scr folder.
I add the WebPack and WebPack-Cli, created entries in the package.json for the webpack  and add a webpack.config.js as described here
https://code.visualstudio.com/api/working-with-extensions/bundling-extension
When I run the command
$ npm run webpack
I got this result:
><EMAIL_ADDRESS>webpack
> webpack --mode development

asset extension.js 792 KiB [compared for emit] (name: main) 1 related asset
runtime modules 937 bytes 4 modules
modules by path ./node_modules/ 670 KiB 135 modules
modules by path ./src/*.ts 31.2 KiB
  ./src/extension.ts 2.32 KiB [built] [code generated] [1 error]
  ./src/AvaloniaNewProjectManager.ts 2.94 KiB [built] [code generated]
  ./src/AvaloniaProjectProvider.ts 1.28 KiB [built] [code generated]
  ./src/AvaloniaNewFileManager.ts 4.52 KiB [built] [code generated]
  ./src/CreateNewAppPanel.ts 5.41 KiB [built] [code generated]
  + 7 modules
+ 8 modules

ERROR in /home/esqueleto/myWork/Avalonia.VSCodeExtension/src/extension.ts
./src/extension.ts 11:7-35
[tsl] ERROR in /home/esqueleto/myWork/Avalonia.VSCodeExtension/src/extension.ts(11,8)
      TS2792: Cannot find module 'vscode-languageclient/node'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?
ts-loader-default_4f8b3ed5ab8e20ee

ERROR in /home/esqueleto/myWork/Avalonia.VSCodeExtension/src/test/runTest.ts
3:25-48
[tsl] ERROR in /home/esqueleto/myWork/Avalonia.VSCodeExtension/src/test/runTest.ts(3,26)
      TS2792: Cannot find module '@vscode/test-electron'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?
ts-loader-default_4f8b3ed5ab8e20ee

webpack 5.70.0 compiled with 2 errors in 1781 ms

after some investigation in the  closed  issued in this repository, I realise the command
$ vsce ls                                                                                1 ↵
Executing prepublish script 'npm run vscode:prepublish'...

><EMAIL_ADDRESS>vscode:prepublish
> npm run compile

><EMAIL_ADDRESS>compile
> tsc -p ./

node_modules/@types/eslint/index.d.ts:450:42 - error TS2724: '"/home/esqueleto/myWork/Avalonia.VSCodeExtension/node_modules/@types/estree/index"' has no exported member named 'ChainExpression'. Did you mean 'ThisExpression'?

450         ChainExpression?: ((node: ESTree.ChainExpression & NodeParentExtension) => void) | undefined;
                                             ~~~~~~~~~~~~~~~

node_modules/@types/eslint/index.d.ts:473:43 - error TS2694: Namespace '"/home/esqueleto/myWork/Avalonia.VSCodeExtension/node_modules/@types/estree/index"' has no exported member 'ImportExpression'.

473         ImportExpression?: ((node: ESTree.ImportExpression & NodeParentExtension) => void) | undefined;
                                              ~~~~~~~~~~~~~~~~

Found 2 errors.

 ERROR  npm failed with exit code 2

I'm confused. Is this a problem regarding the component vscode-languagerclient/node or some problem with the node_modules?
I have no idea how to solve one or another.
Can anyone help me?
Thanks in advance
Paulo Aboim Pinto

In general you need to package (webpack) the client and server independently. You might want to look at this repository on how to do this: https://github.com/microsoft/vscode-eslint
When you webpack the extension side you should exclude the tests or have the test in a separate folder.
I will close the issue since there is IMO no action required. You can still add comments so we can continue the discussion.

Thanks for the answer ...
what I did already:

remove the tests from the src folder
there was a missing package:  @types/estree with this I can do the vsce ls without errors

still don't know why I have the error
$ npm run webpack

><EMAIL_ADDRESS>webpack
> webpack --mode development

asset extension.js 792 KiB [compared for emit] (name: main) 1 related asset
runtime modules 937 bytes 4 modules
modules by path ./node_modules/ 670 KiB 135 modules
modules by path ./src/*.ts 31.2 KiB
  ./src/extension.ts 2.32 KiB [built] [code generated] [1 error]
  ./src/AvaloniaNewProjectManager.ts 2.94 KiB [built] [code generated]
  ./src/AvaloniaProjectProvider.ts 1.28 KiB [built] [code generated]
  ./src/AvaloniaNewFileManager.ts 4.52 KiB [built] [code generated]
  ./src/CreateNewAppPanel.ts 5.41 KiB [built] [code generated]
  + 7 modules
+ 8 modules

ERROR in /home/esqueleto/myWork/Avalonia.VSCodeExtension/src/extension.ts
./src/extension.ts 11:7-35
[tsl] ERROR in /home/esqueleto/myWork/Avalonia.VSCodeExtension/src/extension.ts(11,8)
      TS2792: Cannot find module 'vscode-languageclient/node'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?
ts-loader-default_4f8b3ed5ab8e20ee

webpack 5.70.0 compiled with 1 error in 1762 ms

when I do
$ vsce ls | grep vscode-languageclient/node
node_modules/vscode-languageclient/node.cmd
node_modules/vscode-languageclient/node.js

It's missing anything?

I actually have no idea. The file it should include is node_modules/vscode-languageclient/node.js which is obviously there. My guess is some configuration missing / wrong in the webpack config. But it is simply a guess.

I'm facing this issue as well. The language client code is in a separate package and is imported in package.json. This error occurs when I set "module": "esnext" in tsconfig. Using  "module": "NodeNext" the error goes away.

The libraries have not been tested with esnext module loading. I recommend that you open a new issue and request support for that mode.


Better button disable

Description
Current browser's default behavior in not good.
Let's make a custom prop disabled which will:

Stop passing Vue events (or just @click)
Keep  enabled, so it can be selected by tab
Apply aria-disabled="true"
Allow to use tooltip
Apply styles for disabled state

Additional context

However, the disabled attribute does more than just prevent clicks. It also prevents hover and focus capabilities. This has many negative ramifications. Disabled buttons cannot show tooltips (which may be important for explaining why the button is disabled). Keyboard users cannot Tab to disabled buttons. If a button suddenly becomes disabled (e.g. when submitting a form), focus could get lost and create a confusing experience. Additionally, disabled buttons are exempt from color contrast requirements, increasing the likelihood that it will have poor contrast.
https://www.htmhell.dev/adventcalendar/2023/13/

How would you suggest to change the disabled behaviour without introducing breaking changes?


Editor support FAQ entry

We are currently on our way to migrate our existing CoffeeScript codebase into either

ES6 + Flow
TypeScript

I tried to sum up advantages/disadvantages of these two and got stuck on the "Editor support" aspect. TypeScript has a Docs page to sum up Editor Support. Can we have something similar for Flow? I'd make a PR with a draft if that's OK.

Yeah it would be nice to explain our editor support better. Thanks for the recommendation!

I'm closing this because there is that neat docs page.


bug: Orientation doesn't update cached collection

Type: bug
Platform: all
I've found that if you use collection-repeat and you rotate your device while on another tab then when you go back to the original tab its stuck assuming the width of the previous orientation so it looks weird. For now I just put in place this workaround that clears my view cache whenever the device rotates.
window.addEventListener("orientationchange", function() {
    $ionicHistory.clearCache();
  }, false);</span>

ajoslin added resize method in scroll delegate to force collection repeat to calculate dimensions. You can try this code in tab active/selected event.
"$ionicScrollDelegate.resize()"
https://github.com/driftyco/ionic/issues/3292

Hey @netalico, does ajoslin's recent fix resolved your issues.

Greetings @netalico!
My sensors indicate a reply was requested, but we have not received one yet, I am using my robot powers to close this issue. However, if you are still experiencing this issue, please feel free to reopen it by creating a new issue, and include any examples or necessary information.
Thank you for allowing me to assist you.

this is still relevant!


Revive python support (or ship .lib file)

I'm trying to interact with psmoveservice via the python API. It The python wrapper is currently broken as the header file structure has changed since it was written. So far I have managed to hack-n-slash to get that part working, but on Windows the PSMoveClient_CAPI.lib file is required for cFFI to work. I have tried to build psmoveservice myself, but it's not for the faint of hard (i.e. I did not really manage, but versions of libraries and software doesn't really match).
So the question is: can you ship this file with releases as well? Or even better, revive the python support again?
Here is the log for sake of completeness:
$ python setup.py develop
WARNING: The wheel package is not available.
WARNING: The wheel package is not available.
C:\git\vr
running develop
running egg_info
writing pypsmove.egg-info\PKG-INFO
writing dependency_links to pypsmove.egg-info\dependency_links.txt
writing requirements to pypsmove.egg-info\requires.txt
writing top-level names to pypsmove.egg-info\top_level.txt
reading manifest file 'pypsmove.egg-info\SOURCES.txt'
writing manifest file 'pypsmove.egg-info\SOURCES.txt'
running build_ext
generating cffi module 'build\\temp.win-amd64-3.9\\Release\\pypsmove._psmoveclient.c'
already up-to-date
building 'pypsmove._psmoveclient' extension
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\git\vr\PSMoveServiceEx\src\psmove
client -IC:\git\vr\PSMoveServiceEx\src\psmoveprotocol -IC:\git\vr\v\include -IC:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\includ
e -IC:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\include -IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\
14.33.31629\include -IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\ATLMFC\include -IC:\Program Files\Microsoft Visual Studio\2022\Community\VC
\Auxiliary\VS\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\um -IC:\Program Files (x86
)\Windows Kits\10\\include\10.0.22000.0\\shared -IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\winrt -IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.
0\\cppwinrt -IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um /Tcbuild\temp.win-amd64-3.9\Release\pypsmove._psmoveclient.c /Fobuild\temp.win-amd64-3.9\Release\build\te
mp.win-amd64-3.9\Release\pypsmove._psmoveclient.obj
pypsmove._psmoveclient.c
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO
/LIBPATH:C:\git\vr /LIBPATH:C:\git\vr\v\libs /LIBPATH:C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\libs /LIBPATH:C:\Users\psl\App
Data\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0 /LIBPATH:C:\git\vr\v\PCbuild\amd64 /LIBPATH:C:\Program Files\Microsoft Visual Studio\2022\Commun
ity\VC\Tools\MSVC\14.33.31629\ATLMFC\lib\x64 /LIBPATH:C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\lib\x64 /LIBPATH:C:\Program Files (x86)\Win
dows Kits\NETFXSDK\4.8\lib\um\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.22000.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\\lib\10.0.22000.0\\um\x
64 PSMoveClient_CAPI.lib /EXPORT:PyInit__psmoveclient build\temp.win-amd64-3.9\Release\build\temp.win-amd64-3.9\Release\pypsmove._psmoveclient.obj /OUT:build\lib.win-amd64-3.9\pyp
smove\_psmoveclient.pyd /IMPLIB:build\temp.win-amd64-3.9\Release\build\temp.win-amd64-3.9\Release\_psmoveclient.lib
LINK : fatal error LNK1181: cannot open input file 'PSMoveClient_CAPI.lib'
error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.33.31629\\bin\\HostX86\\x64\\link.exe' failed with exit code 1181
(v)

Here are the required files (PSMS-EX v0.19.3)
PSMoveClient_CAPI.zip
Currently a python wrapper is not planed. However, i am working on a PSMoveServiceEx-CAPI.NET wrapper which is still WIP for any .NET apps (.NET Core and .NET Standard).
You can use a .NET-to-Python wrapper instead which is probably easier.

Thank you, I will try them out! I can probably kick the cFFI based wrapper in misc/python alive again. At least so that it is usable. Maybe not the most convenient solution, but should at least work good. Will send a PR if I manage to make something decent out of it.

Found a small problem. Since the library is compiled with a C++-compiler, global names are mangled. This seems to be a problem with constans in ClientGeometry_CAPI.h. These in particular:
//-- constants -----
/// A 3D integer vector whose components are all 0
PSM_PUBLIC_CLASS extern const PSMVector3i *k_psm_int_vector3_zero;
/// A 3D float vector whose components are all 0.0f
PSM_PUBLIC_CLASS extern const PSMVector3f *k_psm_float_vector3_zero;
/// A 3D integer vector whose components are all 1
PSM_PUBLIC_CLASS extern const PSMVector3i *k_psm_int_vector3_one;
/// A 3D float vector whose components are all 1.0f
PSM_PUBLIC_CLASS extern const PSMVector3f *k_psm_float_vector3_one;
/// The 3D float vector <1.0f, 0.0f, 0.0f>
PSM_PUBLIC_CLASS extern const PSMVector3f *k_psm_float_vector3_i;
/// The 3D float vector <0.0f, 1.0f, 0.0f>
PSM_PUBLIC_CLASS extern const PSMVector3f *k_psm_float_vector3_j;
/// The 3D float vector <0.0f, 0.0f, 1.0f>
PSM_PUBLIC_CLASS extern const PSMVector3f *k_psm_float_vector3_k;
/// A 3D float vector that represents the world origin <0.f, 0.f, 0.f>
PSM_PUBLIC_CLASS extern const PSMVector3f *k_psm_position_origin;
/// The quaterion <1.f, 0.f, 0.f, 0.f> that represents no rotation
PSM_PUBLIC_CLASS extern const PSMQuatf *k_psm_quaternion_identity;
/// The 3x3 matrix that represent no transform (diagonal values 1.f, off diagonal values 0.f)
PSM_PUBLIC_CLASS extern const PSMMatrix3f *k_psm_matrix_identity;
/// The pose that represents no transformation (identity quaternion, zero vector)
PSM_PUBLIC_CLASS extern const PSMPosef *k_psm_pose_identity;

The symbols are there, but of course mangled:
$ strings PSMoveClient_CAPI.dll | grep psm_float_vector3_k
?k_psm_float_vector3_k@@3PEBUPSMVector3f@@EB

Adding extern "C" guards in the header file would help this (would be good to add in other external header files as well). Is that something you could fix and re-compile with?

Just remove them from the header and define your own. Im not even sure why they are in there anyways.
Also, i recommend using the .NET wrapper repo, its easier to use.


Checkout revision: also set trashed: false

closes #102
Note to self: When this is merged we can remove 1-2 lines in the frontend.

@kulla this is also live in staging right? (seems not to fix the issue unfortunately)

@kulla this is also live in staging right? (seems not to fix the issue unfortunately)

yeah should be live


Syntax code for typescript and javascript becoming white. I try to fix it looking related problems and still not solved.

Does this issue occur when all extensions are disabled?: Yes/No

VS Code Version:
OS Version: Windows 10 Pro

Yesterday im using it totally fine, but today i open my project and create new project using typscript/javascript the syntax coloring is missing and become white. i dont know why, im check related problems and still dont fix mine

Sorry, Vscode version : 1.73.1

Just disable Javascript & Typescript nightly. it works.


Update path to localfs following org rename

fixes #190
Description

Related Issue(s)
#190

Discussed here: https://flowforgeworkspace.slack.com/archives/C032Q63FGG1/p1699551815006479


uucore failing to build on 64-bit android

Compilation on 64-bit android fails with the following errors:
error[E0277]: the trait bound `i64: From<u64>` is not satisfied
   --> src/uucore/src/lib/features/fsext.rs:626:29
    |
626 |         return self.f_bsize.into();
    |                             ^^^^ the trait `From<u64>` is not implemented for `i64`
    |
    = help: the following other types implement trait `From<T>`:                                                                    <i64 as From<bool>>
              <i64 as From<i8>>
              <i64 as From<i16>>
              <i64 as From<i32>>
              <i64 as From<u8>>
              <i64 as From<u16>>
              <i64 as From<u32>>
              <i64 as From<NonZeroI64>>
    = note: required for `u64` to implement `Into<i64>`

error[E0277]: the trait bound `i64: From<u64>` is not satisfied                                                          --> src/uucore/src/lib/features/fsext.rs:690:28
    |
690 |         return self.f_type.into();
    |                            ^^^^ the trait `From<u64>` is not implemented for `i64`
    |
    = help: the following other types implement trait `From<T>`:
              <i64 as From<bool>>
              <i64 as From<i8>>
              <i64 as From<i16>>
              <i64 as From<i32>>
              <i64 as From<u8>>
              <i64 as From<u16>>
              <i64 as From<u32>>
              <i64 as From<NonZeroI64>>
    = note: required for `u64` to implement `Into<i64>`

For more information about this error, try `rustc --explain E0277`.

@sylvestre I think the CI/CD has only 32bit (x86) for android running. Is that true? Should we integrate the x64 build as well for this ticket?

This concrete issue was fixed with #5939.
Even though the linked pull request is not closed, we can close this issue.
I will create new issues for the remaining, not yet merged improvements from the PR #5821.

I got different error while trying to compile this project in termux/package-builder container.
error[E0432]: unresolved import `uucore::libc::getloadavg`
  --> src/uu/uptime/src/platform/unix.rs:18:5
   |
18 | use uucore::libc::getloadavg;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^ no `getloadavg` in the root

error[E0432]: unresolved import `uucore::utmpx`
  --> src/uu/uptime/src/platform/unix.rs:80:17
   |
80 |     use uucore::utmpx::*;
   |                 ^^^^^ could not find `utmpx` in `uucore`

error[E0433]: failed to resolve: use of undeclared type `Utmpx`
  --> src/uu/uptime/src/platform/unix.rs:85:17
   |
85 |     for line in Utmpx::iter_all_records() {
   |                 ^^^^^ use of undeclared type `Utmpx`

Some errors have detailed explanations: E0432, E0433.
For more information about an error, try `rustc --explain E0432`.

I have tried to build this project with the following command.
	make \
		CARGOFLAGS="--target aarch64-linux-android" \
		PROFILE=release

bionic has its own implementation of

getloadavg https://android.googlesource.com/platform/bionic/+/refs/heads/main/libc/bionic/getloadavg.cpp
utmpx https://android.googlesource.com/platform/bionic/+/refs/heads/main/libc/include/utmpx.h

@Biswa96
We are currently not building in a container but in a android VM.
Can you provide a link or more detailed description about the reasons about using the package-builder as you mentioned?

We are currently not building in a container but in a android VM.

Would not the target platform be same?
Here is the cross compile build environment https://github.com/termux/termux-packages/wiki/Build-environment

Would not the target platform be same?

should be. but we are also not using make for the android build. is there some specific reason for you to use make?
This is what our CI does for android on the android VM:
cargo build --features feat_os_unix_android

I also tested if the for you failing uptime is supported by the resulting binary. Answer: No. So its likely that it would also fail in our CI if uptime would be build.

is there some specific reason for you to use make?

It was my mistake. I did not read the cargo files. The cargo build --features feat_os_unix_android command worked. Thank you.


Update outdated dependencies: core-js, less, postcss, webpack, cypress, snyk

Changes

Update outdated dependencies: core-js, less, postcss, webpack, cypress, snyk

How to test this PR

PR checks should pass.

🙇♂

🙇♂


Public (personal) modernise tests

test by explicitly following a trail of inputs and the consequent routing rather than always setting the user start state

@imsickofmaps please review

minor comment remove then 👍


[stable/fluentd] Error when autoscaling is enabled

Describe the bug
When installing the chart with:
helm install fluentd stable/fluentd  --set autoscaling.enabled=true
I get the following error:
error validating "": error validating data: ValidationError(StatefulSet.spec): missing required field "serviceName" in io.k8s.api.apps.v1.StatefulSetSpec
Version of Helm and Kubernetes:
$ helm version
version.BuildInfo{Version:"v3.0.0", GitCommit:"e29ce2a54e96cd02ccfce88bee4f58bb6e2a28b6", GitTreeState:"clean", GoVersion:"go1.13.4"}

EKS 1.14
Which chart:
https://github.com/helm/charts/tree/master/stable/fluentd
What happened:
Can't install chart with HPA enabled.
What you expected to happen:
Can install chart with HPA enabled.
How to reproduce it (as minimally and precisely as possible):
helm install fluentd stable/fluentd  --set autoscaling.enabled=true

Just amended the PR.

We have had no issues with the chart until this got merged:
Now we see the following when the HPA is enabled
unable to build kubernetes objects from release manifest: error validating "": error validating data: ValidationError(HorizontalPodAutoscaler.spec.scaleTargetRef): unknown field "serviceName" in io.k8s.api.autoscaling.v2beta2.CrossVersionObjectReference


[Question] what if body with variable style content

When i write a body with content contains text like {{ something }}, and it will be parsed as variable automatically.
How to just use the very text {{ something }} not parsed. Thanks.

Hi @yittg,
You can disable this behavior in the request settings (accessible from the sidebar).

For finer-grained control, you can also wrap specific content in {% raw %}...{% endraw %}


Use the Jackson BOM to solve Jackson dependency errors

Using Azure OpenAI, on some Jackson mappings I'm getting the following error:
Caused by: java.lang.NoClassDefFoundError: com/fasterxml/jackson/annotation/JsonTypeInfo$Value

This is because not all our Jackson dependencies are using the same version. The intent of this commit is to fix this, by using the Jackson BOM.

LGTM


Prevent from manually fix on generating DLL bind

external/functions_windows.go is generated by mksyscall_windows.go , see external/functions_bind_windows.go, but some lines must be fixed,see README.md. This fixing should be done by a script or something, be a machine generated code.

latest mksyscall_windows.go follows convention for generated code comment, https://github.com/golang/go/commit/10313803615307d1a9cd13d16c4d4316e61cd91e, will release in go1.11


Legend specific enhancements

The following command generates this map:
geoplot ///
	(area nuts3_shp y_MEDAGEPOP, level(10) colors(CET L20, reverse) )  ///
	(line nuts1_shp, lc(white) lw(0.03) ) ///
	(line nuts0_shp, lc(black) lw(0.1)) ///
	, ///
	legend(pos(2))

First, it is great that legends can be binned and continuous and can be placed inside and outside the plot regions! This was a huge issue with spmap that forced them to be inside. Several suggestions:

spmap has a legstyle() option that allows users to customize how the legends are defined. For example, with just showing ranges through a hyphen: 0 - 10 etc. It will be great if these can be ported over.
Option to add and show legends from other layers. For example, I would like to add that I am also showing NUTS1 and NUTS0 boundaries.

I now did some work on legend(). It is now possibly to specify label() within each layer to define how legend keys from that layer are generated/labeled, and then in legend() there is a layout() option to put legends from different layers together. Here's an example:
local url http://fmwww.bc.edu/repec/bocode/i/
geoframe create regions `url'Italy-RegionsData.dta, id(id) coord(xcoord ycoord) shpfile(`url'Italy-RegionsCoordinates.dta)
geoframe create capitals `url'Italy-Capitals.dta, coord(xcoord ycoord)
geoplot ///
    (area regions fortell, color(Reds) lc(gs6) finten(60) ///
        label("@lb-@ub")) ///
    (point capitals size, discrete color(Blues) ///
        label(1 "Below 50k")) ///
    (pcarrowi 4139067.2 906564.1 4973321.5 469578.9, color(BlueViolet) ///
        label("Agrigento-Alessandria")) ///
    , legend(bplace(sw) layout(   ///
        - "{bf:Fortell}"     1 |  ///
        - "{bf:City size}"   2    ///
        - "{bf:Other stuff}" 3))  ///
      tight

I am closing this assuming that the new composite legends solve the issue.


No documentation for kwargs even though we have docs for parameters

There's no documentation for kwargs even though we have docs for parameters. Does Pyright get this right in VS Code? If so can we fix.

Duplicate of #759. Closing.


Feature: Add New Class To Represent Stealth Addresses

Howdy, I am a big fan of this library and I use it a lot for personal analytics. I like the good work put into this project. I think it would be beneficial to add a class to represent stealth addresses (one-time public keys) for completeness sake and because the monero daemon handles them so clumsily. If I want to look up information on a stealth address, I can the the command /get_outs but that requires me to know a "global index" as well as the amount transferred to that output. Alternatively, I could pass a transaction hash to /get_transactions and parse through the JSON to learn information about the stealth address. However, as of right now, the Transaction class in the project does not contain information on the output indices which are given by the /get_transactions command because there are returned in the JSON response outside of the "as_json" key.
Anyways, code would probably be more helpful than an explanation. I can write this code in no time, but I wanted to guage y'alls opinions on this idea. Cheers!

Every PR will be welcome. Stealth addresses are certainly useful piece of data, so let's have them. However, please remember to provide some tests as well.

Every PR will be welcome. Stealth addresses are certainly useful piece of data, so let's have them. However, please remember to provide some tests as well.

This is done :)


Move error page creation to bootstrap area

:tada: This PR is included in version 1.16.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


[WIP] Typed queries

This is the first proof of concept for typed queries. First I tried to implement a custom query expression builder, as in this article. However, I discarded this approach because of two reasons:

In query expressions, the user decides the query source. In the GraphQL the source is defined by the provided query method, which also defines the arguments valid for that query.
The operations in GraphQL (filtering, grouping...) are defined by the query arguments, so we only need a simple projection for the result and building a whole query expression seems overkill.

The projection may be expressed with a simple lambda and that's what I'm trying to do at the moment:
MyClient.Queries.Task(taskId,
    <@@ fun (t: MyClient.Types.Task) -> t.description, t.completed @@>)

Ideally a simple lambda should be enough instead of a explicit quotation.

For testing purposes, I'm just removing the old methods which accepted a literal string as a static argument. We need to decide if we want to have both solutions side by side, or we focus on this new approach to avoid confusion (and maybe add a simple method to easily send string queries at runtime in case of need).

I managed to make the provided methods accept lambdas instead of explicit quotations. Now I've to see if I can remove the need for the upcast:
MyClient.Queries.Task(taskId, fun t -> upcast (t.description, t.completed))

I haven't managed to use a generic argument (Task->'T) for the provided method, so I've created a dummy type to wrap the fields. It looks a bit more elegant than casting to obj.
MyClient.Queries.Task(taskId, fun t -> Fields(t.description, t.completed))

Ok, the PR should be ready to merge now. As a follow-up of the Slack discussion, I tried to generate actual types but this proved to be complicated as there're many nested erased types being created at the moment and I also got strange errors on Mono like this one, so now I'm solving the issue of passing the name of the type in inline fragments with type condition (...on Human { name }) by generating a static method for every type in the GraphQL (atm I'm only modifying GraphQL Object types).
Right now, queries like the following are possible:
open FSharp.Data.GraphQL
open System.Collections.Generic

type MyClient = GraphQLProvider<"http://localhost:8083">

async {
    let! hero = MyClient.Queries.Hero("1000", fun c ->
                Fields(
                    c.name,
                    Selection(c.friends, fun f -> Fields(f.name)),
                    MyClient.Types.Human.On(fun h -> Fields(h.appearsIn))
                ))
    match hero with
    | None -> ()
    | Some hero ->
        printfn "My hero is %A" hero.name
        printfn "Appears in %O: %b" MyClient.Types.Episode.Empire
            (hero.appearsIn |> Array.exists ((=) MyClient.Types.Episode.Empire))
        printfn "My hero's friends are:"
        hero.friends
        |> Array.choose (fun x -> x.name)
        |> Array.iter (printfn "- %s")
}
|> Async.StartImmediate

Which translates to:
query Query{
  hero(id: "1000") {
    name,
    friends {
      name
    },
    ...on Human {
       appearsIn
    }
  }
}

Please tell me if you have any comment or suggestion.


Not able to use in react native

After installing in my react native code getting this error:
var aesjs = require('aes-js');
Unable to resolved module 'aes-js'
Module does not exist in module map or in these directories node_modules

How are you installing this? It should certainly work as a standard npm module. If it is not in your node_modules, that seems like it is an issue with the toolchain you are using to install it, maybe your nvm is placing things in a global directory?

yarn add aes-js
or npm install aes-js --save
then import it:
import aesjs from "aes-js";


Integrate battery optimization dialog into onboarding

Current situation
After completing the onboarding, users are facing a series of dialogs that ask them to disable battery optimizations (along with some additional information on exposure notifications). Those dialogs are merely a popup, potentially annoying and not looking important to users.

Dialog with information on exposure notifications
Dialog asking users to disable battery optimizations
Additional dialog if battery optimizations are disabled

Suggested improvement
The onboarding flow should contain a page that asks users to disable battery optimizations.
Expected benefits
The onboarding flow feels better when it is actually complete when it seems to be done, instead of being followed by more popup dialogs. The rate of users who disable battery optimizations might improve, which would be good.
See also
#2682 Warn about deactivated battery optimization on main screen
#1606 Improve UX for disabling battery optimization (an issue about using ACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONS)
For any readers having trouble disabling the battery optimization, there are some instructions in the FAQ
https://www.coronawarn.app/en/faq/#no_risk_update about how to do this.

Internal Tracking ID: EXPOSUREAPP-5965

@fynngodau
This is very similar to the enhancement request #1606 which you already quoted.
Maybe the devs could fill us in on the decision which led to this function being removed? I guess it was because it wasn't reliable across all vendors.
I can quite imagine that most users will ignore the dialog, as you say. It's difficult for somebody unfamiliar with the concepts to understand what is being requested and what needs to be done.
It was interesting to read the feedback from @thomasaugsten in https://github.com/corona-warn-app/cwa-app-android/issues/2682#issuecomment-805142879 about how other methods are being used to mitigate the issue of battery optimization.

@MikeMcC399 This is quite the different question – #1606 is about the way that the app leads the user to the system dialog, this is about asking the user "more properly" than just with a not-as-pretty popup (i.e. with a full-screen page in the onboarding process).

@fynngodau
Thanks for explaining your intentions. I support anything which reduces the complexity for the user!

Dear @fynngodau, @MikeMcC399, and community
Thank you for your contributions.
We have created a ticket for the bug (Internal Tracking ID: EXPOSUREAPP-5965) in the internal Jira system. Any further developments will be notified here in this Github issue.
Best wishes,
DS

Corona-Warn-App Open Source Team

For any readers having trouble disabling the battery optimization, there are some instructions in the FAQ
https://www.coronawarn.app/en/faq/#no_risk_update about how to do this.

@MikeMcC399 I added your comment to OP. Thanks.

I added screenshots to my original post to illustrate which dialogs I am referring to.

@fynngodau OK, thanks. Added screenshots to the internal ticket.

Same spirit for the new root check: it is currently displayed before startup, therefore before any onboarding, and could have been realized as an additional onboarding screen as well (if wanted, also as one that is displayed at each startup).

Is there an update available here @dsarkar?

No planned


This code contains JSON.parse in a place where it shouldn't be

Thanks for stopping by to let us know something could be better!
PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.

Is this a client library issue or a product issue?

Client library issue

Did someone already solve this?

No

Do you have a support contract?

No
If the support paths suggested above still do not result in a resolution, please provide the following details.
Environment details

OS: All
Node.js version: All
npm version: All
@google-cloud/automl version: All

Steps to reproduce

Go to nodejs-automl/samples/tables/predict.v1beta1.js
inputs = JSON.parse(inputs); is a line of code that is there, but it shouldn't be because if you uncomment const inputs = ... then the code will fail.
I suggest we remove inputs = JSON.parse(inputs); and change the inputs default input parameter.

My initial suggestion for the fix is incorrect because it will not allow the user to input a string as a command line argument. I'll revert the changes and change the comment instead.


[SPARK-49317] Add pi-on-yunikorn.yaml example and update README.md

What changes were proposed in this pull request?
This PR aims to add pi-on-yunikorn.yaml example and updates README.md accordingly.
Why are the changes needed?
To provide an explicit example for batch scheduler environments.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Manual test with the newly added instructions at README.md.
$ helm install yunikorn yunikorn/yunikorn --namespace yunikorn --version 1.5.2 --create-namespace --set embedAdmissionController=false

$ kubectl apply -f examples/pi-on-yunikorn.yaml

$ kubectl delete sparkapp pi-on-yunikorn

Was this patch authored or co-authored using generative AI tooling?
No.

Could you review this example and README.md PR, @viirya ?

Thank you, @viirya .

Merged to main~


Update kind-projector_2.13.3 to 0.11.2

Updates org.typelevel:kind-projector_2.13.3 from 0.11.0 to 0.11.2.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.typelevel", artifactId = "kind-projector_2.13.3" } ]

labels: library-update, semver-patch

Superseded by #426.

Superseded by #426.


Concat Demuxer

Hey,
I'm just wondering if there's a small example of how one can use ffmpeg's concat demuxer with your library? Or if you could point me in the right direction at the very least?
Thanks!

Heya,
only had time for quick google right now, I might be able to get a bit more into this on the weekend. No promisses though.
I found a diff about the implementation in ffmpeg: http://ffmpeg.org/pipermail/ffmpeg-cvslog/2012-December/057881.html
This mentiones a struct representing the concat file and then a concat_read_packet function. I didn't find the function or the struct in the go code, so I guess right now it isn't possible to use it. It would have to be added to this project.
Since I have never worked with the cocat demuxer before, could you maybe find or write some C-code using it with the original ffmpeg c library? Then I could prpably easily add it to the go code.

This was the only C code example I could find. I'm not a C coder so I couldn't do up an example for you. Let me know if this helps:
http://stackoverflow.com/questions/16282600/how-to-use-libavformat-to-concat-2-video-files-with-same-codec-re-muxing

Sorry, about the inactivity. It's the end of the semester and thus exam time. I have glimpsed over the code you found and it seems there are no API calls specific to any *concat* function. So it could may be possible if all other calls and structs used are present in this library.
You could try to go through the c code and try to find the go equivalents using this tiny web tool. That tool shows you the names of the go functions and structs equivalent to the c functions and structs.
If you bump on anything that is used in that c code but can not be found by the web tool, let me know and I'll look into including it.


App crashed when i enter text

When i enter text continuously, at one point app crashed.I think It's exception because i did n't get crash on particular line
Crash showing in AppDelegate class.
Crashing in iPhone not simulator.
If anyone got answer please help me.

Can you post your view controller's code? I don't think any error message will be helpful (at least for me). It's likely that you added the RichEditorView's constraints before sub viewing it to your view controller.

Just i downloaded this code and i tested i got crash
Error Report:
-[UIThreadSafeNode canPerformAction:withSender:]: unrecognized selector sent to instance 0x2830c3440
["0   CoreFoundation                      0x00000001a5e309a0 DA838E75-6B30-360E-9661-C4800A7E1BF6 + 1227168", "1   libobjc.A.dylib                     0x00000001a5b590a4 objc_exception_throw + 56", "2   CoreFoundation                      0x00000001a5d3443c DA838E75-6B30-360E-9661-C4800A7E1BF6 + 193596", "3   CoreFoundation                      0x00000001a5e34e08 DA838E75-6B30-360E-9661-C4800A7E1BF6 + 1244680", "4   CoreFoundation                      0x00000001a5e36bec _CF_forwarding_prep_0 + 92", "5   UIKitCore                           0x00000001a9c6f758 82C949DD-37F6-35F7-B3EF-62BA342F6BF5 + 8525656", "6   UIKitCore                           0x00000001a9c75100 82C949DD-37F6-35F7-B3EF-62BA342F6BF5 + 8548608", "7   UIKitCore                           0x00000001a9c95a28 82C949DD-37F6-35F7-B3EF-62BA342F6BF5 + 8682024", "8   UIKitCore                           0x00000001a9c72864 82C949DD-37F6-35F7-B3EF-62BA342F6BF5 + 8538212", "9   UIKitCore                           0x00000001a9c95a28 82C949DD-37F6-35F7-B3EF-62BA342F6BF5 + 8682024", "10  UIKitCore                           0x00000001a9c684dc 82C949DD-37F6-35F7-B3EF-62BA342F6BF5 + 8496348", "11  UIKitCore                           0x00000001a9c975e0 82C949DD-37F6-35F7-B3EF-62BA342F6BF5 + 8689120", "12  UIKitCore                           0x00000001a9c96010 82C949DD-37F6-35F7-B3EF-62BA342F6BF5 + 8683536", "13  Foundation                          0x00000001a6219238 0DF2911E-80CB-3289-8A1E-ED0913D55A12 + 1278520", "14  CoreFoundation                      0x00000001a5dae7e0 DA838E75-6B30-360E-9661-C4800A7E1BF6 + 694240", "15  CoreFoundation                      0x00000001a5dae738 DA838E75-6B30-360E-9661-C4800A7E1BF6 + 694072", "16  CoreFoundation                      0x00000001a5dadf20 DA838E75-6B30-360E-9661-C4800A7E1BF6 + 692000", "17  CoreFoundation                      0x00000001a5da901c DA838E75-6B30-360E-9661-C4800A7E1BF6 + 671772", "18  CoreFoundation                      0x00000001a5da88bc CFRunLoopRunSpecific + 464", "19  GraphicsServices                    0x00000001afc14328 GSEventRunModal + 104", "20  UIKitCore                           0x00000001a9e3e6d4 UIApplicationMain + 1936", "21  Tully Dev                           0x0000000104cb171c main + 96", "22  libdyld.dylib                       0x00000001a5c33460 E1637502-BFCB-3BBC-B3E1-CCF78617E0E4 + 5216"]

Can you post the code from your view controller?
It should look something like this:
class BlahVC: UIViewController {
// Stuff should be here.
}

If you don't know what that means, maybe just post the entire project into a repo and we can take a look.

import UIKit
import RichEditorView
class ViewController: UIViewController {
@IBOutlet var editorView: RichEditorView!
@IBOutlet var htmlTextView: UITextView!

lazy var toolbar: RichEditorToolbar = {
    let toolbar = RichEditorToolbar(frame: CGRect(x: 0, y: 0, width: self.view.bounds.width, height: 44))
    toolbar.options = RichEditorDefaultOption.all
    return toolbar
}()

override func viewDidLoad() {
    super.viewDidLoad()

    editorView.delegate = self
    editorView.inputAccessoryView = toolbar
    editorView.placeholder = "Type some text..."

    toolbar.delegate = self
    toolbar.editor = editorView
    editorView.html = "Hshhshshegehgegsggsgsgsg show
Ddd

show

hello
\n\n
hello
\n\n"
    //"Jjjjjjjjjjjjf fvdfvjfdbvvfdjb vdfjvbdvdfjvbdvdf vfdvjdfbvdfvkfdjvbdfbkvbdfvkdf dfjkg DVD’s fvdf vodka. Vfdvfd<button type=button>Click Me!</button>"
    // We will create a custom action that clears all the input text when it is pressed
    let item = RichEditorOptionItem(image: nil, title: "Clear") { toolbar in
        toolbar.editor?.html = ""
    }

    var options = toolbar.options
    options.append(item)
    toolbar.options = options
}

}
extension ViewController: RichEditorDelegate {
func richEditor(_ editor: RichEditorView, contentDidChange content: String) {
    if content.isEmpty {
        htmlTextView.text = "HTML Preview"
    } else {
        htmlTextView.text = content
    }
}

}
extension ViewController: RichEditorToolbarDelegate {
fileprivate func randomColor() -> UIColor {
    let colors: [UIColor] = [
        .red,
        .orange,
        .yellow,
        .green,
        .blue,
        .purple
    ]

    let color = colors[Int(arc4random_uniform(UInt32(colors.count)))]
    return color
}

func richEditorToolbarChangeTextColor(_ toolbar: RichEditorToolbar) {
    let color = randomColor()
    toolbar.editor?.setTextColor(color)
}

func richEditorToolbarChangeBackgroundColor(_ toolbar: RichEditorToolbar) {
    let color = randomColor()
    toolbar.editor?.setTextBackgroundColor(color)
}

func richEditorToolbarInsertImage(_ toolbar: RichEditorToolbar) {
    toolbar.editor?.insertImage("https://gravatar.com/avatar/696cf5da599733261059de06c4d1fe22", alt: "Gravatar")
}

func richEditorToolbarInsertLink(_ toolbar: RichEditorToolbar) {
    // Can only add links to selected text, so make sure there is a range selection first
    if toolbar.editor?.hasRangeSelection == true {
        toolbar.editor?.insertLink("http://github.com/cjwirth/RichEditorView", title: "Github Link")
    }
}

}

Make sure you copy all the files from the sample correctly, including the .h and .m files.

-[UIThreadSafeNode _axResetFKAFocusToFirstResponder]: unrecognized selector sent to instance 0x600000035ce0
same issue

I took a look at the sample. Seems like your view controller is inheriting two delegates. I'm new to Swift, so I'm weary of multiple inheritance. In my opinion, when you're setting the editor's delegate to self, it might be because you have two delegates.
Try making a class extension for the toolbar delegate like the sample shows.
extension ViewController: RichEditorToolbarDelegate {}

Then, the editor's delegate will be assigned to the RichEditorDelegate only. Hope that helps @HarshalValanda  and @meetdoshi1

Hi am also facing this issue while trying to backspace,Please help to resolve this issue


Preferences file could not be read

Describe the bug
On first start (or after deleting client.prefs), the client starts as expected. On subsequent starts (whether or not any settings have been changed in the UI), the game fails to start with the following log message:
2021-05-20 17:40:53.727  WARN 252182 --- [JavaFX-Launcher] c.f.c.preferences.PreferencesService     : Preferences file /home/dhardy/.faforever/client.prefs could not be read

java.lang.reflect.InaccessibleObjectException: Unable to make field private final java.lang.String java.net.HttpCookie.name accessible: module java.base does not "opens java.net" to unnamed module @470e2030
	at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:357)
	at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
	at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:177)
	at java.base/java.lang.reflect.Field.setAccessible(Field.java:171)
	at com.google.gson.internal.reflect.UnsafeReflectionAccessor.makeAccessible(UnsafeReflectionAccessor.java:44)
	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:159)
	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:102)
	at com.google.gson.Gson.getAdapter(Gson.java:458)
	at com.google.gson.internal.bind.CollectionTypeAdapterFactory.create(CollectionTypeAdapterFactory.java:53)
	at com.google.gson.Gson.getAdapter(Gson.java:458)
	at com.google.gson.internal.bind.MapTypeAdapterFactory.create(MapTypeAdapterFactory.java:126)
	at com.google.gson.Gson.getAdapter(Gson.java:458)
	at com.google.gson.Gson.fromJson(Gson.java:926)
	at com.google.gson.Gson.fromJson(Gson.java:994)
	at com.google.gson.internal.bind.TreeTypeAdapter$GsonContextImpl.deserialize(TreeTypeAdapter.java:162)
	at com.faforever.client.preferences.gson.PropertyTypeAdapter.deserialize(PropertyTypeAdapter.java:123)
	at com.faforever.client.preferences.gson.PropertyTypeAdapter.deserialize(PropertyTypeAdapter.java:41)
	at com.google.gson.internal.bind.TreeTypeAdapter.read(TreeTypeAdapter.java:69)
	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:131)
	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:222)
	at com.google.gson.Gson.fromJson(Gson.java:927)
	at com.google.gson.Gson.fromJson(Gson.java:865)
	at com.faforever.client.preferences.PreferencesService.readExistingFile(PreferencesService.java:254)
	at com.faforever.client.preferences.PreferencesService.afterPropertiesSet(PreferencesService.java:173)

That doesn't sound like an error in the preferences file to me?
Other than that the client seems to work okay (able to launch games).
To Reproduce
Installed on Fedora Linux as per instructions (except using openjdk 16 from Fedora packages, which I have successfully used in the past).
OS
Fedora Linux 34

It turns out the prefs file ended eight lines short (line 125 of 133). Adding }  to the end was enough to make the client start.
No idea why this happened (repeatedly), but I might as well close this.

This is not solved. Usually the lua file is syntactically valid but still fails to load, as above.

We encountered the same if we run the client on Java 16. Are you sure you run on java 15 ?

Brutus beat me to asking about the java version

Yes, running on Java 16.

Yes then you need to run with java 15 as we are not yet compatible with java 16

Aha, thanks.


Add more tests to test/parameter_test.py

Nothing special.  I just played around with the new parameter system and
thought that I had found a bug.  Luckily I found out that I was wrong
but at least I produced some tests I think are worth contributing.

excellent!


What about the Databricks VM costs ?

This Example does not consider the virtual machine costs which would be in the Managed Resource group.

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: 275b7cd7-b882-a9c8-be03-7780a7352cff
Version Independent ID: ce5fdff3-ceea-dd6f-4f79-81fa08cbb453
Content: Pricing example: Copy data and transform with Azure Databricks hourly - Azure Data Factory
Content Source: articles/data-factory/pricing-examples-copy-transform-azure-databricks.md
Service: data-factory
Sub-service: pricing
GitHub Login: @jianleishen
Microsoft Alias: jianleishen

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

@LukeHerbst
Thank you for bringing this to our attention.
I've delegated this to content author, who will review it and offer their insightful opinions.


pip installation error

Hi all
I'm trying to install (and follow) the oso-github-django sample app.
My pip keeps failing to install any version of oso. django-oso got installed, but it fails at oso itself. Any suggestions?
Version 0.8
(venv) gldecurtins@Gians-Mac-mini objektor-django % pip install oso~=0.8
ERROR: Could not find a version that satisfies the requirement oso~=0.8 (from versions: none)
ERROR: No matching distribution found for oso~=0.8

Version 0.21
(venv) gldecurtins@Gians-Mac-mini objektor-django % pip install oso==0.21.0
ERROR: Could not find a version that satisfies the requirement oso==0.21.0 (from versions: none)
ERROR: No matching distribution found for oso==0.21.0

I'm running Mac OS X 11.6 with Python 3.10.0 (universal2), but also tried Python 3.9.7 (universal2).

Hi @gldecurtins,
You're most likely running into this because your Mac mini has an M1 chip. We have an open issue here for supporting M1 builds, with some workarounds that you should be able to use to get started.
Please let me know if you still can't get it working. Also you're welcome to join our slack, where you'll probably get a faster response.

Hi @gldecurtins We just added M1 support for Python in Oso 0.22.0, so this should be resolved! I am closing this issue for now but please let us know either here or in Slack if you're still having trouble installing Oso.


i am anil accept me for contribution

i am anil
i have completed my BCA from N. Naira Institute Of Technology & Management collage
i already have completed Full Stack Web Development Course and done 6 month intentship in bootstrap - and i will regularly do open source contribution let me know if any job vacancy available for me

What is this? I'm going to report you


Offer .json format export.

Hey,
right now it's not possible to really export the query to maybe use it with other modules.
I imagine the format like this:
{
   "needs": 2,
    "query": [
       {"exact": ["rs2032611": "D"]},
       {"has": "rs2032623"},
        {"or": [
           {"exact": ["rs2023651": "D"]},
           {"has": "rs20334341"}
         ]}
   ]
}

Having this would probably mean to also use this format internally, because converting those nested functions wouldn't work otherwise.
What do you think about it? I could create a PR for it.

Yeah that sounds totally reasonable

I'm actually rewriting the whole library right now to be non-streaming and make a lot more sense. dna2json has already been rewritten to drop streams. It was a cool idea but made the genosets really difficult to work with and extremely slow. The new query language and implementation will be a lot simpler, no classes, and cleaner. Should have something out today.

Okay, cool!

@finnp The changes are published - LMK what your first thoughts are

I think now with return values the language is much cleaner. It felt kind of hacky before. The new dna.json format also makes sense to me.  I still think it's cool to have a streaming interface, because the files are quite big, but that can easily be implemented on top of gql (e.g. gql-stream).
So yeah overall I think it's a good change. Makes things a lot simpler.

Closing due to inactivity - if you're still interested I'd love a PR for this though.


Update diag_shapeselect.py to work with shapely v2

Description
This pull request adjusts the diag_shapeselect.py diagnostic to work with the latest version of shapely (2+).
This partly solves #3242.

Closes #3242
Link to documentation:

Before you get started

[x] ☝ Create an issue to discuss what you are going to do

Checklist
It is the responsibility of the author to make sure the pull request is ready to review. The icons indicate whether the item will be subject to the 🛠 Technical or 🧪 Scientific review.

[x] 🛠 This pull request has a descriptive title
[x] 🛠 Code is written according to the code quality guidelines
[x] 🛠 Documentation is available
[x] 🛠 Tests run successfully
[x] 🛠 The list of authors is up to date
[ ] ~🛠 Any changed dependencies have been added or removed correctly~
[x] 🛠 All checks below this pull request were successful

New or updated recipe/diagnostic

[x] 🧪 Recipe runs successfully
[ ] ~🧪 Recipe is well documented~
[ ] ~🧪 Figure(s) and data look as expected from literature~
[ ] ~🛠 Provenance information has been added~

New or updated data reformatting script

[ ] ~🛠 Documentation is available~
[ ] ~🛠 The dataset has been added to the CMOR check recipe~
[ ] ~🧪 Numbers and units of the data look physically meaningful~

To help with the number of pull requests:

🙏 We kindly ask you to review two other open pull requests in this repository

@esmvalbot Please run recipe_shapeselect.yml

Should I try to reproduce the results of this diagnostic by using the preprocessor, or would that belong in another PR?

I'd say, let's get this in since you have already written a fix for the diagnostic. It's a pity we missed the cut for the release but it's nice to have a fix already available in case someone tries to run the recipe with the v2.9 released version. If you like, you could try to reproduce the results of this recipe using the preprocessor instead but I would do that in a separate PR. Maybe you could reuse this approach from recipe_extract_shape.yml

also cheers @remi-kazeroni for doing the heavy lifting review :beer:

@remi-kazeroni just as apost-scriptum, do we know why did the bot fail with a Permission denied on file?

@remi-kazeroni just as apost-scriptum, do we know why did the bot fail with a Permission denied on file?

@valeriupredoi - The AUX directory on Levante does not allow for read access to others (so is the bot)...

gotcha cheers @remi-kazeroni :+1: Can we not grant the bot access to the dir? No need to reply if this has been discusses before - am a bit rusty when it comes to the bot :grin:


Update flyway-core to 9.16.3

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

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.flywaydb", artifactId = "flyway-core" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "org.flywaydb", artifactId = "flyway-core" }
}]

labels: test-library-update, early-semver-major, semver-spec-major, commit-count:1

Done in #283


k4abt_tracker_create fails because of no CUDA, even when running in CPU mode.

Describe the bug

k4abt_tracker_create(&calib, tracker_config, &tracker); returns K4A_RESULT_FAILED. and the logs indicate the problem is a missing CUDA dll, but I am targeting the CPU or integrated GPU, so I shouldn't need CUDA
Note, I don't think this is relevant, but I am trying to use k4abt_tracker_t on recorded data.  calib is created from k4a_calibration_get_from_raw with the calibration data being read from disk.  tracker_config as below:
To Reproduce

    k4abt_tracker_configuration_t tracker_config = K4ABT_TRACKER_CONFIG_DEFAULT;
    tracker_config.processing_mode = K4ABT_TRACKER_PROCESSING_MODE_CPU;
    tracker_config.model_path = "pathtomodel\\dnn_model_2_0_op11.onnx";
    k4abt_tracker_t tracker = NULL;
    k4a_result_t result =  k4abt_tracker_create(&calib, tracker_config, &tracker);

Expected behavior

I would not expect an error, and I would expect tracker to not be null.  I would expect the CUDA requirement only when using CUDA.
Logs

New logging session started

[2021-04-20 16:00:36.833] [info] [t=13320] [K4ABT] ..\src\TrackerHost\TrackerHost.cpp (493): VerifyDependencies(). Verifying Dependencies!
[2021-04-20 16:00:36.835] [error] [t=13320] [K4ABT] ..\src\TrackerHost\TrackerHost.cpp (500): VerifyDependencies(). Cannot locate cudart64_110.dll; Please install CUDA 11.1 at https://developer.nvidia.com/cuda-11.1.0-download-archive
[2021-04-20 16:00:36.835] [error] [t=13320] [K4ABT] ..\src\TrackerHost\TrackerHost.cpp (154): Create(). At least one dependent library is missing!
[2021-04-20 16:00:36.835] [error] [t=13320] [K4ABT] ..\src\sdk\k4abt.cpp (38): tracker->Create(sensor_calibration, config) returned failure in k4abt_tracker_create()

Desktop (please complete the following information):

OS with Version: Windows 10 Pro 10.0.19042 Build 19042
SDK Version:  1.1.0
Firmware version:  Running from recording, no firmware version recorded.

One update: I installed CUDA (though I shouldn't have to), and now I have this error:
New logging session started

[2021-04-21 14:59:48.891] [info] [t=25672] [K4ABT] ..\src\TrackerHost\TrackerHost.cpp (493): VerifyDependencies(). Verifying Dependencies!
[2021-04-21 14:59:48.892] [info] [t=25672] [K4ABT] ..\src\TrackerHost\TrackerHost.cpp (171): Create(). Initializing CUDA and ONNX Runtime...
[2021-04-21 15:00:24.307] [error] [t=25672] [K4ABT] ..\src\TrackerHost\TrackerHost.cpp (185): Create(). Find onnxruntime.dll at C:\Users\jbrownkramer\projects\ComputerVision\DontPanic.CV.Tracking\DontPanic.CV.Clients.DebugClient\bin\x64\Debug\net461\onnxruntime.dll but it doesn't load correctly!
[2021-04-21 15:00:24.307] [error] [t=25672] [K4ABT] ..\src\sdk\k4abt.cpp (38): tracker->Create(sensor_calibration, config) returned failure in k4abt_tracker_create()

Following up on my most recent post: I ran onnxruntime.dll through dependency walker, and it itself has a dependency on cudnn64_8.dll.  Throwing that in with the build folder, and it now works.  It would be best for us (to keep deployment size down if nothing else) if this dependency didn't exist when we're not targeting an NVIDIA GPU.

seems to be related or a dup of https://github.com/microsoft/Azure-Kinect-Sensor-SDK/issues/1154

Dup of #1154 Fixed in the next release of ONNX runtime.


Keep track of the time taken during the conversion process.

Calculate the time taken for the conversion process.  If possible, do not include any elapsed time while user prompts are open.

Partially completed in commit 74dccb158e9344706b6768034a394176a9d356c9

Is the plan to difference the time from each line added to lbMessages?

@KyleBruene For single-threaded operations that would work, but when multiple threads are running in parallel, potentially adding entries to the list, displaying the time elapsed between each addition would result in the output being somewhat misleading.  I believe I anticipated this, to some degree, which is why it prefixes each entry with the current time.
It might prove beneficial to instead modify the way progress reporting is handled.  Adding additional parameters to the SqlConversionProgressReportingHandler delegate would probably be the easiest way to implement this, but that would require the consuming application to keep track of the elapsed time for each working process, which doesn't sound particularly appealing to me.  It would suffice as an interim solution, but I personally find the current implementation of progress reporting to be a bit obtuse.


Parliament2 for 10xG data on non-human genome

Dear Parliament2 developers,
should the software be able to deal with a 10x Genomics BAM file generated by Longranger pipeline?
Moreover, since I am not using a human reference genome, but I have a Grapevine genome assembled into 4700 contigs, should I exclude some of the tools?
Thanks in advance,
Simone

Hi MaestSi,
This is a good question. I am not sure in advance which of the programs will work. I have not tested with a 10X file before. I would recommend you might want to run each method individually first and see what works.
Also, if you want to call on the smaller contigs, you will need to not run with the --filter_short_contigs flag.

Dear AndrewCarroll,
I tried running Parliament2 pipeline excluding only breakseq2, since of course I don't have a library for recurrent breakpoints in Grapevine, and it worked well!
Thank you,
Simone


Dockerfile: fix curl "error loading libraries" error in CI

When running in the CI, we have the "error loading libraries" error
again because the "ldconfig" workaround came after using curl.

Not sure why this wasn't found when build-testing the PR, but at least the periodic builds now fail because of this:
https://cloudnative-k8sci.southcentralus.cloudapp.azure.com/view/pmem-csi/job/pmem-csi-periodic/176/execution/node/25/log

@okartau okay?


Where should we keep deployment documentations?

I attempted to add documentation on how to run the 2016 production server in README.md #528, but was later persuaded by @jneo8 to move the documentation into the wiki to avoid confusion.
After adding Production Environment for the 2016 Website and Production Environment for the 2017 Website, however, I realize there is a lot of duplication, and probably more to come as we move on.
Any suggestion for better deployment documentation alternatives?

Two alternatives I can think of

Put deployment documentation along with the code, e.g. DEPLOY.md, as suggested by @uranusjr
Keep the deployment documentation in a single wiki entry, and some how address the difference between each website

Prefer 1, DEPLOY.md.

Now that DEPLOY.md is merged into master I think we can close this issue


Push the notifications to the transparent box as clickable cards (Front-End)

Parent Issue: #120
Hours: 5 hours

So I was thinking that clicking the cards should either display more details and/or display an "x" button that can be pressed so as to remove the notification from the box.

@jameelbrochu @j-suguma Guys it looks like this now:

It's not as appealing as the previous one, but now instead of being hard coded, the cards are displayed through a function.

Hour: 5

Time: 3

Time: 3 hours


Update vulnerable packages

There are no Mocha tests on this project right now, huh?

No, I'm planning on adding some in the future.


Need toObject() version that applies getters and virtuals.

The model test "saving a doc with a set virtual property should persist the real properties but not the virtual property" explicitly tests that toObject() (and therefore JSON.stringify()) does not contain virtual properties.
However I have a usecase where I want to JSON.stringify an object and get a representation of the object how my app sees it (with getters and virtuals applied) and not how the database itself has stored the object.
Also, is there a method to completely hide a certain model field from the app? So if I have the virtual, I can only access the virtual but not the real property behind it?

+1 I have a similar issue, I'd love to be able to use getters to format model data as it's serialised to JSON, as my model's primary use is in their JSON form.
I was able to get around it by just setting the data to what I wish it to look like in JSON, but I'm not 100% happy about having to store munged data in the db instead of simply adding + formatting additional fields as it's serialized. Perhaps defining a custom toJSON would work better. Let me know if you found a workaround.

+1

+1

Thanks it works,
But if I call .toJSON() of a mongoose object, .toJSON() of populated objects are not called (.toObject() is called instead.)
Please check my pull request #675 that fixes this.


[WIP] Add some TextField tests

WIP, documenting my current text test progress

https://gist.github.com/MSGhero/848dabee2b1f210abfb252857e7fcc2a
Will get these integrated, but they all work locally against Flash except one that is probably a Flash bug

Wait I messed up


Update ActiveMQServerImpl.java

This fixes the situation in ActiveMQServerImpl.createSession () ActiveMQServerImpl.checkSessionLimit () is called with  the ServerSessionImpl.validatedUser parameter, but to count the list of sessions, the ActiveMQServerImpl.getSessionCountForUser () method is called, which already iterates over the sessions, ServerSessionImpl.getUsername () is called. In the case of certificate authentication via the TextFileCertificateLoginModule, getUsername() is always null for client connections, while ServerSessionImpl.validatedUser is set to the normal user ID via the call to securityStore.authenticate() at the very beginning of the ActiveMQServerImpl.createSession() method.

ActiveMQServerImpl.getSessionCountForUser

done

This PR is targetting 2.19.x, it should instead target main (if it were to be backported the change would then be picked from main; however there are no plans to do further 2.19.x releases).
The test should be added in the same commit as the change, i.e in this PR, rather than in a seperate PR as you have created (where you actually did target main). You can update a PR by force pushing to the same PR branch after you have made the needed changes, no need to close and reopen.
Aside, at the very least your test is missing the licence header, which failed the Travis CI build, although it looks like there may be other style issues as well. You can enable the GitHub Actions based CI jobs in your own fork repo (see the Actions tab) which has more granular checks, and use it to run the jobs on your own fork before opening/updating a PR (since you already opened this one, you would need to use a seperate testing branch to pre-test your updates before updating the original branch).

This PR is targetting 2.19.x, it should instead target main (if it were to be backported the change would then be picked from main; however there are no plans to do further 2.19.x releases).
The test should be added in the same commit as the change, i.e in this PR, rather than in a seperate PR as you have created (where you actually did target main). You can update a PR by force pushing to the same PR branch after you have made the needed changes, no need to close and reopen.
Aside, at the very least your test is missing the licence header, which failed the Travis CI build, although it looks like there may be other style issues as well. You can enable the GitHub Actions based CI jobs in your own fork repo (see the Actions tab) which has more granular checks, and use it to run the jobs on your own fork before opening/updating a PR (since you already opened this one, you would need to use a seperate testing branch to pre-test your updates before updating the original branch).

I made new PR.
But, main branch contain same problem, possible need same test.

Im not sure what part of my comment was unclear, but again more succinctly:

Update this PR as requested when feedback is given, dont create new ones.
Initial PRs should always target main, not branches.
There are no plans to release another 2.19.x so nothing should be targetting it regardless.

Im not sure what part of my comment was unclear, but again more succinctly:

Update this PR as requested when feedback is given, dont create new ones.
Initial PRs should always target main, not branches.
There are no plans to release another 2.19.x so nothing should be targetting it regardless.

Ok, it's clear now.
I changed the patch and test branch to main.


Deploy to linux premium app fails

"If I first deploy to a elastic premium linux app with core tools, and then I deploy over the top with VS code, I get the following error:
1:31:58 PM: Error: Run-From-Zip is set to a remote URL using WEBSITE_RUN_FROM_PACKAGE or WEBSITE_USE_ZIP app setting. Deployment is not supported in this configuration."

Related to discussion here: https://github.com/microsoft/vscode-azurefunctions/issues/1683. It kind of baffles me that the cli is using the storage deploy method


fixing directory call returned incomplete/incorrect data

We discovered that the directory() call returns either incomplete or duplicate data when attempting to return more than 1000 records per Redis server.
The problem was the misuse of the unused user key ptr by multiple cursors at the same time. Therefore the cursor information of N-1 servers got lost and the wrong data was returned.
The fix uses a dedicated cursor ptr in the request status field, so that collisions are avoided.

ready for review now


[MERGE] Merge master branch to streaming branch

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/12700/
Test PASSed.


json input data

There should be an option for input data to be in json format.
In this case the default data and some of the functions will need to be changed.

Done!