Error occurred while GetObject. S3 Error Code: NoSuchBucket. S3 Error Message: The specified bucket does not exist (Service: AWSLambdaInternal; Status Code: 400; Error Code: InvalidParameterValueException; Request ID: d19f49eb-9da6-11e9-bfe6-2bd79cd1146a)

I am getting this issue however i tried to launch a stack with in same region. But still getting can you provide me an example how do i create bucket. This line mentioned below in readme is confusing as well
Note: You would have to create 2 buckets, one named 'my-bucket-name' and another regional bucket named 'my-bucket-name-<aws_region>'; aws_region is where you are testing the customized solution. Also, the assets in bucket should be publicly accessible.

should i create two bucket in same region ?
for example one bucket name is test-bucket. If region is ap-east-1 then another bucket name should be test-bucket-ap-east-1 ?

We are having the exact same issue.  I don't understand the need for 2 buckets either.  In fact, it doesn't seem like the bucket without the region code is ever actually used.  Here's why:
The readme says:
export TEMPLATE_OUTPUT_BUCKET=my-bucket-name # bucket where cfn template will reside
export DIST_OUTPUT_BUCKET=my-bucket-name # bucket where customized code will reside
export VERSION=my-version # version number for the customized code
and then:
aws s3 cp ./dist/ s3://$DIST_OUTPUT_BUCKET-[region_name]/serverless-image-handler/$VERSION/ --recursive --exclude "" --include ".zip"
aws s3 cp ./dist/serverless-image-handler.template s3://$TEMPLATE_OUTPUT_BUCKET/serverless-image-handler/$VERSION/
Now, I'm assuming we're supposed to create 2 buckets and name them like this:
export TEMPLATE_OUTPUT_BUCKET=my-bucket-name-us-east-2
export DIST_OUTPUT_BUCKET=my-bucket-name
Assuming that's correct, the only bucket being used is my-bucket-name-us-east-2 because this is basically making TEMPLATE_OUTPUT_BUCKET = DIST_OUTPUT_BUCKET when you upload them:
aws s3 cp ./dist/ s3://$DIST_OUTPUT_BUCKET-[region_name]/serverless-image-handler/$VERSION/ --recursive --exclude "" --include ".zip"
aws s3 cp ./dist/serverless-image-handler.template s3://$TEMPLATE_OUTPUT_BUCKET/serverless-image-handler/$VERSION/

yes i tried number of times issues remains the same. I use js library sharp to implement this. Let me know if you need my help

