Failed to get google redis instance status

Describe the bug

Steps to reproduce

New a resource to create a google redis instance.

Result

Unable to get google redis instance status.

Check Walrus logs.

2024-03-07T11:49:10.759Z	D	api	200 | HTTP/2.0 |     11 KiB |        0 B |   12.932704ms |       <IP_ADDRESS> | PUT     /v1/projects/503740965677225986/environments/503751901871921154/resources/503789528654338050/runs/503789528671115266/terraform-states
2024-03-07T11:49:13.330Z	D	signal.handler	reaped child process 45909
2024-03-07T11:49:13.583Z	E	api.resource-run	error stating resources: error get resource google_redis_instance:projects/project-xxx/locations/asia-east2/instances/default-azure-google-redis-666pahet2w from<PHONE_NUMBER>53018370: failed to get google resource google_redis_instance projects/project-xxx/locations/asia-east2/instances/default-azure-google-redis-666pahet2w: rpc error: code = InvalidArgument desc = Malformed name: 'projects/project-xxx/locations/asia-east2/instances/projects/project-xxx/locations/asia-east2/instances/default-azure-google-redis-666pahet2w'
error details: name = BadRequest field = projects/project-xxx/locations/asia-east2/instances/projects/project-xxx/locations/asia-east2/instances/default-azure-google-redis-666pahet2w desc = Invalid resource pathname in resource URL path
github.com/seal-io/walrus/pkg/apis/resourcerun.reconcileResourceComponents
	github.com/seal-io/walrus/pkg/apis/resourcerun/extension.go:411
github.com/seal-io/walrus/pkg/apis/resourcerun.manageResourceComponentsAndEndpoints.func2
	github.com/seal-io/walrus/pkg/apis/resourcerun/extension.go:336
github.com/alitto/pond.(*WorkerPool).executeTask
	github.com/alitto/pond@v1.8.3/pond.go:454
github.com/alitto/pond.worker
	github.com/alitto/pond@v1.8.3/worker.go:32
2024-03-07T11:49:14.344Z	I	k8sctrl.deployer.tf	succeed	{"resource-run": "503789528671115266"}
2024-03-07T11:49:14.708Z	E	api.resource-run	error stating resources: error get resource google_redis_instance:projects/project-xxx/locations/asia-east2/instances/default-azure-google-redis-666pahet2w from<PHONE_NUMBER>53018370: failed to get google resource google_redis_instance projects/project-xxx/locations/asia-east2/instances/default-azure-google-redis-666pahet2w: rpc error: code = InvalidArgument desc = Malformed name: 'projects/project-xxx/locations/asia-east2/instances/projects/project-xxx/locations/asia-east2/instances/default-azure-google-redis-666pahet2w'
error details: name = BadRequest field = projects/project-xxx/locations/asia-east2/instances/projects/project-xxx/locations/asia-east2/instances/default-azure-google-redis-666pahet2w desc = Invalid resource pathname in resource URL path
github.com/seal-io/walrus/pkg/apis/resourcerun.reconcileResourceComponents
	github.com/seal-io/walrus/pkg/apis/resourcerun/extension.go:411
github.com/seal-io/walrus/pkg/apis/resourcerun.manageResourceComponentsAndEndpoints.func2
	github.com/seal-io/walrus/pkg/apis/resourcerun/extension.go:336
github.com/alitto/pond.(*WorkerPool).executeTask
	github.com/alitto/pond@v1.8.3/pond.go:454
github.com/alitto/pond.worker5atusSyncCronExpr", "duration": "3.419732971s"}
2024-03-07T11:50:05.843Z	W	task	error executing: error get resource google_redis_instance:projects/project-xxx/locations/asia-east2/instances/default-azure-google-redis-666pahet2w from<PHONE_NUMBER>53018370: failed to get google resource google_redis_instance projects/project-xxx/locations/asia-east2/instances/default-azure-google-redis-666pahet2w: rpc error: code = InvalidArgument desc = Malformed name: 'projects/project-xxx/locations/asia-east2/instances/projects/project-xxx/locations/asia-east2/instances/default-azure-google-redis-666pahet2w'
error details: name = BadRequest field = projects/project-xxx/locations/asia-east2/instances/projects/project-xxx/locations/asia-east2/instances/default-azure-google-redis-666pahet2w desc = Invalid resource pathname in resource URL path	{"createBy": "ResourceComponentStatusSyncCronExpr"}

Expected behavior

Environment

Walrus version: v0.6.0-rc1

Additional context
Add any other context about the problem here.

Environment

Walrus version: main f1ad5a6dd0a90bd792b6222337a98d37b89ceb7b
UI version: dev-22fdb32

Test Result: pass


feat: exposed multipart-body axios functions

PR Checklist
Please check if your PR fulfills the following requirements:

