Prevent faulty autocomplete in zsh for docker rmi

Bug
When there are no docker images available, after typing docker rmi and pressing Tab, a faulty autocomplete list appeared:

Fix
Ensure there are available docker images before returning the autocomplete list.

Please sign your commits following these rules:
https://github.com/docker/docker/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:
$ git clone -b "bug/zsh-docker-rmi-empty" git@github.com:povesteam/docker.git somewhere
$ cd somewhere
$ git commit --amend -s --no-edit
$ git push -f

Amending updates the existing PR. You DO NOT need to open a new one.

Hi @GordonTheTurtle
I made the forced push like you said, but this PR did not update, it still refers to the old commit.
The new commit is: https://github.com/povesteam/docker/commit/acd0f0057109b2bf1a4118eeb320ddf97b56f14c
How can I update it without opening a new PR?

@povesteam looks like you created a new branch for your fixed commit, instead of re-using the branch used in this PR and amending the commit.
Can you try again with the exact steps @GordonTheTurtle gave?

Thanks, @thaJeztah.
I didn't realise that I misnamed the branch.
Looks ok now, @GordonTheTurtle.

Perfect!
ping @sdurrheimer PTAL

This means calling twice docker images while we should be able to call it once. Let me check how to do that.

So, I have proposed another fix in #27451. It also fixes more occurrences of the problem. This won't help readability but will avoid extra call to docker images. @povesteam, I hope you don't mind stealing your PR. You can also amend your PR with the content of mine, I don't care to get the credit.

No problem, @vincentbernat!
It surely is more optimal with only one docker call.
Thanks!

let me close this pr then in favor of https://github.com/docker/docker/issues/27451. Thanks so much for contributing @povesteam !


Allow /etc/zulip to be a symlink

This PR updates the puppet manifest to allow /etc/zulip to be a symlink. The current behaviour overwrites /etc/zulip if it is link to another directory.
Testing Plan:
Ran in a test docker container. Marked as WIP as I'm currently spinning up a dev environment for more testing.

Merged, thanks @pemontto!  I also added this to the 2.1.x branch so it'll be included in our next bug fix release.


[8.x] For JSON casts, only check key/value pairs are equal since JSON is an unordered set

When writing a product data import that runs daily using Product::updateOrCreate I noticed via the MySQL query log that updates were being sent to the database even though no changes were present in the import file. We use a JSON type column for some of the miscellaneous product attributes.
Normally when using update or updateOrCreate Eloquent will not send updates to the database when data hasn't changed.
Since JSON is an unordered data structure it should be compared with == instead of === because === also makes sure the order is the same between the two arrays https://www.php.net/manual/en/language.operators.array.php.  When you change a nested array inside a JSON object, that does trigger a change and trip to database.
This PR helps prevent Eloquent from thinking JSON types have changed causing an unnecessary trip to the database for an update during updateOrCreate for example.
The main benefit is speed for many thousands of updates or updateOrCreates when using JSON database columns.  We do product imports from many companies daily (or multiple times a day) and often only some products have changes.  This change reduces the time to process these imports down to minutes instead of hours (dependent on how many products are in the feed)
Thanks to @crynobone for help with how to test this issue

I don't plan to change this on a patch release. You can work around it in your own code if you wish.

@taylorotwell for 9.x then?

@ckovey probably not. This has been attempted many times before and was always rejected.

@driesvints do you recall what issue this causes (or prevents)?


TREC COVID regression scripts are broken

The TREC regression scripts are broken:
python src/main/python/trec-covid/generate_round5_baselines.py
python src/main/python/trec-covid/generate_round4_baselines.py
python src/main/python/trec-covid/generate_round3_baselines.py
python src/main/python/trec-covid/generate_round5_doc2query_baselines.py
python src/main/python/trec-covid/generate_round4_doc2query_baselines.py

Reason is because of #1658 - the bug fix causes very slight differences in rounding.
Since the above scripts check for MD5, they break. Comparing MD5 is overly brittle... the scripts need to be made more robust.

Closed by #1671


Think about AR version of Where's The Ground

https://developer.apple.com/documentation/arkit/content_anchors/tracking_geographic_locations_in_ar

https://github.com/ProjectDent/ARKit-CoreLocation


feature: simple Tank message boilerplate

I added a name() method for the new tank notification. I use it to render the template (with new method) of the notification. If the name is not implemented on the Notification, we will throw an error, so we have to check if they are implemented if we continue using them.
We can use this name() method for checking if notifs are enabled (more centralized). We could also implement an Enum for this, or some other construction..

Let's try to improve the 60k fixed damage threshold before merging.


Folia Support

Will you support folia? Any plans to add Folia support? The project hasn't been updated in quite some time and I am curious if it is abandoned. I find it useful, but if its no longer supported by the developer I will move on. Thanks!

https://github.com/aikar/TaskChain/pull/25


Fix azure provider

It is not currently functional.

#1121 by @benhg brings back the Azure provider, and I have even run it myself!


danakil, anteprohibition

This pull request was generated by the 'mq' tool
[test]
flake rate: 0.4
logical conflict every: 100
sleep for: 300s
[pullrequest]
requests per hour: 30
deps=[a,d]

/trunk merge


examples 11-1 vs 11-2, prescaling and count speed

Example 11-1 uses / 1 prescaling, while example 11-2 is using / 8. Still the ICR1 are both on 20000, marked as 20ms in the comments. If the prescaling differs, then the speed of the count is not the same right? So how can they be both 20ms with different prescaling?

Ok F_CPU differs in the Makefile.
https://github.com/hexagon5un/AVR-Programming/blob/master/Chapter11_Driving-Servo-Motors/servoWorkout/Makefile#L8
https://github.com/hexagon5un/AVR-Programming/blob/master/Chapter11_Driving-Servo-Motors/servoSundial/Makefile#L8


Add a note for missing dependencies

Installing lm-eval without these additional dependencies causes leaderboard evaluations to crash after running for several hours, which can be a bit frustrating since these dependencies are not listed in the README.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Problems should not dissapear on file close

Currently, when the extension has detected some problem in some file and it appears in the Problem panel, that problem "disappears" the moment the file is closed.
This is highly undesirable - lacking some mechanism to "open all files with problems", that info is lost.
Worst still, this happens also is the file was not originally open,
For example:

Enable the eslint task.
Add some typo to some foo.js file and close it (or edit it from outside VScode)
Run the eslint task - the error is found and appears in the Problem panel.
Open the file, from the Problem panel. And close it.
Result: the problem disappears.

It would be nice if the linter results are kept unless the file is modified.
Using ESlint extension v 2.2.2

2¢: If this is implemented, please make this optional/a setting. There are times I have legacy code where, if I had to correct everything in the project, would take years. ;) Being able to close files and concentrate on just what I'm working on today is live-saving.

I should have posted my feature request here instead of on the vscode main git repo but I wasn't sure if it was a VSCode issue or an issue with ESLint because other people have reported the same thing with typescript compiler warnings.
https://github.com/microsoft/vscode/issues/155172

VS Code advice is for linters to only show errors for opened files (which the extension does). If we want to keep them then we need to turn ESLint into a workspace diagnostic provider which always lints all files (even if they never got opened) to conform to VS Code's diagnostic model.

Hi @dbaeumer , can we currently do that?

Let ESLint lint all files in a workspace. Yes, by using VS Code's task infrastructure but not via the extension itself. I am reluctant to implement this due to the performance implications it has.


Width resize not working unless width specified - containerStyle width = NaNNaN

Hi, having a problem with the resize of width of the demo widgets.
Unless I specify width attribute for the defaultWidgets or widgetDefinitions, the containerStyle width isn't always set to 33%. This results in the widthUnits not being set, so resizing results in values of NaN...etc.
I can't figure out why containerStyle width is not always set properly. Please advise.

Sorry, this was a bug in the code. I have fixed it.
Regards,
Andy

Is this in 0.8.2? I just updated from 0.4 and resizing is not working at all. No error messages or anything. Just drag the borders and nothing happens. Setting size with
size: {
width: '25%',
height: '250px'
}
Is also not working. The old style: ... is working fine though. I'm probably missing something. Any specific changes to allow resizing if migrating from an older version?

Ignore it. Found the problem:

changed to:

On the template.


⚠ Mobitopup has degraded performance

In 9c48214, Mobitopup (https://napcard.voz.tech) experienced degraded performance:

HTTP code: 200
Response time: 3037 ms

Resolved: Mobitopup performance has improved in 506d6e2 after 8 minutes.


[WIP] Feature: SpringCloud service discovery use Zookeeper

What this PR does:
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?:

wip


UI Notification - Not positioning correctly

          As of DB2 version 1.12.4 this issue remains unsolved in our instances.

Originally posted by @SynoUser-NL in https://github.com/FlowFuse/node-red-dashboard/issues/960#issuecomment-2222142427
I'm not sure if this is the correct way to "re-open" the issue, but since I cannot set the original issue to Open this appears to be the only way.

original thread updated, closing this one.


[SPARK-14649][CORE] DagScheduler should not run duplicate tasks on fe…

What changes were proposed in this pull request?
When a fetch failure occurs, the DAGScheduler re-launches the previous stage (to re-generate output that was missing), and then re-launches all tasks in the stage with the fetch failure that hadn't completed when the fetch failure occurred (the DAGScheduler re-lanches all of the tasks whose output data is not available -- which is equivalent to the set of tasks that hadn't yet completed). This some times leads to wasteful duplicate task run for the jobs with long running task.
To address the issue following changes have been made.

When a fetch failure happens, the task set manager ask the dag scheduler to abort all the non-running tasks. However, the running tasks in the task set are not killed.
When a task is aborted, the dag scheduler adds the task to the pending task list.
In case of resubmission of the stage, the dag scheduler only resubmits the tasks which are in pending stage.

How was this patch tested?
Added a new test case for it and made sure the test case failed without the change.

Can one of the admins verify this patch?

@kayousterhout

I found a bug in my change and the job was stuck because of that. I am going to fix the issue (with an updated test case to test the scenario) and update the PR.

Can someone take a look?
cc - @srowen

This would need a rebase; is it the same as https://issues.apache.org/jira/browse/SPARK-14915 ?

No, this is not the same issue. SPARK-14915  deals with duplicate tasks in case of Speculation. But this change has nothing to do with Speculation. This is fixing the issue of running duplicate tasks in case of fetch failure.

Found an issue of job being stuck in a corner case, fixed it and added a test case as well.

@sitalkedia can you update this to resolve the merge conflicts?

@kayousterhout - Sure, I will resolve the conflicts. Can you take a cursory look at the diff and let me know if the approach is reasonable?