Also, in order to get the build to work properly we had to remove the empty quotes from lines 16, 19 and 22 of /deployment/build-s3-dist.sh (sed -i '' -e $replace dist/*.template).  As far as I can tell the empty quotes are not proper for sed and shouldn't be there.  We are building (as suggested) on an amazon linux machine with all proper requirements installed and configured.

@malikkamranabid YES!!!  If you found a way to implement this that would be great!  I'd appreciate any help you can give!

my skype id is<EMAIL_ADDRESS>we can discuss it there

I had this problem too, and found that I just wasn't waiting long enough after creating the bucket until trying to do the deployment. My guess is that there's some slow synchronisation that takes place before lambda sees the bucket.
@jasonobrown I also saw the errors relating to -i '', but it the command seemed to work correctly despite this. In my case I didn't need to remove it, I simply needed to wait longer (e.g. 1 hour) after creating the bucket, before trying to do the Cloudformation deployment.

Hello all, please let me know if you're still experiencing trouble with the solution build/configuration process and I'd be happy to help where possible!

I'm still having this exact same issue, please help, thank you.

My issue ended up being that I didn’t read the README properly and misunderstood how the bucket names work, and in particular that the bucket name is really just the prefix, and the region is appended as a suffix.

I have same issue, please let me know if you have any solution. Thanks

I have found the problem. I found the README a bit confused.

DIST_OUTPUT_BUCKET and TEMPLATE_OUTPUT_BUCKET use the same value, without add the region in any of them.
Create 2 buckets one using the name in the variables above and another one adding the region at the end.
Build it and upload

Hello, thanks for your questions. Just to clarify, you will need to create two s3 buckets in the same region for storing customized source code and CloudFormation template, for example "my-test-bucket"(for storing customized source code) and "my-test-bucket-us-east-1" (for storing CloudFormation template). You will also need to export these two buckets as environment variables, for example export DIST_OUTPUT_BUCKET=my-test-bucket and export TEMPLATE_OUTPUT_BUCKET= my-test-bucket-us-east-1. Then the value of the environment variables (bucket names) will be used to replace the variables in CloudFormation template in the steps later on and code will be copied to these two s3 buckets via s3 cp commands. Please follow the steps in README- Building distributable for customization to build and configure the solutions. Thanks!

Sorry, DIST_OUTPUT_BUCKET and TEMPLATE_OUTPUT_BUCKET should be the other way around. Below is the correction :
Create two s3 buckets in the same region for storing customized source code and CloudFormation template, for example "my-test-bucket"(for storing CloudFormation template ) and "my-test-bucket-us-east-1" (for storing customized source code). You will also need to export these two buckets as environment variables, for example export DIST_OUTPUT_BUCKET=my-test-bucket-us-east-1 and export TEMPLATE_OUTPUT_BUCKET= my-test-bucket. Then the value of the environment variables (bucket names) will be used to replace the variables in CloudFormation template in the steps later on and code will be copied to these two s3 buckets via s3 cp commands. Please follow the steps in README- Building distributable for customization to build and configure the solutions.

I am also facing the same problem. I followed the suggestions given above but it didn't work.

I am facing a related bucket problem. - The s3 copy succeeds once I name the buckets in a fashion @aijunpeng specified and change the first copy to
aws s3 cp ./dist/ s3://$DIST_OUTPUT_BUCKET/serverless-image-handler/$VERSION/ --recursive --exclude "*" --include "*.zip"

but when running the cloudformation script I get the following error in CustomResourceFunction :
Error occurred while GetObject. S3 Error Code: NoSuchBucket. S3 Error Message: The specified bucket does not exist (Service: AWSLambdaInternal; Status Code: 400; Error Code: InvalidParameterValueException; Request ID: 5ecd6554-aa06-411d-bc2e-904db01f2349)

I double-checked that I have the source bucket correct so it must be the DIST_OUTPUT_BUCKET. - Unfortunatley the error does not specify the bucket name

I finally solved the bucket naming problem with all the advice above but am now encountering the following error in the cloudformation process in the ID ImageHandlerFunction:
Error occurred while GetObject. S3 Error Code: NoSuchKey. S3 Error Message: The specified key does not exist. (Service: AWSLambdaInternal; Status Code: 400; Error Code: InvalidParameterValueException; Request ID: ae9e74a0-f5e3-4fc5-b47d-dfe339f1e7e3)
--
Any advice what the issue could be?

Hi there,
Are you still experiencing this issue? If so, to help troubleshoot a bit, can you please have a look at the serverless-image-handler.template file that should have been created in deployment/dist/ after this step in the readme: sudo ./build-s3-dist.sh $DIST_OUTPUT_BUCKET $VERSION.
Inside the template, you should be able to find the definition for ImageHandlerFunction within the Resources object. Please have a look at where the Lambda's code should be found (JSONPath: $.Resources.ImageHandlerFunction.Properties.Code). CloudFormation is instructed to derive the bucket containing the Lambda's function by joining $.Mappings.SourceCode.General.S3Bucket with the Region in which you are currently deploying this CloudFormation template. The value for $.Mappings.SourceCode.General.S3Bucket should be the value you used for the DIST_OUTPUT_BUCKET environment variable.
If your Mappings are defined as below and you deployed the CloudFormation stack in us-east-1, CloudFormation will attempt to find your code in this bucket: my-bucket-name-us-east-1
    "Mappings": {
        "SourceCode": {
            "General": {
                "S3Bucket": "my-bucket-name",
                "KeyPrefix": "serverless-image-handler/v0.0.1"
            }
        }
    },

The object key that CloudFormation will attempt to use is defined in this JSONPath: $.Resources.ImageHandlerFunction.Properties.Code.S3Key. Note the version should be the value you set as the $VERSION environment variable before running the build script.
Can you please try to manually check S3 to verify that the image-handler.zip file is in the correct S3 location that CloudFormation will use during the stack launch?

We are closing this issue, but please feel free to open the issue again if you any other support.

I am facing the same issue above: encountering the following error in the cloudformation process in the ID SFTPCustomAuthLambda:
Resource handler returned message: "Error occurred while GetObject. S3 Error Code: NoSuchBucket. S3 Error Message: The specified bucket does not exist (Service: Lambda, Status Code: 400, Request ID: c9c29b9b-63f6-41f4-bf93-4958c68b863c)" (RequestToken: ad6458fc-c648-8612-e8cf-2c961834290a, HandlerErrorCode: InvalidRequest)
Any advice what the issue could be?

@andersontechnetverrum thanks for your report, please provide the following additional information

version of the solution that you are using
region deployed
confirm that you saw the comment on Nov 15, 2019 https://github.com/aws-solutions/serverless-image-handler/issues/115#issuecomment-554392459 on checking your template and bucket


Add support for buffer count / inspection

I have run into a situation where one of my appender's target data is being accessed before the buffer is emptied resulting in a loss of logging data.
It would be very handy to have a way to ask for a buffer/queue count, or a boolean flag to determine if the buffer/queue is empty.
This way I could block certain areas of my application until the logging queue is empty before trying to access that log data.
I realize there are ways around this, such as destroying the AsyncForwardingAppender and recreating it, but that seems to be a drastic approach to a simple problem.
My only other alternative is to fork the Log4net.Async project and modify it for my situation, but then it becomes orphaned code that I must maintain manually.
Thanks for your consideration.

If it's of any help, what I did for now was branch and make the following changes:
IQueue.cs -- add int Count();
RingBuffer.cs -- add public int Count() {
AsyncForwardingAppenderBase.cs - add public abstract int BufferCount { get; }
AsyncForwardingAppender.cs - add
public override int BufferCount
{
   get { return buffer.Count(); }
}

and
public override bool Flush(int millisecondsTimeout)
{
	DateTime starttime = DateTime.Now;

	while (buffer.Count() != 0)
	{
		Thread.Sleep(10);

		if (shutDownRequested)
		{
			return false;
		}

		if (DateTime.Now.Subtract(starttime).TotalMilliseconds >= millisecondsTimeout)
		{
			return false;
		}
	}

	return true;
}

If you want lossless, why not use the ParallelForwardingAppender?  Aside from that,  what not create a pull request and a test for  the code that you've already written?


Treat raw pointers with more respect

I think there are at least a few cases where we can work on refactoring code that uses raw pointers to be somewhat more idiomatic:

where can raw pointers be replaced with ptr::Unique<T>s?

We already use Unique in some cases
I think there might be more uses of raw pointers that can be replaced with Unique.

where can pointer math be replaced with pointer.offset()?

this is considered more idiomatic
has less ugly casts/can be less wordy

where can coercing raw pointers to references be replaced with pointer.as_ref() or pointer.as_mut()?

these functions can still return references to uninitialised memory, but they're more null-safe (allow us to handle null pointers Optionally)
fewer ugly casts/transmutes

where can mem::transmute-ting a reference into a raw pointer be replaced with &*?

this is more idiomatic

Another way we could potentially improve safety is by 'downgrading' some *mut pointers to *const pointers. Potentially, there might also be some *const pointers that could be downgraded to &'static references...


[Bug]: Bell Icon is misaligned when subscribed to a channel as well as the name of the channel

Describe the bug
Bell Icon is under the subscribed button. The name of the channel is also misaligned to when it is subscribed
I think that is all, if its an account based changed, then I am willing to let you borrow my youtube account to fix this.
Screenshots
screenshot (Before subscribed):

screenshot (After subscribed):

The channel page is also affected although the name of the channel is not misaligned there even when subscribed
screenshot channel page (Before subscribed):

screenshot channel page (after subscribed):

Edit: To follow up it is an account based change, since I tested it with a different account with the script on, and the links below the channel is also there but the bell icon is not misaligned.
screenshot main account channel page:

screenshot other account channel page:

screenshot video player main account:

screenshot video player other account:

What browser are you using?
Firefox browser v. 116.0.3 (64-bit)
What version of AdashimaaTube are you using?
v.2.3.9

bug is still there even after I tried v2.4.0

I can let you borrow the youtube account if you want so that you can analyze it much better

I can let you borrow the youtube account if you want so that you can analyze it much better

sure<EMAIL_ADDRESS>

I've sent an email with my gmail account and password, although I might change the password after you find a way to fix it or if you can't fix it now

you can change your password now.


single auth factor java demo added.

SIngle Auth factor java demo

Hey Gaurav,
I don't think this examples sits here properly, you can have this one in the sdk itself.

Hey Gaurav,
I don't think this examples sits here properly, you can have this one in the sdk itself.

Yup sure.


Calculator: 1+2*3= crashes

An unexpected error occured, maybe a bug.

Please report this if you think this is a bug. Include a brief description on how the error occured, and if you can; how to replicate it

ApplicationCalculatorWindow.prototype.operation@http://osjsv2.0o.no/packages/default/Calculator/combined.js:222:1
ApplicationCalculatorWindow.prototype.init/</<@http://osjsv2.0o.no/packages/default/Calculator/combined.js:128:9
OSjs.Utils.$bind/cbNormal@http://osjsv2.0o.no/osjs.js:1078:9

Thanks for reporting!

Thanks for reporting!


Allow listener on multiple networks at once

Right now the backend has a single 'active' network, but there's no reason we can't listen on multiple networks at once.

Think we'd want to activate/deactivate multiple networks, or just (attempt to) listen on all configured networks?

I'm thinking the 'active' boolean should control whether the listener is active or not for that network, so that it can be switched on an off via the UI. Would be useful for local development, anyway.

Low priority since we are not currently using the listener.


TapLoader.get_formula: Fix test-bot for Linuxbrew

Install the tap if it's not yet installed.
Fix
Error: No available formula with the name "linuxbrew/xorg/xorg"
Please tap it and then try again: brew tap linuxbrew/xorg

Works in principle but breaks brew tests.
FormularyFactoryTest#test_to_rack [/home/travis/build/Linuxbrew/brew/Library/Homebrew/test/formulary_test.rb:123]:
[TapFormulaUnavailableError]
 exception expected, not
Class: <ErrorDuringExecution>
Message: <"Failure while executing: git clone https://github.com/a/homebrew-b /tmp/homebrew-tests-20161208-3201-33fg1w/prefix/Library/Taps/a/homebrew-b --depth=1 --config core.autocrlf=false">

https://travis-ci.org/Linuxbrew/brew/builds/182388088#L413

Resolved instead by https://github.com/Linuxbrew/homebrew-test-bot/commit/0e45c1954cbfa24bf3b8dfdb309cc357c21f53af


under-the-hood: demo that added file are never lost

I think this is an interesting/useful thing about "git under the hood", since it seems that it can help with avoiding data loss.
On the other hand, it is just one of many other things that one might find useful.

Thank you!


Show current effect in yeelight device

Description:
Fixes https://github.com/home-assistant/home-assistant/issues/28901 . It also adds additional attributes, to yeelight light entity. Active mode ( normal / night light ) and color flow ( is device flowing , some effect enabled ). Current effect is only populated, if effect is started from HA. Yeelight doesn't return any current effect, for example if executed from official Yeelight App, so we can only populate it when executed from predefined HA effects list.
Related issue (if applicable): fixes https://github.com/home-assistant/home-assistant/issues/28901
Checklist:

[X] The code change is tested and works locally.
[X] Local tests pass with tox. Your PR cannot be merged unless tests pass
[X] There is no commented out code in this PR.
[X] I have followed the [development checklist][dev-checklist]

One question, should there be some sort of dummy "Unknown effect" set for the cases when there is an active flow, but it was not activated by homeassistant? Only for the user feedback purposes, as I assume this is shown in the UI and would not be otherwise consistent (as we currently have no way to show in which mode the light is in).

Flowing device attribute will be still set, and its visible on light popup window, when flow is activated outside of HA ( https://github.com/home-assistant/home-assistant/pull/28975/files#diff-6b4ac627753ee21cde162f000848ba3bR573 ). But maybe it would be good to set currect effect to something, maybe more like "Non HA effect",  to give info that there is some effect, but outside form HA. My concern is "Unknown effect" sounds more like a bug ( something went wrong, and we are not sure what effect is on) , instead of showing that only HA effects will be shown ?

Ah, I see. Yes, the naming is important, I just wanted to exemplify the idea of having a sort of "fallback" effect and I couldn't think of any better description. Feel free to pick a suitable name for it, I just think the active effect is shown as selected in the effects menu, so it's more visible than the state attributes :-)

Hmm current effect is shown in effects dropdown. But I'm concerned adding it there, makes thing complicated, as it exists in drop down list and will be selectable ? It wont make sense to select it. If you open light card, attributes are just below effects dropdown, so its good enough ?
.
Also remembering current effect, won't last between restarts, and it looks more like bug then. I select Disco effect, I can see current effect disco, and after reboot I see "Non HA Effect". Also we can start custom flow, via service call. That would add another case "Service call flow" ?
Maybe it would be good to release it in current state and gather some feedback, or maybe new ideas how to make good UX, will come up from users ?

Any news on this?

I think it is fine as it is, we can always fine-tune it if needed later on. Thanks @zewelor!


Add mention of draft css in overview doc

Summary
Mention the need to include Draft.css when rendering the editor in the overview doc and reference the link, https://draftjs.org/docs/advanced-topics-issues-and-pitfalls.html#missing-draft-css, to learn more about why it is needed.
This is related to https://github.com/facebook/draft-js/issues/1201.
Test Plan
This is a doc update. There is probably no need for additional tests.

@flarnie I made the change. Please let me know if there is any more improvement you would like on this branch. Thanks!

Thanks!!! :)

Yes, how about directions about how to actually include the CSS? There doesn't seem to be an explanation about how to do so properly.

@jackyho112 I realise this is an old pull request, but as @lesreaper mentions, it does not actually tell you how to do it.


Error Handling within Twitter API

Description
Currently, nothing happens if a user inputs an ID that currently doesn't exist or is too ambiguous for the Twitter API to recognize. This issue is to deal with failed GET request in the Twitter API and to have a way to notify users that their search was unsuccessful.
To Reproduce
Type in an unknown Twitter handler/user and the screen will be stuck on loading. Additionally, the request will constantly be done on the backend until the user refreshes the page or inputs a new search.
Tasks

[x] Detect if the GET request failed or was unable to be done and return a response back to the front end indicating as such
[x] If there were no Tweets returned, return a response back to the front end indicating as such
[x] Fix any other error handlings and document them for fixing

Covered the tasks listed and merged them in a pull request.


Step 1.5

Add an additional step to equilibration between steps 1 and 2
This step should be NPT with anisotropic barostat, maintain the same restraints as in step 1

Resolved with commit 4f84d5a


PWM: added workaround for Edison's problem with 0% duty

Proposed fix (rather a proper workaround, which uses board-specific advance functions) for #91.
Two things to mention aside from the logic itself, which should be rather clear from the code:

I haven't run clang-format, as there are quite a few existing lines that are longer than .clang-format allows
I haven't split adding pwm_write_pre() and pwm_enable_pre() into the mraa_adv_func_t as while they can be viewed as logically separate changes, splitting them would require always applying commits in a certain order (first adv_func_t, then the workaround), which IMHO is more confusing than helpful.

Let me know if you want me to do either of the above.
There's still a thing, which I mentioned in the triaging notes and not related to #91 - when cycling through write(<non-zero)/enable(0) pattern (or equivalents directly from the shell - i.e. this nis not a mraa thing at all), sporadically instead of disabling the pin, it would set it to something looking like 100%. I'll open a separate issue for debugging this one.

Updated the PR to support multiple pins.

Anything else you want me to do for this PR? I'm thinking of maybe adding some tests for PWM, but we'd need to define which platforms to target and what hw setup to expect. And then that's not directly the PR's goal, so probably should be a separate one.

@arfoll, ping :smiley:
Anything else you'd want to be done here?

Nope, this is good to go. Merged into master. Thanks alot!

Thanks!


[ Feature Request ] - PWA - Progressive webapp

Description
I often use Jellyseerr on my phone and it would be quite nice to also be able to use it as progressive web app.
Microsoft got a really short and pretty explanatory explanation on how to achive this:
https://learn.microsoft.com/en-us/windows/android/pwa
Desired Behavior
Use Jellyseerr as progressive web app (PWA) on android, as an APK download from the GitHub or even GooglePlay or other third party websites.
Additional Context
https://learn.microsoft.com/en-us/windows/android/pwa
Code of Conduct

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

Jellyseerr is already a pwa..
It's been a pwa since day 0.

Jellyseerr is already a pwa..
It's been a pwa since day 0.
We even have web push support because it's a pwa. Pwa is not an apk. How you install a pwa is access your site using https and you should see an install button. For example chrome Android will show an install button on the address bar.
https://github.com/Fallenbagel/jellyseerr/blob/develop/public%2Fsite.webmanifest

Ok weird cause in my browser it doesnt get shown... do i need https connectivity?

Jellyseerr is already a pwa..
It's been a pwa since day 0.
We even have web push support because it's a pwa. Pwa is not an apk. How you install a pwa is access your site using https and you should see an install button. For example chrome Android will show an install button on the address bar.
https://github.com/Fallenbagel/jellyseerr/blob/develop/public%2Fsite.webmanifest

Ok weird cause in my browser it doesnt get shown... do i need https connectivity?

Yes that is a requirement for pwa.

Jellyseerr is already a pwa..
It's been a pwa since day 0.
We even have web push support because it's a pwa. Pwa is not an apk. How you install a pwa is access your site using https and you should see an install button. For example chrome Android will show an install button on the address bar.
https://github.com/Fallenbagel/jellyseerr/blob/develop/public%2Fsite.webmanifest

Ok weird cause in my browser it doesnt get shown... do i need https connectivity?

Yes that is a requirement for pwa.

Oh okay then i am stupid, i am sorry for wasting your time


Configurable port speed

The speed is hard coded to 9600. One should be able to configure a different speed.

This is has been introduced in v0.4.0.
9600 is still the default speed, but it can be changed with a SerialConfig component on an empty GameObject


download fails due to 500 error

Download the installer.
  Downloaded 0K out of NaNK (0%)
  Downloaded 0K out of 0K (100%)
  Downloaded 0K out of NaNK (0%)
  Downloaded 0K out of 0K (100%)
  node:internal/process/promises:279
              triggerUncaughtException(err, true /* fromPromise */);
              ^

  HTTPError: Response code 500 (Internal Server Error)
      at Request._onResponseBase (/home/runner/work/_actions/wasmerio/setup-wasmer/v2/dist/index.js:1:103623)
      at Request._onResponse (/home/runner/work/_actions/wasmerio/setup-wasmer/v2/dist/index.js:1:104056)
      at ClientRequest.<anonymous> (/home/runner/work/_actions/wasmerio/setup-wasmer/v2/dist/index.js:1:104276)
      at Object.onceWrapper (node:events:6[28](https://github.com/RustPython/RustPython/actions/runs/5985643042/job/16238432038?pr=5044#step:5:29):26)
      at ClientRequest.emit (node:events:525:35)
      at ClientRequest.e.emit (/home/runner/work/_actions/wasmerio/setup-wasmer/v2/dist/index.js:1:38646)
      at HTTPParser.parserOnIncomingClient (node:_http_client:693:27)
      at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17)
      at Socket.socketOnData (node:_http_client:534:22)
      at Socket.emit (node:events:513:28) {
    code: undefined,
    timings: {
      start: 169[30](https://github.com/RustPython/RustPython/actions/runs/5985643042/job/16238432038?pr=5044#step:5:31)67888719,
      socket:<PHONE_NUMBER>719,
      lookup:<PHONE_NUMBER>720,
      connect:<PHONE_NUMBER>728,
      secureConnect: undefined,
      upload:<PHONE_NUMBER>728,
      response: 16930679[34](https://github.com/RustPython/RustPython/actions/runs/5985643042/job/16238432038?pr=5044#step:5:35)577,
      end:<PHONE_NUMBER>616,
      error: undefined,
      abort:<PHONE_NUMBER>618,
      phases: {
        wait: 0,
        dns: 1,
        tcp: 8,
        tls: undefined,
        request: 0,
        firstByte: 45849,
        download: [39](https://github.com/RustPython/RustPython/actions/runs/5985643042/job/16238432038?pr=5044#step:5:40),
        total: [45](https://github.com/RustPython/RustPython/actions/runs/5985643042/job/16238432038?pr=5044#step:5:46)899
      }
    }
  }

@youknowone I've verified that this still happens. I've noticed that rerunning the CI "fixes" the issue, so its a transient error.
So I think a quick fix would be to add a retry functionality. I'll add "Find a hot-fix for issue #9" to my todo list.

When I submitted the issue, it was failing at least a few days. I thought the download URL was changed.

Yeah sorry, the flakiness is due to instability with Wasmer Edge (the hosting provider for https://get.wasmer.io and https://win.wasmer.io). The PR to add retries is ready for review if you wanna take a look #10.
I also took the liberty of cleaning up the CI a bit while I was at it.

@youknowone PR #10 fixed this issue. I am going to close this, but feel free to reopen if you still face the same issue.

Thank you so much!


TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.
If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.
If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/118083

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/119904


Test getPhantomPoints

This new test passes with fontTools version 4.22.0 but raises NameError with version 4.22.2.dev0
see issue #2295

I cherry-picked your test in #2305
for the //UNC windows paths, we should fix in a separate PR


Could not find a package configuration file provided by "costmap_queue"

CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:76 (find_package):
  Could not find a package configuration file provided by "costmap_queue"
  with any of the following names:

    costmap_queueConfig.cmake
    costmap_queue-config.cmake

  Add the installation prefix of "costmap_queue" to CMAKE_PREFIX_PATH or set
  "costmap_queue_DIR" to a directory containing one of the above files.  If
  "costmap_queue" provides a separate development package or SDK, be sure it
  has been installed.
Call Stack (most recent call first):
  mir_robot/mir_dwb_critics/CMakeLists.txt:6 (find_package)

-- Could not find the required component 'costmap_queue'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.
CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by "costmap_queue"
  with any of the following names:

    costmap_queueConfig.cmake
    costmap_queue-config.cmake

  Add the installation prefix of "costmap_queue" to CMAKE_PREFIX_PATH or set
  "costmap_queue_DIR" to a directory containing one of the above files.  If
  "costmap_queue" provides a separate development package or SDK, be sure it
  has been installed.
Call Stack (most recent call first):
  mir_robot/mir_dwb_critics/CMakeLists.txt:6 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/chbloca/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/chbloca/catkin_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed
chbloca@chbloca-ThinkPad-T470s:~/catkin_ws$

How come does this error appear during compilation since I have done previously:
$ sudo apt-get install ros-kinetic-navigation

chbloca@chbloca-ThinkPad-T470s:~/catkin_ws/src$ rosdep install --from-paths ./ -i -y --rosdistro kinetic
ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
dodo_detector_ros: Cannot locate rosdep definition for [kinect2_bridge]

To avoid the kinect2_bridge error, you should run that rosdep install command inside the mir_robot folder.

Many thanks as always for your help @mintar. It is working well now.


Question: http/https SecurityError in popup.  Am I approaching wrong?

This might be a question for StackOverflow and if you'd like me to post there I'd be happy to.  I used redux-auth as a guide to setting up OAuth though so I thought someone here might be able to answer my question with better context...
So I'm trying to do google oauth to get a refresh token for my users (not actually using google oauth to save the user).  I had everything working when I used the client side OAuth for google api but they don't provide a refresh token when you do that handshake, only an access_token.  So I set up omniauth on my rails server to make the flow go like this:
user clicks authenticate with google --> popup in screen goes to backend server --> backend server redirects to google oauth --> they authenticate and get redirected to backend server's callback --> backend server saves token for appropriate user and then redirects back to client side app on localhost:3000 (nothing needs to be done on client, just need the token saved on my server)
I do however need to know that the authentication was successful so I can dispatch appropriate actions.  In redux-auth you check for the access_token inside the popup.location URI.  Problem is when I use this server side popup flow I get this nasty http/https error:

If instead of redirecting back to the client I just redirect to a view in my backend server I could then have a script on that page that just does window.close() but that seems hacky to me.  Another potential solution I was thinking was to try and use the window.postMessage api but I don't know if that has great browser support/also seems hacky.
I feel like I'm just approaching this whole flow completely wrong or I'm missing something obvious.  If anyone has any thoughts or could give me some direction that would be much appreciated!!

postMessage is broken on nearly every version of IE. I'm not sure if even edge supports it when CORS is involved.
In this library,

the parent window opens a popup to the API. It starts checking the URL of the popup every 100 ms or so.
The API redirects to the OAuth provider (google, facebook, etc.).
The provider redirects back to the API..
The API redirects back to the client, appending the auth credentials to the URL.

At this point the parent window is allowed to access popup's the URL because it's on the same domain. The parent window then takes the auth credentials from the URL and verifies them with the API.
This approach should work all the way back to IE8 and maybe even earlier.

At this point the parent window is allowed to access popup's the URL because it's on the same domain.

Isn't the api server on a different domain?  For example, my rails server is at localhost:3001 but my react/redux app is at localhost:3000.  Do you get that same protocol error it just goes away once the api server redirects to the client with the proper params?

Yeah nevermind, I must have been really tired when I was trying to get this working sunday night because it seems to work fine now haha.  I think logging the popup when it was coming from the other URI (like https;//accounts.google) was throwing me off by giving that SecurityError,  thank you for taking the time to explain the process to me @lynndylanhurley and the great work with this library.  Without this library I wouldn't have been able to get this working!  Closing issue

Isn't the api server on a different domain?

@SpencerCDixon - the API will need to redirect back to the client domain.

Yeah that totally fixed it, thanks again!


ZeroPadding2D bug with TensorFlow?

Hello,
I'm getting that kind of error when I use ZeroPadding2D layers with TensorFlow (it works well when Theano is the backend).
Traceback (most recent call last):
  File "vgg_net.py", line 1345, in <module>
    custom_convnet()
  File "vgg_net.py", line 1235, in custom_convnet
    model = build_custom3()
  File "vgg_net.py", line 1226, in build_custom3
    model.compile(loss='categorical_crossentropy',optimizer=optimizer)
  File "//anaconda/lib/python2.7/site-packages/keras/models.py", line 372, in compile
    self.y_train = self.get_output(train=True)
  File "//anaconda/lib/python2.7/site-packages/keras/layers/containers.py", line 73, in get_output
    return self.layers[-1].get_output(train)
  File "//anaconda/lib/python2.7/site-packages/keras/layers/core.py", line 686, in get_output
    X = self.get_input(train)
  File "//anaconda/lib/python2.7/site-packages/keras/layers/core.py", line 107, in get_input
    return self.previous.get_output(train=train)
  File "//anaconda/lib/python2.7/site-packages/keras/layers/core.py", line 686, in get_output
    X = self.get_input(train)
  File "//anaconda/lib/python2.7/site-packages/keras/layers/core.py", line 107, in get_input
    return self.previous.get_output(train=train)
  File "//anaconda/lib/python2.7/site-packages/keras/layers/core.py", line 686, in get_output
    X = self.get_input(train)
  File "//anaconda/lib/python2.7/site-packages/keras/layers/core.py", line 107, in get_input
    return self.previous.get_output(train=train)
  File "//anaconda/lib/python2.7/site-packages/keras/layers/core.py", line 597, in get_output
    return K.flatten(X)
  File "//anaconda/lib/python2.7/site-packages/keras/backend/tensorflow_backend.py", line 258, in flatten
    x = tf.reshape(x, [-1, np.prod(x.get_shape()[1:].as_list())])
  File "//anaconda/lib/python2.7/site-packages/numpy/core/fromnumeric.py", line 2349, in prod
    out=out, keepdims=keepdims)
  File "//anaconda/lib/python2.7/site-packages/numpy/core/_methods.py", line 35, in _prod
    return umr_prod(a, axis, dtype, out, keepdims)
TypeError: unsupported operand type(s) for *: 'int' and 'NoneType'

K.flatten(X)
'NoneType'

It means the initial shape of your input is not defined. What's your code?

This model:
model = Sequential()
    model.add(ZeroPadding2D((1,1),input_shape=(3,224,224)))
    model.add(Convolution2D(64, 3, 3, activation='relu'))
    model.add(ZeroPadding2D((1,1)))
    model.add(Convolution2D(64, 3, 3, activation='relu'))
    model.add(MaxPooling2D((2,2), strides=(2,2)))

    model.add(ZeroPadding2D((1,1)))
    model.add(Convolution2D(128, 3, 3, activation='relu'))
    model.add(ZeroPadding2D((1,1)))
    model.add(Convolution2D(128, 3, 3, activation='relu'))
    model.add(MaxPooling2D((2,2), strides=(2,2)))

    model.add(Flatten())
    model.add(Dense(512, activation='relu'))
    model.add(Dense(512, activation='relu'))
    model.add(Dense(2, activation='softmax'))

    optimizer = keras.optimizers.SGD(lr=0.01, decay=1e-6, momentum=0.9, nesterov=True)
    model.compile(loss='categorical_crossentropy',optimizer=optimizer)

I'll look into it. A quick fix would be for you not to start with padding as first layer.

Yes, thanks. I changed the first conv layer to border_mode = 'same', which I think (in this case) should give something identical to the first zero-padding layer (unless I misunderstood something).

I get the exact same error with MaxPooling2D. It only happens with the tensorflow backend.
To reproduce take the mnist_cnn example and change nb_pool to something greater than 12.
The feature map is 24x24x32 and thus should accept pooling kernels up to 24x24.
So it looks like the reshape fails when the pooling reduces the feature map to 1x1x32.

I encountered this same error message when compiling a similar model with the tensorflow backend.
    model = Sequential()
    model.add(ZeroPadding2D((1,1),input_shape=(3,224,224)))
    model.add(Convolution2D(64, 3, 3, activation='relu'))
    model.add(ZeroPadding2D((1,1)))
    model.add(Convolution2D(64, 3, 3, activation='relu'))
    model.add(MaxPooling2D((2,2), strides=(2,2)))

    model.add(ZeroPadding2D((1,1)))
    model.add(Convolution2D(128, 3, 3, activation='relu'))
    model.add(ZeroPadding2D((1,1)))
    model.add(Convolution2D(128, 3, 3, activation='relu'))
    model.add(MaxPooling2D((2,2), strides=(2,2)))

    model.add(ZeroPadding2D((1,1)))
    model.add(Convolution2D(256, 3, 3, activation='relu'))
    model.add(ZeroPadding2D((1,1)))
    model.add(Convolution2D(256, 3, 3, activation='relu'))
    model.add(ZeroPadding2D((1,1)))
    model.add(Convolution2D(256, 3, 3, activation='relu'))
    model.add(MaxPooling2D((2,2), strides=(2,2)))

    model.add(ZeroPadding2D((1,1)))
    model.add(Convolution2D(512, 3, 3, activation='relu'))
    model.add(ZeroPadding2D((1,1)))
    model.add(Convolution2D(512, 3, 3, activation='relu'))
    model.add(ZeroPadding2D((1,1)))
    model.add(Convolution2D(512, 3, 3, activation='relu'))
    model.add(MaxPooling2D((2,2), strides=(2,2)))

    model.add(ZeroPadding2D((1,1)))
    model.add(Convolution2D(512, 3, 3, activation='relu'))
    model.add(ZeroPadding2D((1,1)))
    model.add(Convolution2D(512, 3, 3, activation='relu'))
    model.add(ZeroPadding2D((1,1)))
    model.add(Convolution2D(512, 3, 3, activation='relu'))
    model.add(MaxPooling2D((2,2), strides=(2,2)))

    model.add(Flatten())
    model.add(Dense(4096, activation='relu'))
    model.add(Dropout(0.5))
    model.add(Dense(4096, activation='relu'))
    model.add(Dropout(0.5))
    model.add(Dense(classes, activation='softmax'))

I tried adding in layers one by one. The error appears when the first model.add(Flatten()) layer is added.
In the end, I got the model to compile by removing the first padding layer and moving the input_shape parameter to the Convolution2D layer.

+1, same problem.
It hasn't been fixed yet?

same here. waiting for a solution...

This appears to have been fixed by a combination of the commits : "Remove dummy inputs in layers" and "Fix variable-size shape inference in padding layer".
After quite a lot of digging, I found the 'surplus placeholder initialisation' issue myself, and then checked the fix against GitHub...  Closing this issue would have saved me a lot of time.
Current fix : use keras from git, rather than from PyPI.  (i.e. the TensorFlow VGG16 model loading works now).  Next issue : switching from theano to tensorflow gives different results (and the theano ones look more correct for the given images)...

Hi @mdda,
I have just installed keras from the git using "sudo pip install git+git://github.com/fchollet/keras.git. I have also set the backend as "tensorflow" in the keras.json file located at ~/.keras. But, when I try to load the vgg16 model with the pretrained weights as available here. While the same code runs in theano backend, it throws the following errors while tried with tensorflow backend.
Could you please point me what exactly causing this error to occur?
........
W tensorflow/core/kernels/constant_op.cc:38] Internal: Dst tensor is not initialized.
E tensorflow/core/common_runtime/executor.cc:275] Executor failed to create kernel. Internal: Dst tensor is not initialized.
[[Node: Assign_26/value = Constdtype=DT_FLOAT, value=Tensor<type: float shape: [25088,4096] values: 1.9745843e-05 0.00035308721 -0.0018327669...>, _device="/job:localhost/replica:0/task:0/gpu:0"]]
Traceback (most recent call last):
File "imagenet_cnn_call_ipython.py", line 54, in
model = vgg_16_keras.load_VGG_16(model_weights_path)
File "/home/atique/2hat/scripts/vgg_16_keras.py", line 53, in load_VGG_16
model.load_weights(weights_path)
File "/usr/local/lib/python2.7/dist-packages/keras/models.py", line 909, in load_weights
self.layers[k].set_weights(weights)
File "/usr/local/lib/python2.7/dist-packages/keras/layers/core.py", line 300, in set_weights
K.set_value(p, w)
File "/usr/local/lib/python2.7/dist-packages/keras/backend/tensorflow_backend.py", line 381, in set_value
tf.assign(x, np.asarray(value)).op.run(session=get_session())
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 1377, in run
_run_using_default_session(self, feed_dict, self.graph, session)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 3132, in _run_using_default_session
session.run(operation, feed_dict)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 315, in run
return self._run(None, fetches, feed_dict)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 511, in _run
feed_dict_string)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 564, in _do_run
target_list)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 586, in _do_call
e.code)
tensorflow.python.framework.errors.InternalError: Dst tensor is not initialized.
[[Node: Assign_26/value = Constdtype=DT_FLOAT, value=Tensor<type: float shape: [25088,4096] values: 1.9745843e-05 0.00035308721 -0.0018327669...>, _device="/job:localhost/replica:0/task:0/gpu:0"]]
Caused by op u'Assign_26/value', defined at:
File "imagenet_cnn_call_ipython.py", line 54, in
model = vgg_16_keras.load_VGG_16(model_weights_path)
File "/home/atique/2hat/scripts/vgg_16_keras.py", line 53, in load_VGG_16
model.load_weights(weights_path)
File "/usr/local/lib/python2.7/dist-packages/keras/models.py", line 909, in load_weights
self.layers[k].set_weights(weights)
File "/usr/local/lib/python2.7/dist-packages/keras/layers/core.py", line 300, in set_weights
K.set_value(p, w)
File "/usr/local/lib/python2.7/dist-packages/keras/backend/tensorflow_backend.py", line 381, in set_value
tf.assign(x, np.asarray(value)).op.run(session=get_session())
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/gen_state_ops.py", line 40, in assign
use_locking=use_locking, name=name)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/op_def_library.py", line 411, in apply_op
as_ref=input_arg.is_ref)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 529, in convert_to_tensor
ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/constant_op.py", line 178, in _constant_tensor_conversion_function
return constant(v, dtype=dtype, name=name)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/constant_op.py", line 165, in constant
attrs={"value": tensor_value, "dtype": dtype_value}, name=name).outputs[0]
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 2040, in create_op
original_op=self._default_original_op, op_def=op_def)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 1087, in init
self._traceback = _extract_stack()