[x] The commit message follows our guidelines: https://github.com/nestjs/nest/blob/master/CONTRIBUTING.md
[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

PR Type
What kind of change does this PR introduce?

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Other... Please describe:

What is the current behavior?

Issue Number: #1030
What is the new behavior?
Exposed Axios Multipart Bodies methods in HttpService.
Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

these new methods wasn't introduced in axios v1.0.0, right? I think we need to bump the peer dependency on axios to force the newer version... but I'm not sure

lgtm


For review: React Table POC

Description
This adds a React Table to the /admin route, which (as currently commented/coded) uses hardcoded duty_station objects to mimic an API. (This made it easier to test with IE in a VM.) However, the API call is in place; instructions on lines 10-11 in /src/Admin/index.jsx will instruct you how to switch to a live API call.
It'll probably be pretty clear pretty fast that this is not meant to be merged and is instead meant to be reviewed, discussed, and used as a resource for future work. Just in case the large red hearts didn't make it clear: kindly do not approve this to merge.
Reviewer Notes
I've also left some commented sections in so you can see other options. For instance, toward the end of index.jsx, filterable is commented out. Add it back in, and every column gets a text field that live-filters based on text input. You can see more options in the React Table examples here.
The goal of this is to demonstrate that React Table is a viable option for our Office interface to list moves and their statuses. It was my experience that this was easy to alter and tailor, that the docs and example are good and clear, and that the community is active and supportive.
IE may, in the way of all things React, take a little extra effort. (You can see one note about how to handle IE issues (here)[https://github.com/react-tools/react-table/issues/340], for instance, and the repo owner steps in and is involved.) When Jim and I originally worked through it, the table showed up immediately, but without data, it showed as loading infinitely. As soon as we added the data, it rendered. We have concerns about rendering and especially filtering perhaps being a little slow; we tested it in a VM, but the VM's own slowness made it difficult to pinpoint where the problem was. We don't think this may just be endemic to pushing React to IE, and it will be something to be mindful about in future work.
Code Review Verification Steps

[ ] All tests pass.
[ ] There are no aXe warnings for UI.
[x] This works in IE.
[ ] Request review from a member of a different team.
[ ] (TRIAL) Have the Pivotal acceptance criteria been met for this change?

References

Pivotal story for this change
This is the example that this POC was based on.

Screenshots

It takes CSS easily (and the demos all include it). There are lots of options for altering its appearance and function.

Looks good, and it works in IE11! Is there a way to enable sorting? It doesn't seem like the UUID column wants to sort.

Mischief managed.


Test a single pipe configuration in Larva

❗ please do not add sensitive information in issues, you can provide extra information via email using issue number as reference ❗
Describe the issue
Currently Larva offers some functionality to test stylesheet's, this is great whilst working on a stylesheet, it allows for fast feedback to changes made to a stylesheet.
A similar feature could be provided to allow Frank developers to test individual pipe configurations in Larva.  Currently this is only possible by creating an entire adapter and changes are only activated after reloading. All combined, this makes it quite an annoying routine to quickly illustrate/test a pipe configuration.
By allowing developers to define single pipes in Larva, this enables a faster workflow.
For example, when working on a XSD file for Json2Xml conversion for a quite complex JSON message, it would be helpful if I could define a Json2XmlValidatorPipe in Larva, define the inputs, expected outputs and run some tests.
Another benefit would be to have the ability to save some example pipe configurations without having to create adapters for them, this is great for collaboration purposes.

We will look at it when refactoring Larva


Effect Ordering

I don't know if effects work like how I think they do, but I believe that effects have a certain order of processing (example, note filter, then distortion, then echo, etc). I am curious if it could be possible to make some sort of prompt or piece of UI for configuring what order the effects play in.

Ah yup. Sucks that I'm not too familiar with the more technical side of effects, but other than that, makes sense to me.
As for the place where the order can be changed, I was thinking placing an "order" button either to the left or right of the "effects" label. The prompt where this order changing takes place, well, I don't exactly have an idea how to make an intuitive UI for changing the order of things. I'd assume maybe by drag clicking the effects up and down a list contaning them could be a good way of visualizing it.

Little note Imma put over here. The default order in which effects are applied is something like this:
Note Filter -> Distortion -> Bitcrusher -> Eq Filter -> Panning -> Chorus -> Echo -> Reverb
(First to last order. The ones not included here are usually just pitch-changers or things about note behavior.)
A question(s) I need to review for answers:
Do bit crush and freq crush both happen at once?

A sketch I made for a possible reordering prompt.
Could also do it like envelopes and have it be like that. Depends.


Make it JST compliant

Currently it generates the full JST template trying to shorten the names.
I did similar thing in my pakunok gem for hamljs. Did it even smarter when ot was producing the plain function names for subdirectories.
But after some discussions and considerations decided to stick to rails conventions
This resulted in a separate gem (ruby-haml-js).
It might look like a good idea to automatically attach the template to JST.
But this is not how it is supposed to be.

I do nothing fancy with the path, I just use scope.logical_path and pass it to the haml-coffee compiler. So it's up to the user how he configures the asset pipeline to get the name he needs.
JST template generation was already built into haml-coffee and I didn't want to change it.

There are two solutions for this:

Remove the JST generation from haml-coffee in haml_coffee_assets with simple string manipulation. I don't like it, because why should haml_coffee_assets remove a completely valid JST template just to let the Sprocket JST processor generate the exact same template again?

Add a parameter --no-template to skip the template generation in haml-coffee  and change haml_coffee_assets to pass it to the compiler and update the README that .jst is needed as extension.

I don't want to spend more time to make something that works fine for me now to make it work a little different just to be "JST compliant".
If you bother with the missing .jst in your extension, I'll happily merge any pull request that solves it in the way described as the 2nd solution above.


Running gb alone should produce usage text, including available subcommands

Input:
$ gb

Output:
2015/04/27 11:00:39 no command supplied

Expected output:
Usage:
  gb [flags] build [package] - builds a package
  gb [flags] test [package]  - tests a package

Flags:
  -goarch="amd64": override GOARCH
  -goos="darwin": override GOOS
  -goroot="/Users/peter/src/go.googlesource.com/go": override GOROOT
  -q=false: suppress log messages below ERROR level
  -toolchain="gc": choose go compiler toolchain
  -v=false: enable log levels below INFO level

@constabulary do you want me to do that?

@mariokostelac sure, i'm working on #5 at the moment as part of getting more complicated patterns to work.
A note of advice, this shouldn't just be a dead blob of text, it should consume data from the registered commands and produce the information dynamically -- you can change the main.Command interface in any way you choose to do so.

@davecheney ok, i'll look at the similar tools and the way how they do that.

Also, I will catch some time for that next week, probably not sooner. Sorry if that's too late.


Tenant ctrl: automatically delete namespace after timeout

Description
This PR aggregates the modifications originally proposed in #821 (by @rs59) and #827 (by @QcFe), and preserved in the corresponding commits. Additionally, it introduces a set of minor improvements, as well as of dedicated tests.
Supersedes: #821, #827
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Please also note any relevant details for your test configuration.

[x] Automated tests
[x] Staging environment

/deploy-staging

/deploy-staging

@QcFe I've rebased this PR, solving the conflicts introduced by the new MyDrive feature and the removal of the old one. Before merging, please give it a try in the staging environment, to make sure everything still works properly.

Thank you so much @giorio94, will go through tests on monday hopefully

/deploy-staging

@giorio94 Sorry for the impossible delay. It seems there's a mismatch between the tenant cmd/main and the helm: the flag from helm is tenant-ns-keep-alive but the expected flag is tenant-operator-ns-keep-alive. I'll proceed with manual fix on the deployed staging to see everything else is correct

@giorio94 Sorry for the impossible delay. It seems there's a mismatch between the tenant cmd/main and the helm: the flag from helm is tenant-ns-keep-alive but the expected flag is tenant-operator-ns-keep-alive. I'll proceed with manual fix on the deployed staging to see everything else is correct

I've updated the PR to make the flags match. I've opted for tenant-ns-keep-alive, since this is related to tenants themselves, and not to the tenant operator.

/deploy-staging

/merge


create script that builds from source and pushes into production

Now that we aren't watching /dist from #34 it would be good to get a shell script or some sort of automated way of building from the master branch and pushing into gh-pages for the production site. This presumably would only work for those who have write access and if they actually ran the script themselves. What does that workflow look like?

I've actually got this 90% of the way done: https://github.com/alukach/drop-n-chop/blob/master/.travis.yml  .  The intended feature is to build the project and deploy it to the gh-pages branch at the end of every successful Travis build on master.

I had no idea you could run things after_success in Travis. That's really neat! Also removes the whole step of one of us needing to run the script manually from our machines. Nice work!

Fixed in #44


when i pull down the refresh the page, there's a white gap on the top

Hello.,when i pull down the refresh the page, there's a white gap on the top. it is very hard to say, so let us to watch the video, before when i using cch with the same config, it was look like the photo below,it is great, all the bar and icon pinned and fixed on the top.
Video below : desktop.zip
Desktop.ZIP

Before^^^^^^^^^^^^^^^^^^^^^^^
but now i upgrate to custom-header, when i pull it to refresh all the bar and icon pull together , there are big white gap on the top don't look good.  Can we fix this ?

In order to accommodate new features and fix a ton of issues that existed in CCH, Custom Header now creates its own header and hides the default one rather than modifying the default header. Since it's not the default header element anymore I would assume that the iOS app just sees it as another element causing it to move down like the others.
Unfortunately, I don't believe this is something that I could fix and since it's a very minor thing that only happens on a page refresh it's not really a priority. I will look into it in case I'm wrong, but am going to close this one as I don't think it's possible.


Refactor snowplow event builder

This PR

Gets rid of the magic that is custom unmarshalers and struct coercion. While this approach is slightly verbose, it is entirely clear and there is limited magic. The other way was too slow to debug, too fragile, and ventured into the realm of zero visibility.
Fixes some snowplow relay stuff
Fixes misc webhook functionality/bugs
Adds relay id
Makes snowplow data types/structs more consistent with golang and less consistent with snowplow internals


[flutter_tools] null safety mode is used for dill naming

Description
A dill compiled in sound/unsound mode cannot be reused in --initialize-from-dill for compiling unsound/sound mode. Rename the file if sound mode is detected via command line argument.
This does not work in the case of autodetect.
Fixes https://github.com/flutter/flutter/issues/68891

Most of this change is plumbing, because the test config does not use buildInfo mostly. I can refactor that to be a bit easier to follow later (will require updating g3).

Landing before presubmits are finished to get rollers unblocked.


Idemia - The locations of jobs from another country appear

ENVIROMENT: production
URL: peviitor.ro
Browser: Mozilla
Device: Laptop
OS: Windows 10
STEPS TO REPRODUCE:

Open URL in browser
Type "Idemia" in the search bar.
Click on "Cauta" button
Right-click and then click the Inspect option
Click on "Network" Button
Click on "Fetch/XHR"
Right-click and copy as cURL(bash) the API URL
Go to Postman - add a new request, paste the link and click "SEND" button
Go to the Idemia career page: https://careers.idemia.com/search/?createNewAlert=false&q=&locationsearch=romania&optionsFacetsDD_city=&optionsFacetsDD_customfield2=&optionsFacetsDD_customfield3=
Check jobs location

EXPECTED RESULTS:
On the peviitor.ro website, there are jobs with locations from another country: Dakar(Senegal) and Courbevoie(Franta).
ACTUAL RESULT:
All job locations are in Romania.

Fixed.


BUG:text Not Fitting + Newsletter background

Is there an existing issue for this?

[X] I have searched the existing issues

What went down?
text is not fitting in the sceen

this is looking odd

Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[ ] I'm a VSoC'24 contributor
[X] I want to work on this issue

@nishant0708 It's look good and attractive as in the deployed.


Uncaught ReferenceError: html2canvas_X is not defined

I have three different divs that i'm turning into images with id's of "boxBanner", "skyscraperBanner", and "scoreboxBanner".  When the user clicks a button, I'm running a function that does the following code for each of the three IDs:
html2canvas($("#[DIV ID HERE]"), {
proxy: "./proxy.php",
onrendered: function(canvas) {
var theCanvas = canvas;
$("#resultsArea").append(canvas);
}
});
This code will only render one of the three images.  In the console, I get an error stating "Uncaught ReferenceError: html2canvas_0 is not defined" with a 2 next two it, (one for each of the divs that isn't the first i'm assuming).
Is there a fix for this?

Sounds like bug in html2canvas and not in proxy, see this pullrequest: https://github.com/niklasvh/html2canvas/pull/554
Thanks!


Integrated Milvus Vector DB into main

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

Integration of Milvus Vector DB

Why was this change needed? (You can also link to an open issue here)

Provide a new DB choice

Other information:

Hi, I might an authorization to delpoy

Hi, is there anyone who can help me with the Vercel deployment?

we need this feature, @dartpain could you please help to review it?

So few comments on this PR,

I added filter parameter to search method
Lots of upgrades to make it all work
Dont use Milvus here as local file - its recommended to deploy it separately, as worker and backend containers will query it.

Finally to install in just add
langchain-milvus==0.1.4
to your requirements txt file


Made Typography Left Align w/signoff

Signed-off-by: Sari Stissi<EMAIL_ADDRESS>Description
This PR fixes #
Notes for Reviewers
Signed commits

[x] Yes, I signed my commits.

Yay! 🎈

@leecalcote This PR fixes Issue #2577
So Ig that issue can be closed now 😶


Using a different PC for mic and audio

Hey there! I have the server running without issues, MMM-GoogleAssistant installed on the server, everything is smooth.
The thing is: i'm using a remote, virtualized server running magic mirror..i cannot simply attach a mic and speaker to it. Any chance i can use a browser on a different computer to speak / listen with the MMM-GoogleAssistant module? Has anyone tried it?
Cheers and thanks, mates!

Hi, it's not possible

There is no mic config (I use only pulse audio on default interface)
Gateway have MM² "server mode only" denied

But... I've been thinking how to do it without retouching everything for a few months
So, Maybe it's will be available (or not)

Closing this because

third party modules are not supported here
not possible at the moment


Failed to build reqwest v0.11.15 doc

From docs.rs:
[INFO] [stderr]     If you want Rustdoc to scrape these examples, then add `doc-scrape-examples = true`
[INFO] [stderr]     to the [[example]] target configuration of at least one example.
[INFO] [stderr] warning: Target filter specified, but no targets matched. This is a no-op
[INFO] [stderr]  Documenting reqwest v0.11.15 (/opt/rustwide/workdir)
[INFO] [stderr] error: The `http3` feature is unstable, and requires the `RUSTFLAGS='--cfg reqwest_unstable'` environment variable to be set.
[INFO] [stderr]    --> src/lib.rs:223:1
[INFO] [stderr]     |
[INFO] [stderr] 223 | / compile_error!(
[INFO] [stderr] 224 | |     "\
[INFO] [stderr] 225 | |     The `http3` feature is unstable, and requires the \
[INFO] [stderr] 226 | |     `RUSTFLAGS='--cfg reqwest_unstable'` environment variable to be set.\
[INFO] [stderr] 227 | | "
[INFO] [stderr] 228 | | );
[INFO] [stderr]     | |_^
[INFO] [stderr]
[INFO] [stderr] error: could not document `reqwest`
[INFO] [stderr]
[INFO] [stderr] Caused by:

@seanmonstar Is a point release scheduled to fix the docs issue? All the doc links, for example in lab sessions, are unavailable right now.


Is endpoint the only command?

hfie --help returns
Usage: hfie [OPTIONS] COMMAND [ARGS]...

Options:
  --install-completion [bash|zsh|fish|powershell|pwsh]
                                  Install completion for the specified shell.
  --show-completion [bash|zsh|fish|powershell|pwsh]
                                  Show completion for the specified shell, to
                                  copy it or customize the installation.
  --help                          Show this message and exit.

Commands:
  endpoint

Is there scope for additional additional commands? If not, do we want to simplify by removing the endpoint command and make it default

From what I am seeing here there is also a provider endpoint https://huggingface.co/docs/inference-endpoints/api_reference so I assume we want to expand to this later, right? If so, I can create an issue for that and close this.

Yes, i planned to include provider too

cool, closing in favor of #20


relative require throws "can only load non-root modules"

With the removal of the base option from browserify, I am trying to update my project to utilise the require option instead.
Given the following structure...
/
    /modules
        entry.coffee
        /a
            a.coffee
        /b
            b.coffee

If entry requires ./a/a and a requires ../b/b then the following is thrown on requiring entry
Can only load non-root modules in a node_modules directory for file: /Users/pyrotechnick/webclient/modules/b/b.coffee

Similarly, when modules/b is nested within modules/a it throws the same error.

Still no update on this?


Update MessageBundle_ru.properties

Translated new fields
Description

Motivation and Context

Requested in #478
Screenshots (if appropriate):
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[x] Non-Functional Change (non-user facing changes)

Checklist:

[x] My code follows the code style of this project (./gradlew check passes clean).

Tip: If you have lint issues just run ./gradlew :ktlintMainSourceSetFormat.

[ ] I updated the version.
[ ] I updated the changelog with the new functionality.

Thank You!


improvement meta tag

Thank you for checking my pr.

Please check and merge.
thanks, btw, i modified timeline. if you wanna apply that timeline theme. i can pr in here.

Thanks @gipyeong-lee!


[Toothpick] Device support form - Bose QuietComfort (QC) 35 wireless headphones II

Extension – Toothpick
Device brand and model
Bose QC35 II
Device data
{
    "Bose QC35 II": {
        "device_address": "60:AB:D2:3B:0E:DA",
        "device_firmwareVersion": "4.8.1",
        "device_minorType": "Headphones",
        "device_productID": "0x4020",
        "device_rssi": "-51",
        "device_services": "0x800019 < HFP AVRCP A2DP ACL >",
        "device_vendorID": "0x009E",
        "device_connected": "true"
    }
}

Hello! Thanks for your submission. Your device is now mapped inside Toothpick. Due to API limitations from Apple's and Raycast's side, ANC control and battery level indicators are not possible at the moment. This might change in the future.


Worldanvil Browser won't work in version 1.4.5: TypeError: An error occurred while rendering WorldAnvilBrowser 5. category.articleIds is undefined

Worldanvil Browser won't start in version 1.4.5
Attempting to open the WA browser with the WA Button, which does not work (after correctli setting the WA Api key ofc). Checking the console gives the following error message:
TypeError: An error occurred while rendering WorldAnvilBrowser 5. category.articleIds is undefined
In consequence the WorldAnvilbrowser in Forge and Foundry does not open.
The issue does not seem to persist in Version 1.4.3.

All the button does for me right now are a few API requests to WA and then
foundry.js:655
Error: An error occurred while rendering WorldAnvilBrowser 27. Cannot read properties of undefined (reading 'OBSERVER')
    at Hooks.onError (foundry.js:654:24)
    at 🎁call_wrapped [as call_wrapped] (libWrapper-wrapper.js:507:22)
    at 🎁Hooks.onError#lib-wrapper (listeners.js:138:11)
    at 🎁Hooks.onError#0 (libWrapper-wrapper.js:187:52)
    at foundry.js:5794:13
Caused by: TypeError: Cannot read properties of undefined (reading 'OBSERVER')
    at WorldAnvilBrowser.getContentTree (journal.js:123:103)
    at async WorldAnvilBrowser.getData (journal.js:81:18)
    at async WorldAnvilBrowser._render (foundry.js:5837:18)

Foundry 12, Build 330


Improve ts and js type validation error message

When using the generated Convert with Typescript (and Javascript) it is currently very hard to track down the point at which validation fails.
For example, here is an error message thrown during a Convert
Error: Invalid value undefined for type 0

This error doesn't help find the error (especially in larger objects).
This PR attempts to improve validation errors by adding the failing object key to the error message. Which would produce an error like this
Error: Invalid value for key "block_index". Expected type 0 but got undefined

Superseded by #1534


Add query_scalar convenience method to Statement

I have a bunch of code in a few different projects looking up IDs that generally looks like:
let mut stmt = conn.prepare_cached("SELECT id FROM table WHERE k1 = ?1 AND k2 = ?2")?;
match stmt.query_map(&[&k1, &k2], |r| r.get_checked(0))?.next() {
    Some(v) => Ok(v??),
    None => Ok(None)
}

I have a helper function I use to clean this up, but I thought this might be generally useful in the API.

What about refactoring / breaking query_row such as it returns a Result<Option<T>> instead ?

If I had something like Statement::query_row but with F being F: FnOnce(&Row) -> Result<T> I wouldn't need to do as many contortions to get from Result<Option<Result<T>>> to something useful. It's the fact that Row::get can panic and Row::get_unchecked returns Result that makes query_row awkward beyond just the Option<>.

NULL value can be converted to None:
https://docs.rs/rusqlite/0.14.0/src/rusqlite/types/from_sql.rs.html#138-145
So there is no way for the caller to make the distinction between no row or a row with a NULL value.

I've found I can generally let type inference do the dirty work to keep things from getting too ugly as far as explicit typing goes.

Ok,
When there is no row matching the specified query:

query_row uses a specific error QueryReturnedNoRows
query_row_opt uses an Option instead

When a NULL value is extracted:

query_row returns a Result<Option<T>>
query_row_opt returns a Result<Option<Option<T>>

query_row is convenient when at least one row is expected.
query_row_opt is convenient when there is no row.
query_scalar seems redundant to me.

There is also onecolumn provided by the TCL API.
So your PR is fine.
I just need some time and make sure we cannot merge query_row and query_row_opt.
Thanks you.

Just a note to take a look at https://docs.rs/diesel/1.3.3/diesel/query_dsl/trait.RunQueryDsl.html#method.first

If the query truly is optional, you can call .optional() on the result of this to get a Result<Option>.

https://docs.rs/diesel/1.3.3/diesel/result/trait.OptionalExtension.html#tymethod.optional

By default, Diesel treats 0 rows being returned from a query that is expected to return 1 row as an error (e.g. the return value of get_result or first). This method will handle that error, and give you back an Option instead.


Getting error while using it during debugging, i.e. clicking on the "Expression tree visualizer"

blow are some details which might help you.

Visual studio version:- vs2019 community latest preview.
Expression tree version:- took latest from the github release
.Net Framework used:- .net core 3.1 with xunit project.

below is the expression.
.Lambda #Lambda1<System.Func`3[MyExpression.lib.test.MyClass,MyExpression.lib.test.MyClass1,MyExpression.lib.test.MyClass]>(
    MyExpression.lib.test.MyClass $myClass,
    MyExpression.lib.test.MyClass1 $myclass1) {
    .Block() {
        .Block() {
            $myClass.MyProperty = $myclass1.MyProperty;
            $myClass.MyProperty = $myclass1.MyProperty
        };
        $myClass
    }
}

Do let me know if you some other information also.

I'm not sure why this happens; but other people have reported it as well. (https://github.com/zspitz/ExpressionTreeVisualizer/issues/103).
I haven't been able to duplicate this.
You can workaround this by installing the visualizer to the Visual Studio install path, instead of the subfolder under Documents, as described here.

I have placed the dll inside Visual studio install path, i am getting the below error now.
Unable to perform function evaluation on the process being debugged.

Additional information:-
Evaluation timed out

at Microsoft.VisualStudio.DebuggerVisualizers.Impl.VisualizerObjectProvider.Create(IVisualizerObjectProviderInternal visualizerObjectProviderInternal)
at ClrCustomVisualizerVSHost.ClrCustomVisualizerVSHostHelper.DisplayValue(IntPtr hWnd, SuccessEvaluationResultProxy evaluationResult, Int32 selectedIndex, DkmApiVersion protocolVersion)

Once you called .Compile() on the expression, you can open the visualizer on the original expression, not on the result of the compilation? That's rather strange.
Could you add a reference to https://www.nuget.org/packages/ExpressionTreeToString/ and call the ToString extension method on your expression?
// using ExpressionTreeToString;
Expression expr = ...
var tostring = expr.ToString("Object notation");

I was able to reproduce with a .NET Core 3.1 project. I'm investigating further.

A possibly relevant link: https://github.com/dotnet/standard/issues/481#issuecomment-429653699

I've isolated this to the use of Costura on the debugger side; using Costura on the debuggee side doesn't cause a problem.

@babula38 Could you try the latest release?

@zspitz thanks, it is working now, if I install it in visual studio installer directory.


java.lang.UnsatisfiedLinkError:Failed to load native TensorFlow Lite methods. Check that the correct native libraries are present, and, if using a custom native library, have been properly loaded via System.loadLibrary():

Click to expand!
Issue Type
Bug
Have you reproduced the bug with TF nightly?
No
Source
binary
Tensorflow Version
tensorflow-lite:2.8.0
Custom Code
Yes
OS Platform and Distribution
macOS Monterey 12.5.1
Mobile device
Huawei Mate 20 (HMA-AL00)
Python version
No response
Bazel version
No response
GCC/Compiler version
No response
CUDA/cuDNN version
No response
GPU model and memory
No response
Current Behaviour?
Hello, this error occurs on some models when my application loads tflite：

java.lang.UnsatisfiedLinkError:Failed to load native TensorFlow Lite methods. Check that the correct native libraries are present, and, if using a custom native library, have been properly loaded via System.loadLibrary():

java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/packagename/base.apk"],nativeLibraryDirectories=[/data/app/packagename/lib/arm64, /data/app/packagename/base.apk!/lib/arm64-v8a, /data/user/0/packagename/files/dynamic/arm64-v8a, /system/priv-app/HwCameraKit/HwCameraKit.apk!/lib/arm64-v8a, /system/lib64, /hw_product/lib64, /system/product/lib64, /system/lib64, /hw_product/lib64, /system/product/lib64]]] couldn't find "libtensorflowlite_jni.so"
org.tensorflow.lite.TensorFlowLite.a(SourceFile:5)
org.tensorflow.lite.nnapi.NnApiDelegate.<init>(SourceFile:2)

Standalone code to reproduce the issue
dependencies {
    implementation 'org.tensorflow:tensorflow-lite:2.8.0'
}

abiFilters "armeabi-v7a", 'arm64-v8a'

Relevant log output
No response

Hi @hgchenkai Thanks for reporting the issue.
Can you please provide the steps you have followed to better understand the issue.
Also, can you try on latest 2.11 version and tf-nightly and see if the issue still persists.
Thanks.


unroll simple comprehensions with known iteration count

For instance, this:
[r, g, b] = Math.round(x * 255) for x in [@r, @g, @b]

should compile to something like this:
var r = Math.round(this.r * 255), g = Math.round(this.g * 255), b = Math.round(this.b * 255);

Notice that the number of iterations here is small and very clearly determined at compile time. Comments? Counterpoints?

I wouldn't be against compiling the body of a comprehension to a local function if it's more complex than a single statement. Hopefully the CoffeeScript source for the following should be obvious, given the example above.
var _fn = function(x) {
  if (x < 0) x = 0;
  if (x > 1) x = 1;
  return Math.round(x * 255);
};
var r = _fn(this.r), g = _fn(this.g), b = _fn(this.b);

-1
I think the more important principle here is to have the JS be predictable, not optimized.    If they were, it's probably best to unroll it yourself.
r = Math.round(@r * 255)
g = Math.round(@g * 255)
b = Math.round(@b * 255)

I use CS comprehensions fairly often, but they are a bit gotcha-prone.  I think you left the parens off of your example.  These two lines of code do different things:
[r, g, b] = Math.round(x * 255) for x in [@r, @g, @b]
[r, g, b] = (Math.round(x * 255) for x in [@r, @g, @b])

I am pretty sure @jashkenas tends to be fairly conservative when it comes to optimizations, but I'm curious what he'll say about this.  Even though I'm -1 on this, I agree with @erisdiscord that this is a fairly straightforward optimization, and it's not like the current JS that gets generated is that pristine to begin with, which partially refutes my argument:
var b, g, r, x, _ref;

_ref = (function() {
  var _i, _len, _ref, _results;
  _ref = [this.r, this.g, this.b];
  _results = [];
  for (_i = 0, _len = _ref.length; _i < _len; _i++) {
    x = _ref[_i];
    _results.push(Math.round(x * 255));
  }
  return _results;
}).call(this), r = _ref[0], g = _ref[1], b = _ref[2];

@showell Haha, yeah, I think the resulting code would likely be far more readable. I can understand your objections, though.

I think that this optimization is a nice to have, but it would only be useful in very few + limited cases. In fact, it's probably not worth the maintenance tax of adding the special case to the compiler just to have it...
If we can find examples that would use this optimization heavily in real-world code, let's reopen.

@jashkenas Fair assessment! Thanks for weighing in. C:


Fix Wrinklers Typo in Description

I just spotted a typo in the description for "Calculate time with Wrinklers". It right now says "Wrinkers" in the description.

Thanks.  Can you set it to go to dev branch?

No problem, All done.

Thanks again, though you forgot to also change the source files =p.

No worries, sorry about that. Still learning a lot about Git. :D


[Aio] Add AsyncIO support to grpcio-status

This PR adds AsyncIO support to grpcio-status package.

Known failure: https://github.com/grpc/grpc/issues/13379

These tests are failing, please fix them:
//third_party/py/grpc:tests/status/_grpc_status_test_internal.python3 //third_party/py/grpc:tests/status/_grpc_status_test_internal_cpp_protos.python3


project restructuring + created mock api

Everything looks great, just a small note regarding the prints, but it's not crucial.


Add include-code support

We'd like an include::code:SomeFile block macro that will allow us to import source files using convention based paths and detect different languages.

The original approach didn't work. Trying an IncludeProcessor instead.


Support for pytorch 2.0

Currently the Triton compiler in https://github.com/intel/intel-xpu-backend-for-triton/tree/llvm-target works with a custom version of pytorch 1.3.  This work item has the objective to make it work with the torch 2.0 version.

This issue blocked E2E testing (PyTorch version >v2.1), promote the priority to P0.

Isn't this already resolved w/ https://github.com/intel/intel-xpu-backend-for-triton/commit/47e703580715edfa638299f15e2c638cc49e129b and #239  ?

#239 brings us up to torch 2.1.0, we actually need support for torch 2.4 according to the requirements we discussed with the pytorch team. Updating the issue description.

@etiotto the latest public pytorch release is 2.1.2. Shall we lower priority for this issue?

@etiotto the latest public pytorch release is 2.1.2. Shall we lower priority for this issue?

The requirement for 2.4 comes from offline discussion with our Intel pytorch team. The will need support for the latest pytorch, as they are aligning with the future torch 2.4 release.

@EikanWang   We need a corresponding IPEX version which match Triton version that have the refactored front-end API changes for Pytorch.
@chengjunlu   We also need to patch the Triton front-end so that it can dispatch the compilation flow to XPU backend.
These are on the critical path to enable Pytorch E2E testing.

I have created some new issues to track all the tasks for supporting this requirements.

Upstream the changes to public Triton to support to dispatch the compilation flow to XPU backend. #307
Triton XPU backend runtime driver need to compatible with new IPEX. #305
Triton XPU backend need to support to be built as a third-party plug-in to upstream Triton.  #170
Triton XPU backend runtime need to use SYCL instead of L0. #150
Triton XPU backend runtime need to compatible with oneAPI 2024.0 package instead of 2023.2. #173


Using it on a rails 5 project

Hi, is there a specific reason why rack is defined as?:
gem.add_runtime_dependency 'rack', '~> 1.6.4'

I'm getting this error when trying to use it on a rails 5 project:
Bundler could not find compatible versions for gem "rack":
  In Gemfile:
    rails (~> 5.1.1) was resolved to 5.1.1, which depends on
      actionpack (= 5.1.1) was resolved to 5.1.1, which depends on
        rack (~> 2.0)

    apiaryio (~> 0.3.3) was resolved to 0.3.3, which depends on
      rack (~> 1.6.4)

Thank you in advance

i'll try to update it - imho it is not needed anymore (as we've dropped support for ruby < 2.0)

Right, thank you

Also I just realized that the approach where a rake task invoked with bundle exec doing a:
  `apiary publish --path=docs/api/v1/apispec.md --api-name=fitforme`

Does not work. I would get this error:
/Users/chischaschos/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.15.1/lib/bundler/rubygems_integration.rb:377:in `block (2 levels) in replace_gem': apiaryio is not part of the bundle. Add it to your Gemfile. (Gem::LoadError)
        from /Users/chischaschos/.rbenv/versions/2.3.1/bin/apiary:22:in `<main>'

Checking the bundler documentation I just learned that:

It also modifies Rubygems, disallow loading additional gems not in the bundle

Well, just sharing my findings 😃


fix bug with != operator against a string (#78)

Added a little snippet (and a test) to deal with issue #78.  By
implementing __ne__, email_address != str behaves as expected.

Please take a look at this, it's been months

Can one of the admins verify this patch?

@aroberts, thank you for submitting this PR!


GetObjectAsync fails with SDK tag 1.7.144

What platform/OS are you using?
Ubuntu 14.04
Which version of the SDK?
Tag - 1.7.144
What compiler are you using? what version?
gcc (Ubuntu 4.8.4-2ubuntu1~14.04.4) 4.8.4
What are your CMake arguments?
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_ONLY="s3" ..
Can you provide a TRACE level log? (sanitize any sensitive information)
No errors are detected but the file fails to download. Here is a snippet of the code i am running.
#include <aws/core/Aws.h>
#include <aws/s3/S3Client.h>
#include <aws/s3/model/GetObjectRequest.h>
#include <aws/s3/model/GetObjectResult.h>
#include <aws/core/auth/AWSCredentialsProvider.h>

Aws::SDKOptions options;
pthread_cond_t service_cond = PTHREAD_COND_INITIALIZER;
pthread_mutex_t service_mutex = PTHREAD_MUTEX_INITIALIZER;

void GetObjectAsyncCallback(const Aws::S3::Model::GetObjectRequest& request,
                const Aws::S3::Model::GetObjectOutcome& outcome) {
    Aws::String filename = request.GetKey();
    if (outcome.IsSuccess()) {
        std::cout << "Async download successful for filename " << filename.c_str() << std::endl;
    }
    else {
        std::cout << "Get object error " << outcome.GetError().GetExceptionName().c_str() << outcome.GetError().GetMessage().c_str() << std::endl;
    }
    pthread_cond_signal(&service_cond);
}

 /**
 * Get an object from an Amazon S3 bucket.
 */
int main(int argc, char** argv)
{
    if (argc < 3)
    {
        std::cout << std::endl <<
            "To run this example, supply the name of an S3 bucket and object to"
            << std::endl << "download from it." << std::endl << std::endl <<
            "Ex: get_object <bucketname> <filename>\n" << std::endl;
        exit(1);
    }

    options.loggingOptions.logLevel = Aws::Utils::Logging::LogLevel::Debug;
    Aws::InitAPI(options);
    {
        const Aws::String bucket_name = argv[1];
        const Aws::String key_name = argv[2];

        std::cout << "Downloading " << key_name << " from S3 bucket: " <<
            bucket_name << std::endl;

        Aws::Client::ClientConfiguration config;
        config.endpointOverride = "localhost:9000";
        auto credentials = Aws::Auth::AWSCredentials("XXXXXXXXXXXXXXXX", "XXXXXXXXXXXXXXXXXXXXX");
        Aws::S3::S3Client s3_client = Aws::S3::S3Client(credentials, config, Aws::Client::AWSAuthV4Signer::PayloadSigningPolicy::Always, false);
        //Aws::S3::S3Client s3_client(config);

        Aws::S3::Model::GetObjectRequest object_request;
        object_request.WithBucket(bucket_name).WithKey(key_name);

        auto context = Aws::MakeShared<Aws::Client::AsyncCallerContext>("");
        auto callback = [=](const Aws::S3::S3Client* client,
                        const Aws::S3::Model::GetObjectRequest& request,
                        const Aws::S3::Model::GetObjectOutcome& outcome,
                        const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) {
                GetObjectAsyncCallback(request, outcome);
                };
         pthread_mutex_lock(&service_mutex);
         s3_client.GetObjectAsync(object_request, callback, context);
         pthread_cond_wait(&service_cond, &service_mutex);
         pthread_mutex_unlock(&service_mutex);
    }
    Aws::ShutdownAPI(options);
}

The callback function returns an outcome with status success. But the file is not found locally. Can someone please tell me if I am doing anything wrong.
P.S - I cannot use TransferManager due to various constraints.

In your callback function, you need to store download stream into a file.

Hi @singku I tried to solve the problem with the following code.
auto &retrieved_file = outcome.GetResult().GetBody();
std::ofstream output_file(filename.c_str(), std::ios::out |std::ios::binary);
output_file << retrieved_file.rdbuf();

However it throws the following error when i try to execute it.
get_object_async.cpp: In function ‘void GetObjectAsyncCallback(const Aws::S3::Model::GetObjectRequest&, const GetObjectOutcome&)’:
get_object_async.cpp:23:60: error: passing ‘const Aws::S3::Model::GetObjectResult’ as ‘this’ argument of ‘Aws::IOStream& Aws::S3::Model::GetObjectResult::GetBody()’ discards qualifiers [-fpermissive]
         auto &retrieved_file = outcome.GetResult().GetBody();
                                                            ^
In file included from /usr/local/include/aws/core/utils/xml/XmlSerializer.h:20:0,
                 from /usr/local/include/aws/s3/S3Client.h:24,
                 from get_object_async.cpp:2:
/usr/local/include/aws/core/utils/Outcome.h: In instantiation of ‘Aws::Utils::Outcome<R, E>::Outcome(const Aws::Utils::Outcome<R, E>&) [with R = Aws::S3::Model::GetObjectResult; E = Aws::Client::AWSError<Aws::S3::S3Errors>]’:
get_object_async.cpp:16:56:   required from here
/usr/local/include/aws/core/utils/Outcome.h:56:34: error: use of deleted function ‘Aws::S3::Model::GetObjectResult::GetObjectResult(const Aws::S3::Model::GetObjectResult&)’
                 success(o.success)
                                  ^
In file included from /usr/local/include/aws/s3/S3Client.h:52:0,
                 from get_object_async.cpp:2:
/usr/local/include/aws/s3/model/GetObjectResult.h:49:5: error: declared here
     GetObjectResult(const GetObjectResult&) = delete;
     ^

Any suggestions ?

Related issue:https://github.com/aws/aws-sdk-cpp/issues/918
Current solution: https://github.com/aws/aws-sdk-cpp/issues/44
Better solution: Will discuss within team if it's okay to change the initial design intention mentioned in #44

@singku, The issue is solved by using const_cast.
Thanks!

Hi, as an update:
As of version 1.7.213 , we've removed constness restriction of outcome of async operation callback.


ui-tabs: d3 maps inside tabs do not render properly

I opened an issue in the datamaps repository because of maps not displaying properly
when a map is placed inside an angular ui tab.
https://github.com/markmarkoh/datamaps/issues/129
It seems this may be as much an issue with angular-ui tabs
and rendering a d3 chart with interactivity inside a ui-tab rather
than an issue with datamaps or d3.

Please ask implementation questions on StackOverflow. We'll be happy to answer your questions there.
https://github.com/angular-ui/bootstrap#need-help

Closing due to inactivity. Please feel free to re-open once you've tested with the latest UI Bootstrap 0.13 and Angular JS 1.3 and can confirm this is still an issue.

I am still facing this issue.

Maps inside the ui-tabs is not rendering properly.


fix: showing undefined binding on / command dropdown instead of name for js objects

Description
fix: showing undefined binding on / command dropdown instead of name for js objects
Fixes #22337
Type of change

Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Cypress

Test Plan

Add Testsmith test cases links that relate to this PR

Issues raised during DP testing

Link issues raised during DP testing for better visiblity and tracking (copy link from comments dropped on this PR)

Checklist:
Dev activity

[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] PR is being merged under a feature flag

QA activity:

[ ] Test plan has been approved by relevant developers
[ ] Test plan has been peer reviewed by QA
[ ] Cypress test cases have been added and approved by either SDET or manual QA
[ ] Organized project review call with relevant stakeholders after Round 1/2 of QA
[ ] Added Test Plan Approved label after reveiwing all Cypress test

/ok-to-test sha=7e89654ba530388f567a06cdf902f0a15c5d4a56

/ok-to-test sha=194774d2b48e301518f34fd681aa2dd2cb9adb27

/ok-to-test sha=e31ccfb12b67e6dd18f8cf1cab2961684869adea

/build-deploy-preview env=release


Make travis to test if code from pull requests is passing jshint

or whatever else we want to test

@huytd  I was thinking that there was something wrong in travis file but now I understood that repo dont have webhook for travis

I installed Travis, you can check the README.md, there is a Travis build status badge :D

It will run everytime we have a push or pull request

But there should be status in every pull request if he is passing or no

http://blog.travis-ci.com/2012-09-04-pull-requests-just-got-even-more-awesome/

I think that in travis file we need to tell which branch travis should test then status of build should appear automaticly in every pull request to that branch

Could you made a new pull request? Just for testing, you can edit somewhere in README.md

It worked! But all the test should be fail now :D We need to fix the remains error with jshint


LicenseCompareHelper: MIT text not recognized when adding single space

I used LicenseCompareHelper.isTextStandardLicense MIT with this text:
MIT License

Copyright (C) 2020, Twilio SendGrid, Inc<EMAIL_ADDRESS>
Permission is hereby granted, free of charge, to any person obtaining a copy of
this  software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

 IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

I get this output:
Variable text rule software did not match the compare text starting at line #6 column #0 "this" while processing rule var: software
If I replace the double space between "this" and "software and associated documentation" in line 6 with a single space i.e. replace line 6 by
this software and associated documentation files (the "Software"), to deal in
then LicenseCompareHelper.isTextStandardLicense doesn't find a difference.
I suspect that this is a problem with multiple spaces between words in an alt part of templates. #218 is probably caused by the same issue in the code.
Note: tested with version 1.1.8

Transferring issue to the license list XML repo.


[editor] Config Name & Description UI

[editor] Config Name & Description UI
[editor] Config Name & Description UI
[editor] Config Name & Description UI
Add the UI for changing config name / description, similar to workbook title UI:
https://github.com/lastmile-ai/aiconfig/assets/5060851/f0f49638-d0c5-4d88-8edd-c0bbb0294f7c
If config name is not set, keep the name / description in Edit state until the name is set

Stack created with Sapling. Best reviewed with ReviewStack.

#686
#682
#681
-> #680

Updated to handle setDescription and setName separately


Further reduce CPU usage when refreshing UI

Don't update progress when player is paused
Don't update progress when the main window is minimized.
Replace componentFormatter with simple implementation to reduce overhead.

I was also trying to handle the state when the application is completely hidden (covered by other application). This causes the application to become "background" in Instrument:

But I failed to find a way to do so. Any idea?

I was also trying to handle the state when the application is completely hidden (covered by other application).

Technically if the window is still open but obscured, it can still be rendered because vibrancy material in a window in front of it, or being pulled in exposé. Maybe occlusionState (which has a notification) can help?

Oh yeah, exposé. That's a feature that I haven't been used for quite some time. Maybe we can at lease reduce the refresh rate to 1sec when the window is not visible based on occlusionState. Even without handling occlusionState, the CPU usage is now at ~2% when the window is minimized with this PR. This is about the right amount of CPU usage I'd expect from a music app.

Regarding occlusionState with some quick tests:

You could probably add the windowDidChangeOcclusionState method to the database controller. (There is the applicationDidChangeOcclusionState equivalent for the app delegate, but it's not the right place to put it.)
Looks like the value is a bitfield; only NSWindowOcclusionStateVisible is documented, there's also 0x2000 set, but it's undocumented. (Means AND it instead of equality.)
Switching workspaces definitely makes the window be not visible in occlusionState. Switching window via the dock or Cmd+Tab will make it be not visible, but using exposé or selecting another to switch doesn't seem to trigger that occlusion event.
Miniaturization and closing the window will both trigger non-visible occlusion too.

Overall, it looks like a better option that handles almost all window-not-visible states.

Seems that occlusionState is way better than Miniaturization. I'll find some time to update this PR later  🥂

You OK with other changes in this PR? Let me know if I'm doing something weird. I haven't really been an expert regarding macOS. I had my time developing on iOS several years ago.

I left a comment regarding the change to clearPlaybackProgress; the miniaturization one we just addressed.

Could it be that you didn't submit the review? I didn't see any comment. I sometimes also forget the submission :)

FWIW, retested:

Switching workspaces definitely makes the window be not visible in occlusionState. Switching window via the dock or Cmd+Tab will make it be not visible, but using exposé or selecting another to switch doesn't seem to trigger that occlusion event.

This doesn't seem to be accurate after I checked again; occlusion behaves normally if completely obscured.

I think this looks good to me.


Add consistent timeout for Vectara API calls

Adds a timeout of 60 seconds for all calls to the Vectara API
Similar to https://github.com/langchain-ai/langchain/pull/8892

Thank you! Two comments

Thanks for the comments. I've replaced the variable name and ran the formatter.

Thank you!


Add Tables.rowcount

This PR adds Tables.rowcount for TSFrames. It fixes issue #109

Codecov Report

Merging #124 (8242edd) into main (86f67bd) will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #124      +/-   ##
==========================================
+ Coverage   89.51%   89.54%   +0.02%
==========================================
  Files          19       19
  Lines         372      373       +1
==========================================
+ Hits          333      334       +1
  Misses         39       39

Impacted Files
Coverage Δ

src/tables.jl
90.90% <100.00%> (+0.90%)
:arrow_up:

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


Generated message classes cannot be subclassed because of missing 'export'

Thank you for the great library! We use it extensively in our Streamr network project
It seems that the generated message classes <message_name>$Type are not subclassable because they are not exported from the generated typescript files. Being able to derive subclasses from the message classes would be very useful when creating decorators or facades for the messages. For example, the PingRequest$Type` in the following snipplet of generated code  cannot be subclassed because it as not exported.
// @generated message type with reflection information, may provide speed optimized methods
class PingRequest$Type extends MessageType<PingRequest> {
    constructor() {
        super("PingRequest", [
            { no: 1, name: "requestId", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
        ]);
    }
}

Hey Petri, apologies for the late response. Subclasses are less useful than expected in generated code. You would be able to subclass a message, but for it to take effect, it needs to be used in all places where the original is used in generated code.
So simply exporting the classes will likely not enable this feature. It would be really fantastic if TypeScript had something like csharp's extensions methods, but we're very unlikely to ever get an exact equivalent because of TypeScript's nature.
Depending on the behavior you want to add, patching the original can be a viable alternative. TypeScript has declaration merging, which lets you extend the types as well. This approach has downsides too, but maybe it would be a good idea to simply give an example in this repository.


Session flash message problem

Hello,
Excuse my English I am French. I currently have a problem, having developed a module, I wanted via a POST method to use this code: return redirect ()->back()->with (['alert' => 'danger', 'message' = > 'Error']); The problem is that no flash session is sending .. so it does not send me anything at all ..
thank you,
Good evening to you.

Hi,
I don't think this is related to this package.
The laravel documentation has more information on how to achieve this.

Hello,
Excuse my English I am French. I currently have a problem, having developed a module, I wanted via a POST method to use this code: return redirect ()->back()->with (['alert' => 'danger', 'message' = > 'Error']); The problem is that no flash session is sending .. so it does not send me anything at all ..
thank you,
Good evening to you.

return back()->with (['alert' => 'danger', 'message' = > 'Error']);


Regression: Playing an Audio Stream animation backwards breaks the AudioStreamPlayer forever.

Tested versions

Reproducible in: 4.4dev7
Not reproducible in: 4.3stable

System information
Windows 11 - Vulkan 1.3.280 - Forward+ - Using Device #0: NVIDIA - NVIDIA GeForce RTX 3070 Ti
Issue description
Playing an animation with an audio clip in it, when the clip exceeds the length of the animation, when the animation is played backwards it:

Does not start in the middle of the clip and
Breaks the AudioStreamPlayer until restart

Steps to reproduce

Load the attached project.
Select the AnimationPlayer node in the main scene
Select the works track
Play the track backwards, it works as expected
Select the breaks track
Play that track backwards
Trying playing the track again, no audio plays
The AudoStreamPlayer can no longer play any audio

Minimal reproduction project (MRP)
anim-audio-mrp.zip

The mrp crash in 4.4 dev 4 but works in 4.4 dev 3 and after the problem starts, attempt to close the editor freeze everything and needs to be closed using the task manager. This looks like the same problem from #100173, a regression from #97625.


Rule proposal: A project should have a NeutralResourcesLanguageAttribute

If an assembly contains resources, the NeutralResourcesLanguages attribute identifies that the assembly shares the language neutral resources and the language specified in the attribute. This makes it clear to .NET that it does not need to look for a satellite assembly for that language. In most cases, the value specified will be the codes for the language and country of the programming team, and the default language of the user interface. This value is set to the RFC 1766 (https://tools.ietf.org/html/rfc1766) specifier for the language and country of the neutral resources.
Even if the assembly does not have any resources, the attribute indicates the language and country of the comments specified by the developers.
The rule should check that it is in the project (presumably in the AssemblyInfo.cs file) and give a warning if it is not present.

:-1: Similar to the discussion in #1640

Right now I'm :-1: for the same reason as #1640.

:arrow_right: See #1640 for my recommendation for proposing this rule as a code analysis warning rather than a StyleCop analyzer.


WASM: Intrinsify numberOfLeadingZeros, numberOfTrailingZeros, and bitCount

I implemented intrinsic functions for numberOfLeadingZeros, numberOfTrailingZeros, and bitCount using the clz, ctz, and popcnt instructions in the WASM and WASM GC backends.
The classlib unit tests pass and my app still works, I make use of the leading and trailing zero functions in my direct buffer malloc/free implementation so I actually do have a reason to optimize them.

I doubt it will work with optimizations enabled. Optimizer may inline method bodies, written in Java, which makes impossible to apply these intrinsics. So additionally Wasm GC BE should provide class transformers which turns intrinsic target methods into native and removes their body.

@konsoletyper I see what you mean, I'll fix it tomorrow

Yes, and although I won't ask you to write unit tests, please, at least disassemble your app and make sure that relevant WebAssembly instructions are used instead of falling back to "software" implementations.

@konsoletyper Okay I added the class transformers. I also added unit tests for the 64-bit numberOfLeadingZeros and numberOfTrailingZeros because I noticed they didn't exist. I also copied the code from the unit tests and compiled it myself and disassembled the binary and all the intrinsics are compiling correctly (on the AGGRESSIVE optimization level).


Missing Issue Template in Repository

Description:
I noticed that the repository does not have an issue template. Having an issue template can greatly improve the clarity and consistency of issue reports, making it easier for contributors and maintainers to understand and address the problems or feature requests effectively.
here are three templates that I want include:
Issue Template: This template enables users to create well-structured issue reports by providing sections for a concise title, detailed description, steps to reproduce (if applicable), expected behavior, actual behavior, additional information, and environment details.
Feature Request Template: The feature request template allows users to outline their desired features with clarity, including sections for a clear feature description, expected benefits, and any additional context or information.
Documentation Template:  This template facilitates the creation of comprehensive documentation by providing a structured format, including sections for an introduction, usage instructions, examples, and other relevant details.

Sure! go ahead

This issue has been inactive for a long time
I would like to work on this issue
Please assign

@sagnik-p  Sorry For that but Issue is solved already  and also complete so I am closing Isuue for now


5.1.4 - Previous bad query blocking all future queries.  SQL Error [25P02]

SQL Error [25P02]: ERROR: current transaction is aborted, commands ignored until end of transaction block.
This is happening when connecting to Postgresql db.  Only started after upgrading to  dbeaver version 5.1.4

i have this at 5.1.3

You need to commit/rollback or switch to auto-commit mode or enable Rollback on error option:

@serge-rider Thank you.


Endpoint names

In general the endpoint names are not very REST-y. Not sure if this was intentional as it is aimed for beginners.
Should technically be something like
GET /posts
POST /posts
etc...

This is a good point & I hadn't really thought about it.  I kind of like it the way it is for beginners purposes.
I would love to be able to A/B test it
Maybe highlight this in the journey continues page?


Add support for owner/group to plist resource

Paired with Andre Shields, Chris Gilbert, and Eric Hanko
Adds support for owner/group to plist resource
Allows for files to be created under a specific owner
Fixes #51

Fixes AB#2734644

Can you also update the CHANGELOG.md

@v-anshie could you we some documentation added for the new plist resource changes?


FR: Add Telegram support

libpurple has a plugin for telegram (https://github.com/majn/telegram-purple), I can use it nicely with pidgin, but it would be awesome to be able to do it in chatsecure too.
Thanks

:+1:


ValueError: A target array with shape (180568, 80) was passed for an output of shape (None, 180568) while using as loss categorical_crossentropy. This loss expects targets to have the same shape as the output.

I am trying to implement a 1D  CNN from a network encrypted traffic classification and Intrusion detection dataset. Here is the snippet of my codes
# The next step is to split training and testing data. For this we will use sklearn function train_test_split().
features_train, features_test, labels_train, labels_test = train_test_split(features, labels, test_size=.2)

features_train.shape, features_test.shape, labels_train.shape, labels_test.shape

((180568, 80), (45143, 80), (180568,), (45143,))

# Here I'm assuming some dummy data
# Xtrain => [180568, 80, 1] (Note that you need Xtrain to be 3D not 2D - So we're adding a channel dimension of 1)
Xtrain = np.expand_dims(np.random.normal(size=(180568, 80)), axis=-1)
# Ytrain => [180568, 10]
Ytrain = np.random.choice([0,1], size=(180568, 80))

# check shape
Xtrain.shape, Ytrain.shape

((180568, 80, 1), (180568, 80))

n_timesteps, n_features, n_outputs = features_train.shape[0], features_train.shape[1], labels_train.shape[0]

model = Sequential()
model.add(Conv1D(filters=64, kernel_size=1, activation='relu',input_shape=(n_features, 1)))
model.add(Conv1D(filters=64, kernel_size=1, activation='relu'))
model.add(Dropout(0.5))
model.add(MaxPooling1D(pool_size=3))
model.add(Flatten())
model.add(Dense(80, activation='relu'))
model.add(Dense(n_outputs, activation='softmax'))

model.compile(loss='categorical_crossentropy', optimizer='adam', metrics=['accuracy'])

# fit network
model.fit(Xtrain, Ytrain, epochs=10, batch_size=10, verbose=0)

After I try to fit the model, i however get the following error.
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-101-da6e32acea16> in <module>
      1 # fit network
----> 2 model.fit(Xtrain, Ytrain, epochs=10, batch_size=10, verbose=0)

~/anaconda3/lib/python3.7/site-packages/tensorflow/python/keras/engine/training_v1.py in fit(self, x, y, batch_size, epochs, verbose, callbacks, validation_split, validation_data, shuffle, class_weight, sample_weight, initial_epoch, steps_per_epoch, validation_steps, validation_freq, max_queue_size, workers, use_multiprocessing, **kwargs)
    783         max_queue_size=max_queue_size,
    784         workers=workers,
--> 785         use_multiprocessing=use_multiprocessing)
    786
    787   def evaluate(self,

~/anaconda3/lib/python3.7/site-packages/tensorflow/python/keras/engine/training_arrays.py in fit(self, model, x, y, batch_size, epochs, verbose, callbacks, validation_split, validation_data, shuffle, class_weight, sample_weight, initial_epoch, steps_per_epoch, validation_steps, validation_freq, **kwargs)
    632         steps=steps_per_epoch,
    633         validation_split=validation_split,
--> 634         shuffle=shuffle)
    635
    636     if validation_data:

~/anaconda3/lib/python3.7/site-packages/tensorflow/python/keras/engine/training_v1.py in _standardize_user_data(self, x, y, sample_weight, class_weight, batch_size, check_steps, steps_name, steps, validation_split, shuffle, extract_tensors_from_dataset)
   2306         is_dataset=is_dataset,
   2307         class_weight=class_weight,
-> 2308         batch_size=batch_size)
   2309
   2310   def _standardize_tensors(self, x, y, sample_weight, run_eagerly, dict_inputs,

~/anaconda3/lib/python3.7/site-packages/tensorflow/python/keras/engine/training_v1.py in _standardize_tensors(self, x, y, sample_weight, run_eagerly, dict_inputs, is_dataset, class_weight, batch_size)
   2412           # Additional checks to avoid users mistakenly using improper loss fns.
   2413           training_utils.check_loss_and_target_compatibility(
-> 2414               y, self._feed_loss_fns, feed_output_shapes)
   2415
   2416       sample_weights, _, _ = training_utils.handle_partial_sample_weights(

~/anaconda3/lib/python3.7/site-packages/tensorflow/python/keras/engine/training_utils.py in check_loss_and_target_compatibility(targets, loss_fns, output_shapes)
    808           raise ValueError('A target array with shape ' + str(y.shape) +
    809                            ' was passed for an output of shape ' + str(shape) +
--> 810                            ' while using as loss `' + loss_name + '`. '
    811                            'This loss expects targets to have the same shape '
    812                            'as the output.')

ValueError: A target array with shape (180568, 80) was passed for an output of shape (None, 180568) while using as loss `categorical_crossentropy`. This loss expects targets to have the same shape as the output.

@jpandeinge
dimensions of Ytrain is not correct, try using Ytrain.shape=(180568,)

@jpandeinge
dimensions of Ytrain is not correct, try using Ytrain.shape=(180568,)

@yash-clear tried to change it as you suggested and it has been running for an hour now without any output

@yash-clear tried to change it as you suggested and it has been running for an hour now without any output

@jpandeinge
try this,
`import numpy as np
import tensorflow as tf
import pandas as pd
from tensorflow.keras import optimizers
from tensorflow.keras.preprocessing import sequence
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense, Dropout, Activation, Conv1D, MaxPooling1D, Embedding,Flatten
from sklearn.model_selection import train_test_split
X_train = np.zeros((180568, 80, 1))
y_train = np.zeros((180568, 80))
n_timesteps, n_features, n_outputs =  X_train.shape[1], X_train.shape[2], y_train.shape[1]
n_samples = 1000
X = np.random.uniform(0,1, (n_samples, n_timesteps, n_features))
y = pd.get_dummies(np.random.randint(0,n_outputs, n_samples)).values
model = tf.keras.models.Sequential([
tf.keras.layers.Conv1D(input_shape=(n_timesteps, n_features), kernel_size=3, filters=16),
tf.keras.layers.GlobalAveragePooling1D(), # also GlobalMaxPooling1D() is ok
tf.keras.layers.Dense(256, activation='relu'),
tf.keras.layers.Dropout(0.2),
tf.keras.layers.Dense(n_outputs, activation='softmax')
])
model.compile('adam', 'categorical_crossentropy')
model.fit(X,y, epochs=2,verbose=1)
model.summary()`
output

@jpandeinge
try this,
`import numpy as np
import tensorflow as tf
import pandas as pd
from tensorflow.keras import optimizers
from tensorflow.keras.preprocessing import sequence
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense, Dropout, Activation, Conv1D, MaxPooling1D, Embedding,Flatten
from sklearn.model_selection import train_test_split
X_train = np.zeros((180568, 80, 1))
y_train = np.zeros((180568, 80))
n_timesteps, n_features, n_outputs =  X_train.shape[1], X_train.shape[2], y_train.shape[1]
n_samples = 1000
X = np.random.uniform(0,1, (n_samples, n_timesteps, n_features))
y = pd.get_dummies(np.random.randint(0,n_outputs, n_samples)).values
model = tf.keras.models.Sequential([
tf.keras.layers.Conv1D(input_shape=(n_timesteps, n_features), kernel_size=3, filters=16),
tf.keras.layers.GlobalAveragePooling1D(), # also GlobalMaxPooling1D() is ok
tf.keras.layers.Dense(256, activation='relu'),
tf.keras.layers.Dropout(0.2),
tf.keras.layers.Dense(n_outputs, activation='softmax')
])
model.compile('adam', 'categorical_crossentropy')
model.fit(X,y, epochs=2,verbose=1)
model.summary()`
output

well I used GlobalAveragePooling1D() instead of MaxPooling1D which in turn  compresses the temporal dimension.

well I used GlobalAveragePooling1D() instead of MaxPooling1D which in turn  compresses the temporal dimension.

I want to make my first contribution ,tell me if it is ok then I will send pull request.

I want to make my first contribution ,tell me if it is ok then I will send pull request.

@jpandeinge
try this,
`import numpy as np
import tensorflow as tf
import pandas as pd
from tensorflow.keras import optimizers
from tensorflow.keras.preprocessing import sequence
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense, Dropout, Activation, Conv1D, MaxPooling1D, Embedding,Flatten
from sklearn.model_selection import train_test_split
X_train = np.zeros((180568, 80, 1))
y_train = np.zeros((180568, 80))
n_timesteps, n_features, n_outputs = X_train.shape[1], X_train.shape[2], y_train.shape[1]
n_samples = 1000
X = np.random.uniform(0,1, (n_samples, n_timesteps, n_features))
y = pd.get_dummies(np.random.randint(0,n_outputs, n_samples)).values
model = tf.keras.models.Sequential([
tf.keras.layers.Conv1D(input_shape=(n_timesteps, n_features), kernel_size=3, filters=16),
tf.keras.layers.GlobalAveragePooling1D(), # also GlobalMaxPooling1D() is ok
tf.keras.layers.Dense(256, activation='relu'),
tf.keras.layers.Dropout(0.2),
tf.keras.layers.Dense(n_outputs, activation='softmax')
])
model.compile('adam', 'categorical_crossentropy')
model.fit(X,y, epochs=2,verbose=1)
model.summary()`
output

This is working and I really appreciate, just a few tweaks I need to do and shall be fine

@jpandeinge
try this,
`import numpy as np
import tensorflow as tf
import pandas as pd
from tensorflow.keras import optimizers
from tensorflow.keras.preprocessing import sequence
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense, Dropout, Activation, Conv1D, MaxPooling1D, Embedding,Flatten
from sklearn.model_selection import train_test_split
X_train = np.zeros((180568, 80, 1))
y_train = np.zeros((180568, 80))
n_timesteps, n_features, n_outputs = X_train.shape[1], X_train.shape[2], y_train.shape[1]
n_samples = 1000
X = np.random.uniform(0,1, (n_samples, n_timesteps, n_features))
y = pd.get_dummies(np.random.randint(0,n_outputs, n_samples)).values
model = tf.keras.models.Sequential([
tf.keras.layers.Conv1D(input_shape=(n_timesteps, n_features), kernel_size=3, filters=16),
tf.keras.layers.GlobalAveragePooling1D(), # also GlobalMaxPooling1D() is ok
tf.keras.layers.Dense(256, activation='relu'),
tf.keras.layers.Dropout(0.2),
tf.keras.layers.Dense(n_outputs, activation='softmax')
])
model.compile('adam', 'categorical_crossentropy')
model.fit(X,y, epochs=2,verbose=1)
model.summary()`
output

This is working and I really appreciate, just a few tweaks I need to do and shall be fine


long double being instantiated on Mac OS X

Summary:
long double type appears when it shouldn't.
Reproducible Steps:
Swupnil Sahai reported this message from RStan on stan-users:
SAMPLING FOR MODEL 'Degree Kernel Continuous' NOW (CHAIN 1).
[1] "Error : "
[2] "Informational Message: The current Metropolis proposal is about to be rejected because of the following issue:"
[3] "Exception thrown at line 82: Error in function boost::math::lgamma<long double>(long double): Evaluation of lgamma at 0."

Note the appearance of long double instantiation of lgamma.
Swupnil got this with this Stan program:
  functions {
    real kernel_int(real a, real mu, real sigma, real lambda) {
      real y;
      y <- 1/sqrt(2 * 3.141593 * (lambda + square(sigma)));
      y <- y * exp(-square(a-mu)/(2 * (lambda + square(sigma))));
      return y;
    }
  }

  data {
    int<lower=1> K;   // number of names
    int<lower=1> N;   // number of respondents

    int y[N,K];       // responses to how many X do you know
    real age[N];      // age of respondents
    int sex[N];       // gender of respondents: 2=male, 1=female

    vector[K] mu;       // mean ages for each name k
    vector[K] sigma;    // standard deviations for each name k

    vector[2] theta_d;  // prior mu and sigma for log_d
    vector[2] theta_o;  // prior alpha and beta for inv_omega
    vector[2] theta_l;  // prior mu and sigma for log_lambda
    vector[2] theta_m;  // prior alpha for gender mixing rows
  }

  parameters {
    real<upper=8.5> log_d[N];               // log respondent degrees
    real<lower=0,upper=1> inv_omega[K];     // inverse over-dispersion
    matrix[2,2] log_lambda;                 // log kernel scales
    simplex[2] M[2];                        // gender mixing matrix
  }

  transformed parameters {
    real<lower=0> d[N];
    real<lower=0> omega[K];
    real<lower=0> lambda[2,2];

    for(n in 1:N){
      d[n] <- exp(log_d[n]);
    }
    for(k in 1:K){
      omega[k] <- inv(inv(inv_omega[k]) - 1);
    }
    for(i in 1:2){
      for(j in 1:2){
        lambda[i,j] <- exp(log_lambda[i,j]);
      }
    }
  }

  model {
    real mu_nk;
    int g_n;
    int g_k;

    log_d ~ normal(theta_d[1], theta_d[2]);
    inv_omega ~ beta(theta_o[1], theta_o[2]);
    for(i in 1:2) {
      M[i] ~ dirichlet(theta_m);
      for(j in 1:2) {
        log_lambda[i,j] ~ normal(theta_l[1], theta_l[2]);
      }
    }

    for(k in 1:K) {
      if(k<=6) {
        g_k <- 1;
      } else {
        g_k <- 2;
      }

      for(n in 1:N) {
        if(y[n,k]>=0) {
          g_n <- sex[n];
          mu_nk <- M[g_n,g_k] * kernel_int(age[n], mu[k], sigma[k], lambda[g_n,g_k]);
          mu_nk <- pow(mu_nk * exp(-7) * exp(1 - exp(-7)/mu_nk), 0.5);
          mu_nk <- mu_nk * d[n];
          y[n,k] ~ neg_binomial(omega[k] * mu_nk, omega[k]);
        }
      }
    }
  }

Current Version:
v2.9.0

Aha.  They're call long double versions of functions on the back end, but this can be prevented with the appropriate compiler flag (BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS):
http://www.boost.org/doc/libs/1_62_0/libs/math/doc/html/math_toolkit/config_macros.html
I found this from here:
http://info.prelert.com/blog/the-pitfalls-of-long-double

Do you want me to add that compiler flag? Just for Mac OS X or other
operating systems too?
On Tue, Nov 15, 2016 at 4:36 PM, Bob Carpenter<EMAIL_ADDRESS>wrote:

Aha. They're call long double versions of functions on the back end, but
this can be prevented with the appropriate compiler flag (
BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS):
http://www.boost.org/doc/libs/1_62_0/libs/math/doc/html/
math_toolkit/config_macros.html
I found this from here:
http://info.prelert.com/blog/the-pitfalls-of-long-double
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/stan-dev/stan/issues/1887#issuecomment-260776733, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAZ_F9H63Hel4tfFLqy3Ks1oMFbDLGyiks5q-iXigaJpZM4IYNK6
.

I think this is OK as it is.  It's not instantiating the top-level functions with longer values and we aren't running into compilation problems, so I'm just going to close this.


Installing auto replies will force the pty host to spawn

Repro:

Open VS Code
Close all terminal
Exit VS Code
Open VS Code (a terminal is not restored)
Set:"terminal.integrated.autoReplies": {
  "Terminate batch job (Y/N)": "Y\r"
}

Open process explorer, 🐛  the pty host process should not be in the process tree

This actually works already


Update for Serbian translation

Serbian translation was missing translated strings for several menu options and tooltips. These are now covered, and also some previous translations for the UI were modified to be more "user friendly".

I can see that Travis build failed, so I submitted the contributor license agreement here http://dev.brackets.io/brackets-contributor-license-agreement.html

@goranvasic You have some duplicate keys that is causing some linting erors.
Linting src/nls/sr/strings.js...ERROR
[L131:C41] W075: Duplicate key 'BUTTON_YES'.
    "BUTTON_YES"                        : "Да",
Linting src/nls/sr/strings.js...ERROR
[L132:C41] W075: Duplicate key 'BUTTON_NO'.
    "BUTTON_NO"                         : "Не",
Linting src/nls/sr/strings.js...ERROR
[L348:C44] W075: Duplicate key 'OK'.
    "OK"                                   : "У реду",
Linting src/nls/sr/strings.js...ERROR
[L349:C44] W075: Duplicate key 'DONT_SAVE'.
    "DONT_SAVE"                            : "Немој сачувати",
Linting src/nls/sr/strings.js...ERROR
[L350:C44] W075: Duplicate key 'SAVE'.
    "SAVE"                                 : "Сачувај",
Linting src/nls/sr/strings.js...ERROR
[L351:C44] W075: Duplicate key 'CANCEL'.
    "CANCEL"                               : "Откажи",
Linting src/nls/sr/strings.js...ERROR
[L352:C44] W075: Duplicate key 'DELETE'.
    "DELETE"                               : "Обриши",

@RaymondLim Could you please check the Travis CI build, it seems that it was not able to properly execute npm command. Note that I submitted my commit directly from web browser.

@goranvasic Not sure what went wrong with npm, but I restarted the build and it should be fine this time.

@RaymondLim Thank you.

@RaymondLim I see that this pull request is still not merged so please let me know if there is anything else that needs to be done on my side.

@goranvasic Do you have someone that can do the linguistic review?

@frennky can you please review this translation?

Everything looks good to me.

@frennky Thanks
@RaymondLim Is this ok to be merged now?


Fixed grammatical errors

Thank you, we added it: https://github.com/XLabs-AI/x-flux/commit/7e2f83c1d82f9d69bcfecc568022461d8bb254b8


http://www.bdmg.com.ar/?page_id=176 link is not opening

As you told there is a document related to ANFIS at following link. This link is not working.
http://www.bdmg.com.ar/?page_id=176

Yep. Will correct broken link. Document is available here:
https://mran.microsoft.com/snapshot/2017-04-14/web/packages/anfis/anfis.pdf
On Sat, 11 Apr 2020, 18:14 Hemant Kumar Bansal<EMAIL_ADDRESS>wrote:

As you told there is a document related to ANFIS at following link. This
link is not working.
http://www.bdmg.com.ar/?page_id=176
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/twmeggs/anfis/issues/9, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAOGW5BTTW5KPVSZEQGRZ7LRMCQOBANCNFSM4MGCLU3A
.

Thanks


[WIP] Makefile: run tests with race condition detection

this change runs go tests with '-race' in order
to find race conditions between go routines

@milan-zededa looks like this is finding some potential issues in uplinkprober code.

Should we rebase this and try it again @christoph-zededa ?

Should we rebase this and try it again @christoph-zededa ?

Still see something with:

uplinkprober
attestation
pubsub

Shall I close the PR and create a new one instead of letting this hang around?

Somehow I missed this.. I will check the uplinkprober UTs.

@shjala can you look into the attestation ones?

Fix for uplinkprober test: https://github.com/lf-edge/eve/pull/3339

@eriknordmark sure.

Looks like we need to fix at least the RestartCounter in pubsub to use locks/atomics. But there might be some additional data race there as well.

@christoph-zededa could you do a rebase?

@christoph-zededa ping?

@rouming clonk.
✖  pubsub (22.544s)
✖  dpcmanager (1m56.44s)

still pubsub has the race condition ...

@christoph-zededa could you do a rebase?

sry, @rouming just reminded me; now it is rebased.
The fix by @milan-zededa fixes the uplinkprober issue successfully.

@christoph-zededa I will have a look at TestDPCWithReleasedAndRenamedInterface


Implemented Poisoning Attack - Poison Frog in PyTorch Framework

Description
Please include a summary of the change, motivation and which issue is fixed. Any dependencies changes should also be included.
Implemented Poisoning Attack - Poison Frog in PyTorch Framework.
The implementation includes the below major changes:

Creating Evaluation hooks for getting activation from intermediate layers implemented in _make_model_wrapper() in art/estimators/classification/pytorch.py. The motivation behind this change is that the current implementation of get_layers in _make_model_wrapper() the function can only infer the internal layers if the input model is of type nn.Sequential, otherwise, it will only return the logit layer. For Poison Frog implementation, it was needed that we get activations from intermediate layers and they stay connected to the computation graph for backward pass.
A new custom_loss_gradient function especially implemented for calculating the gradients for Poison Frogs.
A new jupyter notebook for running Poison Frogs on CIFAR10 dataset.

Fixes # (issue)
https://github.com/Trusted-AI/adversarial-robustness-toolbox/issues/1387
Type of change
Please check all relevant options.

[ ] Improvement (non-breaking)
[ ] Bug fix (non-breaking)
[x] New feature (non-breaking)
[x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Testing
Please describe the tests that you ran to verify your changes. Consider listing any relevant details of your test configuration.

[ ] Test A
[ ] Test B

Test Configuration:

OS
Python version
ART version or commit number
TensorFlow / Keras / PyTorch / MXNet version

Checklist

[ ] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have commented my code
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes

Please check all relevant options.

[ ] Improvement (non-breaking)
[ ] Bug fix (non-breaking)
[ ] New feature (non-breaking)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Testing
Please describe the tests that you ran to verify your changes. Consider listing any relevant details of your test configuration.

[ ] Test A
[ ] Test B

Test Configuration:

OS
Python version
ART version or commit number
TensorFlow / Keras / PyTorch / MXNet version

Checklist

[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes

Could you please remove the *.pt files from the pull request and replace the models in the notebooks with downloads from https://www.dropbox.com/s/vmfgnkhjub47fy0/ciafr10_alexnet_pytorch.pt?dl=0 and/or https://www.dropbox.com/s/re6hd3w4m3rmfvh/ciafr10_alexnet_pytorch_linear.pt?dl=0

@monshri Could you please remove the two .pt files from this pull request?

@monshri Could you please update the notebooks/README.md with the new notebook links and descriptions?


Encoded VIPS full submission into JSON

Encoded VIPS full submission for becoming DPG into JSON.

Thanks @nathanbaleeta, everything looks good.
Based on the information provided, if this submissions makes for a successful screening of VIPS against the standard, kindly update the stage field from nominee to DPG in this same PR.

@lacabra VIPS passes all the indicators except for their documentation which is still incomplete(work in progress) and last feedback from them indicated they would revert ASAP. Once they submit the updated documentation shall review and update their stage accordingly. Thanks.

Thanks @nathanbaleeta, everything looks good.
Based on the information provided, if this submissions makes for a successful screening of VIPS against the standard, kindly update the stage field from nominee to DPG in this same PR.

@lacabra VIPS passes all the indicators except for their documentation which is still incomplete (work in progress) and last feedback from them indicated they would revert ASAP. Once they submit the updated documentation shall review and update their stage accordingly. Thanks.

VIPS now provides a more complete documentationURL as shown in commit 26d901b and have proceeded to update the stage field from nominee to DPG in the same commit.


utPLSQL builds sometimes fail with ORA-00600 on all of XE containers

While building utPLSQL project, I sometimes see that the build is failing with infamous ORA-00600 error.
This happens irregularly and I've seen it happen on all 3 versions (11/18/21XE).
The trouble is, it's not easy to reproduce as it only happens sometimes on some builds with GitHub Actions.
It seems unrelated to the codebase as it happened across time on several occassions.
As discussed on Slack with @gvenzl, I've provided a way to capture the diag folder data when the build fails on tests for utPLSQL.
The one thing that seems common is the test that is causing the error to show up.
It always seem to fail, when testing with DBMS_JOB and DDL TRIGGER enabled.
You can see the failures in those builds:

11g - here fails but the test-run continues despite the failure with ORA-00600
21XE - here and here - test run stops
18XE - here - test run stops

You can obtain the diag directory content from here - they will disappear automatically after 90 days I think.

my-artifact$-18XE.zip
Attaching the mentioned artefact - hope this helps.

@gvenzl
Is there any chance for investigation of that issue?
I'm monitoring our builds and may provide more updates if the problem goes away after changes done do the unit tests&code as we develop new features.
I am however a bit uneasy to see random, non-deterministic ORA-00600 errors in our test-runs.

Hi @jgebal,
Apologies, the last couple of weeks have been a bit more busy than usual.
Looking at the trace files, thanks a lot for providing these btw, the error appears at line 124 in UT3_TESTER_HELPER.ANNOTATION_CACHE_HELPER.CREATE_RUN_FUNCTION_FOR_USER during something that looks like a recursive call:
----- PL/SQL Stack -----
----- PL/SQL Call Stack -----
  object      line  object
  handle    number  name
0x66abddc8       124  package body UT3_TESTER_HELPER.ANNOTATION_CACHE_HELPER.CREATE_RUN_FUNCTION_FOR_USER
0x66abddc8       149  package body UT3_TESTER_HELPER.ANNOTATION_CACHE_HELPER.CREATE_RUN_FUNCTION_FOR_USERS
0x68a91618         6  anonymous block
0x681dc990      1721  package body SYS.DBMS_SQL.EXECUTE
0x83d37808       142  type body UT3.UT_EXECUTABLE.DO_EXECUTE
0x68191a50        57  type body UT3.UT_SUITE.DO_EXECUTE
0x6cca3c98        49  type body UT3.UT_SUITE_ITEM.DO_EXECUTE
0x63823768        51  type body UT3.UT_LOGICAL_SUITE.DO_EXECUTE
0x6cca3c98        49  type body UT3.UT_SUITE_ITEM.DO_EXECUTE
0x68191a50        66  type body UT3.UT_SUITE.DO_EXECUTE
0x6cca3c98        49  type body UT3.UT_SUITE_ITEM.DO_EXECUTE
0x63823768        51  type body UT3.UT_LOGICAL_SUITE.DO_EXECUTE
0x6cca3c98        49  type body UT3.UT_SUITE_ITEM.DO_EXECUTE
0x68191a50        66  type body UT3.UT_SUITE.DO_EXECUTE
0x63a30a28        59  type body UT

The ORA-00600 does not provide any arguments, which is very strange, however, the next error message may be the clue to the issue:
ORA-00600: internal error code, arguments: [], [], [], [], [], [], [], [], [], [], [], []
ORA-30036: unable to extend segment by  in undo tablespace ''
ORA-06550: line , column :
ORA-06550: line , column :
ORA-06550: line , column :
ORA-06550: line , column :
ORA-06550: line , column :
ORA-06550: line , column :
ORA-06550: line 1, column 1:
PLS-00103: Encountered the symbol "CREATE" when expecting one of the following:

   ( begin case declare exit for function goto if loop mod null
   package pragma procedure raise return select type update
   while with <an identifier>
   <a double-quoted delimited-identifier> <a bind variable> <<
   table continue call close current define delete fetch lock
   insert open rollback savepoint set sql execute commit forall
   merge library assembly operator pipe purge compound
   json_exists json_value json_q

Could it be that the container simply runs out of space and cannot extend the UNDO tablespace when creating a new object?

Thanks @gvenzl
I didn't see that error showing up recently and I do find it hard to reproduce.
Closing for now,
I'll re-open if it becomes a permanent issue or will start to show up frequently-enough to be a real pain.


cmd/compile: internal compiler error: cannot handle alias type declaration (issue #25838): Callback

What version of Go are you using (go version)?

$ go version
1.15.6

Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
Linux
go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN="/home/USER/test/bin"
GOCACHE="/home/USER/test/.cache"
GOENV="/home/USER/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/USER/test/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/epetkas/test"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/app/vbuild/RHEL7-x86_64/go/1.15.6"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/app/vbuild/RHEL7-x86_64/go/1.15.6/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=
CGO_CFLAGS=-g -O2
CGO_CPPFLAGS=
CGO_CXXFLAGS=-g -O2
CGO_FFLAGS=-g -O2
CGO_LDFLAGS=-g -O2
PKG_CONFIG=pkg-config
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build941578384=/tmp/go-build -gno-record-gcc-switches"

What did you do?
Please see https://play.golang.org/p/5_1QLRDWwFL

What did you expect to see?
$ go run cw_prototype.go

Cert updated - cert 1
Running callBack function - replace old cert with new cert: 'cert 1' in gRPC client
Cert updated - cert 2
Running callBack function - replace old cert with new cert: 'cert 2' in gRPC client
Cert updated - cert 3
Running callBack function - replace old cert with new cert: 'cert 3' in gRPC client
Cert updated - cert 4
Running callBack function - replace old cert with new cert: 'cert 4' in gRPC client
Cert updated - cert 5
Running callBack function - replace old cert with new cert: 'cert 5' in gRPC client

What did you see instead?
$ go run cw_prototype.go
command-line-arguments
.\cw_prototype.go:13:6: internal compiler error: cannot handle alias type declaration (issue #25838): Callback
Please file a bug report including a short program that triggers the error.
https://golang.org/issue/new

Note that go 1.15 is no longer supported, only the two last versions are (right now, 1.17 and 1.16).
Anyway the 1.17 compiler crashes on this too.
tip prints:
test.go:37:10: incompatible type: cannot use cw (variable of type *CertWatcher) as CertWatcherIf value
test.go:55:19: incompatible type: cannot use cw (variable of type *CertWatcher) as CertWatcherIf value

Which seems correct to me (so your reproducer does not compile). Possibly already fixed on tip? Do you have a reproducer that does compile?

Hello!
When I put the definition of the Interface in the beginning of the program, it solved the problem. Please have a look here: https://play.golang.org/p/GdQSiR2mUHf

Thanks. So you don't have a program that crashes the tip compiler, I guess we can close this as fixed on tip(?)

Well, the first version of the program crashes the compiler. Is that an acceptable behaviour of the compiler ?

This seems fixed on tip, and the first version is a program that doesn't compile anyway, so even if it does crash 1.17, I think it may not be worth a backport (to 1.17.2 for example).

A solution may not be required for backporting, but it should be fixed in latest version of Golang I think. Or ?

After a major version is released (for example go1.17), minor releases are issued (1.17.1) following this policy:

fixes for security issues, serious problems with no workaround, and documentation fixes are backported to the most recent two release branches, if applicable to that branch.

In my opinion this doesn't qualify for a backport, since it's not a "serious problem without a workaround", given that the code doesn't compile anyway. So it would be fixed in go1.18 when it gets released.
Of course if we find a program that should compile (and it crashes the compiler), that would probably qualify for a backport.

If you fix it for go1.18 is fine for me.


use grpc 1.19

grpc 1.18 causes a warrning to displayed on JVM versions above 8:
WARNING: An illegal reflective access operation has occurred
This is fixed with 1.19.

Thank you for the contribution!


Cannot have multiple S3 event sources on same bucket for same Lambda Function.

The following configuration will not work:

event_sources:
- arn: arn:aws:s3:::my-bucket
events:
- s3:ObjectCreated:*
key_filters:
- type: prefix
value: my_path/
- arn: arn:aws:s3:::my-bucket
events:
- s3:ObjectCreated:*
key_filters:
- type: prefix
value: my_path2/

The problem is that Kappa is using the same notification id for both event sources.
    def _make_notification_id(self, function_name):         return 'Kappa-%s-notification' % function_name
This can be fixed by adding an optional "id" field for the s3 event source that can be utilised if there are more than one event sources on the same bucket e.g.

event_sources:
- arn: arn:aws:s3:::my-bucket
id: 1
events:
- s3:ObjectCreated:*
key_filters:
- type: prefix
value: my_path/
- arn: arn:aws:s3:::my-bucket
id: 2
events:
- s3:ObjectCreated:*
key_filters:
- type: prefix
value: my_path2/

PR: #120