@sitalkedia What's the use case for this?  In the cases I've seen, if there's one fetch failure, it typically means that a machine that ran a map task has failed / gone done / been revoked by the cluster manager, and as a result, none of the reduce tasks will succeed.  As a result, the tasks from the first attempt of the reduce stage fail eventually, because they require the output that's being re-computed in the map phase.  Why isn't this happening in the cases you're seeing?
I do think it would be worthwhile to implement the TODO in TaskSetManager.abort (which says we should kill running tasks), which would be a simpler fix to avoid the duplicate tasks (but I'm wondering if there's some reason you're seeing that the still-running tasks might actually succeed?).

@kayousterhout - Our use case is very large workload on Spark. We are processing around 100TBs of data in a single Spark job with 100k tasks in it (BTW the single threaded DagScheduler is becoming the bottleneck for such large workload). Each individual task can run for more than an hour and the jobs run for more than 10 hours. Seeing few machine reboot during the job run is very common in this case. Now, if we break the task execution time, out of 1 hour we spend around 5 - 10 minutes in fetching the data and rest in actual execution. When a machine goes down, it is very common for us to see few tasks failure who are still in shuffle fetch phase, but other tasks which have already fetched the data are not effected.  Thats why we don't want already running tasks to rerun in case of fetch failure.
Again, killing all the tasks in case of fetch failure is also a not good idea because it would just waste a lot of resources.

ping.

Is the idea here to not rerun jobs that are already running in the case of a fetch failure, because they might finish?
What happens after the change if those tasks end up coming back as failures?

@rxin - The idea is not to rerun or kill already running tasks in case of fetch failure because they might finish. If those tasks end up failing later, the dag scheduler will rerun them.

See https://issues.apache.org/jira/browse/SPARK-17064

ping.

@sitalkedia Have a quick look at this one, the use case sounds good, we should improve the stability for long running tasks. Could you explain a bit more how the current patch works? (in the PR description).

@davies - Thanks for looking into this.  Updated the PR description with details of the change. Let me know if the approach seem reasonable, I will work on rebasing the change against latest master.

@sitalkedia I was thinking about this over the weekend and I'm not sure this is the right approach.  I suspect it might be better to re-use the same task set manager for the new stage.  This copying of information is confusing and I'm concerned it will be bug-prone in the future.  Did you consider that approach?
Also, separately from what approach is used, how do you deal with the following: suppose map task 1 loses its output (e.g., the reducer where that task is located dies).  Now, suppose reduce task A gets a fetch failure for map task 1, triggering map task 1 to be re-run.  Meanwhile, reduce task B is still running.  Now the re-run map task 1 completes and the scheduler launches the reduce phase again.  Suppose after that happens, task B fails (this is the old task B, that started before the fetch failure) because it can't get the data from map task 1, but that's because it still has the old location for map task 1.  My understanding is that, with the current code, that would cause the map stage to get re-triggered again, but really, reduce task B should be re-started with the correct location for the output from map 1.

I am curious how this is resilient to epoch changes which will be triggered due to executor loss for a shuffle task when its shuffle map task executor is gone.
Wont it not create issues if we are trying to continue to (re)use the earlier stage @rxin @kayousterhout ?

Yeah @mridulm that also seems like an issue with this approach.

@sitalkedia this has been inactive for a while and there were a few issues pointed out above that haven't yet been resolved.  Do you have time to work on this? Otherwise, can you close the PR?

@kayousterhout  - Thanks for taking a look at the PR. Currently I don't have time to work on it. I will close the PR and open a new PR with issues addressed.

@sitalkedia have you had a chance to work on this issue and open a new PR?

Also, separately from what approach is used, how do you deal with the following: suppose map task 1 loses its output (e.g., the reducer where that task is located dies). Now, suppose reduce task A gets a fetch failure for map task 1, triggering map task 1 to be re-run. Meanwhile, reduce task B is still running. Now the re-run map task 1 completes and the scheduler launches the reduce phase again. Suppose after that happens, task B fails (this is the old task B, that started before the fetch failure) because it can't get the data from map task 1, but that's because it still has the old location for map task 1. My understanding is that, with the current code, that would cause the map stage to get re-triggered again, but really, reduce task B should be re-started with the correct location for the output from map 1.

@kayousterhout  -How do you think we can handle this issue?

@jisookim0513 - created a new PR - https://github.com/apache/spark/pull/17297


Running ollama on Hugging Face Spaces

I want to run ollama on Hugging Face Spaces, because I run a Streamlit app there that must make use of a LLM and a embedding model served by Ollama. How can I do that?

What do you mean "run ollama on Hugging Face Spaces"? Do you want to consume models available in Hugging Face Spaces (HFS)? Is that your aim? If so, then that's something not available out of the box in Ollama.
If you search The Tubes, you will find a few approaches to do so. The easiest way to use HFS models is by transforming models using GPT-Generated Unified Format (gguf). Not every model on HFS is a gguf model.

What do you mean "run ollama on Hugging Face Spaces"? Do you want to consume models available in Hugging Face Spaces (HFS)? Is that your aim? If so, then that's something not available out of the box in Ollama.
If you search The Tubes, you will find a few approaches to do so. The easiest way to use HFS models is by transforming models using GPT-Generated Unified Format (gguf). Not every model on HFS is a gguf model.

I gues you are right. Also I came to the conclusion that I oversaw the option of not using ollama in the first place! Just using a LLM model and an embedding model right from HF is the natural (and obvious!) way to go!
My plan now is to modify the existing code to implement this.
thanks for your response!

Hey @jbdatascience I think it's OK to close this? I think you could do it through Docker Spaces, but I'm not sure if that's the best way to do it as I'm not really familiar w/ Spaces. There are lots of other places to get GPU instances on the cloud where you can run Ollama.

Hey @jbdatascience I think it's OK to close this? I think you could do it through Docker Spaces, but I'm not sure if that's the best way to do it as I'm not really familiar w/ Spaces. There are lots of other places to get GPU instances on the cloud where you can run Ollama.

I am still searching for a solution!

Hi @Fastidious and @pdevine
I wanna deploy Ollama to Huggingface space. I used the official Dockerfile of the Ollama repo but it keeps building I could never get the space to running. I'm using the free version of Huggingface space. could you look into this issue?

What do you mean "run ollama on Hugging Face Spaces"? Do you want to consume models available in Hugging Face Spaces (HFS)? Is that your aim? If so, then that's something not available out of the box in Ollama.
If you search The Tubes, you will find a few approaches to do so. The easiest way to use HFS models is by transforming models using GPT-Generated Unified Format (gguf). Not every model on HFS is a gguf model.

I gues you are right. Also I came to the conclusion that I oversaw the option of not using ollama in the first place! Just using a LLM model and an embedding model right from HF is the natural (and obvious!) way to go!
My plan now is to modify the existing code to implement this.
thanks for your response!

Did you manage to do this?


Path (3D) seems to make a wrong rotation

Godot version:
3.1
OS/device including version:
Windows 10 x64
Issue description:
I did a Path / Pathfollow (by GdScript)  with a form more or less equal to this (a capsule):

The coordinates in the code are:
	var p = $Path.curve
	# right curve
	p.add_point(Vector3(0, 0.35, 0), Vector3(0, 0, 0), Vector3(0, 0, 0))
	p.add_point(Vector3(0.35, 0, 0), Vector3(0, 0.35, 0), Vector3(0, -0.35, 0))
	p.add_point(Vector3(0, -0.35, 0), Vector3(0, 0, 0), Vector3(0, 0, 0))

	# left curve
	p.add_point(Vector3(-dist_eixos, -0.35, 0), Vector3(0, 0, 0), Vector3(0, 0, 0))
	p.add_point(Vector3(-dist_eixos - 0.35, 0, 0), Vector3(0, -0.35, 0), Vector3(0, 0.35, 0))
	p.add_point(Vector3(-dist_eixos, 0.35, 0), Vector3(0, 0, 0), Vector3(0, 0, 0))

	#close path
	p.add_point(Vector3(0, 0.35, 0), Vector3(0, 0, 0), Vector3(0, 0, 0))

I did a mesh like a tile to follow the Path. 0 rotation.
However, the mesh is following the Path with a sligth rotation.

Steps to reproduce:
Run the Scene on the attached project
Minimal reproduction project:
path.zip

I jumped on a similar issue and did my own code to follow the path. It is slightly different, as I limited the following and rotation to X/Z (so rotating around Y) and the object positions between two points according to its length. You also get any errors free. But perhaps it helps someone out until the fix is done and in a release.:
tool
extends Spatial

export(float,0.0,1.0,0.001) var offset_relative = 0.0 setget set_offset_relative
export(float) var object_length = 15.0

func _ready():
	doUpdate(offset_relative)

func set_offset_relative(newval):
	offset_relative=newval
	doUpdate(newval)

func doUpdate(newval):
	var p = get_parent()
	set_physics_process(false)
	if p is Path:
		var plen=p.curve.get_baked_length()
		var absOffs=fmod(plen*newval,plen)
		var offs1=max(absOffs-(object_length/2.0),0)
		var offs2=min(absOffs+(object_length/2.0),plen)
		var p1=p.curve.interpolate_baked(offs1)
		var p2=p.curve.interpolate_baked(offs2)
		var newpos=p1+((p2-p1)/2.0)
		transform.origin=Vector3(newpos.x,transform.origin.y,newpos.z)
		global_transform=global_transform.looking_at(p.global_transform.xform(Vector3(p2.x,transform.origin.y,p2.z)),Vector3(0,1,0))

Thanks for this code wombatstampede! Save my project! This bug stopped me for weeks. I only changed to affect Y too bacause this problem for me only appear when i change Y coord.

Still valid in 8718107
Although this might be an issue with the path.

Still valid on 20/3/2021
https://user-images.githubusercontent.com/7917475/111870801-10c70200-8987-11eb-95cf-0ab1ba2d4606.mp4

Still valid in 4.0 alpha 1.
Also in my project it seems on a looped Curve3D the rotations get more and more wrong for each lap the PathFollow3D does.


[Bug]: Footer is Not Responsive on Different Screen Sizes

Is there an existing issue for this?

[X] I have searched the existing issues

What happened?
The current footer does not properly adjust to different screen sizes, leading to issues with layout and readability on mobile devices. This impacts the user experience, as important information in the footer may become cluttered or misaligned on smaller screens. I propose fixing the responsiveness of the footer to ensure it adapts seamlessly to various devices, maintaining a clean and organized appearance across all screen sizes. This enhancement will improve accessibility and overall site usability.
Add Screenshots

What browsers are you seeing the problem on?
Chrome
Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC contributor
[X] I want to work on this issue
[X] I'm willing to provide further clarification or assistance if needed.

@mansiruhil13 please assign this issue to me

Please assign level 3 or at least level 2 for this issue

/assign to me


Add readme under /manifest

description
Update docs to add clear instructions on how to deploy claudie.
tasks

[x] add getting started guide
[x] add testing framework warning
[ ] add development setup commands

Hi guys, just a quick point from me.
Let's try not to duplicate information, if we can help it.
Lots of this information is already present elsewhere, e.g. the deployment command is in README.md.

uys, just a quick point from me.
Let's try not to duplicate information, if we can help it.
Lots of this information is already present elsewhere, e.g. the deployment command is in README.md.

hey @MarioUhrik thanks for pointing out duplicate information. So should only remove the deployment command from this docs  or remove it from the root README.md. I don't think we should remove it from root README. Also do you have any further comments on the doc here.

If the point of this PR is to prevent people from deploying testing-framework, then I think the content of manifests/README.md shouldn't be much more than:
Warning: you probably don't want to deploy `testing-framework`.
Please only deploy the manifests from the `claudie` folder.

I don't have much of an opinion on the rest of the content.
Except that if we want something like that, e.g. docs for devs that tell them how to get started, then they should be under /docs with the rest of the docs.


performance issue

Hi,
we have a circleci build running and since a few days we observe that the conversion to turtle and rdf-xml format has degraded.
The conversion to ntriples works fine.
Do the following in our circleci-setup (see https://github.com/Informatievlaanderen/Data.Vlaanderen.be/blob/test/.circleci/config.yml) the following:
gem install linkeddata
...
rdf serialize --input-format turtle --output-format rdfxml /tmp/workspace/ttl/${model}.ttl -o /tmp/workspace/voc/${model}.rdf

it installs the latest version 3.1.0 of the LinkedData gem.
In another variant of the circleci flow, we convert jsonld->*, and also here we face a performance degradation for converting to turtle and rdf-xml.
For this variant a list of 50 files is converted to nt in 1 minute, however conversion to turtle requires 90 minutes.
Is there a change in the serializers that could explain this big difference?
I tried to get a config with an older version of the rdf-turtle gem, but I did not succeeded yet. Always the latest version 3.1.0 is present. From which I assume that that version will be used to transform to turtle.

The only change to the serializers has been to make small changes to satisfy Ruby 2.7 calling conventions, which should not have an impact.
The expensive part of both Turtle and RDF/XML serializers is doing a topological sort of subjects to figure out the best presentation order; this hasn’t changed in years. If you provide an example file exhibiting the problem, I can try to profile.
Note that there is a streaming Turtle serializer that is likely much faster,
But may not always embed blank node statements as satisfactorily.
It would be interesting to wire to 3.0 versions to see if the difference is consistent.

I wrote a test case script, see below.
The processing is done in the circleci/ruby docker image.
I ran the script on the circleci cloud by ssh-ing into the box and then executing the test script.
The results are:
2020-01-10 11:37:27 (39.1 MB/s) - ‘adres.jsonld’ saved [35978/35978]

ntriples

real    0m0.928s
user    0m0.568s
sys     0m0.360s
turtle

real    1m18.002s
user    0m32.219s
sys     0m45.780s
rdfxml

real    1m23.815s
user    0m36.275s
sys     0m47.538s

The script is
#!/bin/bash

wget https://github.com/Informatievlaanderen/OSLO-Generated/raw/test-feature-checkout/doc/vocabularium/adres/ontwerpdocument/2020-01-06/voc/adres.jsonld

echo "ntriples"
time rdf serialize --input-format jsonld --processingMode json-ld-1.1 adres.jsonld --output-format ntriples -o adres.nt
echo "turtle"
time rdf serialize --input-format jsonld --processingMode json-ld-1.1 adres.jsonld --output-format turtle -o adres.turtle
echo "rdfxml"
time rdf serialize --input-format jsonld --processingMode json-ld-1.1 adres.jsonld --output-format rdfxml -o adres.rdf

You may need to provide some more information, when I run it on my mac, I get the following times:
ntriples

real	0m1.001s
user	0m0.708s
sys	0m0.289s
turtle

real	0m3.509s
user	0m2.206s
sys	0m1.294s
rdfxml

real	0m3.898s
user	0m2.583s
sys	0m1.306s

In particular, what Ruby version? What are the gem versions? I ran with the following:
ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-darwin19]

rdf 3.1.0
rdf-turtle 3.1.0
rdf-rdfxml 3.1.0

If I avoid much of the "rdf" command infrastructure, and use the script/parse file in the Turtle gem, it's even faster:
time script/parse --format ttl examples/adres.nt -o /dev/null

Parsed 464 statements in 0.177042 seconds @ 2620.847030648095 statements/second.

real	0m0.405s
user	0m0.341s
sys	0m0.060s

Some of the time may come from activating gems, presuming you've installed the 'linkeddata' gem. You might try either doing this in a loop with a warmup, or reducing your gem dependencies.

I tested the script on 2 dockers
1. docker run -it -v /home/oslo/github/perftest:/data circleci/ruby:2.6.5-stretch bash
2. docker run -it -v /home/oslo/github/perftest:/data circleci/ruby bash

docker 1) yields version 2.6.5
docker 2) yields version 2.7.0
It turns that version 2.7.0 yields slower performance as 2.6.5.