Get very similar error from tensorflow for vgg, when running on cpu it works but on gpu fails.

I get  "name 'ZeroPadding2D' is not defined" when running this model with TensorFlow-cpu backend on a Windows machine.

+1 have the same issue

I have the same problem with ZeroPadding2D
NameError                                 Traceback (most recent call last)
<ipython-input-38-2b22a1dcacc7> in <module>
----> 1 model.add(ZeroPadding2D((0, 2)))
      2 model.add(Convolution2D(256, 1, 3, border_mode='valid', activation="relu", name="conv1", init='glorot_uniform'))
      3 model.add(Dropout(dr))
      4 model.add(ZeroPadding2D((0, 2)))
      5 model.add(Convolution2D(80, 2, 3, border_mode="valid", activation="relu", name="conv2", init='glorot_uniform'))

NameError: name 'ZeroPadding2D' is not defined


Update IP address range for GCC High

Closes https://github.com/MicrosoftDocs/OfficeDocs-SkypeForBusiness/issues/7623.

@mikebis could you kindly confirm? Thanks!

@JohanFreelancer9 Copy editing is needed for this PR. Thanks.

@CarolynRowe PR has been copyedited and is ready for final review, could you please check and merge? Thanks!


Oj encoder: set buffer_size on StreamWriter