I'll need to do a profile of the writer code in either Turtle or RDF/XML to see where the time is going, but it seems like TSort might be a culprit. Don't see anything in a search for 2.7 slowdowns, though. You'd expect that code like that would benefit from a JIT, but maybe not.

I can say that it seems to have something with the way that gems are activated in 2.7 and a pattern of autoloading vocabularies in the rdf-vocab gem.


Support vector index syntax

I copied and paste an example from a GraphAcademy tutorial and I got some syntax highlighting issues.
It seems the vector index syntax is not yet supported:

Hi @korsvanloon! We updated the grammar to support vector index syntax last week, but we've not set up automatic releases for vscode yet, so it's not been published. Thanks for making us aware of the issue, I'll close the issue once we've published the newer version 😄

Hey @korsvanloon! The new version of the VSCode plugin has been made available at the Marketplace. I've checked it supports the vector indexes, you just need to update.


No module named 'tqdm.auto'

As i can see you have updated the latest release to use tqdm. However this bug occurs when using the image explainer.
tqdm==4.45.0
lime==2.0.0

hm, I can't reproduce it.
Can you give me a few more details, namely:

Python version
OS

Thanks,

Python 3.7.0
Windows 10
Downgrading one version helps.

Also can't replicate on python3.7 on Windows. Weird....
I'll close and investigate further if we get more cases

Sorry for the late response!
Nice of you too look into it, and weird that im the only one facing this issue. However it works fine with downgrading one version, so ill just stick to that. As i allready said i think it is some tqdm dependency that fails, but i mostly work in a clean Anaconda environment, so i cant see where it should come from.
Regards,
Andreas


build: update ember-cli to v5.4.2

Build
Update ember-cli to v5.4.2
This update should address the security warning CVE-2021-23337:

https://github.com/DazzlingFugu/ember-feature-controls/security/dependabot/119
https://github.com/ember-cli/ember-cli/pull/10458

You inadvertently committed a .DS_Store :3

You inadvertently committed a .DS_Store :3

Rebased and fixed.


Swagger: Implement responses object for endpoints

For easier documentation each response code can now be documented
by itself. For now the only supported field is description which
is also the only required field as per the specification.
Signed-off-by: Lennart Sauerbeck<EMAIL_ADDRESS>

I just added a response implementation for SimpleAction.


[LCS] remove test dependency to libra-crypto

Motivation
We are going to move LCS to its own repo soon.
Test Plan
CI

@bors-libra land


ratio filters logic changed when only one node is requested

Problem:

when only one node is requested ratio filters are mutually exclusive

Resolution:

the filter logic has been changed to pass ratio filters by checking the requested cpu / mem not the ratio

This patch will fix the problem of not returning a recommendation for 4cpus/4g mem, but will do it by allowing false recommendations that don't complete the requirements in the request (e.g.: returns a vm with 4g mem, but only 2 cpus).
We've discussed it with @lpuskas and the real bug is related to error handling in the recommendation logic so I'm closing this PR.


IMDB Data Read Error

Reading from imdb data set raises error as:
'charmap' codec can't decode byte 0x8d in position 194
Fix is to open file with utf-8 encoding with adding encoding definition in open.
encoding="utf-8"

I got an error using numpy=1.16.3 :
keras imdb ValueError: Object arrays cannot be loaded when allow_pickle=False
downgrading to numpy=1.16.2 solved the problem

You do not need to explicitly downgrade Numpy. Use the following code to 'allow_pickle':
old = np.load np.load = lambda *a, **k:old(*a, **k, allow_pickle=TRUE) from keras.datasets import mnist np.load=old del(old)
The last line allows Numpy to load normally after you have read in your MNIST data set.


Quilt support

QFAPI doesnt support 0.90.7 and this fixes it.

I guess you could just wait until the other mod loader supports it.

Isnt this fixed with a later fabric api version?


Tracer  currently has 175 health.

In GitLab by @tylershelton374 on Apr 6, 2024, 15:55
Tracer spawns with 175. usually 150. not sure if this is a consistent issue or just edge case

Looks like the slider settings from custom game sometimes don't apply when I copy paste the gamemode from clipboard.
Fix is to force game to refresh gamemode by changing some sliders back and forth.


Implement isfuncexpr locally. Fixes #48.

This is needed now that Base.Cartesian has been greatly slimmed down.

Ah I was wondering what this was about

OK with you if I merge?

Oh yes! Was just waiting for Travis when I commented. Feel free to merge any PRs on Coverage.jl

Can you tag a new release?

Sure.

Done.


New Release for sexy pre-commit hooks rev

My issue is to ask for a new release like 1.0.2 following the work of @cfd1
In a sample project, add a .pre-commit-config.yml file.
We need to add a direct ref to the latest commit sha1 d09a6b9a9b9f0630c4e349e094d7b2cacb86e3ac
It will be much prettier if rev: 1.0.2 is used instead of rev: d09a6b9a9b9f0630c4e349e094d7b2cacb86e3ac
This doesn't work
repos:
  - repo: https://github.com/quwac/pyproject-autoflake
    rev: 1.0.1
    hooks:
      - id: pautoflake

but this yes
repos:
  - repo: https://github.com/quwac/pyproject-autoflake
    rev: d09a6b9a9b9f0630c4e349e094d7b2cacb86e3ac
    hooks:
      - id: pautoflake

Thanks for your awesome work by the way :+1:

Thanks. I agree a new release would be great.

@chmuche @cfd1
I upgraded. Try it!
https://github.com/quwac/pyproject-autoflake/releases/tag/1.0.2
Thanks!


VPC Symmetry Error when running cdk synthezize

[Error at /sagemakerStudioCDK] Could not find any VPCs matching {"account":"","region":"us-east-1","filter":{"isDefault":"true"},"returnAsymmetricSubnets":true}
Found errors

For demo purpose, you need to have a default VPC in your AWS account, you can still replace explicitly with a VPC ID, if you do not have a default VPC set in yout AWS account.
default_vpc_id = ec2.Vpc.from_lookup(self, "VPC", 		                                       vpc_id = VPC_ID 		                                     )


[GSK-1364] Error when running Langchain

I want to run my dataset with Langchain using Giskard, I did as this documentation(https://docs.giskard.ai/en/latest/reference/notebooks/llm_comment_generation.html) just replace with my dataset and my openai key but i got this error. Please someone help me to handle this  issue!
 2023-06-26 15:08:29,898 pid:15616 MainThread giskard.scanner.logger WARNING  LLM support is in alpha version — 🔥 things may break ! Please report any issues to https://github.com/giskard-AI/giskard/issues.
🔎 Running scan…
2023-06-26 15:08:29,903 pid:15616 MainThread giskard.scanner.logger INFO     Running detectors: ['TextPerturbationDetector', 'EthicalBiasDetector', 'LLMToxicityDetector']
Running detector TextPerturbationDetector…2023-06-26 15:08:29,907 pid:15616 MainThread giskard.scanner.logger INFO     TextPerturbationDetector: Running with transformations=['Transform to uppercase', 'Transform to lowercase', 'Transform to title case', 'Add typos', 'Punctuation Removal'] threshold=None output_sensitivity=None num_samples=None
2023-06-26 15:08:30,462 pid:15616 MainThread openai       INFO     error_code=invalid_api_key error_message='Incorrect API key provided: mf39wE1W************************************scCS. You can find your API key at https://platform.openai.com/account/api-keys.' error_param=None error_type=invalid_request_error message='OpenAI API error received' stream_error=False
2023-06-26 15:08:30,466 pid:15616 MainThread giskard.scanner.logger ERROR    Detector TextPerturbationDetector failed with error: Incorrect API key provided: mf39wE1W************************************scCS. You can find your API key at https://platform.openai.com/account/api-keys.
 0 issues detected. (Took 0:00:00.568313)
Running detector EthicalBiasDetector…2023-06-26 15:08:30,484 pid:15616 MainThread giskard.scanner.logger INFO     EthicalBiasDetector: Running with transformations=['Switch Gender', 'Switch Religion', 'Switch countries from high- to low-income and vice versa'] threshold=None output_sensitivity=None num_samples=None
2023-06-26 15:08:30,884 pid:15616 MainThread openai       INFO     error_code=invalid_api_key error_message='Incorrect API key provided: mf39wE1W************************************scCS. You can find your API key at https://platform.openai.com/account/api-keys.' error_param=None error_type=invalid_request_error message='OpenAI API error received' stream_error=False
2023-06-26 15:08:30,886 pid:15616 MainThread giskard.scanner.logger ERROR    Detector EthicalBiasDetector failed with error: Incorrect API key provided: mf39wE1W************************************scCS. You can find your API key at https://platform.openai.com/account/api-keys.
 0 issues detected. (Took 0:00:00.405398)
Running detector LLMToxicityDetector…2023-06-26 15:08:31,418 pid:15616 MainThread openai       INFO     error_code=invalid_api_key error_message='Incorrect API key provided: mf39wE1W************************************scCS. You can find your API key at https://platform.openai.com/account/api-keys.' error_param=None error_type=invalid_request_error message='OpenAI API error received' stream_error=False
2023-06-26 15:08:31,421 pid:15616 MainThread giskard.scanner.logger ERROR    Detector LLMToxicityDetector failed with error: Incorrect API key provided: mf39wE1W************************************scCS. You can find your API key at https://platform.openai.com/account/api-keys.
 0 issues detected. (Took 0:00:00.535858)
Scan completed: no issues found. (Took 0:00:01.544884)

GSK-1364

Hi @refik90 ,
Thanks for pointing it out, there's typo in our documentation, you can create an llm using this line of code instead:
OPENAI_KEY=...
llm = OpenAI(openai_api_key=OPENAI_KEY, request_timeout=15, max_retries=50, temperature=0)

In addition, from my experiences, the envs are not likely to be serialized and sent to the worker.
If you would like to upload the model and test it in a worker, you may also need to provide the OpenAI API key in the envs of the worker.

(https://docs.giskard.ai/en/latest/

I have openAI Api key and i added on this line OPENAI_API_KEY=...
llm = OpenAI(openai_api_key=OPENAI_API_KEY, request_timeout=15, max_retries=50, temperature=0)

in the code where i need to add this ?

If you're using mac/linux you can edit ~/.zshrc or ~/.bashrc (depending on which shell you use) by running the following:
# in case you use zsh:
echo "export OPENAI_API_KEY=..." >> ~/.zshrc

# in case you use bash
echo "export OPENAI_API_KEY=..." >> ~/.bashrc

Then restart your terminal and you'll have OPENAI_API_KEY environment variable available when running
import os
os.environ["OPENAI_API_KEY"]

in the code where i need to add this ?

If you're using mac/linux you can edit ~/.zshrc or ~/.bashrc (depending on which shell you use) by running the following:
# in case you use zsh:
echo "export OPENAI_API_KEY=..." >> ~/.zshrc

# in case you use bash
echo "export OPENAI_API_KEY=..." >> ~/.bashrc

Then restart your terminal and you'll have OPENAI_API_KEY environment variable available when running
import os
os.environ["OPENAI_API_KEY"]

i am using windows and my jupyter notebook is working with anaconda prompt

In this case have you tried specifying an opanai API key directly as the langchain documentation suggests:
https://python.langchain.com/docs/get_started/quickstart#environment-setup
e.g.
from langchain.llms import OpenAI

llm = OpenAI(openai_api_key="...")


Auto-height

How do I allow the table to set it's own height based on the rendered size?

This library is very chaotic and not finished at all, i was trying to figure out this question for a longer time, one very weird and not properly working solution seems to be that you get the height of each column and sum it together for this to happen you need to edit table.js directly and pass onlayout property of column view to your main.js and there u set the state to that

If someone found better solution or even better lib for tables please tell me i would be very thankful!

You can pass height='100%'
It worked for me.
<Table height='100%' columns={columns} dataSource={dataSource} />


Paint 2 app interfering with Quicklook

QLstephen wasn't working so I checked:
qlmanage -d1 -p /Users/mac/.bash_history
Which returned the following error:
Testing Quick Look preview with files:
	/Users/mac/.bash_history
[DEBUG] Preview test for file:///Users/mac/.bash_history. Content type UTI: public.data
[DEBUG] Previewing file:///Users/mac/.bash_history. Content type UTI: public.data. Generator used: <QLGenerator /Applications/Paint 2.app/Contents/Library/QuickLook/PaintQuickLook.qlgenerator>
[DEBUG] Loading <QLGenerator /Applications/Paint 2.app/Contents/Library/QuickLook/PaintQuickLook.qlgenerator>
[DEBUG] Previewing file:///Users/mac/.bash_history did not produce anything
[DEBUG] Thumbnailing file:///Users/mac/.bash_history - type: public.data - generator: <QLGenerator /Applications/Paint 2.app/Contents/Library/QuickLook/PaintQuickLook.qlgenerator> (try #1)
[DEBUG] Thumbnailing file:///Users/mac/.bash_history. Content type UTI: public.data. Generator used: <QLGenerator /Applications/Paint 2.app/Contents/Library/QuickLook/PaintQuickLook.qlgenerator>
[DEBUG] Thumbnailing file:///Users/mac/.bash_history did not produce anything
2017-10-18 16:05:26.603 qlmanage[4422:297445] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x9507, name = 'com.apple.coredrag'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2017-10-18 16:05:26.675 qlmanage[4422:297445] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0xd73b, name = 'com.apple.tsm.portname'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2017-10-18 16:05:26.676 qlmanage[4422:297445] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0xa707, name = 'com.apple.CFPasteboardClient'
See /usr/include/servers/bootstrap_defs.h for the error codes.

Deleting the Paint 2 app "solved" the issue. Can one prevent random apps interfering with the plugin?

Not easily. The purpose of the very generic content type UTI in QLStephen is to play nice with other well behaved QL plugins. For a more in depth explanation check out my comment on this other issue.
If QLStephen starts registering for more specific types the burden to "be all things to all file types" problem sets in. QLStephen is intended to catch the things that fall through the cracks. Besides, there are already great options out there taking on specific use cases.
In your case you have an app that probably not well behaved (I doubt that Paint 2 really wants to support QL of all file types). I suggest bringing it their attention. If you need Paint 2 installed you could try the same approach that I outlined at the end of that thread (linked above) to disable the Paint 2 QL plugin.


Uncaught ReferenceError: elfinderDialog is not defined

Hi @semplon semplon ,
I followed below url for summernote-ext-elfinder.js:35 Uncaught ReferenceError: elfinderDialog is not defined
I could not able to solve this issue , please help on this, When i click on file manager , i am getting above error i tried all possibilities. but no luck!
#2 (comment)
also my reference is like below
scripts/jquery-2.14.js,
scripts/jquery-ui-1.9.0.js
scripts/summernote/summernote.min.js
scripts/elFinder-2.1.57/js/elfinder.min.js
scripts/summernote/summernote-ext-elfinder.js
Thanks for your help appreciated !

hello @mcpdeveloper443 for this version please refer to this wiki page https://github.com/Studio-42/elFinder/wiki/Integration-with-Multiple-Summernote-(fixed-functions)

Hi @semplon ,
Thanks for that ..it worked with older version , it was issue in calling elfinderDialog , now  i am able to open file manager , but after that below error occuring.
Uncaught Error: cannot call methods on tooltip prior to initialization; attempted to call method 'hide'
I have used below scripts order too :
scripts/jquery-2.14.js,
scripts/jquery-ui-1.9.0.js
scripts/bootstrap.js
scripts/summernote/summernote.min.js
scripts/elFinder-2.1.57/js/elfinder.min.js
scripts/summernote/summernote-ext-elfinder.js
but no use : please help on this.

okay I will try to run test with your specification
I will let You know when it's worked.

Hi, i've tried it and it worked fine
<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
    <meta name="generator" content="Jekyll v4.1.1">
    <title>Starter Template · Bootstrap</title>

    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha512-Dop/vW3iOtayerlYAqCgkVr2aTr2ErwwTYOvRFUpzl2VhCMJyjQF0Q9TjUXIo6JhuM/3i0vVEt2e/7QQmnHQqw==" crossorigin="anonymous" />
    <!-- Custom styles for this template -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/elfinder/2.1.3/css/elfinder.min.css" integrity="sha512-O8KRDwVBd1xG5U9Y3m+IeoywscB4K/M6hrBSX0Bd0PL9tlbLhKdtPtIPOPQPE1nVvxi0nQRFkV5SMMdZceZiVA==" crossorigin="anonymous" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.9.0/themes/base/jquery-ui.min.css" integrity="sha512-lE0QNAJLkgJOpwIyd/QjUtOPpASCh63P8GMoWXoP/uINWjM/w33Me0ypq8tntHFZqxo20+qfjvOFFZfi4uSCsA==" crossorigin="anonymous" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.2.0/css/font-awesome.min.css" integrity="sha512-qzsydzu6gfStN6UWt9NizKtvHV1hEagyv1teXmjtgDkV7MG/dFrjAtY81gAlJh2NAkYrSGDPc/iW25JKvtSdfw==" crossorigin="anonymous" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/summernote/0.8.10/summernote.css" integrity="sha512-XL6+jEjiH475eq0Y+dianRPgwgJ1GO0dCzYGlYkbeCSAZI0Q0APd+CkyoNfo6Sw4pW6Zz+5cQjCSCV43ZdRsNg==" crossorigin="anonymous" />
  </head>
  <body>

<main role="main" class="container">

    <textarea id="summernote" name="editordata"></textarea>

</main><!-- /.container -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js" integrity="sha512-AFwxAkWdvxRd9qhYYp1qbeRZj6/iTNmJ2GFwcxsMOzwwTaRwz2a/2TX225Ebcj3whXte1WGQb38cXE5j7ZQw3g==" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.9.0/jquery-ui.min.js" integrity="sha512-vg90JFVLzr2nqlpxo2N2XiSRzbnYny4KFQCC5lJ9MvvROQkyQIVaor5CKl46ZPYBAB0WgSliOj9pBuTESp2PHw==" crossorigin="anonymous"></script>

<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha512-oBTprMeNEKCnqfuqKd6sbvFzmFQtlXS3e0C/RGFV0hD6QzhHV+ODfaQbAlmY6/q0ubbwlAM/nCJjkrgA3waLzg==" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/summernote/0.8.10/summernote.min.js" integrity="sha512-ApMvhtP5ffHldKYU0ELi1WUvtjROaDS5YsKD5I6QYJDHU5ToKXqcBODSz5kqo17ZS2PzanGF3+8WlupZeWnV/Q==" crossorigin="anonymous"></script>

<script src="https://cdnjs.cloudflare.com/ajax/libs/elfinder/2.1.3/js/elfinder.min.js" integrity="sha512-kz5Sk3oIsB1CxO1j2+pgeZjpRn8Tn864/Efi5kIdbjtWoyv57n0OuRHtiXlV08DR2c/jaCV/UprNPmZ9ygzYkQ==" crossorigin="anonymous"></script>
<script src="ext-elfinder.js"></script>
<script>
$(document).ready(function() {
  $('#summernote').summernote({
    height: 200,
    tabsize: 2,
    toolbar: [
        ['style', ['bold', 'italic', 'underline', 'clear']],
        ['insert', ['elfinder']]
    ]
  });
});

function elfinderDialog() {
  	var fm = $('<div/>').dialogelfinder({
  		url : 'https://path.to/your/connector.php', // change with the url of your connector
  		lang : 'en',
  		width : 840,
  		height: 450,
  		destroyOnClose : true,
  		getFileCallback : function(files, fm) {
  			console.log(files);
  			$('#summernote').summernote('editor.insertImage', files.url);
  		},
  		commandsOptions : {
  			getfile : {
  			oncomplete : 'close',
  			folders : false
  			}
  		}
  	}).dialogelfinder('instance');
  }
</script>
</html>

it worked fine,

please try it and let me know if it;s work.

Hi @semplon ,
Sorry to ask what is the latest changes you have done above ? i could not able to identify ....
Please help on this ..

Hi @semplon ,
I tried your above code alone into separate new HTML page , below error occurs.
I called php connector page exactly , dont know how to load images on this file manger.
Do i need to edit any thing in php connector page ?

to work with elfinder, you should define the php connector, see this sample at elfinder repository https://github.com/Studio-42/elFinder/blob/master/php/connector.minimal.php-dist .
run it on xampp webserver. so the php file can be called correctly.

see this part, this must be accessible via browser using http.

Hi @semplon ,
Thanks for information. To call php in browser , do we need any server ?
Also i dont know about PHP .  can we call this php connector in my c# application directly , do we need extra server to support PHP ?

it can, just upload the php directory of elfinder and fit it with your requirement. it's best to upload on a webhosting. so it can be accessed online via internet.

Hi @semplon ,
THanks . I have uploaded PHP folder in my IIS. then below error occurs

Also on my html page below error

Please help on this. Thanks in advance.

Hi @semplon ,
Some progress now ,  i added few php modules in IIS and uploaded PHP folder into IIS, below error is occuring now.

Below error in html page :

try this https://stackoverflow.com/questions/13421463/htaccess-access-control-allow-origin

Hi @semplon ,
Thanks.
With samples  , i can able to open elfinder finally ,

May i know some special characters are adding into URL , may i know what is this .
I want to implement the same in my appplication , but due to this specialcharatcer in url , i dont know about it.
elfinder.src.html#elf_l1_Lw
Please help o this......

Hi @semplon ,
Please show some light on this  :)))