While auditing streaming responses through Unicorn I discovered that Oj::StreamWriter
can be initialized with a buffer_size which will reduce the number of io.write calls.
This is a big win when constructing JSON in small chunks.
This change also helps in the non-streaming case a the io object is a
ActionView::OutputBuffer which appends the chunks to a string holding the whole response.
In the ActionView::OutputBuffer (non-streaming clients) case I saw an improvement of ~10%.
In the ActionView::JSONStreamingBuffer (for streaming clients) case the improvement could be
as large as 2x faster (because socket.write calls add up).
To see how buffer_size is used in Oj see:
https://github.com/ohler55/oj/blob/master/ext/oj/stream_writer.c#L126
I chose a value of 4096 because that is the default value that oj_str_writer_init
is called with (which initializes the buffer size).
It would be awesome if this option was easily configurable.

Awesome I will get these 2 PR merged and a new gem out today. Thanks for the updates!

Merged, also added the ability to set defaults:
TurboStreamer.set_default_encoder(:json, :oj, buffer_size: 1_024)

You may also just set the default options for an encoder:
TurboStreamer.set_default_encoder_options(:oj, buffer_size: 2_048)

@sdemjanenko ^


I/O package use of set_up

Similarly to what happens with Algorithms here we have a method set_up that is used to set-up the reader/writer class.
While it can be argued that with a simple class that requires just a file name to be passed, all the rest might be overkill, I see that having a single function to configure the class is not nice.
For example the TIFFStackReader may accept just a file name, but it allows the user to do more advanced stuff as defining a roi (with roi and mode parameters) and also transpose the data.
Currently one needs to either pass everything in the initialisation or with set_up:

reader = TIFFStackReader()
reader.set_up(file_name=fname, roi ={'angle': (0, 100, 10)}, method='bin', transpose=False)
#or
reader = TIFFStackReader(file_name=fname, roi ={'angle': (0, 100, 10)}, method='bin', transpose=False)

data = reader.read()