elfinder.src.html#elf_l1_Lw
that url generated automatically by elfinder, i think you should try to make your application can follow redirect

Hi @semplon ,
Thanks for that. I have added the same into my dotnet application.
But i am getting below error , not sure.
Invalid backend response.
Data is not JSON.
Is it due to that taken redirection cause ?

also noticed below url call .

Please help on this...thanks always for your help !

Hi @semplon ,
Thanks for your efforts and time , please show some light on this issue.....

your application is working fine, this problem occur with php output. try to modify php-connector and see what happen.

Hi @semplon
I tried by uncommenting 	//'debug' => true in conector.minimal.php ,
but no change.....any clue how to resolve further , thanks always for your help !

Hi @mcpdeveloper443 there are several ways to check what's going on with the php connector.

see the error log, and find the error when accessing the file manager.
try to modify the php-connector with standard/default configuration and see what happen.

the php connector didn't output the correct json data for elfinder. it could be there are something wrong with the settings.


Packaging of wagl-water-atcor LMBSKYG products in the water-atcor-develop develop branch

This commit focuses on the packaging of the wagl-water-atcor LMBSKYG product for Sentinel-2/MSI and Landsat-8/OLI products. Here:

The MNDWI image is used to mask land pixels, which are subsequently assigned as no-data;
expand_valid_data is set False to avoid the computation of complex geometry as a result of the MNDWI masking;
A simple work-around for Sentinel-2's absent level-1 metadata yaml was created;
A simple naming convention for the grid-names was created.

Closing.  Appears polluted.


helm 3 dependency update - Error: directory charts/keycloak not found

Hello,
I am trying to deploy the keycloak helm chart from codecentric, details below, however when trying to perform a 'helm dependency update' it gives me an error 'Error: directory charts/keycloak not found"
Chart.yaml
apiVersion: v2
name: keycloak
description: Keycloak Helm chart
type: application
version: 0.1.0
appVersion: 8.0.2
dependencies:

name: keycloak
version: 7.0.0
repo: https://codecentric.github.io/helm-charts

I am still new to helm and trying to figure out if/what am i doing wrong.
Output of helm version: version.BuildInfo{Version:"v3.2.0", GitCommit:"e11b7ce3b12db2941e90399e874513fbd24bcb71", GitTreeState:"clean", GoVersion:"go1.13.10"}
Output of kubectl version: Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.2", GitCommit:"52c56ce7a8272c798dbc29846288d7cd9fbae032", GitTreeState:"clean", BuildDate:"2020-04-16T23:35:15Z", GoVersion:"go1.14.2", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.0", GitCommit:"9e991415386e4cf155a24b1da15becaa390438d8", GitTreeState:"clean", BuildDate:"2020-03-25T14:50:46Z", GoVersion:"go1.13.8", Compiler:"gc", Platform:"linux/amd64"}
Cloud Provider/Platform (AKS, GKE, Minikube etc.): Minikube

The correct key is repository, not repo.
Changing your example to this works:
><> cat Chart.yaml
apiVersion: v2
name: keycloak
description: Keycloak Helm chart
type: application
version: 0.1.0
appVersion: 8.0.2
dependencies:
- name: keycloak
  version: 7.0.0
  repository: https://codecentric.github.io/helm-charts


Update Canonical.Ubuntu from 2004.2020.424.0 to 2004.2021.825.0

null
Microsoft Reviewers: Open in CodeFlow

@ItzLevvie2, just looking at the directory pattern for this package, shouldn't the manifests be placed in the Canonical/Ubuntu/2004 folder?

cc @ryfu-msft: It is intentional as Canonical.Ubuntu is the mainline release of Ubuntu and Canonical.Ubuntu.XXXX is the LTS (Long-Term Support) release of Ubuntu.
For now Canonical.Ubuntu installs the same build as Ubuntu 20.04 but it will be different in the future once Canonical releases a newer mainline build.

@wingetbot waivers Add Validation-Domain


Breaks alt and command key

Such as alt + delete.
High Sierra 10.13.1 Beta (17B25c)
hyper 1.4.8

Do you mind trying this out with the latest Hyper and latest hyper-cat?

It is working now.

Thanks for verifying!


⚠ Bofrost.at has degraded performance

In 23cc940, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 2882 ms

Resolved: Bofrost.at performance has improved in 3bc9da2 after 6 minutes.


Fix parentheses typo in README.md

First pull request, we all start small :-)

Thanks for this. Congrats, may there be many more to come. Cheers!

Thanks too. I'll try my best :)


First two child components rendered twice

Which OS ?
iOS and Android
Version
Which versions are you using:

react-native-swiper v1.5.13
react-native v0.55.4

Expected behavior
Render each child component of Swiper only once.
Actual behavior
First 2 child components in Swiper get rendered 2 times.
I added 2 child component to Swiper. It plays a video when componentDidMount() gets called. I heard more than 2 videos playing. Added a print statement in componentDidMount() and got 4 prints. Doesn't occur when I move the same components outside of Swiper.
How to reproduce it>
To help us, please fork this component, modify one example in examples folder to reproduce your issue and include link here.

Normal use

Steps to reproduce

add swiper component
add 2 custom child component with something done in their componentDidMount() (such as a console log)

I've got the same issue. Is there a workaround?

As far as I can tell, it renders the first and the last slides two times. The slides in between it renders one time.

Yeah, that's correct, I completely forgot about this issue and never updated. It has to render the first and last slides twice when it's looped. I ended up changing how I approached it and didn't set it to loop.

Yeah, that's correct, I completely forgot about this issue and never updated. It has to render the first and last slides twice when it's looped. I ended up changing how I approached it and didn't set it to loop.

The way I've solved it was I limited loadMinimalSize to 0, but your approach is much better. Thank you very much.


Refactor code & tests to separate types

Codecov Report

Merging #26 (59f9505) into master (e81944b) will increase coverage by 1.71%.
The diff coverage is 99.41%.

@@            Coverage Diff             @@
##           master      #26      +/-   ##
==========================================
+ Coverage   93.33%   95.04%   +1.71%
==========================================
  Files           3       10       +7
  Lines         195      222      +27
==========================================
+ Hits          182      211      +29
+ Misses         13       11       -2

Impacted Files
Coverage Δ

structoscope/stree.py
97.43% <97.43%> (ø)

structoscope/__init__.py
100.00% <100.00%> (ø)

structoscope/lib.py
71.42% <100.00%> (-18.26%)
:arrow_down:

structoscope/sdict.py
100.00% <100.00%> (ø)

structoscope/slist.py
100.00% <100.00%> (ø)

structoscope/templates.py
100.00% <100.00%> (ø)

tests/test_lib.py
100.00% <100.00%> (ø)

tests/test_sdict.py
100.00% <100.00%> (ø)

tests/test_slist.py
100.00% <100.00%> (ø)

tests/test_stree.py
100.00% <100.00%> (ø)

... and 7 more

Continue to review full report at Codecov.

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


feat: add a subdomain variable

Description of the changes
Hello,
We have a need to use URLs without the .apps. part, in order to achieve that without introducing a breaking change we propose a new variable subdomain that defaults to apps, that way we can set it to an empty string on our side.
Breaking change

[X] No

Tests executed on which distribution(s)