In fact, I find both not good enough. One should use a more Object oriented (though more verbose) form:
reader = TIFFStackReader()
reader.file_name = fname
reader.roi = {'angle': (0, 100, 10)}
reader.method = 'bin'
reader.transpose = False

The obvious advantage being that the user does not need to reinstantiate a class when just the roi has changed, for instance.
Additionally or better primarily, it is much more maintainable if set_up refers to smaller methods that do the small bits. The docstrings will also be smaller and clearer:

def set_up( self, file_name = None,
               roi = {'axis_0': -1, 'axis_1': -1, 'axis_2': -1},
               transpose = False,
               mode = 'bin'):
    self.file_name = fname
    self.roi = roi
    self.method = method
    self.transpose = transpose

Good points.  A few quick questions:

Is there a special reason to have a "setup" function instead of
"init"?  It seems simpler to me that we specify the parameters we want
directly when we initialise the object, instead of in multiple lines after
that.

Is it not possible to combine the two approaches of passing as keyword
arguments and using the "self.roi = roi" style?  For example you can
initialise your object with on choice of ROI and then update it later,
without calling any setup or init function but just do obj.roi = roi, for
an object called obj.

On Tue, 1 Jun 2021 at 14:22, Edoardo Pasca @.***> wrote:

Assigned #871 https://github.com/TomographicImaging/CIL/issues/871 to
@jakobsj https://github.com/jakobsj.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/TomographicImaging/CIL/issues/871#event-4825037814,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACMDSCEUD3YDJ4ARE3OU7ULTQTGJBANCNFSM454R2FBQ
.

Good points. A few quick questions: 1. Is there a special reason to have a "setup" function instead of "init"? It seems simpler to me that we specify the parameters we want directly when we initialise the object, instead of in multiple lines after that.

I believe the choice here was to try to simplify the __init__ so that it would refer to other functions which do the job

Is it not possible to combine the two approaches of passing as keyword arguments and using the "self.roi = roi" style? For example you can initialise your object with on choice of ROI and then update it later, without calling any setup or init function but just do obj.roi = roi, for an object called obj.

It is possible when self.roi is not a member but a property of the class:
@property
def roi(self):
    return self._roi
@roi.setter
def roi(self, roi):
    # do some checks then save the reference in the class
    self._roi = roi

Of course we have our usual discussion where you like to specify everything in the initialisation and I prefer more verbose, yet clearer IMHO, and more object oriented approaches.
Later we could deprecate set_up really.


More icons for map notes

Requested Feature
Would it be possible to expand the collection of icons for map notes?
Describe the solution you'd like
I suggest to add the following icons for map notes:

Griffin shield (https://game-icons.net/1x1/delapouite/griffin-shield.html)
River (https://game-icons.net/1x1/delapouite/river.html)
Trail (https://game-icons.net/1x1/delapouite/trail.html)
Medieval gate (https://game-icons.net/1x1/delapouite/medieval-gate.html)
Neutral position marker (https://game-icons.net/1x1/delapouite/position-marker.html)
Lake (https://game-icons.net/1x1/lorc/at-sea.html)

Hm I could maybe expand this with TDE icons. But we don't want to use external graphics.

I've looked up icons on this specific web site because the ones that are already available from the system came from this source. But TDE specific icons would be way better, of course :)

If you want those icons specifically it might be a better idea to propose them for foundry in general.
For dsa I put this on low priority...whenever I stumble upon a adequate icon.

I'll add those now for the next patch.
If you want more icons...tell me.


Hlu/fix temp directories

Description

#487
Related Issues

Checklist:

[ ] My code follows the code style of this project, as detailed in our contribution guidelines.
[ ] I have added tests.
[ ] I have updated the documentation accordingly.

@miguel-ferreira I think I spotted all the missing tmps, mostly in my QA tests. Sorry about this. Can we merge this to see if we still have large files persisted on the testing machine?


3 new runbooks

Created three new runbooks on msturing-10m, wikipedia-35m, and msmarco-100m datasets.
Please see the yaml files and the python scripts to generate them in folder neurips23/streaming

Thanks for contributing these! I have one ask--can you ensure that the random number generation is deterministic by giving a seed using random.seed()? It would be good if the Python scripts always produced exactly the same runbook.

I also noticed that these runbook names aren't incorporated into the options for computing recall in data_export.py. Can you add those also?


auth-helpers-remix missing auth type on createBrowserClient

Bug report
To Reproduce
import { createBrowserClient } from "@supabase/auth-helpers-remix";

// same as from the example repo
import { createServerClient } from "utils/supabase.server";

// ...

const supabase = createServerClient({ request, response });

const {
    data: { session },
} = await supabase.auth.getSession();

supabase.auth here has an any type, so session is an any as well.
Expected behavior
supabase.auth should be a SupabaseAuthClient
Doing the following is a workaround:
import type { SupabaseAuthClient } from "@supabase/supabase-js/dist/module/lib/SupabaseAuthClient";

// ...
const {
  data: { session },
} = await (supabase.auth as SupabaseAuthClient).getSession();

System information
Versions:
"@remix-run/node": "^1.9.0",
"@remix-run/react": "^1.9.0",
"@remix-run/serve": "^1.9.0",
"@supabase/auth-helpers-remix": "^0.1.3",
"@supabase/supabase-js": "^2.2.3",
"typescript": "^4.8.4"

OS: Ubuntu
Version of supabase-js: 2.2.3
Version of Node.js: v16.13.0

Additional context
I'm using pnpm instead of npm but that shouldn't be causing any issues?

I can't reproduce this. Can you share the code, preferably a full reproduction?

This is likely a VS Code issue, just restart the Typescript Language Server and it should resolve it.


Showing this error when using more then one join

@cebe SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'title' in where clause is ambiguous
can you help me:
if (!$this->validate()) {
// uncomment the following line if you do not want to any records when validation fails
// $query->where('0=1');
return $dataProvider;
}
$query ->joinWith('location');
$query ->joinWith('programCategory');
$query ->joinWith('duration');
$query ->joinWith('airport');
$query->andFilterWhere([
    'program_id' => $this->program_id,

]);

$query->andFilterWhere(['like', 'title', $this->title])
  ->andFilterWhere(['like', 'location.city', $this->location_id])
    ->andFilterWhere(['like', 'program_category.program_category_name', $this->category_id])
    ->andFilterWhere(['like', 'duration.type', $this->duration_id])
    ->andFilterWhere(['like', 'airport.city', $this->airport_id]);

return $dataProvider;

}

Closed since this question is not about Yii2-user. You should ask such questions on Yii forums or StackOverFlow, but not in Yii2-user extension repository.


Make it possible to disable self-hosted Grafana

I am running my own local Grafana instance that I want to use for NetMeta. It would be nice to have a config option to disable Grafana within NetMeta.

You can alread export the dashboards with 'cue dump_dashboards' and use them in your own instance. Disabling is not possible yet

I'm aware of exporting, thank you. It was more a suggestion of being able to disable Grafana completely as I won't be using it within my NetMeta deployment. :)

Just pushed a commit for this :)


FreeapsX app crashes on swap from Medtronic pump to Omnipod pod

On trying to swap out from MDT pump to Omnipod pod, FreeapsX app crashes at the point of Omnipod insertion.  With assistance from Marion Barker and eventually from Joe Moran, it was determined that basal rates that work fine in FreeapsX, in this case 0.925 u/hr basal rate, causes app crash on omnipod insertion if mdt pump is deleted and Omnipod type pump is added.  Once Basal rate was changed to  be divisible by 0.05 (in this case 0.9)  a switch to omnipod could be successfully made.  This was tested where the basal rate was changed and also, as an additional precaution, bolus increment was also changed to 0.05 (not 0.025) and the successful switch was accomplished.  Unknown at this time if both changes are needed for success.  See the documentation attached.  Full credit to Marion and Joe for figuring this one out!
20210625_log_prev.txt
20210626_log.txt
podState_Jennifer_Crawford_20210625_1.xlsx
podState_Jennifer_Crawford_20210625_1.csv
podState_Jennifer_Crawford_20210626_1.xlsx
podState_Jennifer_Crawford_20210626_1.csv
Test_Prior_to_Posting_Issue_Report_FAPSX_BasalRate.txt

The link to the google drive which has the saved information is here:
https://drive.google.com/drive/folders/1lssJCkC0phys29B1nK_tWmSqgMwCBFQw?usp=sharing
The Xcode crash image screen shot image is found there, but appended here for convenience. This image shows a malloc failure.

Joe Moran reviewed the code and provided this information (6/28/2021).
"I took a quick look at the rileylink _ios code and it appears that the makeEntries() function in Loop/FreeAPS/FreeAPSX can have an infinite loop appending entries when given a rate that not a multiple of the pulse size (0.05). But as I recall when Loop (& I’d guess FreeAPS as well) detects an incompatible basal rate schedule when switching to another pump type, the app has something to adjust the basal rates and then display the resulting basal schedule for review, so this makeEntries() bug is never seen. The makeEntries() function should be improved in all implementations to never get into an infinite loop when given an incompatible rate and FreeAPSX needs to correctly handle incompatible basal schedules situations."

Created https://github.com/ivalkou/freeaps/pull/89 to match https://github.com/ps2/rileylink_ios/pull/675 so that makeEntries() never gets into an infinite loop causing a subsequent crash when given an incompatible basal rate value


Automatically check for outdated project

We should probably create a scheduled Github action that will query the last commit of every project that we have and check when their last commit was.
If the age of it is above a certain threshold we could automatically create an issue for it.

That's a great idea. Maybe we can weight the threshold depending on the age of the project as well (a project created 7 months ago with no activity for 6 months should be removed, but another project created 7 years ago with the same gap of inactivity could be given more leeway).

Oh yeah, that sounds like a good idea :)
I thought of marking a project stale after 2 years (also considered 3).
We could say 2 years or more than 50% of the time since has been around, whichever is shorter?


Copyedit on Immutable blog post

Great post by the way! 😀 Simple and to the point.
Sent with GitHawk


fix: Rift: Minting 4 items - error

PR Type

[x] Bugfix
[ ] Feature
[ ] Refactoring

Context
There is a small difference of amount arriving , seems some extra fee was added , increasing the buffer percent fee fixed the issue.
@dudo50 any idea , is this related to the delivery fee that we were talking about a couple of month ago?
failed tx

[x] Closes #10582

Did your issue had any of the "$" label on it?

[x] Fill up your DOT address: Payout

Screenshot 📸

[x] My fix has changed something on UI;

https://github.com/kodadot/nft-gallery/assets/44554284/85e49933-471a-4bf8-9f51-a5e02b7e4dfa
https://github.com/kodadot/nft-gallery/assets/44554284/314b396d-6f0f-4f78-a368-4e4fa25f683a

@JustLuuuu tested multiple times with 4 nfts , can you try and let me know if the issue persists?
thanks

@JustLuuuu this fixed the issue for me , can you try and let me know if the issue persists?
thanks

works!

@hassnian very likely related to the delivery fee. PJS seems to have fixed accounting for it. The good news is, that the teleport should not end in locked assets and should fully revert now finally. Glad seeing, that bumping the buffer fixed the issue.
With kind regards,
Team ParaSpell

Thank you @hassnian,
Thanks @dudo50 for amazing support ❤


how to use observe in CoAPthon ?

I was trying to carry out function of observe by changing value of payload to present time of ObservableResource in Plugtest_resorces.py. but it  always  reponse blank payload(i tried to access from fitefox to coap)

I fixed it, but more work is needed to combine observe and block2.


Running Eidos from JAR via Java

In principle it should be possible to use Eidos as a portable JAR without having to have sbt installed and then call it as
java -jar /path/to/eidos_fat_jar.jar

which currently produces
no main manifest attribute, in /path/to/eidos_fat_jar.jar

My question is, does anyone know how I could build the JAR such that I can effectively call
runMain extractFromDirectory /path/to/input /path/to/output

with some appropriate arguments to java -jar? Sorry for my ignorance in this matter...

check this:
https://stackoverflow.com/questions/45471440/how-to-execute-a-class-with-main-method-which-is-present-in-fatjar-created-by-gr
I've done this in the past -- I think you use the -cp flag to specify the
class path of which main class you're trying to run
On Wed, Jun 6, 2018 at 2:47 PM, Benjamin M. Gyori<EMAIL_ADDRESS>wrote:

In principle it should be possible to use Eidos as a portable JAR without
having to have sbt installed and then call it as
java -jar /path/to/eidos_fat_jar.jar
which currently produces
no main manifest attribute, in /path/to/eidos_fat_jar.jar
My question is, does anyone know how I could build the JAR such that I can
effectively call
runMain extractFromDirectory /path/to/input /path/to/output
with some appropriate arguments to java -jar? Sorry for my ignorance in
this matter...
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/clulab/eidos/issues/323, or mute the thread
https://github.com/notifications/unsubscribe-auth/AFInif9vHSLAvxPBNErwbb1L1kRxdVWxks5t6E4EgaJpZM4UdbAo
.

Perfect, so
java -cp /path/to/eidos_fat_jar.jar org.clulab.wm.eidos.apps.ExtractFromDirectory
/path/to/input /path/to/output

works, thanks!


Publish on pypi?

Hi,
This looks like a great wrapper for libisyntax, and I would like to use it as a input source for wsidicomizer to enable converting isyntax files to DICOM. Would you consider putting the package on pypi?

It is already on PyPI: https://pypi.org/project/pyisyntax/. I will add a mention of this in the README.
Also, stay tuned for the 0.1.2 release incorporating recent changes.

v0.1.2 is now available.


Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

Throws this error when attempting to buildrun:
Execution failed for task ':app:compileDebugJavaWithJavac'.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
Appears to be related to this... in MainActivity.java
public class MainActivity extends BridgeActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
registerPlugin(com.getcapacitor.community.facebooklogin.FacebookLogin.class);
}
}
Is this because I'm using Capacitor v3? (looks like there's an open topic on that so perhaps the plugin isn't supporting it yet). Should we just use cordova plug for facebook login on v3 or is there a fix expected soon?

This plugin is support capacitor3. Please check demo.
https://github.com/capacitor-community/facebook-login/tree/master/demo/angular
and https://github.com/capacitor-community/facebook-login/issues/47 is issue of docs(migration guide)

Humm... ok. Well since @rdlabo/capacitor-facebook-login is a different plugin from @capacitor-community/facebook-login, it would be good to mention that in the instructions here (if the @capacitor-community/facebook-login plugin does not work for capacitor v3 angular).
That said, after installing the @rdlabo/capacitor-facebook-login plugin and following the iOS and Android configuration instructions listed here (https://github.com/capacitor-community/facebook-login), the same error posted above occurs?
Also, in looking at the angular code in the demo you reference (https://github.com/capacitor-community/facebook-login/blob/master/demo/angular/src/app/auth/auth.service.ts) it shows:
import { FacebookLogin } from '@capacitor-community/facebook-login';
So... it appears to be using @capacitor-community/facebook-login and not @rdlabo/capacitor-facebook-login so I'm not sure what to take away from the demo code?

Does anyone have this plugin working using ionic capacitor v3 angualar?

@rdlabo are the installation/configuration instructions found here the correct ones to use? I have been trying to get this to build for a week but continue getting this error on Android. To help, here are the steps I'm following:

npm install @capacitor-community/facebook-login

npx cap update

Copy/pasted the updated code into android/app/src/main/java///MainActivity.java

Copy/pasted the updated code into android/app/src/main/AndroidManifest.xml

Copy/pasted the updated code into android/app/src/main/res/values/strings.xml (customized app id/token)

npx cap sync

ionic cap copy

ionic build

ionic cap run android -l --external

But when attempting to run (and before even getting to the app code itself), I get the following errors:

Task :capacitor-community-facebook-login:bundleLibCompileToJarDebug
[capacitor]         Note<EMAIL_ADDRESS>uses or overrides a deprecated API.

Task :app:compileDebugJavaWithJavac FAILED
[capacitor]         /Users//Documents//android/app/src/main/java/io/ionic/starter/MainActivity.java:7: error: cannot find symbol
[capacitor]         public void onCreate(Bundle savedInstanceState) {
[capacitor]         ^
[capacitor]         symbol:   class Bundle
[capacitor]         location: class io.ionic.starter.MainActivity
[capacitor]         1 error

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
[capacitor]         Use '--warning-mode all' to show the individual deprecation warnings.
[capacitor]         See https://docs.gradle.org/7.0/userguide/command_line_interface.html#sec:command_line_warnings
[capacitor]         303 actionable tasks: 44 executed, 259 up-to-date
[capacitor]
[capacitor]         FAILURE: Build failed with an exception.
I have also looked at the demo at @rdlabo/capacitor-facebook-login but am not seeing anything there to require changes to the basic install/config process outlined here.
Any help would be appreicated!

@rdlabo/capacitor-facebook-login is be for capacitor 2, and old Facebook SDK. This plugin is changed few settings.
Please remove @rdlabo/capacitor-facebook-login and check this repository's demo: https://github.com/capacitor-community/facebook-login/tree/master/demo/angular
...you added this line? https://github.com/capacitor-community/facebook-login/blob/master/demo/angular/android/app/src/main/java/io/ionic/starter/MainActivity.java#L3-L8

Perfect! The additional MainActivity code is what was missing. That did it... thank you!


Fix: Redis DB UI

Fixes: https://github.com/coollabsio/coolify/issues/3104
Fixes: https://github.com/coollabsio/coolify/issues/2637
Fixes: https://github.com/coollabsio/coolify/issues/3317

Security fix: Redis password is not encrypted in database -> this PR fixes it

Fix: No password and username field in UI for redis:

Feat: Add redis username support

Feat: Make sure Redis databases before version 6.0 still work (no username support)

Added DB migration

Hi, i'm on version v4.0.0-beta.347, how do i get this username/password fields update for redis?

@advoworks this is not yet implemented and needs some more testing. Will need to figure out some env stuff and implement that before it can go live. Some other priority stuff came up so this was put on hold will resume working on this very soon.

Thank you for the PR!


Memory consumption

On my MAcBook Pro take whole memory:

PS. @ferben, can you give me any idea about the circumstances when you encounter this? For example, are the thumbnailed files particularly large? Are there a great many files in the folder being thumbnailed?

I Think that caused some specific file (unexpected extension or somethink like that), but it must happen really fast: select file evoke QL shortcut and that's it -> no slow memory consumption raise while long computer run.

I'm shortly going to release a new version which hopefully (🤞🏻) solves this issue.

Version 1.0.5 released to the App Store. Marking this done pending results from users.


Remove Tensorflow support

Tensorflow was never used because of missing models.

See issue #4349. Note that unittest still uses TensorFlow code (partially disabled) for different purposes.

Thank you!


fix: missing js arguments so making it optional

Description
missing JS Arguments so making it optional
PR fixes following issue(s)
Fixes # (issue number)

if no issue exists, please create an issue and ask the maintainers about this first

Media

A video or a GIF is preferred. when using Loom, don’t embed because it looks like it’s a GIF. instead, just link to the video

Type of change

Please delete options that are not relevant.

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 not work as expected)
Chore (housekeeping or task changes that don't impact user perception)
This change requires a documentation update

Testing

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Also list any relevant details for your test configuration.
Delete anything that is not relevant

[ ] Manual
[ ] JUnit
[ ] Jest
[ ] 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:

[ ] Speedbreak features have been covered
[ ] Test plan covers all impacted features and areas of interest
[ ] Test plan has been peer reviewed by project stakeholders and other QA members
[ ] Manually tested functionality on DP
[ ] We had an implementation alignment call with stakeholders post QA Round 2
[ ] Cypress test cases have been added and approved by SDET/manual QA
[ ] Added Test Plan Approved label after Cypress tests were reviewed
[ ] Added Test Plan Approved label after JUnit tests were reviewed

Summary by CodeRabbit

Bug Fixes

Improved safety checks in the code to prevent errors when accessing specific configurations that might be null or undefined.

Closing this as it does not have an appropriate label associated with a pod


Offline mode confusion

Here I go again trying to use uv as poor man's devpi offline replacement.
Some confusions about this were cleared up in an issue before (https://github.com/astral-sh/uv/issues/3468)
Everything is working as explained there, however it doesn't seem to work for private packages (not on pypi).
Consider the following case (first I download our private package, but it could come from extra index url as well):
$ uv pip install /path/to/private_package-0.1.whl  # ends up in uv cache
$ uv pip install all_the_rest_from_pypi

when blowing away this venv and trying to recreate it offline, private_package.whl is not picked up from the cache (~/Library/Caches/uv/wheels-v1/url/...):
$ uv pip install private_package==0.1
  × No solution found when resolving dependencies:
  ╰─▶ Because private_package was not found in the package registry and you require private_package==0.1, we can conclude that the requirements are unsatisfiable.

$ uv --offline pip install private_package==0.1
  × No solution found when resolving dependencies:
  ╰─▶ Because private_package was not found in the cache and you require private_package==0.1, we can conclude that the requirements are unsatisfiable.
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^

      hint: Packages were unavailable because the network was disabled

My happy path expectation was that once I add private_package-0.1.whl to an existing venv, it will be cached forever and I don't need to setup an extra index url and/or keep the private packages offline manually in some folder.

It seems likely that we are attempting to check the index for available package versions and your private index does not allow caching?

Can you provide verbose logs with -v?

your private index does not allow caching?
I think this is the part that confuses me. I would have thought that the caching depends on the file being present in ~/.cache/uv possibly by using the sha256 or something similar and not on the pypi index.

I am using Google Artifact registry which doesn't support index cache

We cache HTTP responses from the index — if they do not allow caching we cannot use those to see what packages are available.
You'll need to provide more information as requested above for me to know if this is relevant here.

My bad. I think I might have hijacked this issue; I was pointing out that since the private index doesn't use the local file as a cache, It takes as long to reinstall even with no change to the requirements.
If I pass --offline, I get the same error as OP

There it looks like there are two problems:
           uv_client::cached_client::read_and_parse_cache file=/home/ewianda/.cache/uv/wheels-v2/index/5b6580228aafb78d/cowsay/cowsay-6.1-py3-none-any.msgpack
 uv_client::cached_client::from_path_sync path="/home/ewianda/.cache/uv/wheels-v2/index/5b6580228aafb78d/cowsay/cowsay-6.1-py3-none-any.msgpack"
            0.718341s   0ms DEBUG uv_client::cached_client Found stale response for: https://us-python.pkg.dev/b6i-cicd/benchpython/cowsay/cowsay-6.1-py3-none-any.whl#sha256=274b1e6fc1b966d53976333eb90ac94cb07a450a700b455af9fbdf882244b30a
            0.718379s   0ms DEBUG uv_client::cached_client Sending revalidation request for: https://us-python.pkg.dev/b6i-cicd/benchpython/cowsay/cowsay-6.1-py3-none-any.whl#sha256=274b1e6fc1b966d53976333eb90ac94cb07a450a700b455af9fbdf882244b30a
           uv_client::cached_client::revalidation_request url="https://us-python.pkg.dev/b6i-cicd/benchpython/cowsay/cowsay-6.1-py3-none-any.whl#sha256=274b1e6fc1b966d53976333eb90ac94cb07a450a700b455af9fbdf882244b30a"
            1.034380s 316ms DEBUG uv_client::cached_client Found modified response for: https://us-python.pkg.dev/b6i-cicd/benchpython/cowsay/cowsay-6.1-py3-none-any.whl#sha256=274b1e6fc1b966d53976333eb90ac94cb07a450a700b455af9fbdf882244b30a
           uv_client::cached_client::new_cache file=/home/ewianda/.cache/uv/wheels-v2/index/5b6580228aafb78d/cowsay/cowsay-6.1-py3-none-any.msgpack
           uv_client::registry_client::read_metadata_range_request wheel=cowsay-6.1-py3-none-any.whl
        1.034478s 316ms WARN uv_client::registry_client Range requests not supported for cowsay-6.1-py3-none-any.whl; streaming wheel

"Found stale response for" indicates that the cached HTTP response is outdated, i.e., we have exceeded the cache time and must check again.
"read_metadata_range_request wheel=cowsay-6.1-py3-none-any.whl" indicates that the index does not support a metadata endpoint and we must read the wheel to determine the package's requirements. I believe we can install from cached wheels, but not read metadata from them.
As a bonus problem, "Range requests not supported" indicates the registry does not support range requests so we must stream the whole wheel to determine the packge's requirements.
I believe the solution to this would be to use a proper uv.lock file where we can pin to specific download URLs and avoid having to read metadata from the index.


[3.5] Check scheduler queue return value

Scope & Purpose

[x] Bug-Fix for a released version (did you remember to port this to all relevant release branches?)

Related Information
Backport of https://github.com/arangodb/arangodb/pull/9754
Testing & Verification
Jenkins: http://jenkins01.arangodb.biz:8080/job/arangodb-matrix-pr/5778/

https://jenkins01.arangodb.biz/view/PR/job/arangodb-matrix-pr/5782/


Fix Apollo Client example to use correct operation parameter.

The latest version of this seems to require an operation parameter instead of operationName.

Thank you for the PR but it is hard to understand the motivation. Please first create an issue with a failing reproduction or an integration test, then propose your fix in that PR


Exit from bot with text "cancel" when working with FormAction

Rasa Core version: 0.9.7
Python version:  0.12.3
Operating system (windows, osx, ...): Windows 10
Issue: Suppose, I am working with FormAction. I have 7 mandatory slots to be filled. After filling 3 slots I want to exit the bot by text "cancel". After getting "cancel", the bot will not return any result but will reset the slots. I am trying this with stories. But for different combination it is becoming a monster.
Is there any way to handle the above mentioned situation from outside of story? That means, When bot will get text "cancel" for a particular sender, it will not reach story anymore rather it will reset the tracker and exit the bot from outside of story.
Content of domain file (if used & relevant):

"/restart" will perform the same action as you desired.

Thanks @Egalite123 . It was an excellent idea :)

Sounds like it's solved, I'll close this for now :)


CLIMATE-379 - Allows dataset customisation

This patch allows the user to customise the name of the local dataset that is being uploaded in the web-app.

Can one of the admins verify this patch?

hey @lewismc @MJJoyce, please have a look at this patch.

I am +1, any comments @MJJoyce ?

:+1:

Please commit @Omkar20895

I haven't been granted the write access to the repository yet. right??

No you have, the canonical source is here
https://git-wip-us.apache.org/repos/asf/climate.git
The Github code is merely a mirror and is not the canonical source as it is
not hosted at the Apache Software Foundation.
The link above is hosted at the ASF and therefore canonical.
Thanks
Lewis
On Wed, Jan 27, 2016 at 9:38 AM, Omkar<EMAIL_ADDRESS>wrote:

I haven't been granted the write access to the repository yet. right??
—
Reply to this email directly or view it on GitHub
https://github.com/apache/climate/pull/276#issuecomment-175762787.

--
Lewis


Batch size reduced to zero when doing inference on ODEs

I'm trying to do inference on a 2D ODE model but I'm running into an error during inference where the batch size is reduced to 0 resulting in the following error:
┌ Warning: batch size was reduced to 0
└ @ MCMCDiagnosticTools ~/.julia/packages/MCMCDiagnosticTools/kKCOf/src/mcse.jl:30
ERROR: ArgumentError: step cannot be zero

Full traceback here.
MWE:
using Turing
using Distributions
using DifferentialEquations
using Random

Random.seed!(14)
Turing.setadbackend(:forwarddiff)

function model_step!(du, u, p, t)
  du .*= 0
  return nothing
end

p = 0.0
u0 = [1.0 1.0; 1.0 1.0]
timespan = (0.0, 10.0)
prob1 = ODEProblem(model_step!, u0, timespan, p)
sol1 = solve(prob1, Tsit5(), saveat = 0.1)
odedata = Array(sol1) + 0.8 * randn(size(Array(sol1)))

@model function fit_model(data, prob1)
  σ ~ InverseGamma(2, 3) # ~ is the tilde character
  α ~ truncated(Distributions.Normal(1.5, 0.5), 0.5, 2.5)
  p = α
  prob = remake(prob1, p = p, u0 = convert(Matrix{typeof(α)}, prob1.u0))
  predicted = solve(prob, Tsit5(), saveat = 0.1)

  for i = 1:length(predicted)
    for j = 1:size(predicted[i])[1], k = 1:size(predicted[i])[2]
      data[j, k, i] ~ Distributions.Normal(predicted[i][j, k], σ)
    end
  end
end

model = fit_model(odedata, prob1)
chain = sample(model, NUTS(), 1)

Here are all of the packages I have:
  [6e4b80f9] BenchmarkTools v1.2.2
  [a077e3f3] DiffEqProblemLibrary v4.14.0
  [0c46a032] DifferentialEquations v7.0.0
  [31c24e10] Distributions v0.25.37
  [6a86dc24] FiniteDiff v2.8.1
  [26cc04aa] FiniteDifferences v0.12.20
  [f6369f11] ForwardDiff v0.10.24
  [5c1252a2] GeometryBasics v0.4.1
  [c7f686f2] MCMCChains v5.0.3
  [6fe1bfb0] OffsetArrays v1.10.8
  [1dea7af3] OrdinaryDiffEq v6.1.0
  [91a5bcdd] Plots v1.25.4
  [d236fae5] PreallocationTools v0.2.1
  [1277b4bf] ShiftedArrays v1.0.0
  [90137ffa] StaticArrays v1.3.1
  [4c63d2b9] StatsFuns v0.9.14
  [f3b207a7] StatsPlots v0.14.30
  [fce5fe82] Turing v0.19.3
  [b8865327] UnicodePlots v2.5.1
  [e3e34ffb] VoronoiCells v0.3.0
  [37e2e46d] LinearAlgebra
  [9a3f8284] Random

Here is my versioninfo()
Julia Version 1.7.1
Commit ac5cc99908 (2021-12-22 19:35 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin19.5.0)
  CPU: Intel(R) Core(TM) i5-4278U CPU @ 2.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-12.0.1 (ORCJIT, haswell)
Environment:
  JULIA_EDITOR = code
  JULIA_NUM_THREADS =

A quick initial comment without having studied your code in detail: It seems the display of the chain errors but not sampling itself, so you can work around the problem by suppressing the output of the last line, e.g., by adding a semicolon.

I can confirm that this did indeed solve/mask the issue.

Another comment: Turing is not compatible with Julia 1.7 yet (did you install Libtask_jll manually to work around the dependency issues?).
The main problem though is that you only create a chain of a single sample but the Monte Carlo standard error (MCSE) estimate computed and shown when displaying a chain requires at least two samples: Otherwise in https://github.com/TuringLang/MCMCDiagnosticTools.jl/blob/ae8dfb276c26da74b1a0c1dc96f0c31d229ff600/src/mcse.jl#L29 is set to 0. This is also shown in your trace:
┌ Warning: batch size was reduced to 0
└ @ MCMCDiagnosticTools ~/.julia/packages/MCMCDiagnosticTools/kKCOf/src/mcse.jl:30

So sampling more than a single sample should fix the problem as well.

Seems fixed.


Module to write styled and output html and css without using react

We have some case where we do not have react and only HTML and CSS, sometimes just a div and a class.
It would be convenient to maintain and test our components using styled.
How can I produce when I write this in src/MyDiv.js
const MyDiv = styled.div`
  border: 1px solid red;
  width: 50px;
  height: 50px;
  &:hover {
    border: 1px solid yellow;
  }
`
myDiv.id = 'foobar';

and generate two files build/MyDiv.css
.Feq456 {
    border: 1px solid red;
    width: 50px;
    height: 50px;
}
.Feq456:hover {
    border: 1px solid red;
}

and generate two files build/MyDiv.html

I would like to do that with an entire rollup project, is there any tool or any recommendation to get from here ?

@kopax I'm not quite sure I follow. This is quite ambiguous.
You don't have React in the environment you're describing, yet you do have this output? Sorry, not quite sure this makes sense. If anything, I'd recommend you to go down the route of SSR-ing or snapshotting. There are great JAMstack tools out there that could help you like Gatsby or Next.js' exporting. Not quite sure though that's the answer you're looking for

@kitten , we want to maintain our css and html with styled-components.
The same way you would prepare a work space with stylus and jade with gulp, to output some bundled source.
We need to make the workspace for such environment, as the output would be multiple html file as templates and css files.
We have been looking into StyledComponent.js#L100 and we haven't found a way, to render the valid css, without using stylis and duplicating our code.

@kopax Well, you cannot break out of React and expect to output html and css using React / styled-components, I suppose. I'd recommend taking a look at:

https://github.com/zeit/next.js#static-html-export
https://www.gatsbyjs.org/
https://github.com/geelen/react-snapshot
etc

Generally the way to success would be a statically exported React SSR app. Then you could capture styled-components's css and export it to a file and save the html that comes from React separately.

@kitten, I think it is bad to write all our code in multiple languages, that increase mistake.
We generally have react, but for many cases, we do not have it, for example the loaders, 404.html in the proxy, etc...
in this case, we would in the past use a workspace with stylus and jade preprocessing. We would like now to use a workspace with styled so we just turn fulll styled.
The ssr rendering options seems a good solution, but I have already managed to get the html from enzyme API and the generated className .
I have not found a way to get the output css, I can do it with stylis. I have tried to access the rendered component in enzyme and that does not make it so much.
But it would be nice if you could add such a feature in v4, that would definitely bring styled on a new scene react can't get.

@kopax probably you have found some other solution by now but for posterity I'm leaving it here anyway. I had a similar (edge) case where I wanted to export the raw HTML generated by React outside of the React context straight into the DOM (where React was served in an iframe, so the parent DOM), but of course styled-components and even CSS wouldn't work because the dependencies are missing in the parent DOM. So I found a solution using style-it, which attaches the CSS as an inline style which worked for my use case.


Error in building application after using Application Insights Version 2.6.3

Hi Team,
When I try to do npm run prod using "@microsoft/applicationinsights-web": "2.6.3" version I get following error :
ERROR in ./src/app/pages/portal-pages.module.ngfactory.js
Module not found: Error: Can't resolve '@microsoft/applicationinsights-web/types/Initialization' in 'C:....\src\app\pages'
While when I try to use "@microsoft/applicationinsights-web": "2.2.2" version, I am able to run the prod build fine with no errors.
Please Note : I have added this version under "dependencies" section in my package.json file.
I dont get this error when I use "@microsoft/applicationinsights-web": "2.2.2" version.
Kindly let me know if the issue is with "@microsoft/applicationinsights-web": "2.6.3" compatibility with NPM or I have missed anything from my end.
My package.json:
"dependencies": {
"@microsoft/applicationinsights-web": "2.6.3"
}
Main App Module
providers: [
{
provide: ApplicationInsights,
useFactory: (randomService: RandomService) => () => randomService.appInsightsFactory(),
deps: [RandomService]
}
I have also written utility class by passing instrumentation key and calling this class in my application:
appInsightsFactory(): ApplicationInsights {
return new ApplicationInsights({
config: {
instrumentationKey: "....."
}
});
}
Shall be waiting to hear back at the earliest.
Thanking in advance.

I just downloaded and checked the npm package and everything looks fine.

the types are included in the types/ folder
the package.json reference to this folder is correct   "types": "types/applicationinsights-web.d.ts",
And the local references to the Initialization class is also defined and referenced correctly...

We have not changed the version of TypeScript that we are using (yet) -- it's still compiled with TS 2.5.3, so there should be no reference / compatibility changes
The only differences that i see are

v2.6.3 we are now also including (in the dist folder) a rollup version of the declarations dist/applicationinsights-web.d.ts
Previously the *.d.ts files where included in the dist-esm/ folder v2.2.2 and in v2.6.3 they are now included in the types/ folder

Perhaps your build system is still referencing or caching the older versions in the dist-esm folder???

Thanks for your response, then does it mean everytime we need to run npm clean to remove the previous referencing or caching.
Since in 2.2.2 I don't see any errors even when build happens multiple times at a time.
Are there any better ways to overcome this challenge in 2.6.3 version?

Generally, whenever you "updated" versions it is goo d practice to do a clean build. In this case the issue (I think) is because during the upgrade the locations changed (we changed so that all of our components are now in the types/ folder -- this was (from memory) the only one that wasn't).
So once your up and running on the 2.6.3 version it should be the same as 2.2.2, for reference this was changed in v2.6.0 in response to bug #1496 with commit #1501

Having this same issue for a new project (so clean install, no previous version used) for version 2.6.4. We use the library in a separate project at version 2.2.4, so we rolled back this project to that version for now to get it working. Just wanted to share that we're getting the same issue when doing a clean build!

Even for me, I removed version 2.2.2 ( rolled back which I was using initially ) and did proper clean install and then added 2.6.3 version to my package.json file, installed it to have node_modules reflecting types folder and the changes added as part of 2.6.3 version.
Post this, I don't get error while trying to build my project locally but I do get same error while trying to build my application in production environment.

Can either of you provide a simple repo? Does this only occur with an Angular Project?

Hi, I have shared sample util class in my first comment. and Yeah, I have only tried with Angular project and faced this issue.
Haven't tried using appInsights with any other language.

@xiao-lix can you have a look please.

hi @harlkaur sorry for late reply, I missed the message above.
I tried to repro your issue but was unable to do so, can you please take a look at the demo app I set up here and see anything I'm missing? NOTE: on lxiao/randomService branch. I don't have building error but also not able to see appinsights sending any telemetries.
We recommend to put AppInsights creation as early as possible, an example usage on angular app is here. Also, you could try angular plugin, but that should not impact building without it.
Please let me know how to properly repro your issue. Thanks.


Change First load balance policy to alphabetical

Fixes https://github.com/microsoft/reverse-proxy/issues/980

Thanks


chore: Request package replace

Issue #, if available:
Description of changes:
Replace request package with fetch
Checklist:

[x ] Have you successfully deployed to an AWS account with your changes?
[x ] Have you successfully tested with your changes locally?
[x] If new dependencies have been added, have they been pinned to specific versions?

AS review ticket id:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Looks good. Can you also update the threshold specified in this file? https://github.com/awslabs/service-workbench-on-aws/blob/mainline/scripts/check-dependency-vulnerabilities.sh

should I set it to 4/0 as it was bedore?

Looks good. Can you also update the threshold specified in this file? https://github.com/awslabs/service-workbench-on-aws/blob/mainline/scripts/check-dependency-vulnerabilities.sh

Done!


Added some i18n keys & updated german locale

Added some i18n keys (Mostly for tooltips)
Updated german locale
ran i18n:parse script to parse new i18n strings in the translation JSON files

@Maximilian-Pichler if i missed something let me know.

Conflicts :/

@tjbck will add the keys without the updated locale JSONs. You can run the parser by yourself afterwards. The locale conflicts are driving me nuts.

@tjbck should be good now! I think there should be no non i18n strings left, otherwise let me know.

Thanks!


Benchmark & improve start-up perf

One goal of this project is to provide IDE-like extension capabilities to Neovim without compromises - especially without compromising performance.
One feature that is consistently appreciated with Vim is the startup time, relative to IDEs and relative to other editors like Emacs.
There are several opportunities to improve performance in our startup time. In addition, we should add performance metrics so it can be easily reported.
All startup tasks should be made async as much as possible, including plugin load, to allow the user to interact with the editor as quickly as possible.

Need to find exactly the bottlenecks, but this might be interesting to look at:
https://github.com/nolanlawson/optimize-js
It looks like on Chrome, wrapping in IIFEs can speed up parsing

Remaining work here is tracked by #372 and #943


Unable to get y position of render items on Flatlist

Unable to get position of render items on Flatlist
I am trying to get an item's position in flatlist but it always returns "0".sample code are attached bellow.
Here is sample code :
<FlatList
data={["test1","test2","test2"]}
renderItem={({item,index}) => {
return(
<View
onLayout={(event) => {
  let {x, y, width, height} = event.nativeEvent.layout;
}}
>
<Text>{item}</Text>
</View>
)
}}
 />

Can you please help me to get out from this stuff.

Is this issue solved? @hramos

@hramos Is there any update on this issue?
I'm still getting { x: 0, y: 0 } from event.nativeEvent.layout in flatlist children onLayout methods.

Same question. No visible solutions found in two days of surfing the internet.

Replace renderItem with CellRendererComponent and it'll work

use CellRendererComponent instead of renderItem and you should be able to see x, y getting populated correctly.

use CellRendererComponent instead of renderItem and you should be able to see x, y getting populated correctly.

thanks for the reply! I tried and it overload my app somehow so i can't actually tap on anything and even toogling inspector doesn't work... seems that there is no practical usage of this method and no documentation at all in internet. Can you please share some info where to find instructions?
Thanks a lot

Here's a working example: https://snack.expo.io/@gaurav107/b735d9. Select Android/iOS on the right, and click on the bottom left bar to see the Logs window. I can see the correct (x,y) coordinates getting logged here.
And here's the documentation for CellRendererComponent
The only difference between CellRendererComponent and renderItem props of FlatList is that renderItem wraps the item in a container , whereas CellRendererComponent doesn't. Hence, the (x, y) layout coordinates for CellRendererComponent come relative Flatlist layout, whereas in renderItem, they come relative to parent  and hence are (0, 0).

<FlatList data={this.state.dataList}
...
renderItem={({item, index}) => this.renderRow(item, index)}
...
console.log("current index is " + index)
/>

<FlatList data={this.state.dataList}
...
renderItem={({item, index}) => this.renderRow(item, index)}
...
console.log("current index is " + index)
/>

The implementation i am using is adding numColumns={2}
CellRendererComponent is behaving completely different than renderItem as each item is actually an array of 2 elements.

The implementation i am using is adding numColumns={2}
CellRendererComponent is behaving completely different than renderItem as each item is actually an array of 2 elements.

then set your containerStyle like this
<FlatList          contentContainerStyle={{                flexDirection: "row",               width: width,               flexWrap: "wrap", }} />


How to use VIBE to generate skeleton data for Metaphorics dataset

Thank you for sharing your amazing work and dataset. I'd like to know how you used VIBE to generate the skeleton data for Metaphorics dataset. VIBE results will become unreliable if there is no visible full-body as shown below.

Any suggestions on how you addressed this issue and generate good skeleton data even when only half-body is visible would be really appreciated. Thanks

@ericwang0701 Thanks for your interest in our work and this good question. In our work on Metaphorics, we restrict ourselves to noun-based charades actions and curate videos giving proper VIBE output [partial/complete human pose]. You can see more details here: https://skeleton.iiit.ac.in/datasets.


Webchat widget does not respond as "AI:"

With 2.17.3 the  webchat doesn't respond as "AI:", it always responds as "You". The response json is in different format and is missing the "who" attribute:
From browser console:
0: Object { who: "bot", message: "Hi! What can I help you with?" }
1 Object { message: "hi", who: "user" }
2: Object { url: null, publicData: false, text: "Well, well, well, look who decided to say hi to Buddy. What do you want?", … }

@EniasCailliau is this now fixed, or has it been resolved?

It seems to be fixed already


Fix reference to install-kubeadm docs

The install-kubeadm doc has recently been moved from tasks to setup. Fix the references and remove an incorrect redict.

/lgtm @Bradamant3

/assign @Bradamant3

Fixes #9581

/lgtm
/approve


Support for sprite atlases

Loading TextureAtlas automatically seems like the way to go.
Should behave more or less the way it already behaves with separate texture files.
See also:
https://github.com/loodakrawa/SpriterDotNet/issues/57

Done in commit aa35a32.


apko-publish action uses deprecated "set-output" command.

Description
Just FYI, I saw the following warning at the end of a run of the apko-publish action. The action apparently worked fine, but this should be fixed before it is being deprecated...
Warning: The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

fixed by #159