[x] KinD
[x] AKS (Azure)
[x] EKS (AWS)
[X] SKS (Exoscale)

:warning: Do a Rebase and merge and specify clearly in the changelog the breaking change introduced by this PR.


ValueError: need at least one array to stack

/opt/conda/lib/python3.10/site-packages/sklearn/cluster/_kmeans.py:1416: FutureWarning: The default value of n_init will change from 10 to 'auto' in 1.4. Set the value of n_init explicitly to suppress the warning
super()._check_params_vs_input(X, default_n_init=10)
Traceback (most recent call last):
File "/vepfs/code/MossFormer/3D-Speaker/egs/3dspeaker/speaker-diarization/local/cluster_and_postprocess_h5.py", line 93, in audio_only_func_getnums
labels = cluster(embeddings)
File "/vepfs/code/MossFormer/3D-Speaker/speakerlab/process/cluster.py", line 186, in call
labels = self.filter_minor_cluster(labels, X, self.min_cluster_size)
File "/vepfs/code/MossFormer/3D-Speaker/speakerlab/process/cluster.py", line 203, in filter_minor_cluster
major_center = np.stack([x[labels == i].mean(0)
File "/opt/conda/lib/python3.10/site-packages/numpy/core/shape_base.py", line 445, in stack
raise ValueError('need at least one array to stack')
ValueError: need at least one array to stack
During handling of the above exception, another exception occurred:
===========================
运行这块时，labels = cluster(embeddings)  # embedding [14, 192]
报了上边的错误；
请问是什么导致的问题，如何解决呢？

该错误已修复，可以更新speakerlab/process/cluster.py文件后重新运行


Users can set/view affiliations on edit profile page

r @aharelick

Users can add/edit/remove affiliations on the Edit Profile page
Users can view their affiliations on their profile page

@aharelick Can you take a look now?

can we just do this and then it's good to go: https://github.com/hack4impact/women-veterans-rock/pull/35#discussion_r47426961

Oops, forgot about the indentation. Fixed now.


Individual endpoint column filters broken

Endpoint column filters other then the first column do not work after commit 12f4f5a and 8503b62 when supporting frameworks were bumped to newer versions.
The following two code snip $(this).parent().index() is returning 0 for any filter column field user types into when it should be returning the proper column number the user is typing into.
https://github.com/CiscoDevNet/iPSK-Manager/blob/c33141109e95f29e5c5ef35de2e6ad659b053d87/supportfiles/adminportals/modules/endpoints/endpoints.inc.php#L219-L225
https://github.com/CiscoDevNet/iPSK-Manager/blob/c33141109e95f29e5c5ef35de2e6ad659b053d87/supportfiles/portals/sponsorportal/default/manage.inc.php#L448-L455

Datatables 2.x added additional  tags before the  tag. Need to change $(this).parent().index() to $(this).parent().parent().index()
The fix for this will be pushed in the next commit.


Bug with audio command "Play Music"

There are 2 scenes in my game, first is main menu and second is game. I had BGM playing from the block which I set it to run when the game started in my game scene. When I loaded the main menu scene from the game scene, it thought it's automatically stopped the BGM. So I added the "Stop Music" command before I loaded the main menu scene. And it works just as I expected, but when I loaded the game scene again the BGM wasn't playing (it should play because I had a block contains "Play Music" command which runs when the game started). How do I resolve this ? Thanks

There was a bug fix for a bug related to stopping and playing music in Fungus 3.8 is this separate from that issue?


WIP: Fix topics types

We should be able to pass null in topics, otherwise we cannot skip some topic. This is important because topics are order-dependent.
https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_newfilter
Btw thanks for this amazing tool!

Pull Request Test Coverage Report for Build 160

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

Totals

Change from base Build 159:
0.0%

Covered Lines:
388

Relevant Lines:
423

💛  - Coveralls

Thanks for your contibution @GuggerJoel! Fix is released as<EMAIL_ADDRESS>


Double-check that Tabs are properly accessible (ARIA etc.)

Refs #13554.
CC: @patrickhlauke

#19738 might also be relevant here.

Regarding tabs accessibility, will you implement keyboard support ? Or will it be up to the user ?

coming in monstrously late on this:

tabs now have relevant ARIA attributes, however
tabs do not currently implement the expected keyboard behavior

at a minimum, tabs should behave as follows (from https://www.w3.org/TR/wai-aria-practices/#tabpanel)

For the tab list:

Tab: When focus moves into the tab list, places focus on the active tab element . When the tab list contains the focus, moves focus to the next element in the page tab sequence outside the tablist, which is typically either the first focusable element inside the tab panel or the tab panel itself.

(side note: this means only the currently active tab should receive focus - currently, all tabs receive focus)

When focus is on a tab element in a horizontal tab list:

Left Arrow: moves focus to the previous tab. If focus is on the first tab, moves focus to the last tab. Optionally, activates the newly focused tab (See note below).
Right Arrow: Moves focus to the next tab. If focus is on the last tab element, moves focus to the first tab. Optionally, activates the newly focused tab (See note below).

When focus is on a tab in a tablist with either horizontal or vertical orientation:

Space or Enter: Activates the tab if it was not activated automatically on focus.

@twbs/js-review Is this something you could take on to adjust the keyboard behavior and focus?

I guess we need some help about this.

will tackle this at last over here https://github.com/twbs/bootstrap/issues/28918


feat(apps/pano): Role management

Describe the feature you would like to see added
As Pano grows, it's becoming increasingly important to implement role-based access control (RBAC) to limit the actions that users can take. This will help us prevent malicious users from causing harm to our platform, while still allowing legitimate users to make full use of our app's features. Additionally, we would like to add some restrictions for new users in order to prevent spam and ensure quality content.
Requirements:

Implement RBAC with at least two roles: eg: "Admin", "Moderator" and "User"
Admins should be able to manage any entity, as well as manage users and their roles
Users should only be able to create, read, update, and delete their own posts and comments
All endpoints related to RBAC should be properly documented
New users should not be able to make comments until they have posted at least 10 times
All new user posts and comments should be manually approved by a moderator before they are visible on the platform
Users who consistently post low-quality or spam content should be automatically flagged for review or banned from the platform

Describe alternatives you have considered
No response
Additional context
No response

Roles are cool but, let's rethink this by using ABAC (attribute based access control) instead of RBAC.
quick reminder about RBAC vs ABAC from one of the streams:

I see ABAC is much better to go with since custom roles can be created. If the backend is going to be used on multiple platforms i think this is pretty flexible for that.


Typo fix

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.

Thanks for your submission @mogul


Add Coingecko API

Hey, Butterfield from Aura Finance here. While adding Aura as suggested by Chen, I had a go at clearing up some TODOs:

Convert project to TypeScript/ts-node.
Use Coingecko API client in favour of requests where possible.
Avoid symbol collisions by matching market data (i.e. the top x coins) with token list data based on symbol and numeric ID. If a match isn't found, fetch the coin data and extract the token data.
Add validation/logs for invalid data or unsupported coins.
Add prettier (default config) and run it on the codebase

The main concern was avoiding collisions based on the token symbol, as our users reported recently.
It's also possible to make requests to the coin data for every coin (ignoring the Coingecko 'all' list), but the script takes much longer to run with the request throttling.

Thanks for this contribution! It looks great! we will give you a proper review soon.
Normally we would prefer to split this into multiple smaller PRs, so we don't mix different unrelated changes, but for this specific mini-project, and give your changes that are easy to follow up, we can review it like this.


[Feature Request] Add more season/episode fields to the filteroptions

Is your feature request related to a problem? Please describe.
When using the Season or Episode filter-type it will be handy to have some filter fields to make sure Maintainerr doesn't delete the whole season while some episode are still unaired.
When you have for example:
Plex - Users that saw all available episodes contains Mark, and you have set to delete after 5 days.
When there are 3 episodes available for a season of 10 episodes because the rest is still unaired, and you watch those 3 episodes.
Maintainerr will delete the whole after 5 days. If a new episode is released within the 5 days it will not delete, but when the next episode is released within 7 days, it will be deleted by Maintainerr before that date.
Describe the solution you'd like
Add some filter fields like:
Sonarr - Total amount of episodes for this season
Plex - Amount of available episodes for this season
Sonarr - Episode-Number of last episode of this season
Plex - Episode-Number of last seen episode
This way you can make sure that when only dealing with whole seasons you can make the rule:
Plex - Amount of available episodes for this season == Sonarr - Total amount of episodes for this season
Or when dealing with partial seasons (example: S01E03 till S01E10 is available on Plex where E10 is the last):
Plex - Episode-Number of last seen episode == Sonarr - Episode-Number of last episode of this season

Hey, sorry for my very late reply...
I added/clarified a few extra Sonarr rule values that might help with what you're trying to accomplish.

Sonarr - Has unaired episodes (Boolean whether a show / season has unaired (monitored) seasons / episodes)
Sonarr - Season has unaired episodes (On episodes only, boolean whether the parent season has unaired episodes)

You could use these new rules to filter seasons, shows & episodes with unaired episodes out of your collections. I believe this is what you'd like to do?
Unrelated to this issue, but perhaps worth mentioning, these values are also added:

Sonarr - Number of monitored seasons / episodes (Amount of seasons in the show, or episodes in the season, that are monitored)
Sonarr - Number of seasons / episodes (also unmonitored) (Same as above, but also counting the unmonitored seasons / episodes)

These changes will be available in the next release. (Sooner on the 'develop' docker tag)


Not running on Google Cloud Functions

I'm trying to run this on Google Cloud Functions and it's not working. I get the following error:
Error Error: Failed to launch chrome! [0920/161236.165262:ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180. TROUBLESHOOTING: https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md

And I did try passing the '--no-sandbox' arg using:
const png = await convert(canvas.svg(), {
	headless: true,
	args: ['--no-sandbox']
})

But I still get the same error. Anyone know what the issue is?
For what it's worth, I am running pupeteer on its own in another Cloud Function and that is working fine.

Similarly I haven't been able to get it to work in Heroku (which may mean I adopt a different solution; see my attempts at badges/svg-to-image-proxy#41). This is a Puppeteer issue and I've tried following the instructions at https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md#running-puppeteer-on-heroku, but no luck.
There are some notes on Google Cloud Functions: https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md#running-puppeteer-on-google-cloud-functions though it says "it should work." 🤷♂

I'm sorry for the incredibly long delay in replying in responding to you but life sometimes gets in the way of OSS development. I thank you for your patience and, although I'm closing this issue out, I hope you'll be glad to know that I hope this issue may be resolved in with today's 0.6.0 release with a huge bump in the version of Puppeteer that's supported.
If you continue to have this problem, please raise a new ticket with complete logs to enable investigation. I hope you can understand my delay.


jobs: pass identity into retry job

Identity was not passed, thus the job fails as it needs org_id for SQL.

I am also dropping the custom "human readable" logger I wrote, it is not very useful honestly. Finally, adding a custom hook that will always ensure fields from context are present if context is present. This will make sure all jobs do have job_id logged properly.


fix  glowl fetal when caller GrowlPanel.ContextMenu before GrowlPanel…

… init caused NullReferenceException
close #848

closed in 1dbcc76e


How to run instance-segmentation demo on FPGA

When I run the demo on CPU, it shows correct.
with --device FPGA, it will rasie a error.

I'm not familiar with this area. Maybe I missed some environment Settings.
Thanks.

@abcxs , as I know there is special openvino package with FPGA support, please make sure that you use right package. Beside that, as I know mask rcnn model contains custom layers which is not suitable to run on FPGA, for processing them you need to run model in hetero mode using HETERO:FPGA,CPU as device

@abcxs, possibly you can find useful OpenVINO™ toolkit for Linux* with FPGA Support installation guide to verify that your environment setup is correct

Thanks for your reply.
I add some environment Settings. And I missed new issue.

I test aocl diagnose, it passed.

@abcxs, Unfortinately, I do not have access to machine with FPGA device right now, to check your problem. But it looks very similar to known issue in OpenCL, could you please try it?

This did not solve the problem.
I try the demo squeezenet, it gets same error.

Thanks, I solve this beacause of environment Settings.


Create a staging site

Can we close this by now @taymonbeal?

No, we have a site labeled "staging" but it's the production site.

I don't think we're going to do this, unless it turns out to be necessary to maintain an availability SLO.


document how to maintain the code styles - like prettier

function pretty {
prettier --write --print-width 100 --single-quote --tab-width 2 './src//*.js' './src//.ts' './src/**/.css'  !'./src/**/.min.'
}

have you considered using pre-commit hooks to ensure that code styles are used?

Yes. I love prettier. And I . would love a PR for it in this repo :)
John Papa | @john_papa | JohnPapa.net, LLC
On Tue, Mar 20, 2018 at 5:27 PM, Josh Lester<EMAIL_ADDRESS>wrote:

have you considered using pre-commit hooks to ensure that code styles are
used?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/johnpapa/angular-ngrx-data/issues/35#issuecomment-374762864,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABJZYIU331uls_3mpzEIFgR5HVzdjkoQks5tgXRZgaJpZM4Q7fdY
.

I added it to the quickstart repo. Thoughts on this?
  "pre-commit": "ng lint --fix --force && pretty-quick && git add .",

I installed husky, pretty-quick, and prettier. pretty quick is nice because it formats all changed files by default. lint-staged is nice, but only works on staged files.

if it works the way you want it to for your repo then great.   honestly ive just started playing around with the precommit hook stuff and ive learn theres several ways of going about it. i almost have a PR together for this repo but it only does the staged files that are inside of the src folder

staged files work ... and maybe that is faster. i often commit all open changes, and they arent staged.
interesting tho ... need to tinker and see what is the nicer workflow

so here is another option
    "pre-commit": "lint-staged"
  },
  "pre-commit": ["pre-commit"],
  "lint-staged": {
    "*.{ts,js,json,css,md}": ["prettier --write", "git add"]
  },

Merged. Closed. Thanks.


feat(callout): add expandable variant

Add logic to separate title from other child content to make a callout expandable
Add story for new variant

Summary
Structural Element (Base, Gene, DNA, Chromosome or Cell)
Shortcut ticket: sh-155242
Implement the Expandable Callout (a type of callout) component.
Checklist

[ ] Default Story in Storybook
[ ] LivePreview Story in Storybook
[ ] Test Story in Storybook
[ ] Tests written
[ ] Variables from defaultTheme.ts used wherever possible
[ ] If updating an existing component, depreciate flag has been used where necessary
[ ] Chromatic build verified by @chanzuckerberg/sds-design

@clarsen-czi and @mmmmmmaya, sorry for the delay, but I think I've address both of your comments on this PR!  Let me know how it looks

Actually @clarsen-czi, I noticed one other quirk.  mui also includes top margin for the title, which gets added when I expand the callout.  so I think I need to remove that top margin as well.

@clarsen-czi I've updated the live preview based on your feedback!  would you be able to take a look again when you have a ahcne?


[Release] Update index.json for extension [ spring-cloud ]

Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_ID=1370330
Last commit: https://github.com/Azure/azure-cli-extensions/commit/6593c6a9df7071b3052ac5cd516967eed27ea928

This checklist is used to make sure that common guidelines for a pull request are followed.

For new extensions:

[ ] My extension description/summary conforms to the Extension Summary Guidelines.

About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your PR is merged into master branch, a new PR will be created to update src/index.json automatically.
The precondition is to put your code inside this repo and upgrade the version in the PR but do not modify src/index.json.

It is the same as #4426 who doesn't pass the cla check. Not sure whether this PR has good luck

spring-cloud


Add travis and Makefile support for libyaml-test

https://github.com/yaml/libyaml-test/ is a test runner that builds:

https://github.com/ingydotnet/libyaml-parser/
https://github.com/ingydotnet/libyaml-emitter/

And runs them against the tests defined in:
https://github.com/yaml/yaml-test-suite/

I combined the 2 @ingydotnet repos into one (yaml org repo):

https://github.com/yaml/libyaml-parser-emitter/

This should make maintenance easier. Everything except the C code was largely
duplicated.

See Travis results here:
https://travis-ci.org/yaml/libyaml/jobs/184139090#L957
Note: emitter currently skipping most tests; because the the in.yaml files in
the test suite are largely not normalized. Adding out.yaml files as
appropriate, to get all the tests that should be running to work.

Fixed all the emitter tests that could work. Passing on travis. Ready to merge
to master, imho.

Changed Makefile target to test-suite and added test-all to run test and
test-suite.

I made this cleaner by removing the cleanup code in the travis file and putting
it in the Makefile under distclean-local.
Force pushed commits.

So, I checked this out locally on Fedora 25 and it breaks because "prove" isn't a command on my system. What "prove" are we using? Is this a CPAN package... or what?

We'll need to add this as a dep for the dockerfiles too because once we start using test-all there, those will start failing.

@sigmavirus24 prove should be part of perl. I think it's "perl-core" on Fedora.

Thakns @perlpunk !

So @ingydotnet it looks like this fails on ubuntu 16.04, 14.04, and Fedora 25 via dockerfiles: https://semaphoreci.com/sigmavirus24/libyaml/branches/master/builds/11 (although Fedora 25's not represented there yet)

Ah, it looks like there's a problem with having shared libraries available. Let me dig into why that is

(cd /libyaml && git checkout tests/run-parser.c tests/run-emitter.c)
cp /libyaml/tests/.libs/run-emitter libyaml-emitter
make[2]: Leaving directory '/libyaml/libyaml-test/libyaml-parser-emitter'
prove -lv test
test/libyaml-emitter.t .. ./libyaml-parser-emitter/libyaml-emitter: error while loading shared libraries: libyaml-0.so.2: cannot open shared object file: No such file or directory

Is the first error. It looks like the testing Makefiles are hardcoding the path to the libyaml so. On the containers though, it's pre-installed (as part of docker build) to /usr/local/lib/.

Hi @sigmavirus24.
I'm not sure how Semaphore works.
The Makefile test-all/test-suite rule work by cloning yaml/yaml-test. That in
turn clones the test suite and yaml-parser-emitter. It calls make build on
libyaml-parser-emitter.
The make build normally clone yaml/libyaml inserts its C code files into the
libyaml's build system, make's libyaml and then pulls the parser/emitter
binaries back out.
In our case we already have the libyaml sources that we waant to build and test
at the top level, so libyaml-parser-emitter takes an environment variable
called LIBYAML_DIR, which we set to our top level.
The libyaml-parser-emitter has a Dockerfile. You can see the here:
https://github.com/yaml/libyaml-parser-emitter/blob/master/Dockerfile#L25 I had
to set the LD_LIBRARY path to the src/.libs build directory of the libyaml I
was building against.
I think that my be the solution to your problems.
I'm available to pair with you on this any time. Just seek me out on IRC.

I'm not sure how Semaphore works.

This isn't specific to Semaphore. If you use any of the dockerfiles in the repository (docker build ... ; docker run -it ... make test-all) it'll fail the same way (since Semaphore just builds and runs the dockerfiles for us).
I'll see if I can fidget with the LD_LIBRARY setting to make those dockerfiles happy
Thanks for the offer to pair. I might take you up on that later in the week. :)

@sigmavirus24, fyi make test-all now working in Docker et al


update to "unstringify" function

"unstringify" function converts each dbc.Input value from string to float or int if possible. Before check for float was based on decimal symbol ".", now it directly tests if float conversion works. In the future, the input type should probably directly be provided to the dbc.Input fields

@lufire, please look at my commits.


Create a chat forum (Discord)

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

see in discussion

As per discussion was Yasitha, including link here for better visibility: https://github.com/1360119047/calorieApp_server/discussions/18


Try CUDNN LSTM layers

https://keras.io/layers/recurrent/#cudnngru

To implement this we need keras>=2.0.9 (https://github.com/keras-team/keras/releases) but the current packaging in conda for keras (keras-gpu) is at version 2.0.8. I'd rather stick to conda packaging to avoid compatibility issues, so I will wait until conda updates to 2.0.9 before implementing this.


OS X: "Open in Terminal" doesn't work for me

VSCode 0.10.12-alpha

OO X 10.11.3

in the VS Code explorer run the "Open in Terminal" action

Observe: nothing happens

Same issue on Linux as well. "Open new Terminal" does not work either

New versions of iTerm have changed the AppleScript API which broke the VSCode iTerm scripts. I made VS Code smarter in detecting what version of iTerm is available and call either the old iterm or a new itermNew script.

@joaomoreno
this PR https://github.com/Microsoft/vscode/pull/3495 resolves the Linux issue where x-terminal-emulator isn't available.
Fedora 23 is an example where this problem is happening. Using this PR and changing the command to gnome-terminal works.

Verified that "Open in Terminal" works for me and opens my terminal. @weinand note that I do not have iTerm installed so you might want to assign this one to someone else?


Mac 可以同時安裝兩種版本的MestReNova嗎？

目前安裝14.1.0-24037
想安裝14.2.0
保險起見想測試完14.2.0才刪除14.1.0

I am not a Mac user, so chances are that what I say do not work. But here’s my understanding:
Theoretically yes. In the Application folder, rename the lower version MestReNova to another name as you like. Then install the latest version as you normally do.  These two versions won’t affect one another.
Note that the patch only deals with the package called “MestReNova,” so do not rename it before patching.

On Apr 28, 2021, at 23:46, scout1256 @.***> wrote:

目前安裝14.1.0-24037
想安裝14.2.0
保險起見想測試完14.2.0才刪除14.1.0
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.


Manufactured Item Quantity and Package Item Quantity

Let’s take a product. It’s a box containing 2 syringes, 0.6ml each. It looks like this:

It would be described as:

You can see full xml here (open it in debug mode in upper right corner).
Fsh file here.
In ISO standard:

In FHIR PackagedProductDefinition, we have containedItem, which is described as the number of items within this packaging (referring to units of presentation, rather than millilitres).

However, there is no place for the size of syringe in the ManufacturedItemDefinition, where it logically belongs.
It is also not clear in the spec how to define the size of a syringe/vial/tube etc in PackagedProductDefinition.
Proposal: either

have the size of the manufactured item in ManufacturedItemDefinition; or
Change the description of containedItem.amount so that it would include the size of the manufactured item.

https://jira.hl7.org/browse/FHIR-39130


remove the need for Sorbet::Private::Static.keep_for_typechecking

Motivation

When we encounter a T.let($VALUE, $TYPE) call or similar during the resolver phase, we do this weird thing:

We create a Sorbet::Private::Static.keep_for_typechecking($TYPE) send
We create an ast::Cast node with the kind of cast (let, cast, etc.) and $VALUE -- but not $TYPE
We create a resolver job that points at the $TYPE arg held by the newly-created send and the newly-created cast node.
We replace the T.let call with the newly-created cast node.

Why do we do this?  Well, we need to have some way of entering bits of $TYPE into the AST/CFG for LSP to work properly, since LSP queries are going to scan through the AST/CFG to find e.g. constant references.  If we only kept $TYPE to resolve it to a TypePtr during the resolver phase, then things like "find all references" wouldn't see constant references in $TYPE.  (We threw away the original T.let call and replaced it with an ast::Cast and the ast::Cast doesn't have references to $TYPE as an expression.)
The problem with this scheme is that we're creating this weird send node that exists nowhere in the user's code.  This wastes space in the AST, it wastes space and time expanding the send into CFG nodes (receiver, argument, and the send itself), and it wastes time deriving the type of the send.
This PR, then, proposes to store the expression for $TYPE on the ast::Cast node itself.  This change expands the cast node by 8 bytes, but as jemalloc buckets 40 byte things into bucket of 48 byte wide things, we're actually not consuming any more memory as a result of this change, cast node-wise.  This will also avoid creating extraneous send nodes and the awkward issues of location information and extra CFG cost associated with them.
But we still have to ensure these nodes appear in the CFG for the LSP reasons stated above.  (It's not clear to me if we could somehow get away with just expanding the constant references in the $TYPE expression into the CFG, so that we could avoid the sends in T.nilable(T.any(Foo, Bar)), which seems like a very nice win, since we don't care about their types either, but that is a question for another time.)
The approach I initially tried creates a new CFG instruction, VolatileRead (the name is bikesheddable), to ensure that whatever was being read by the VolatileRead instruction wouldn't be considered dead code, as $TYPE in some cases can be side-effect free.  The expansion of the keep_for_typechecking call naturally assured this, since we don't delete sends from the CFG (they might have side-effects), and then it follows that we can't delete their arguments either.  But now we have no send, so we have to find a different mechanism.
After playing around with VolatileRead, it occurred to me that the dead code elimination pass done by the CFG is not strong enough to determine that a = a, where a is never read from again, is dead code.  So we could get by without using the VolatileRead instruction at the cost of enshrining this weird special case in the CFG.  It might be kind of nice to have a separate CFG node so that the compiler could still delete extraneous code:
https://github.com/sorbet/sorbet/blob/dbe102f017ad2fa371e27f5ec5a5f9a928eb7d18/plugin_injector/plugin_injector.cc#L139-L177
but maybe it could just be taught to recognize the a = a pattern instead...though that might have the undesired effect of doing strange things with user code.  Need to think about that some more.
I haven't tried this on Stripe's codebase; I expect it to have a small but measurable effect in memory use and typechecking performance.
Test plan

See included automated tests.

We have a policy of testing changes to Sorbet against Stripe's codebase before
merging them. I've kicked off a test run for the current PR.  When the build
finishes, I'll share with you whether or how it failed. Thanks!
Stripe employees can see the build results here:
→ https://go/builds/bui_LqYbcSy0MwtEvK
→ https://go/builds/bui_LqYbQb7v9QBAkj

We have a policy of testing changes to Sorbet against Stripe's codebase before
merging them. I've kicked off a test run for the current PR.  When the build
finishes, I'll share with you whether or how it failed. Thanks!
Stripe employees can see the build results here:
→ https://go/builds/bui_LvRkXRnHM31qSl
→ https://go/builds/bui_LvRkRzYd61tGNU

We have a policy of testing changes to Sorbet against Stripe's codebase before
merging them. I've kicked off a test run for the current PR.  When the build
finishes, I'll share with you whether or how it failed. Thanks!
Stripe employees can see the build results here:
→ https://go/builds/bui_LyhTtq3gPeuhKr
→ https://go/builds/bui_LyhT3RGNE2r1bB

I think this is more-or-less ready for review.  It should be relatively neutral performance-wise, but I think having everything tied into a single AST node, rather than scattered throughout the AST, makes things more understandable.
I also have some in-progress patches that want to move (part of) field identification into namer; as a part of that, the patches identify casts much earlier in the typechecking pipeline so both namer and resolver can see the cast nodes, rather than resolver creating them.  Having everything stored on a single node is beneficial there as well.

This PR, then, proposes to store the expression for $TYPE on the ast::Cast node itself. This change expands the cast node by 8 bytes, but as jemalloc buckets 40 byte things into bucket of 48 byte wide things, we're actually not consuming any more memory as a result of this change, cast node-wise.

This part of the original description is no longer true now that TypePtr only occupies 8 bytes.  We wind up enlarging cast nodes slightly, but we're eliminating some send nodes from the CFG (and therefore typechecking), so overall memory usage might go up slightly, but typechecking performance should slightly improve.


test(transformer): enable tests

#6032  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @overlookmotel and the rest of your teammates on  Graphite


add functions to typewrite a python list or line of a text file

Add typewritelist and typewritefile as functions to typewrite a python list of strings of lines of a text file in sequence. I find these very useful when I need to transcribe a long list of values into a gui application that does not accept an import or copied and pasted text.
I added these years ago on a personal branch of this code I hosted on gitlab. I finally thought to try to merge these into the main codebase.

This is something that the user could do with code like typewrite(open('file.txt').read()), so I don't want to create a dedicated function for it. But thanks though.


Add disable-builtin-k8s-secret-store annotation option

Signed-off-by: Deepanshu Agarwal<EMAIL_ADDRESS>Thank you for helping make the Dapr documentation better!
Please follow this checklist before submitting:

[x] Commits are signed with Developer Certificate of Origin (DCO - learn more)
[x] Read the contribution guide
[ ] Commands include options for Linux, MacOS, and Windows within codetabs
[ ] New file and folder names are globally unique
[ ] Page references use shortcodes instead of markdown or URL links
[ ] Images use HTML style and have alternative text
[ ] Places where multiple code/command options are given have codetabs

In addition, please fill out the following to help reviewers understand this pull request:
Description
Dapr currently, by default, enables a built-in kubernetes secret store in kubernetes mode.
But, considering that an application developer may not want to use any Secrets API or may want to use a different Secret Store, there should be an option to disable it as well. That is why a new setting disable-builtin-k8s-secret-store is provided, which can be set to true, if required. By default, it is kept as false to not disturb the on-going default behavior of Dapr.
Issue reference
Please reference the issue this PR will close: #dapr/dapr 4227

@DeepanshuA - First, thanks for this contribution. Can you link this issue to the code PR/Issue?
With many of these options it is good to explain the "why" to when to use to option, so people have a fuller context. In looking at the secrets overview section here https://docs.dapr.io/developing-applications/building-blocks/secrets/secrets-overview/ I see that the docs really do not described that a K8s secret store is created for you and without understanding this first, it is hard to understand this setting.
My ask is, could you update the secrets overview article above as part of this PR to explain the creation of this K8s secrets strore, when you would and would not use this and then reference this setting in the scenarios where this should not be made available to developers? Would greatly appreciate this and your time.

Thanks for the guidance @msfussell. It surely makes sense to add more details to be able to convey the significance of these ongoing new annotations being added.
Please check if the addition with new commit looks fine.

@DeepanshuA - Just seen this is a new feature in v1.8 and so needs to target the v1.8 branch. can you update (or create a new PR) to point at that docs branch? Thanks

@DeepanshuA - Just seen this is a new feature in v1.8 and so needs to target the v1.8 branch. can you update (or create a new PR) to point at that docs branch? Thanks

Thanks for correction. Moved branch to v1.8.


app freezes with CHAT (VOICE working)

Hello,
We are currently in the process of adding chatJS in our custom CCP (Angular app).  When I'm accepting the incoming chat request, the whole app freezes with no Error message.
Here are the steps I'm doing to initiate a Chat request.

Added amazon-connect-chat.js after connect-streams.js in HTML file

after initCCP, I'm checking if
a. contact.getType() is CHAT or VOICE

VOICE part working good

If CHAT, I'm trying to open a window that has an "Accept" button. If someone clicks on the "Accept" button, it goes to contact.onAccepted.

If I make VOICE, all the flow is working as expected. If I make a Chat request, I can see the "Accept" dialog, but I cannot click on the Accept button the whole app freezes.
Here, I'm trying to make Custom CCP Chat UI for Agent. I'm using Angular 8+, NodeJS.
Any Idea / Direction on Chat? Are there any steps I missed?

Hi @amicming, sorry for the delayed response. Have you figured out how to resolve the issue you mentioned above? Did you set region parameter to initCCP() properly? If the issue still persists, could you share the screen shot / error messages in the developer console (of the tab or the shared worker)?

Closing the ticket for now as there's no response for a month. Please reopen the ticket when you are still having the issue.


Make code buildable with BoringSSL

Checked with the latest BoringSSL (f7b830d8df9f5578c748aa0283d44c59ea7eeb25).
This fixes #5775. The logging tag which was added by #5724 to log a curve name works at minimum, but not sure about the plugins.

Cherry-picked to v9.0.x branch.


want to set elastalert when a perticular string is not there in message field

this is my yaml file for elastalert rule:
i want to get email alert when the string "Integration Activity Report Mail Sent Successfully" is not there in logs. any help would be appreciated.
es_host: xxxxxxxxxxxxxxxxx
es_port: xxx
name:  Integration Activity Report Mail Sent Successfully
type: frequency
index: "xxxxxxxxxxxxxxxxxxx"
num_events: 1
timeframe:
hours: 15
threshold: 1
filter:

query:
query_string:
query: "NOT message: "Integration Activity Report Mail Sent Successfully""

alert:

"email"
email:
xxxxxxxxx

any help or suggestion ?

@Qmando thanks that work like a charm.

@Qmando one more thing, how can i run elastalert rule on every first day of the month?

I'd use cron and the end flag. Like elastalert ... --end $(date -Iseconds --date="tomorrow")

can't i use _"aggregation: schedule: ' * 1 * '"_ something like this.

Sure, you could. They mean slightly different things but the outcome would be similar.
With the aggregation schedule, elastalert will still run all month, it will just store the alerts as it generates them and then send them all at once on the first.
If you ran elastalert itself using cron, it will scan over the entire month at once (with some settings changed, by default it only does up to 2 weeks on startup).
There's a few settings which would affect these two methods differently. For example, realert which prevents multiple alerts going off immediately after each other, would need to be turned off for the latter method.

thanks genuis @Qmando .