Timing Value label [Model]

See #330

Created new attribute valueLabel

Ready for review. See new version in Github 2.11 branch


How to adjust the Z-axis spacing?

The input data 3d volume, but its Z-axis height seems to be equal to the number of images, rather than the real Z-axis maximum and minimum values, may I ask where can I input Z-axis data in order to look more accurate in 3d visualization.

I know that in imagej it has max and min representing the range of the z axis.

Are you trying to set the scale of the stack?
The attached image is really hard to decipher, but:
If you have 52 inches over 62 slices, then you have .839 in/slice.
In napari you can set the scale of a layer using:
viewer.layer['name of your layer'].scale = [.838, 1, 1]
Here I set the z-scaling based on your post, while x and y are left as 1, so 1 in per pixel.


Update documentation for the new UI

Where can "Package Management" be found in the new UI anyways? I couldn't find it in the project settings anywhere.

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

ID: 4005817f-e61c-62fb-b40e-12463425b41a
Version Independent ID: 2d6bff7b-159e-2729-3c66-451fce339c3d
Content: License Azure Artifacts for TFS 2017 and 2018
Content Source: docs/artifacts/license-azure-artifacts.md
Product: devops
Technology: devops-artifacts
GitHub Login: @chcomley
Microsoft Alias: chcomley

@saciervo  Thank you for the question.
Until the documentation has been addressed, please refer to Package Management is now Azure Artifacts.

Hi @saciervo, I've published an update to the article, adding information for Azure DevOps Server 2019. I'm hoping the link that was previously sent to you answered your question. The update should be live sometime within the next few hours. Thanks!


Zabbix alert module error

Hi,
I'm using docker image  bitsensor/elastalert:3.0.0-beta.1 to run the elastalert server. I created a new alert using zabbix as an alert module. Here is the my rule file -
`es_host: es_server_address
es_port: 9200
name: test-rule
type: frequency
num_events: 1
timeframe:
seconds: 10
filter:

query:
query_string:
query: "cs-method:POST"
index: logstash*
timestamp_field: "@timestamp"
alert:
zabbix
zbx_sender_host: zabbix_server_address
zbx_sender_port: 10051
zbx_host: elastalert-server
zbx_item: elastalert-item`

Now I'm getting the following error in elastserver logs -
12:02:11.551Z ERROR elastalert-server:     ProcessController:  ERROR:root:Could not load rule rules/test-rule.yaml: Error initiating alert ['zabbix']: Could not import module zabbix: need more than 1 value to unpack 12:02:11.568Z ERROR elastalert-server:     ProcessController:  ERROR:root:Error connecting to SMTP host: {}
Can anyone help me to solve this error?

Hello!
I think installing the zabbix module would solve a part of your issue. Depending on your python version, you can issue pip install zabbix or pip3 install zabbix.
You also have an SMTP error which has to do with you email alert settings.

Hi all,
Finally found a solution that worked for me.
In case this might be useful to anyone, here's how you can manage to send ElastAlert messages to Zabbix.

create a "zabbix trapper" item under a host in your Zabbix server
create a script which uses zabbix_sender to send informations it gets as parameters to a Zabbix server
add command rule to your ElastAlert rule so that your previous script will be called along with the desired parameters
In your Zabbix server interface, you can create a trigger to handle the received values as it suits your use case.

I hope this will help you also.
Regards

Hello!
I think installing the zabbix module would solve a part of your issue. Depending on your python version, you can issue pip install zabbix py-zabbix or pip3 install zabbix py-zabbix.

I have instructed to install zabbix and py-zabbix, but only py-zabbix is ok

Hello!
Thank you for your feedback.
Regards

zabbix.py使用时需要做一些修改：
1.第一行由from alerts import Alerter修改为from elastalert.alerts import Alerter
2.第66,67行，tc_epoch是UTC时间，第67行用可默认值
zm.append(ZabbixMetric(host=self.zbx_host, key=self.zbx_key, value=1))
3.给第67行value赋待传的值，如增加body = self.create_alert_body(matches)
zm.append(ZabbixMetric(host=self.zbx_host, key=self.zbx_key, value=body))
4.rule文件配置alert：
alert:

"elastalert.zabbix.ZabbixAlerter"

alert_text_type: alert_text_only
alert_text: |
========start===========
告警程序: ElasticSearch_Alert
触发条件: 一分钟内 >= {} 次
========end============
alert_text_args:

num_hits
5.zabbix主机添加监控项，类型zabbix trap，给变量赋值，zbx_item：{item},zbx_key:{key}


Add determinant for Hermitian matrices in solveh module

This adds deth() and deth_into() methods for Hermitian matrices in the solveh module. It also fixes bk() for zero-size matrices (workaround for a bug in the LAPACKE routines; see the commit message for details). Note that this PR makes the following breaking changes:

Require the input array to factorizeh*() to be square. (See the commit message for reasoning.)
Add AssociatedReal::real() and AssociatedReal::imag() for use in bk_det(). (I didn't see any other obvious way to take the real part of a complex number using the methods that already existed.)

Edit: Would you prefer the trait names BKDeterminant and BKDeterminantInto?

It also fixes bk() for zero-size matrices (workaround for a bug in the LAPACKE routines; see the commit message for details).

cool :)

I didn't see any other obvious way to take the real part of a complex number using the methods that already existed

Yes. real and imag are good naming.

Edit: Would you prefer the trait names BKDeterminant and BKDeterminantInto?

Hum.. sorry for the naming rule become complicated.
Basically, the trait for the method e.g. deth() should be corresponds to its name, i.e. DeterminantH is prefered. Thus CholeskyDeterminant should be DeterminantC for consistency.
BK prefix is only used with the BKFactorized, and it is useful to distinguish FactorizedH (if use *H naming) and FactroizeH.
BTW, I intended to release v0.7.0 after this PR is merged. Do you have plan to send PR with breaking change more?

I merge this PR with the renaming of cholesky module.
Thanks for many PRs !!

BTW, I intended to release v0.7.0 after this PR is merged. Do you have plan to send PR with breaking change more?

I'm working on generalizing the various solve* methods to take 2-D arrays instead of just 1-D arrays, and this will be a breaking change. (I'm rewriting the layout functionality as part of the change.) However, it will probably be a while before I'm done, so I wouldn't wait on this before releasing 0.7.0.

Thanks for many PRs !!

 Thanks for creating the ndarray-linalg crate!


Example values to run

Hi, I dont think its very obvious on how to use this item.
Both the gemfile content and the ruby script are mandatory, what should i put where?
for example, i was to install jazzy.
gem install jazzy
what values should i use?

Hi,
You should specify jazzy for the Gemfile input just like you would in your Gemfile.
https://rubygems.org/gems/jazzy - right side: GEMFILE option : gem 'jazzy', '~> 0.6.3'
Exactly the same as if you'd have a Gemfile, so a full example would be:
source 'https://rubygems.org'

gem 'jazzy', '~> 0.6.3'

Like this?

No,
The whole Gemfile content should be in the Gemfile's content input ;)
source 'https://rubygems.org'

gem 'jazzy', '~> 0.6.3'

In the The Ruby Script input you write your Ruby script.

So like this?

I think it should be named differently from Ruby script, because the gemfile is effectively the ruby script. I would say this is the execute command.

Still no :)
This is a Ruby script step. If you want to use a generic command executor, where you execute bundle install, you should use thescript step.
Here, the content should be a ruby script, eg:
puts "Hello world!"

And the Gemfile you specify will be bundle installed automatically, you just specify the Gemfile content and the Ruby script (content)

ok, then as a feature request can you make it so that the Ruby Script field is optional, currently if you dont put anything in, it fails the step.

What would be the use case for that? If you just want to install a Ruby gem you can use the Script step instead. This step is meant to run Ruby scripts, scripts which are written in Ruby ;)

Because it looks nicer to have a formatted step for Ruby with the icon etc.
Also if that was the case, then why even have Gemfile's content as a parameter.

Well, how else would you specify a required 3rd party gem for a Ruby script? You could of course user multiple script steps,  installing the gems and the running a ruby script, but with this step you don't have to. You just specify the required gems for your Ruby script and write the Ruby script, using only one step.

Simply put, instead of failing if a value doesnt exist for the ruby script field, could you change it so that it fails if a value doesnt exist for either ruby script field or gem files content field.
That way it keeps all parties happy :+1:


Crash Report - CrisF#3405

Came back to a crashed daemon.  Having trouble restarting.
coda_crash_report_2020-01-27_10-32-15.651218.tar.gz

Closing this issue as it is stale for a long time.


Default for maxRows is too small

The default number of rows to fetch is currently 100. Since fetching each block causes a roundtrip to the server, fetching large data sets (even moderately small ones) takes a lot of time. High latency amplifies this problem.
I had a case where I was trying to fetch 11.000 rows over a high latency connection and with default settings it took me 1:40min. Changing the default to 10.000 dropped the time to fetch the data to 6s.
I'd suggest to increase the default to 10.000 or 100.000.

I have currently have a similar issue... in databricks UI my queries takes like 0.5 seconds... and when I try the same with node js connector it takes always much more... like 4 seconds or more... I already tried several maxRows but nothings happened...


github: Fix go test coverage report

The go test coverage report does not cover other packages unless you
list them with the -coverpkg= argument. This results in an incomplete
coverage report with oddly missing lines.
This commit lists all of the packages so that they will all be included
when running the tests and gathering the results.

Should testing a package count against the coverage of another package?

Yes. We're trying to measure and track coverage of the whole project. Without doing this the coverage report incorrectly indicates that it didn't run some of the code (in this case it is specifically the v1 branches of the isRequiredVersion check.

Hmmmm, I'm also not convinced by this. Since coverage is just an indicator rather than making any sort of guarantee, I think it makes sense to aim for full coverage of each package in isolation. As if they were distinct projects/libraries.
To put it differently, the fact that a test covers parts of a package that a different test from a different package also covers doesn't mean that the test is redundant.
I also would find it weird if splitting a package out into a separate project would reduce the coverage of what's left...
Not totally sure, but to me there current behavior seems the most correct.
@atodorov @jikortus @jrusz, thoughts?

I guess I'm confused as to why this is controversial. Maybe I didn't explain it well enough.
We have 1 coverage report that supposedly combines the results of all the various unit tests, but it isn't without including -coverpkg to combine things. There is no way to get/display coverage on a per-package basis (that I know of).
The result is obvious (to me at least) in the first pass at #578 where I added some checks for v0 vs. v1 api in internal/weldr/api.go -- in the coverage report it was reporting that only one branch was being executed. But that's not correct, the tests run both versions of the query so it was showing less coverage.
This results in much confusion (at least to me) when I look at the report and see all the new code I wrote tests for not being run.
(Note that the current version of #578 includes this patch so it is showing what I think is the correct coverage report)

Hmm, that's is an interesting question. I don't have a strong opinion in either way, but I think I can see Brian's point. Having the coverage as a whole could make more sense, especially if we can assume that the packages will be used together as part of one project in practice, and unlikely in a separate manner. On the other hand if this is not the case, separate testing would seem to be the better direction to follow.

My 2 cents on the topic:
Brian:

The go test coverage report does not cover other packages unless you
list them with the -coverpkg= argument.

This is often the case with many coverage tools for many languages. Some have arguments to automatically include files based either on package name or directory path or often both.
Brian:

We're trying to measure and track coverage of the whole project.

:+1: here. I don't think I've ever seen coverage reports per module/component as separate entities.  Most services & tools (go included) can count how many times a line has been covered. The native go coverage HTML reports produce what they call a heat map, which is oddly styled with various shades of green - brighter color means more executions.
I think CodeCov shows numeric annotation but ATM it seems to have a problem matching coverage reports to files in the repo and can't display this info.
Tom:

To put it differently, the fact that a test covers parts of a package that a different test from a different package also covers doesn't mean that the test is redundant.

Nope it doesn't. Like you've said coverage info is just informative, it's not a guarantee about anything. However there are studies made which show parts with more coverage generally suffer from less bugs. You may argue that since these are executed more often if something has changed drastically it is bound to cause a failure much faster than if those lines didn't have any coverage.
The whole topic of how coverage info is used in the testing industry is controversial with lots of debate around it. To top it off there are more than 100 possible coverage metrics where tools usually measure only 2: line & branch coverage b/c these are the easiest ones.
Tom:

I also would find it weird if splitting a package out into a separate project would reduce the coverage of what's left..

That's just probably statistics - include more packages in the report and the total number of lines rises, hence total % coverage drops. I'm not sure what do you mean by "splitting" but I'm also not sure how CodeCov measures the final percentage. I think it's a bit different from what the go cli reporting tools show but haven't checked this in a while.
Brian:

There is no way to get/display coverage on a per-package basis (that I know of).

Correct! CodeCov doesn't support this and we don't really analyze it even if it did. FTR I think go test produces the coverage from each test independently and then combines them so it should be relatively easy to produce a per-package/per-test coverage reports. However there's no point in that.
The only reason we're looking at coverage metric is to find out possible pieces of code which are not exercised by any kind of automated tests so we make sure to add more testing.  We're not making any other assumptions or decisions based on the coverage metric. In that situation it does make sense to count the coverage metric against all files in the project. That's the reason I wanted to include coverage from integration tests as well (technically not possible though).
Due to the same reasons coverage for anaconda works in a similar way (at least it used to in the past).
If we want to go the per-package way then all internal packages should be separated into independent repositories, with their own tests and coverage. Then osbuild-composer will be a glue between all of these packages + cli tools and whatever tests remain.
I am :+1: for merging this PR because it will show us a more accurate picture of which parts of the entire project are exercised by automated tests.

I think it makes sense to aim for full coverage of each package in isolation.

@tom - that makes sense and that's the idea of pure unit testing. However tools and reporting capabilities do not allow for this when everything is in the same repository. It can be done (e.g. execute unit tests for 1 package separately, save the HTML report) but is more work and because the process isn't streamlined (due to tooling) nobody is going to look at this.

Thanks for all your input! Seems I did not understand the tools well enough :) Let's merge this! Just needs a rebase for CI I think.


not working on ubuntu

Failed to load module "canberra-gtk-module"
test_64:8755): GLib-GObject-WARNING **: 12:30:42.739: cannot register existing type 'GdkDisplayManager'
(test_64:8755): GLib-CRITICAL **: 12:30:42.739: g_once_init_leave: assertion 'result != 0' failed
(test_64.x86_64:8755): GLib-GObject-CRITICAL **: 12:30:42.739: g_object_new_with_properties: assertion 'G_TYPE_IS_OBJECT (object_type)' failed

Unfortunately I can't help much about this because i don't know much about gtk. You probably find more healthy information on internet.

@RicardoEPRodrigues, I have this problem too.
I'm checking it on virtual machine (vmware). The program got stuck and the following errors printed in terminal.

Hello @M6stafa,
Can you try it on Ubuntu 18.04? (maybe is a problem with the version of GLib, the current libStandaloneFileBrowser.so is compiled on 18.04.

The program got stuck

Can you check that the window is not behind the program? It happened to me and is related to how GNOME sorts windows out.

Can you try it on Ubuntu 18.04? (maybe is a problem with the version of GLib, the current libStandaloneFileBrowser.so is compiled on 18.04.

Do you have old builds? or can you say me how i must build it?
I'm not the only user of this program, and ubuntu 14.04 is good if supported but 16.04 must be supported.

Can you check that the window is not behind the program? It happened to me and is related to how GNOME sorts windows out.

I check that, there is nothing. i also check the sync function.

i also check the sync function.

Currently there is no async working, I only implemented the sync method where the async calls the sync function.

can you say me how i must build it?

You can use CMake to build the library. It is located in the Plugins folder of the project.

I test in ubuntu 18.04 too, and it fails with same error, what was your test environment?

What version of Unity are you using? Maybe this is the issue.
A little context, I'm using Unity 2017.2 (I think), on this version the engine initializes a Gtk Application, so when in the library I open a dialog window it just uses the application Unity created. My hypothesis is that newer version don't run a Gtk Application, meaning we don't really have a correct way to create a dialog window.
To test my hypothesis I would need to install a newer version of Unity... or you can try and modify the code I made. Were you able to compile it?

First try compiling it and replacing the .so file in the Assets/Plugins folder and test it in your game (you need to close and open Unity to load the new .so file). Does it work? Same errors or different errors?
If it doesn't work then try running the example that comes with the library code (main.c). Does it run? Does it show the same errors?

I build in Ubuntu 16.04, the main.c runs correctly without any error but the game has same errors with new .so
What is next step?

Maybe this can help. https://developer.gnome.org/gtk3/stable/gtk-getting-started.html

I try some methods like create a gtk application each time, but errors not change.
at the end I find TinyFileDialogs and build it for linux and it's work correctly.

Still no updates on this? I have the same problem.

@marco-nutonomy I still haven't had the time.
Yet the problem is now clearer, it doesn't work on the 2018 version of Unity.

I am facing the same issue, it works in the Editor, but crashes in build.

But after trying out for few hours, it seems to work, though I am not a Gtk expert so not sure what it would cause LOL !
I haven't tested all the functions, but this is how I managed to get it to work on my side, hope this will give you some hints...
OS: Ubuntu 14.04
Unity: 2018.3.0f2

Installing gtk2.0
 sudo apt-get install libgtk2.0-dev

Downgrade to gtk2.0 and recompile the library seems to work (see attached file for modified CMakeList.txt)
CMakeLists.txt

Hope there will be a proper solution soon.

@Vuxt4 Thank you for your insight, I'll need to test this out, yet I'm not a fan of using older versions where newer versions should (in theory) do the job.
If all else fails I'll have to compile it with GTK2.0. Thank you! 😄

Hey everyone, so I've done some digging. It turns out it is not related with Unity 2018, it is instead related with older Ubuntu distros.
I've been developing and building on Ubuntu 18.04, where even with Unity 2018 it works, I think the problems are due to older GTK version in Ubuntu 14.04. I don't have the time or availability to solve this issue. I can only support newer distros.

I can understand not supporting 14.04 which is almost at the end of the LTS, but i think 16.04 should definitely be supported, considering it still has more than 2 years of official support.

Hey guys, I compiled the code in Ubuntu 14.04 and generated the .so.
Could you test it out and see if it works for you?
libStandaloneFileBrowser.zip
Replace the .so file in your Unity project with this one and give it a go.

Sadly, nothing seems to change on 16.04.

@RicardoEPRodrigues
Your new .so works fine while in Editor, it does not work in build application though...
Following error occurs when running with build application:
(test.x86_64:4785): GLib-GObject-WARNING **: cannot register existing type 'GdkDisplayManager'
(test.x86_64:4785): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed
(test.x86_64:4785): GLib-GObject-CRITICAL **: g_object_new: assertion 'G_TYPE_IS_OBJECT (object_type)' failed
Environment:
OS: Ubuntu 14.04
Unity: 2018.3.0f2

I rebuilt the .so file but it still doesn't working.
Both the bundled and the one built by myself stuck on gtk_init:

I managed to get it running with a GTK+ running in a separated process. I'll post the source code (or send a pull request) later!

I opened a PR #106. Before it's merged you can get the new native lib from my repo.


ERROR: Could not build wheels for multidict, which is required to install pyproject.toml-based projects

When Pip-installing crewai on Python 3.12.1 a Error occurs.
Current Fix is setting up an environment on Python 3.11 or below (at least for me 3.10.11)
See the setup below for recreating. Note that most of the installing code is cut out:
(base) C:\Users>conda activate crewai
(crewai) C:\Users>python --version
Python 3.12.1
(crewai) C:\Users>pip install crewai
Collecting crewai
Obtaining dependency information for crewai from https://files.pythonhosted.org/packages/23/a2/bedf8ba9283b897edb8f53fba9ad8048da9fc67805df3fbb2142c5cac7f9/crewai-0.1.32-py3-none-any.whl.metadata
Using cached crewai-0.1.32-py3-none-any.whl.metadata (10 kB)
Collecting langchain<0.2.0,>=0.1.0 (from crewai)
[...]
Building wheels for collected packages: multidict
Building wheel for multidict (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for multidict (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [74 lines of output]
*********************
* Accelerated build *
*********************
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-312
creating build\lib.win-amd64-cpython-312\multidict
copying multidict_abc.py -> build\lib.win-amd64-cpython-312\multidict
copying multidict_compat.py -> build\lib.win-amd64-cpython-312\multidict
copying multidict_multidict_base.py -> build\lib.win-amd64-cpython-312\multidict
copying multidict_multidict_py.py -> build\lib.win-amd64-cpython-312\multidict
copying multidict_init_.py -> build\lib.win-amd64-cpython-312\multidict
running egg_info
writing multidict.egg-info\PKG-INFO
writing dependency_links to multidict.egg-info\dependency_links.txt
writing top-level names to multidict.egg-info\top_level.txt
reading manifest file 'multidict.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files found matching 'multidict_multidict.html'
warning: no previously-included files found matching 'multidict*.so'
warning: no previously-included files found matching 'multidict*.pyd'
warning: no previously-included files found matching 'multidict*.pyd'
no previously-included directories found matching 'docs_build'
adding license file 'LICENSE'
writing manifest file 'multidict.egg-info\SOURCES.txt'
C:\Users\johan\AppData\Local\Temp\pip-build-env-xr_5iesu\overlay\Lib\site-packages\setuptools\command\build_py.py:207: _Warning: Package 'multidict._multilib' is absent from the packages configuration.
!!
          ********************************************************************************
          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'multidict._multilib' as an importable package[^1],
          but it is absent from setuptools' `packages` configuration.

          This leads to an ambiguous overall configuration. If you want to distribute this
          package, please make sure that 'multidict._multilib' is explicitly added
          to the `packages` configuration field.

          Alternatively, you can also rely on setuptools' discovery methods
          (for example by using `find_namespace_packages(...)`/`find_namespace:`
          instead of `find_packages(...)`/`find:`).

          You can read more about "package discovery" on setuptools documentation page:

          - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html

          If you don't want 'multidict._multilib' to be distributed and are
          already explicitly excluding 'multidict._multilib' via
          `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
          you can try to use `exclude_package_data`, or `include-package-data=False` in
          combination with a more fine grained `package-data` configuration.

          You can read more about "package data files" on setuptools documentation page:

          - https://setuptools.pypa.io/en/latest/userguide/datafiles.html

          [^1]: For Python, any directory (with suitable naming) can be imported,
                even if it does not contain any `.py` files.
                On the other hand, currently there is no concept of package data
                directory, all directories are treated like packages.
          ********************************************************************************

  !!
    check.warn(importable)
  copying multidict\__init__.pyi -> build\lib.win-amd64-cpython-312\multidict
  copying multidict\py.typed -> build\lib.win-amd64-cpython-312\multidict
  running build_ext
  building 'multidict._multidict' extension
  error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for multidict
Failed to build multidict
ERROR: Could not build wheels for multidict, which is required to install pyproject.toml-based projects
[notice] A new release of pip is available: 23.2.1 -> 23.3.2
[notice] To update, run: python.exe -m pip install --upgrade pip
End of Code

Looks like a duplicate of https://github.com/joaomdmoura/crewAI/issues/121

@JohannesSwift closing this for now but if what you find in #121 don't fix it lmk and we can reopen it


Please update alpine to 3.8

Please update alpine to 3.8 there are some packages that are necessary for a video editing container I'm working on based on your ffmpeg container.

(IDOTOO)
Hello !
Do you want to give it a try ?
see https://github.com/jrottenberg/ffmpeg/blob/master/templates/Dockerfile-template.alpine#L7

Start a branch
update alpine tag
run ./update.py to regenerate the Dcokerfile of all the alpine based versions
push
make a pr
Travis will tell you if all ffmpeg versions compile properly

/close


Problem with uniqueNext generating "circular structure to JSON"

AfoObjectObservable.prototype.uniqueNext = function (newValue) {
        if (JSON.stringify(this.previousValue) !== JSON.stringify(newValue)) {
            this.previousValue = newValue;
            this.next(newValue);
        }
    };

My console:

Handler Error TypeError: Converting circular structure to JSON
at JSON.stringify ()
at AfoObjectObservable.uniqueNext (afo-object-observable.js:112)
at SafeSubscriber._next (database.js:206)
at SafeSubscriber.__tryOrUnsub (Subscriber.js:236)
at SafeSubscriber.next (Subscriber.js:185)
at Subscriber._next (Subscriber.js:125)
at Subscriber.next (Subscriber.js:89)
at Notification.observe (Notification.js:32)
at QueueAction.ObserveOnSubscriber.dispatch (observeOn.js:50)
at QueueAction.AsyncAction._execute (AsyncAction.js:111)
at QueueAction.execute (QueueAction.js:33)
at QueueScheduler.AsyncScheduler.flush (AsyncScheduler.js:36)
at QueueAction.schedule (QueueAction.js:27)
at QueueScheduler.Scheduler.schedule (Scheduler.js:43)
at utils.js:79

This should be solved as of version 2.0.9. Please let me know if you still experience the issue, thanks!

I tested yesterday and works fine!

I am still getting this issue.


This isn't really an issue but its a suggestion

I saw how there is a new website added called hobune and it was right under filmot and playboard and when a video is archived on that website it looks kind of weird. I think we should just put it under #youtubearchive. I also have a few other requests. The machine should search for thumbnails on the way back machine or #youtubearchive and put it right over the way back machine link. Another request would be to use unlistedvideos.com link. (https://unlistedvideos.com/v.php?youtube- (Insert URL)

Thanks, those are good ideas! For Wayback Machine thumbnails, there's already an issue for that: #49.

Hm, unlistedvideos.com seems to just link to the Wayback Machine - is there more to it than that?

It saves some metadata like the description

Example: https://unlistedvideos.com/v.php?youtube-Z96aP43P2hU


Fix package.json for react-native

Environment
React Native / Metro
Reproduction
The lib is not usable in React Native context.
Metro won't resolve properly the correct build in package.json:

He, by default, will look at "main" entry which is the node one.
He also fails because he expects the entry package.json in "exports" (don't ask me why).
(one could be inspired by axios package.json which is well tested for node, browser and react-native)

Describe the bug

React Native app will fail on import http from 'node:http' because it uses the node build.
Then, if corrected, it will ignore the package because package.json is not found in package.json 🙈

Additional context
In package.json, do these updates:
-    "main": "./cjs/node.cjs",
+    "main": "./cjs/index.cjs",

and
  "exports": {
+    "./package.json": "./package.json"

Beware that this should also be done in all unjs (awesomes) packages so that they can be used standalone in React Native.
Logs
No response

Hi @qnp. I think would be nice addition for node-fetch-native/ofetch and direct dependencies of them to expose package.json subpath making it work with react-native 👍🏼
BTW did you find any upstream reference in RN community about this issue? (they should normally handle it better)


Admin users unable to customise template

Please complete the following fields as applicable:
Expected behaviour:
Able to edit customisable funder templates
Actual behaviour:
If you try to add a section, for example, it appears that all works correctly but when you come back to view the template later, all the edits are missing.
Steps to reproduce:
Try to customise BBSRC template, for example. All funder templates at UoE appear to have not been customised so assign yourself to University of Manchester and compare behaviour in BBSRC template vs AHRC template.
The issue appears to be relating to templates that haven't been customised before. To identify these at a glance, check whether the status is set to 'not customised'. If you don't want to rely on the 'status' info only (which has been unrealiable on one occasion), also check the 'actions' available, which should include 'customise'.
I reported that Kerry Miller at UoE tried to customise BBSRC template by adding sample answers and got the same results. It's probably down to the fact that users are not seeing the latest version of the template.

This needs to be resolved by the 17th of April at the latest.

this is the original/global issue. all the pieces are fixed in other issues and the functionality is workign as expected now. closing.


feat!: Add back minimal

Closing as we have officially removed minimal and clients are just using main net


transcoding failed

Hi Don,
It's me again. ;-) I tried converting an MKV I ripped from a Blu-ray and it failed. See attached 2016_World_Series_Game_1_t02.mp4.log
% transcode-video --mp4 2016_World_Series_Game_1_t02.mkv
...
/Users/dave/.gem/ruby/2.3.0/bin/transcode-video: transcoding failed: 2016_World_Series_Game_1_t02.mkv

Here's the MakeMKV screen shot, when I created the MKV:

What have I done wrong this time? :)
-Dave

@ddribin Hello again! :)
The only curious thing in that the .log file you included is the size of the input video: 1280 x 720 pixels. I've never seen that on a Blu-ray Disc before.
Is this actually your entire command line?
transcode-video --mp4 2016_World_Series_Game_1_t02.mkv

Or did you include other options?
Also, can you attach the output of this command?
transcode-video -vv --scan 2016_World_Series_Game_1_t02.mkv

That will tell me much more about your input media.
Thanks.

Yup, that was the whole command. Attached: transcode-video-scan.txt
And here's a MakeMKV screen shot showing that the source is indeed 720p:

FWIW, this is the Blu-ray: http://a.co/bC6jr8Q
Also, how do you get MakeMKV to convert DTS-HD to FLAC? I'm not seeing that option anywhere.

@ddribin Thanks! Unfortunately I can't find any smoking gun in that scan output. Dang.
OK, let's use the --dry-run option and take transcode-video out of the equation. Execute this command:
transcode-video --dry-run --mp4 2016_World_Series_Game_1_t02.mkv

And then copy the output back to the command line to invoke HandBrakeCLI directly.
If that still fails, then we've found a bug in HandBrake. You can then try elimination options to find out what HandBrakeCLI is failing on.
As for converting DTS-HD to FLAC, go to you need to enable "Expert mode" in MakeMKV. You can find that toggle in the "General" tab of the preferences dialog. Once that's enabled, an "Advanced" tab should also appear in preferences. Select "FLAC" as your "Default profile" in the "Advanced" tab.
Then quit and relaunch MakeMKV. Just to be sure. :)

Yup! HandbrakeCLI is crashing: HandbrakeCLI-fail.txt
I did just upgrade to HandbrakeCLI version 1.1.0. I could try downgrading, to see if that helps.
Thanks for that MakeMKV tip! Maybe that's causing problems, too.

@ddribin Before you downgrade, try removing --rate=30 from that HandBrakeCLI command line and see if that fixes the problem. If it doesn't try also removing --pfr.

Still segfaults with both of those removed:
% HandBrakeCLI --input=2016_World_Series_Game_1_t02.mkv --output=2016_World_Series_Game_1_t02.mp4 --markers --encoder=x264 --crop=0:0:0:0 --auto-anamorphic --encoder-preset=medium --encoder-profile=high --encoder-level=3.1 --quality=1 --audio=1 --aencoder=ca_aac --encopts=vbv-maxrate=3000:vbv-bufsize=6000:crf-max=25:qpmax=34

Apparently I already deleted the old version of Handbrake from brew and there's no easy way to get it back. sigh

@ddribin Damn. OK, try this next: replace --audio=1 --aencoder=ca_aac with --audio=none and see what happens.

Still segfaults.

It's crashing here:
(lldb) bt
* thread #6, stop reason = EXC_BAD_ACCESS (code=EXC_I386_GPFLT)
  * frame #0: 0x00000001006dfff0 HandBrakeCLI`rate_estimate_qscale + 31
    frame #1: 0x00000001006dfe03 HandBrakeCLI`x264_8_ratecontrol_start + 891
    frame #2: 0x00000001006fc36c HandBrakeCLI`x264_8_encoder_encode + 6983
    frame #3: 0x000000010003d0be HandBrakeCLI`encx264Work + 750
    frame #4: 0x00000001000727fd HandBrakeCLI`hb_work_loop + 110
    frame #5: 0x0000000100055215 HandBrakeCLI`hb_thread_func + 59
    frame #6: 0x00007fff6595e661 libsystem_pthread.dylib`_pthread_body + 340
    frame #7: 0x00007fff6595e50d libsystem_pthread.dylib`_pthread_start + 377
    frame #8: 0x00007fff6595dbf9 libsystem_pthread.dylib`thread_start + 13

@ddribin Woof. OK, strip that command down to the essentials! Try something simple like this:
HandBrakeCLI --input=2016_World_Series_Game_1_t02.mkv --output=2016_World_Series_Game_1_t02.mp4

Well, so it gets more interesting. The Handbrake app, also version 1.1.0, does not crash. It's chugging away right now:

@ddribin Hmmm, I suspect there might be something odd about your command line environment then. Not sure what to tell you at this point.

I just tried a "brew uninstall" and a "brew install", and it still crashes. Ah, well. I guess I'll just watch the disc, then. ;-)

Perhaps try a nightly build of just the HandBrakeCLI? ( https://handbrake.fr/nightly.php )
By definition a nightly build is expected to be buggier than a regular release, but perhaps the specific bug that you're being bitten by has been resolved either directly or indirectly.
Just thought it was worth a chime in from the peanut gallery. 😸

Thanks, @ttyS0! That's a good idea.

@ddribin So, do you want to open an issue for the HandBrake developers on their project? Otherwise I'm not sure what else we do here.

I just tried the HandbrakeCLI v1.1.0 binary directly from handbrake.fr, and it works. So somehow the version getting built by brew is busted.

@ddribin Excellent! This is probably why I never install HandBrakeCLI itself using brew. :)
OK, I think this is resolved then so I'll close the issue. Although you might want to open one on that particular Homebrew tap.

I opened up Homebrew issue #28139: handbrake v1.1.0 installed via Homebrew crashes, but not the official binary installed from handbrake.fr

@donmelton Thanks again for your help!

@ddribin You are very welcome, sir! Your issues are never dull. Keep them coming. :)

Hey all, I saw the issue on Homebrew and decided to try my 🍀with it.  Interestingly enough, I was able to get HandBrakeCLI via brew to work first try!  I also noticed in the gist-logs that you're using macOS 10.13.5, @ddribin, which I believe is a beta version of macOS, so maybe that has something to do with the issue?

The prebuilt bottles are fine, but you're triggering a source build because you're using a non-standard prefix, and there's something wrong with the source build.
So to be clear:
Prebuilt binary from upstream: fine
Prebuilt binary from Homberew: fine
Current source build: not so fine

This is probably why I never install HandBrakeCLI itself using brew. :)

A bit off the mark given the prebuilt binaries from Homebrew are working fine. It does help to have facts before making snarky comments.

Reported upstream https://github.com/HandBrake/HandBrake/issues/1351

Ditto! Thanks @donmelton, @vinyldarkscratch, and @ilovezfs for getting to the bottom of this.


ARM support

Same as kedacore/keda#779
Release multi-arch docker images with arm64 support.
Should finish kedacore/keda#779 first, creating this as placeholder as there's no existing issue.

Thanks @morganchristiansson.
cc/ @tomkerkhove

Nowadays, KEDA supports ARM64 arch, so I can tackle this issue and do the same as I did there.
Do you think it's useful @arschles ?

@morganchristiansson do you still have a use for this? If so, then @JorTurFer I do think it's useful.

Yeah my home cluster is multi-architecture with Raspberry Pis and 1x fileserver Intel node. But I prefer to run everything on Pis/arm64.
Also I think arm64 is useful for all Raspberry Pi clusters, EKS with AWS Graviton nodes, etc out there

kedacore/keda-add-ons-http not support arm64 architecture yet ?

No it doesn't. The project has been a bit frozen last months:  https://github.com/kedacore/http-add-on/discussions/523
Once it starts again, I added e2e tests to ensure the behavior, but I didn't add ARM64 support yet

I'm new to keda now.


Multiples fixes + improvements

Added CLIENT_VERSION constant
Fixed deprecated php comments "#"
Fixed missing/wrong PhpDoc comments
Fixed missing function lang_get_text()
Fixed undefined method error issueDetail by getIssue()

Ok I'll do it tonight :)
Le 14 déc. 2016 6:52 AM, "Victor Boctor"<EMAIL_ADDRESS>a
écrit :

@vboctor requested changes on this pull request.
Thanks @Geolim4 https://github.com/Geolim4 for your contribution. I've
reviewed the changes and provided some suggestions.
In MantisPhpClient.php
https://github.com/mantishub/MantisPhpClient/pull/1#pullrequestreview-12838081
:

@@ -130,7 +142,7 @@ public function getMantisVersion() {
/**
* Gets categories list of a project.
* @param int $p_project_id Project id must be supplied

* @return Array
 Result array

* @return array
 Result array

Please remove the
tags from phpdocs.
In MantisPhpClient.php
https://github.com/mantishub/MantisPhpClient/pull/1#pullrequestreview-12838081
:

  */

 public function getProjectUsers( $p_project_id, $p_access_id ) {
     return $this->soap_client->mc_project_get_users( $this->username, $this->password, $p_project_id, $p_access_id );
 }

 /**

* Get the list of accessible projects.

* @return array The list of accessible projects.

I generally prefer having a line the describes the function that is
separate from params and return value documentation. I think this is better
than just a return tag. I prefer the function description to focus on the
logic and return tag to focus on the value type returned, array format,
possible values, can be null, etc. Please apply to all methods that don't
have a function description.
In MantisPhpClient.php
https://github.com/mantishub/MantisPhpClient/pull/1#pullrequestreview-12838081
:

@@ -347,15 +363,16 @@ private function getProjectFromProjectTree( $p_project_id, $p_projects ) {
/**
* Checks if a user exists.
*

* @param $p_user array that can contain id, name, or email.

* @param StdClass $p_user array that can contain id, name, or email.

Is it a class or an array? The type and comment conflict. Also when
referring to StdClass/array, it would be great if we specify what
properties we care about in such object/array.
In MantisPhpClient.php
https://github.com/mantishub/MantisPhpClient/pull/1#pullrequestreview-12838081
:

  */

 public function userExists( $p_user ) {
     $t_mantis_version = $this->getMantisVersion();

     if ( version_compare( $t_mantis_version, '1.2.16dev' ) >= 0 ) {
         try {

           $this->soap_client->mc_project_get_issues_for_user( $this->username, $this->password, ALL_PROJECTS, 'reported', $p_user, 1, 1 );

           $this->soap_client->mc_project_get_issues_for_user( $this->username, $this->password, 'ALL_PROJECTS', 'reported', $p_user, 1, 1 );

Remove the quotes around ALL_PROJECTS, and define it as a constant with
value 0.
In MantisPhpClient.php
https://github.com/mantishub/MantisPhpClient/pull/1#pullrequestreview-12838081
:

  * @return true found, false otherwise.

* @throws Exception

Clarify when we throw an exception, e.g. when used against an old version
of MantisBT.
In MantisPhpClient.php
https://github.com/mantishub/MantisPhpClient/pull/1#pullrequestreview-12838081
:

     return $this->soap_client->mc_issue_note_add( $this->username, $this->password, $p_issue_id, $t_data );

 }

/**

@param int $p_issue_id

@param string $p_file_name

@param string $p_file_type

@param string $p_file_path

@return mixed

*/

Indentation of phpdoc is not correct here.
In MantisPhpClient.php
https://github.com/mantishub/MantisPhpClient/pull/1#pullrequestreview-12838081
:

 public function __construct( $id, $name ) {

     $this->id = $id;
     $this->name = $name;
 }

}
+
+if(!function_exists('lang_get_text')){

/**

@param string $str

@return string

*/
function lang_get_text($str){

Instead of defining this. Let's just use the English values directly in
getStandardFiltersList. If the client wants localization, then can do the
localization later based on filter.id or just use the English name via
filter.name.
In MantisPhpClient.php
https://github.com/mantishub/MantisPhpClient/pull/1#pullrequestreview-12838081
:

  */

 private $effective_username;

 /**

* The constructor.

* MantisPhpClient constructor.

* @param string $p_soap_wsdl_url

* @param string$p_username

* @param string $p_password

* @param string string $p_user_agent
*/

public function __construct( $p_soap_wsdl_url, $p_username, $p_password, $p_user_agent = 'MantisPhpClient' ) {

Let's default $p_user_agent to null here. Then inside the constructor if
value is null, set it to MantisPhpClient/CLIENT_VERSION rather than just
MantisPhpClient.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/mantishub/MantisPhpClient/pull/1#pullrequestreview-12838081,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABRTZ0eGxNphUyYExGh4TLNdKUaDjSRrks5rH4QEgaJpZM4LMExX
.

Done :)


syntax highlighting not correct with multiple named return values of the same type.

Hi, it seems that syntax highlighting doesn't correctly work when multiple named return values are used and have the same type.  Attached is an image showcasing this.

Hi, I'm not currently working on this syntax, so while I would very much appreciate and accept a patch, I'm not sure when I will be able to look into this myself.
If you really care about a robust syntax I would point you to this one which seems to be more mature


Warn if "asciidoctor" can not be executed, providing setup instructions

Related to https://github.com/joaompinto/asciidoctor-vscode/issues/1
When AsciiDoctor is not available the extenstion should report it and provide instructions for configure AsciiDoctor's path.

Added on the last commit.


Stuck downloading m3u8 from shahid.mbc.net

Please follow the guide below

You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
Put an x into all the boxes [ ] relevant to your issue (like that [x])
Use Preview tab to see how your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2016.07.30. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

[x] I've verified and I assure that I'm running youtube-dl 2016.07.30

Before submitting an issue make sure you have:

[x] At least skimmed through README and most notably FAQ and BUGS sections
[x] Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

[x] Bug report (encountered problems with youtube-dl)
[ ] Site support request (request for adding support for a new site)
[ ] Feature request (request for a new functionality)
[ ] Question
[ ] Other

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue
youtube-dl is stuck (hung) downloading from shahid.mbc.net
If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add -v flag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):
$ youtube-dl -v 'https://shahid.mbc.net/ar/episode/142785/%D9%88%D8%B9%D8%AF-%D8%A7%D9%84%D9%85%D9%88%D8%B3%D9%85-1-%D8%A7%D9%84%D8%AD%D9%84%D9%82%D8%A9-10.html' -F
[debug] System config: []
[debug] User config: [u'--no-mtime']
[debug] Command-line args: [u'-v', u'https://shahid.mbc.net/ar/episode/142785/%D9%88%D8%B9%D8%AF-%D8%A7%D9%84%D9%85%D9%88%D8%B3%D9%85-1-%D8%A7%D9%84%D8%AD%D9%84%D9%82%D8%A9-10.html', u'-F']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.07.30
[debug] Python version 2.7.12 - Darwin-15.6.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 3.1.1, ffprobe 3.1.1, rtmpdump 2.4
[debug] Proxy map: {}
[Shahid] 142785: Downloading player JSON
[Shahid] 142785: Downloading m3u8 information

Description of your issue, suggested solution and other information
youtube-dl is just hung (stuck) trying to download from shahid.mbc.net (stuck trying to download m3u8 information as above). This was working fine a few days ago, so some new change (either code, or on the website) caused the breakage!

Hello
I followup all the instruction but I have error
C:\Users\Mostafa\Desktop\youtube-dl-master>youtube-dl -v 'https://shahid.mbc.net/ar/episode/142785/%D9%88%D8%B9%D8%AF-%D8%A7%D9%84%D9%85%D9%88%D8%B3%D9%85-1-%D8%A7%D9%84%D8%AD%D9%84%D9%82%D8%A9-10.html' -F [debug] System config: [] [debug] User config: [] [debug] Command-line args: ['-v', "'https://shahid.mbc.net/ar/episode/142785/%D9%88%D8%B9%D8%AF-%D8%A7%D9%84%D9%85%D9%88%D8%B3%D9%85-1-%D8%A7%D9%84%D8%AD%D9%84%D9%82%D8%A9-10.html'", '-F'] [debug] Encodings: locale cp1256, fs mbcs, out cp720, pref cp1256 [debug] youtube-dl version 2016.08.12 [debug] Python version 3.4.4 - Windows-10-10.0.14393 [debug] exe versions: none [debug] Proxy map: {} WARNING: The url doesn't specify the protocol, trying with http [generic] وعد-الموسم-1-الحلقة-10: Requesting header WARNING: Could not send HEAD request to http://'https://shahid.mbc.net/ar/episode/142785/%D9%88%D8%B9%D8%AF-%D8%A7%D9%84%D9%85%D9%88%D8%B3%D9%85-1-%D8%A7%D9%84%D8%AD%D9%84%D9%82%D8%A9-10.html': <urlopen error [Errno 11001] getaddrinfo failed> [generic] وعد-الموسم-1-الحلقة-10: Downloading webpage ERROR: Unable to download webpage: <urlopen error [Errno 11001] getaddrinfo failed> (caused by URLError(gaierror(11001, 'getaddrinfo failed'),))   File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpzyhyyrce\build\youtube_dl\extractor\common.py", line 394, in _request_webpage   File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpzyhyyrce\build\youtube_dl\YoutubeDL.py", line 1996, in urlopen   File "C:\Python\Python34\lib\urllib\request.py", line 464, in open   File "C:\Python\Python34\lib\urllib\request.py", line 482, in _open   File "C:\Python\Python34\lib\urllib\request.py", line 442, in _call_chain   File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpzyhyyrce\build\youtube_dl\utils.py", line 840, in http_open   File "C:\Python\Python34\lib\urllib\request.py", line 1185, in do_open
I didnt install python on my device so I dont know if this make the problem or not
waiting your answer.

it's working without problem.
youtube-dl 'https://shahid.mbc.net/ar/episode/142785/%D9%88%D8%B9%D8%AF-%D8%A7%D9%84%D9%85%D9%88%D8%B3%D9%85-1-%D8%A7%D9%84%D8%AD%D9%84%D9%82%D8%A9-10.html'
[Shahid] 142785: Downloading player JSON
[Shahid] 142785: Downloading m3u8 information
[Shahid] 142785: Downloading video JSON
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 256
[download] Destination: وعد الموسم 1 الحلقة 10-142785.mp4
[download]   0.1% of ~744.34MiB at 189.30KiB/s ETA 01:13:16

@mshmomo in windows, you have to use the double quotes:
youtube-dl "https://shahid.mbc.net/ar/episode/142785/%D9%88%D8%B9%D8%AF-%D8%A7%D9%84%D9%85%D9%88%D8%B3%D9%85-1-%D8%A7%D9%84%D8%AD%D9%84%D9%82%D8%A9-10.html"

Thanks for quick replay
I copy your code but I have another problem

C:\Users\Mostafa\Desktop\youtube-dl-master>youtube-dl "https://shahid.mbc.net/ar/episode/142785/وعد-الموسم-1-الحلقة-10.html"
[Shahid] 142785: Downloading player JSON
[Shahid] 142785: Downloading m3u8 information
[Shahid] 142785: Downloading video JSON
[download] Destination: وعد الموسم 1 الحلقة 10-142785.mp4
ERROR: m3u8 download detected but ffmpeg or avconv could not be found. Please install one.

ERROR: m3u8 download detected but ffmpeg or avconv could not be found. Please install one.

as error said you have to install ffmpeg or avconv.

I have ffmpeg on my pc and I added it like this way
http://s9.postimg.org/g0w7oj4an/screenshot_159.png
but still not working
can you please help me with this?

i didn't try to use it in windows before but i think that puttinng it in PATH can help.
you can follow instruction in http://www.wikihow.com/Install-FFmpeg-on-Windows.

@mshmomo : You have to add the directory where the binaries are placed to the PATH Environment Variable : "set PATH=%PATH%;(your new directory);"

Thanks so much everyone for help
its work now :+1:

I confirm it's working well for me now! Thanks

Kim0 do i need to have plus account to download those episodes?

@ehaab I don't no .. and they worked for me (although some other episodes need it I think)

This plugin is not working. Login fail.
youtube-dl https://shahid.mbc.net/ar/series/%D9%85%D8%B1%D8%A7%D9%8A%D8%A7-2011-%D8%A7%D9%84%D9%85%D9%88%D8%B3%D9%85-1-%D8%A7%D9%84%D8%AD%D9%84%D9%82%D8%A9-1/episode-90511 -u<EMAIL_ADDRESS>-p xxxxxxxxxxxx [Shahid] Logging in WARNING: [Shahid] None: Failed to parse JSON Expecting value: line 1 column 1 (char 0) ERROR: Unable to download JSON metadata: HTTP Error 405: Method Not Allowed (caused by <HTTPError 405: 'Method Not Allowed'>); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

works for free content, if you're trying to download premium content than try to use cookies if it doesn't work than open a new issue.


DCOS-21923: fix(ci): run ee job always (also on PRs)

we do want to test our EE run on every PR we have, npot just on Master (because if we do it on master only, we could break something in a PR (not catched) and then master is red)

We should consider skipping EE part in case we need to ship the code that should go in both EE and OSS at the same time

This might slow us down a bit, but it should never block us.
First we merge OSS part, once this is merged, we can merge EE part.
OSS never relies on EE - or am I wrong?

Its not that easy (sure it isnt :():

No item named frontend/dcos-ui-ee-pipeline/PR-2865 found

we need to figure out how EE can run on a PR 🤔
or maybe we should remove this step for now and try again 😐

I'm dropping this, current solution is good enough. 👍 more details in the JIRA Ticket.


Check that catapult-server manual build instructions are clear enough

Follow docs/BUILD-manual.md in nemtech/catapult-server and see if any issues arise or if instructions are clear enough.

Pull request: nemtech/catapult-server#136

Pull request: nemtech/catapult-server#136


Minecraft won't start

I am using the latest version of both forge and EiraIRC.
Crash Report
It goes to stage 5 then it crashes.
I have no other mods installed.

It works with a modpack I use (it was a 1.7.10 modpack)

Update to the latest Forge version.

Ah, I guess I wasn't updated far enough, thanks!


ACCUMULO-4575 Fixed concurrent delete issue in FATE ops

For #206 only delete table running concurrently with delete table was fixed.   This PR handles the case of other FATE ops running concurrently with delete table.

I ran ITs that exercised each fate op that I changed.

merged 7b9a11a


Inaccurate Step Reference for Application Gateway creation reference

On Step 2, part 5, it references another page (https://learn.microsoft.com/en-us/azure/application-gateway/quick-create-portal) to create an Application Gateway and to start at "Step 9".  However, when you go to this page and scroll through, there is no "Step 9".  Please update the documentation to be more specific as to which step the engineer should begin with when working on this tutorial.
Thank you!

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

ID: a65da150-4de7-a30b-ba22-3dd2e0ff1d09
Version Independent ID: bfd6313c-276d-fb6e-2454-f990ea5097d6
Content: Using load-balancing services in Azure
Content Source: articles/traffic-manager/traffic-manager-load-balancing-azure.md
Service: traffic-manager
GitHub Login: @greg-lindsay
Microsoft Alias: greglin

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

@fmorrison42
I'm going to assign this to the document author so they can take a look at it accordingly.
@greg-lindsay
Can you please check and add your comments on this doc update request as applicable.

Fixing this now. #please-close


Add a paragraph for dependency injection scopes.

I think scope deserves it's own paragraph, explaining it's behaviors and features.
There are texts related to scope scattered in different locations, but no paragraph dedicated to scope itself.
What I think is important to have:

Is scope nestable / hierarchical? What will happen if I call provider.CreateScope().ServiceProvider.CreateScope()? (Currently documented in General IDisposable guidelines)
Disposal of services in scope. (Disposal of services)

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

ID: a4eb702a-d75f-f780-aef1-2e858e14258f
Version Independent ID: 9a183e07-d5fd-1de9-796d-3bc77f07e033
Content: Use dependency injection in .NET
Content Source: docs/core/extensions/dependency-injection-usage.md
Product: dotnet-fundamentals
GitHub Login: @IEvangelist
Microsoft Alias: dapine

Hi 👋 @Genteure
Thank you so much for posting this issue. We really appreciate it.
I think you're asking

Is scope nestable / hierarchical? What will happen if I call provider.CreateScope().ServiceProvider.CreateScope()

The answer is, yes, scopes can be nested.
Here is an updated version of the sample source:
using System;
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;

namespace ConsoleDisposable.Example
{
    class Program
    {
        static Task Main(string[] args)
        {
            using IHost host = CreateHostBuilder(args).Build();

            int scopeCount = 0;
            NestedScoping(host.Services, ref scopeCount);
            Console.WriteLine();

            return host.RunAsync();
        }

        static IHostBuilder CreateHostBuilder(string[] args) =>
            Host.CreateDefaultBuilder(args)
                .ConfigureServices((_, services) =>
                    services.AddTransient<TransientDisposable>()
                            .AddScoped<ScopedDisposable>()
                            .AddSingleton<SingletonDisposable>());

        static void NestedScoping(IServiceProvider services, ref int scopeCount)
        {
            Console.WriteLine($"Nested scope #{++ scopeCount}...");
            if (scopeCount > 3)
            {
                return;
            }

            using IServiceScope serviceScope = services.CreateScope();
            IServiceProvider provider = serviceScope.ServiceProvider;

            _ = provider.GetRequiredService<TransientDisposable>();
            _ = provider.GetRequiredService<ScopedDisposable>();
            _ = provider.GetRequiredService<SingletonDisposable>();

            NestedScoping(provider, ref scopeCount);
        }
    }
}

I updated the disposables as well, adding an _id for traceability.
using System;
using static System.Guid;

namespace ConsoleDisposable.Example
{
    public class ScopedDisposable : IDisposable
    {
        private readonly Guid _id = NewGuid();
        public void Dispose() => Console.WriteLine($"{_id} - {nameof(ScopedDisposable)}.Dispose()");
    }
}

using System;
using static System.Guid;

namespace ConsoleDisposable.Example
{
    public class SingletonDisposable : IDisposable
    {
        private readonly Guid _id = NewGuid();

        public void Dispose() => Console.WriteLine($"{_id} - {nameof(SingletonDisposable)}.Dispose()");
    }
}

using System;
using static System.Guid;

namespace ConsoleDisposable.Example
{
    public class TransientDisposable : IDisposable
    {
        private readonly Guid _id = NewGuid();

        public void Dispose() => Console.WriteLine($"{_id} - {nameof(TransientDisposable)}.Dispose()");
    }
}

When you run this, you'll get something similar to the following:
Nested scope #1...
Nested scope #2...
Nested scope #3...
Nested scope #4...
64312d0e-e459-40e2-921f-52005a06c550 - ScopedDisposable.Dispose()
6b142e64-82f0-460a-a4b6-bf540457df45 - TransientDisposable.Dispose()
04f65f3c-a6db-463a-b866-1b841f4e4671 - ScopedDisposable.Dispose()
05c26759-cce9-4887-98fd-aced06ea9cfe - TransientDisposable.Dispose()
690ebdd0-97b5-4309-987b-3e2bbcecd1a2 - ScopedDisposable.Dispose()
32e71e46-b2ec-437e-b01e-f84d89e9ab72 - TransientDisposable.Dispose()

info: Microsoft.Hosting.Lifetime[0]
      Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
      Hosting environment: Production
info: Microsoft.Hosting.Lifetime[0]
      Content root path: .\source\repos\dotnetdocs\docs\core\extensions\snippets\configuration\console-di-disposable\bin\Debug\net5.0
c46a6f05-8f53-4e6e-9c7c-28547ed415b9 - SingletonDisposable.Dispose()

While this article you posted the issue on doesn't cover much on scoping with regard to DI, the overview has a section dedicated to it here, is that helpful?
Also, there is a full code example that exemplifies scoping here. We decided to break the articles up a bit to isolate their concerns, instead of ending up with massive articles that span too much for consumers.

Hi 👋 @Genteure
Thank you so much for posting this issue. We really appreciate it.
I think you're asking

Is scope nestable / hierarchical? What will happen if I call provider.CreateScope().ServiceProvider.CreateScope()

The answer is, yes, scopes can be nested.
Here is an updated version of the sample source:
using System;
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;

namespace ConsoleDisposable.Example
{
    class Program
    {
        static Task Main(string[] args)
        {
            using IHost host = CreateHostBuilder(args).Build();

            int scopeCount = 0;
            NestedScoping(host.Services, ref scopeCount);
            Console.WriteLine();

            return host.RunAsync();
        }

        static IHostBuilder CreateHostBuilder(string[] args) =>
            Host.CreateDefaultBuilder(args)
                .ConfigureServices((_, services) =>
                    services.AddTransient<TransientDisposable>()
                            .AddScoped<ScopedDisposable>()
                            .AddSingleton<SingletonDisposable>());

        static void NestedScoping(IServiceProvider services, ref int scopeCount)
        {
            Console.WriteLine($"Nested scope #{++ scopeCount}...");
            if (scopeCount > 3)
            {
                return;
            }

            using IServiceScope serviceScope = services.CreateScope();
            IServiceProvider provider = serviceScope.ServiceProvider;

            _ = provider.GetRequiredService<TransientDisposable>();
            _ = provider.GetRequiredService<ScopedDisposable>();
            _ = provider.GetRequiredService<SingletonDisposable>();

            NestedScoping(provider, ref scopeCount);
        }
    }
}

I updated the disposables as well, adding an _id for traceability.
using System;
using static System.Guid;

namespace ConsoleDisposable.Example
{
    public class ScopedDisposable : IDisposable
    {
        private readonly Guid _id = NewGuid();
        public void Dispose() => Console.WriteLine($"{_id} - {nameof(ScopedDisposable)}.Dispose()");
    }
}

using System;
using static System.Guid;

namespace ConsoleDisposable.Example
{
    public class SingletonDisposable : IDisposable
    {
        private readonly Guid _id = NewGuid();

        public void Dispose() => Console.WriteLine($"{_id} - {nameof(SingletonDisposable)}.Dispose()");
    }
}

using System;
using static System.Guid;

namespace ConsoleDisposable.Example
{
    public class TransientDisposable : IDisposable
    {
        private readonly Guid _id = NewGuid();

        public void Dispose() => Console.WriteLine($"{_id} - {nameof(TransientDisposable)}.Dispose()");
    }
}

When you run this, you'll get something similar to the following:
Nested scope #1...
Nested scope #2...
Nested scope #3...
Nested scope #4...
64312d0e-e459-40e2-921f-52005a06c550 - ScopedDisposable.Dispose()
6b142e64-82f0-460a-a4b6-bf540457df45 - TransientDisposable.Dispose()
04f65f3c-a6db-463a-b866-1b841f4e4671 - ScopedDisposable.Dispose()
05c26759-cce9-4887-98fd-aced06ea9cfe - TransientDisposable.Dispose()
690ebdd0-97b5-4309-987b-3e2bbcecd1a2 - ScopedDisposable.Dispose()
32e71e46-b2ec-437e-b01e-f84d89e9ab72 - TransientDisposable.Dispose()

info: Microsoft.Hosting.Lifetime[0]
      Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
      Hosting environment: Production
info: Microsoft.Hosting.Lifetime[0]
      Content root path: .\source\repos\dotnetdocs\docs\core\extensions\snippets\configuration\console-di-disposable\bin\Debug\net5.0
c46a6f05-8f53-4e6e-9c7c-28547ed415b9 - SingletonDisposable.Dispose()

While this article you posted the issue on doesn't cover much on scoping with regard to DI, the overview has a section dedicated to it here, is that helpful?
Also, there is a full code example that exemplifies scoping here. We decided to break the articles up a bit to isolate their concerns, instead of ending up with massive articles that span too much for consumers.

I was thinking something similar to https://autofaccn.readthedocs.io/en/latest/lifetime/
Most other DI libraries have a section if not a page dedicated to scope and everything scope related.
While it shouldn't be a word count competition, some documents in regards to the usage of scope, specially in places that might be different from other DI libraries would really help.
It feels like the documents is too focus on ASP.NET Core, It's mostly focused on how to correctly setup services to use the scope created by ASP.NET Core than how to manage scope yourself.
My point from #22449 also applies here: Some link for how to use B with A in a harmonious, integrated way would really help, after someone understand how B works in standalone.
Though I understand why you might think otherwise.
Group docs related to scope together is more of a "wish" than "want".

To be honest I am thinking two steps forward, and this is a two questions in one issue, what I wanted to ask is indeed nested scope.
I'm going to test something before following up.

I was thinking something similar to https://autofaccn.readthedocs.io/en/latest/lifetime/
Most other DI libraries have a section if not a page dedicated to scope and everything scope related.
While it shouldn't be a word count competition, some documents in regards to the usage of scope, specially in places that might be different from other DI libraries would really help.
It feels like the documents is too focus on ASP.NET Core, It's mostly focused on how to correctly setup services to use the scope created by ASP.NET Core than how to manage scope yourself.
My point from #22449 also applies here: Some link for how to use B with A in a harmonious, integrated way would really help, after someone understand how B works in standalone.
Though I understand why you might think otherwise.
Group docs related to scope together is more of a "wish" than "want".

To be honest I am thinking two steps forward, and this is a two questions in one issue, what I wanted to ask is indeed nested scope.
I'm going to test something before following up.

I think there's a little misunderstanding.
It's not really "nested" or "hierarchical" scope, scope 1 is not the parent scope of scope 2.
Quote last item from General IDisposable guidelines

Use scopes to control the lifetimes of services. Scopes aren't hierarchical, and there's no special connection among scopes.

What I meant is something like Instance Per Matching Lifetime Scope in Autofac
My test code confirms that it indeed does not have special connection among scopes.
IServiceProvider.CreateScope calls IServiceProvider.GetRequiredService<IServiceScopeFactory>().CreateScope();.
using System;
using Microsoft.Extensions.DependencyInjection;
using Xunit;

namespace DiTestWithxUnit
{
    public class UnitTest1
    {
        [Fact]
        public void Test1()
        {
            var serviceCollection = new ServiceCollection();
            IServiceProvider root = serviceCollection.BuildServiceProvider();

            using var scope1 = root.CreateScope();
            IServiceProvider provider1 = scope1.ServiceProvider;

            using var scope2 = provider1.CreateScope();
            IServiceProvider provider2 = scope2.ServiceProvider;

            using var scope3 = provider2.CreateScope();
            IServiceProvider provider3 = scope3.ServiceProvider;

            var factory0 = root.GetRequiredService<IServiceScopeFactory>();
            var factory1 = provider1.GetRequiredService<IServiceScopeFactory>();
            var factory2 = provider2.GetRequiredService<IServiceScopeFactory>();
            var factory3 = provider3.GetRequiredService<IServiceScopeFactory>();

            Assert.Same(factory0, factory1);
            Assert.Same(factory0, factory2);
            Assert.Same(factory0, factory3);
        }
    }
}

> dotnet test

Starting test execution, please wait...
A total of 1 test files matched the specified pattern.

Passed!  - Failed:     0, Passed:     1, Skipped:     0, Total:     1, Duration: 13 ms - DiTestWithxUnit.dll (net5.0)

I think there's a little misunderstanding.
It's not really "nested" or "hierarchical" scope, scope 1 is not the parent scope of scope 2.
Quote last item from General IDisposable guidelines

Use scopes to control the lifetimes of services. Scopes aren't hierarchical, and there's no special connection among scopes.

What I meant is something like Instance Per Matching Lifetime Scope in Autofac
My test code confirms that it indeed does not have special connection among scopes.
IServiceProvider.CreateScope calls IServiceProvider.GetRequiredService<IServiceScopeFactory>().CreateScope();.
using System;
using Microsoft.Extensions.DependencyInjection;
using Xunit;

namespace DiTestWithxUnit
{
    public class UnitTest1
    {
        [Fact]
        public void Test1()
        {
            var serviceCollection = new ServiceCollection();
            IServiceProvider root = serviceCollection.BuildServiceProvider();

            using var scope1 = root.CreateScope();
            IServiceProvider provider1 = scope1.ServiceProvider;

            using var scope2 = provider1.CreateScope();
            IServiceProvider provider2 = scope2.ServiceProvider;

            using var scope3 = provider2.CreateScope();
            IServiceProvider provider3 = scope3.ServiceProvider;

            var factory0 = root.GetRequiredService<IServiceScopeFactory>();
            var factory1 = provider1.GetRequiredService<IServiceScopeFactory>();
            var factory2 = provider2.GetRequiredService<IServiceScopeFactory>();
            var factory3 = provider3.GetRequiredService<IServiceScopeFactory>();

            Assert.Same(factory0, factory1);
            Assert.Same(factory0, factory2);
            Assert.Same(factory0, factory3);
        }
    }
}

> dotnet test

Starting test execution, please wait...
A total of 1 test files matched the specified pattern.

Passed!  - Failed:     0, Passed:     1, Skipped:     0, Total:     1, Duration: 13 ms - DiTestWithxUnit.dll (net5.0)


Adding Kruskal’s Minimum Spanning Tree Algorithm and Dijkstra’s Shortest Path Algorithm in Python

@AkashSingh3031 I want to add Algos for many tracks like Dynamic Programming, Greedy Algos, and some more algo of ML like Random Forest etc. in Python.
This issue is important for me. Please assign this to me asap. It's a request.

@AkashSingh3031 I want to add Algos for many tracks like Dynamic Programming, Greedy Algos, and some more algo of ML like Random Forest etc. in Python.
This issue is important for me. Please assign this to me asap. It's a request.

Ok, I assigned you


feat: method related theme, options, calendars

Please check if the PR fulfills these requirements

[x] It's submitted to right branch according to our branching model
[x] It's right issue type on title
[ ] When resolving a specific issue, it's referenced in the PR's title (e.g. fix #xxx[,#xxx], where "xxx" is the issue number)
[x] The commit message follows our guidelines
[x] Tests for the changes have been added (for bug fixes/features)
[ ] Docs have been added/updated (for bug fixes/features)
[ ] It does not introduce a breaking change or has description for the breaking change

Description

implement instance method

setTheme
getOptions
setOptions
setCalendars
setCalendarColor

Thank you for your contribution to TOAST UI product. 🎉 😘 ✨

@adhrinae
리사이징 PR 머지되서 머지합니다.


Plague tale requiem crash

Hi,
I used the tool to extract Requiem's DPC files, but the program crashed when I was using Noesis to open the extracted file.
I am wondering if it is APT DPC Tool's problem, Noesis's problem, or it is my operation problem.
Thanks,
OldCopper

The noesis plug-in is not compatible with requiem file format. He would have to update it......


Issue in broadcasting

I want to see the users screen and the media  who are all connectedon the same roomid.
How can i acheive that??
Thanks in advance..

https://github.com/muaz-khan/WebRTC-Experiment/blob/master/RTCMultiConnection/demos/video-and-screen-sharing.html


Add user & link counter in homepage

Add counter how many user already registered and how many shortlink already created in homepage to show the growth and the positioning.

[x] Urls - done in #19
[ ] User -- still not found any docs to select the user count

Close for now, since still have no idea how to get the count of users

How about creating something like users table, then in the login page do checking if user is already exists or not in that table by their auth.id.
It's seem to be best approach in my opinion (probably, for now 🤔), even we can add user editable data in there like name, avatar, or anything else.

Yes, from Supabase docs also recommend us to create like a profile table instead of direct from users table which is private and can not be counted directly.
I just afraid this is overkill for now.
Since the feature is not that important, it just nice to have.
But if you can help me on this, maybe we can do that.
If No, I will not doing anything in this ticket.

Perhaps not really overkill if we creating profile table only for counting purpose isn't it.
Sure, will help on my free time.


API Restore archive and upload steps

Fixes https://github.com/silverstripe/cow/issues/54, now that we have recipes implemented. :)
I've also introduced a schema validation utility, based on json-schema.
Restores commands:

cow release:archive
cow release:upload

Added commands

cow release:wait

Config has been added to installer at https://github.com/silverstripe/silverstripe-installer/commit/4df28ad121987153e0edd45d667b16e04f4a8245

@dhensby do you want to review this?

I'm on holiday for another 5 days :/

Closes https://github.com/silverstripe/silverstripe-framework/issues/7187

@dhensby do you have time to review this now? :P


fixed some typos

@BlackScorp Can you please resolve conflicts respectively to latest commits in master bransh?

ah sorry, when i wrote my changes you merged the other branch :D will do this today afternoon

@morevnaproject done

Thank you! ^__^


x/tools/go/ssa: race condition between generic instantiations in separate packages

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

$ go version
go version go1.21.1 linux/arm64

Does this issue reproduce with the latest release?
Yes, this is the latest release.
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE=''
GOARCH='arm64'
GOBIN=''
GOCACHE='/home/ayke/.cache/go-build'
GOENV='/home/ayke/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='arm64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/home/ayke/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/home/ayke'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/local/go1.21.1'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/local/go1.21.1/pkg/tool/linux_arm64'
GOVCS=''
GOVERSION='go1.21.1'
GCCGO='gccgo'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='/home/ayke/src/ayke/sandbox/ssa-generics-race/go.mod'
GOWORK='/home/ayke/src/ayke/go.work'
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -pthread -fmessage-length=0 -ffile-prefix-map=/tmp/go-build428572541=/tmp/go-build -gno-record-gcc-switches'

What did you do?
Check out the code here: https://github.com/aykevl/sandbox/tree/main/ssa-generics-race
Now build this with the race condition checker enabled, and run it a number of times (the race only manifests itself sometimes). In the fish shell, that looks like this:
$ go build -race
$ for i in (seq 1 200); ./ssa-generics-race; end

What did you expect to see?
It should not trigger a race condition.
What did you see instead?
==================
WARNING: DATA RACE
Read at 0x00c0002c4538 by goroutine 27:
  main.main.func3()
      /home/ayke/src/ayke/sandbox/ssa-generics-race/test.go:77 +0x208

Previous write at 0x00c0002c4538 by goroutine 26:
  golang.org/x/tools/go/ssa.(*Function).newBasicBlock()
      /home/ayke/pkg/mod/golang.org/x/tools@v0.13.0/go/ssa/func.go:670 +0x468
  golang.org/x/tools/go/ssa.(*Function).startBody()
      /home/ayke/pkg/mod/golang.org/x/tools@v0.13.0/go/ssa/func.go:163 +0x4ac
  golang.org/x/tools/go/ssa.(*builder).buildFunctionBody()
      /home/ayke/pkg/mod/golang.org/x/tools@v0.13.0/go/ssa/builder.go:2367 +0x29c
  golang.org/x/tools/go/ssa.(*builder).buildFunction()
      /home/ayke/pkg/mod/golang.org/x/tools@v0.13.0/go/ssa/builder.go:2304 +0x5c
  golang.org/x/tools/go/ssa.(*builder).buildCreated()
      /home/ayke/pkg/mod/golang.org/x/tools@v0.13.0/go/ssa/builder.go:2391 +0x4c
  golang.org/x/tools/go/ssa.(*Package).build()
      /home/ayke/pkg/mod/golang.org/x/tools@v0.13.0/go/ssa/builder.go:2584 +0xff4
  golang.org/x/tools/go/ssa.(*Package).build-fm()
      <autogenerated>:1 +0x34
  sync.(*Once).doSlow()
      /usr/local/go1.21.1/src/sync/once.go:74 +0xb0
  sync.(*Once).Do()
      /usr/local/go1.21.1/src/sync/once.go:65 +0x40
  golang.org/x/tools/go/ssa.(*Package).Build()
      /home/ayke/pkg/mod/golang.org/x/tools@v0.13.0/go/ssa/builder.go:2455 +0x58
  main.main.func2()
      /home/ayke/src/ayke/sandbox/ssa-generics-race/test.go:51 +0x38

Goroutine 27 (running) created at:
  main.main()
      /home/ayke/src/ayke/sandbox/ssa-generics-race/test.go:54 +0x464

Goroutine 26 (running) created at:
  main.main()
      /home/ayke/src/ayke/sandbox/ssa-generics-race/test.go:50 +0x3c4
==================

The high-level overview of the code is as follows:

The AST is created for the given packages.
SSA packages are then created from the AST (but not yet built).
The common "value" package is built first.
The packages testa and testb are then built in parallel. After building of testb is complete, it accesses the value.New[int] function that was built as part of testb.
This results in a race condition, apparently because that generic function is still being instantiated in testa.

My guess would be that there is a shared cache of instantiated generic functions, and while the testa package has started building the value.New[int] function and added it to the cache, testb will just use it without waiting for it to be finished building.
It is possible there is some invariant I have violated in my code, but if I have, I'm not sure what that would be. While building dependencies of packages first seems reasonable, I don't see why sibling packages would need to wait until the other is finished before accessing instantiated generic functions.

While building dependencies of packages first seems reasonable, I don't see why sibling packages would need to wait until the other is finished before accessing instantiated generic functions.

The current implementation builds until you reach a fixed-point of created functions. It awards the job of building an instantiation to the first ssa.Package that caused the creation of the instantiation. The other packages can then refer to the fixed parts of the *ssa.Function that was created and those packages those do not have to wait. The fixed-point was introduced to eliminate dead-locks for that generics+wrappers introduced.
I think an assumption got introduced that one would either do one ssa.Package or all ssa.Packages in an ssa.Program. These are the two main supported modes. So to support this one would need to delay returning from creating the *ssa.Package until all of the potentially referenced generic functions have finished building on other goroutines.
This is clearly a race though. The most likely answer will be to wait until building value.New[int] is done before testb is done. The simplest form will probably be to wait until testa is finished. Maybe? I am not sure when I will get to this.

It is worth keeping in mind that generic instantiations can be cyclic. Example https://go.dev/play/p/AsUmICi4Fev. Coming up with a strategy that cannot stall and always succeeds is tricky. So if you have instantiations, (*ssa.Program).Build() is an easy way to wait enough.
@aykevl Maybe it would be helpful to know what is the interface you are hoping to have?

Do you want (*ssa.Package).Build() to wait until all reachable instantiations are done?
Do you want a new (*ssa.Function).Done() that waits until a function is done being built?
Something else?

@aykevl was this same issue also corrected by https://github.com/golang/tools/commit/db513b0915042d9b1ac8cff2c21e191f46578c44

It certainly seems so: the reproducer doesn't reproduce the issue anymore with https://github.com/golang/tools/commit/db513b0915042d9b1ac8cff2c21e191f46578c44 and in fact we've removed the workaround in https://github.com/tinygo-org/tinygo/pull/4337.


Blend modes are very slow (infinite loop?)

The following example file that ships with Inkscape takes a very long time to render with resvg, regardless of backend: blend_modes.svg.gz
rsvg-convert for comparison renders this in less than a second. Tested with rendersvg on git revision 7e32794d78dfe58887a9f30d4a90fa8fbfee03aa. I ran cargo update before compiling, I can attach the Cargo.lock if needed.

Duplicate of #257


A question about image compression in sails js

Sails version:1.0.2
Node version:10.8.0
NPM version:6.2.0
DB adapter name: N/A
DB adapter version: N/A
Operating system: Windows 10

Hello, I just started working with sails and I am beginner in back-end programming. I want to compress images sent from client with multipart/form-data and save them on disk using Sharp ( or any other library you recommend) , but I really don't know how to use skipper for this, can you help me to do this job please?
I searched a lot in stack overflow and github issues but there was no example code that can use in my project.

My issue is a question and i asked it in stackoverflow but nobody answer to my question there, please take a look to my question, thanks.

I added required elements again to comment

OK, i fixed it.

@Alirezamohammadi  - The best way to do this is to intercept the stream for the image upload - have you seen sails-hook-uploads?

@johnabrams7 Thank you for your answer, I will check this package and probably helps me.


Invalid file for Batch API. Must be utf-8 encoded

When I try to use Add-OpeAIFile with the purpuse "batch" like this for example:
$upload = Add-OpenAIFile -File $file.FullName -Purpose "batch"
I receive this error:
Invoke-OpenAIAPIRequest: C:\Program Files\WindowsPowerShell\Modules\PSOpenAI\3.14.0\Public\Files\Add-OpenAIFile.ps1:95:21
Line |
  95 |          $Response = Invoke-OpenAIAPIRequest @params
     |                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | OpenAI API returned an 400 (Bad Request) Error: Invalid file for Batch API. Must be utf-8 encoded

Any suggestions?
Many thanks!
L.

Make sure the file you are about to upload is encoded in UTF-8.
If you try to upload a file saved in a different encoding, such as UTF-16 or UTF-7, you will receive that error.

In my own wrappers, I convert to UTF-8 before uploading and it takes care of this restriction by OpenAI.


[PE-D][Tester E] Not showing changes after nuscontacts.json is updated.

This is probably an edge case test. However, after I updated the data/nuscontacts.json file and added a tag to John Doe, and then proceeded with list command, it did not show the new tag for John Doe, which I think is an expected feature? The tag would also not appear when I add a new person to nuscontact manager. The  data/nuscontacts.json file also did not seem to register the new person after I added him/her.
When I closed the app, all changes I made to the data/nuscontacts.json file was erased.

Labels: type.FeatureFlaw severity.Low
original: tahsinhasem/ped#4

I’ll try to replicate this bug.


"More" link in top navigation can't be accessed without JS

When Javascript fails – eg SRI hash not accepted, network failure, JS blocked, the "More" link in the Whitehall navigation won't open and reveal the links behind it. This blocks users from completing their tasks.
https://govuk.zendesk.com/agent/tickets/2312982

Has also happened in https://govuk.zendesk.com/agent/tickets/2446037

@h-lame Did Whitehall admin disable SRI attributes in the end?

"More" should probably link to a page that shows those navigation options. Then JS can prevent that link from triggering and show the dropdown for users with working JS.

The ticket to fix this this is on our doing board. https://trello.com/c/2wYn3eJi/202-new-document-tab-does-not-display-dropdown (well, it's actually the new document tab but it's the same problem). Would be good to discuss/pair @fofr.

@fofr I haven't removed SRI from the admin template, and it doesn't look like anyone else has either.
If it's causing lots of problems because of publishers working on networks that are monkeying around with the assets then removing SRI (even though it's doing its job properly!) seems like a pragmatic workaround for the problem.  It'd be good to couple that with a spike/reivew to work out the scale of the problem as I suspect it's not just the more tab or new document tab.  I wouldn't be surprised if large parts of whitehall admin were not progressively enhanced at all, so fixing just the bits that have been reported won't be enough.  Once we've completed that review and fixed any problems we find we should be safe to re-introduce SRI safe in the knowledge that any monkeying about with the assets will be blocked, but also the publishers will still be able to get their work done.

@h-lame Completely agree. Suggested to @gpeng that we audit Whitehall for JS only features.

On the backlog :+1: https://trello.com/c/Ly0hzsOT/1098-some-functionality-in-whitehall-admin-doesnt-work-at-all-without-javascript

The More link has now been a hyperlink for some time, and has its own dedicated page.


cli tells user keys are in ./neardev instead of ~/.near

As I understand, near-core places validator keys in ~/.near but shell looks for keys in the project's ./neardev directory.
https://github.com/nearprotocol/near-shell/blob/master/middleware/key-store.js#L7
With this PR, if a user types near --help they will see cli messages explaining this.

Smallest pull request in my life. 🎊

@mikedotexe icebox is basically stuff which never gets done. It's best to fix small issues like these right away instead, or it will keep getting bounced forever.

@mikedotexe icebox is basically stuff which never gets done. It's best to fix small issues like these right away instead, or it will keep getting bounced forever.

Okay. We've had a discussion where Damon is going to create an NEP for what we'd like to see in near shell in the future. I feel like at this point in time it makes more sense to remove that argument and move on to pressing issues. This won't be hard, but I'll get this in soon so we can close this issue and have slightly less confusion for the end user.


Bump to 2.74.0

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

how did you generate these gir files?

Manually, for some reason those generated by CI were broken, but when I generated them myself on a Windows VM, they were fine.
I don't know if this will still be a concern for version 3.

it is, i'm having trouble generating them. if you could help that is the last step.

they too only include macros, but no functions..

Nah can't help you with that, don't have my Windows dev VM anymore.

if you remember the commands i can run them. i just don't really understand g-ir ...

did you just run it "normally" then copy the files over from the build?

I remember just doing the conda build on that VM, and it would have the correct files, so extracted them and put them in the repo.

interesting....


fix recommendation icons in tech and civic tree

Do you know why it's showing so many changes involving whitespace? There's only a few lines of actual changes. I'm using Atom to make my edits.

Using the Compare plugin in Notepad++ there's an option to ignore whitespace changes. You can also just directly compare the old game files to the new ones instead of comparing the mod files to the new base files. Obviously you can't get them anymore if you didn't back them up, so I'll just email you a copy of my backup instead

Oh I see, you mean in the git changes!  Yeah that's probably due to copy-pasting lines or something. You can use a tool like sourcetree to discard changes to a file piecemeal so you can clean those up before committing. It's not a big deal either way, but in the future it may be a good idea to give the diff a onceover before pushing it

Anyways, would it be possible if you could resubmit this PR with a cleaner changelog?

No worries, fixed it myself 👍


Broken links for 3 applications?

Just wanted to highlight that the links for the following apps appear to be broken.
ie. when I run  Get-NevergreenApp -Name "appname" I get nothing returned
Please have a look when you can. Thanks
Cisco Webex
Azure Information Protection
MS PowerBI Report Builder

AIP has been replaced by Purview in the dev branch: https://github.com/DanGough/Nevergreen/commit/534f3b7f2d22b1da2579eec906149d516cee571f
I will check the other two out - going to be away for a few days however, so will give this project some TLC after this weekend. There are quite a few contributions to review!

WebEx and PowerBI now fixed in Dev branch.

thanks Dan!!


Read me

README
As a boot camp student,
I want the prework notes to be structured on a webpage,
So that I can easily find and read the information.
GIVEN the prework project repository,
WHEN I view the README for the repository,
THEN I can see a professional README that provides information on the project and how to use it
Issue #5:

Finished and updated the readme file relevant to the updated prework study guide.

Finished updating the readme file for the prework study guide.


change spaces for tabs

@ambv

Did you lose a bet?

Pull Request Test Coverage Report for Build 836

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 ?%

Totals

Change from base Build 834:
0.0%

Covered Lines:

Relevant Lines:
0

💛  - Coveralls

Pull Request Test Coverage Report for Build 836

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 ?%

Totals

Change from base Build 834:
0.0%

Covered Lines:

Relevant Lines:
0

💛  - Coveralls


Add Adwait Kulkarni

Removed the unwanted line, kindly review.

Thanks for reviewing the changes. Can you merge them?


Error when using Script

I am getting an error when using scripts, and it says that I am unable to connect.

Thanks,
Eric

Thanks for letting us know that there is a problem with the plugin. The main author will be out of town for a bit, so it might take some time before we are able to dive deep into this.
I notice that you are using 'cmd'. Do you get the same result when using 'powershell' ?

@spuder Hello, I tried powershell and got the same result. I am able to connect manually via knife winrm on 5986 and -t ssl though.

@esoc24 are you trying to use knife from linux or from windows computer?

@vvchik Currently RunDeck is running on a linux server, but I can run it through bash/cmd line on linux/windows manually.

question is are you able to connect via knife from linux?

One more question which version of ruby do you use?

Closed due no answering from issuer


Update override.js

brighter foe orange -> red and orange are easier do differentiate

:+1: Nice, it would probably look better! They should merge this! :+1:


SW-4839 Implement onUnAssign logic in the accession view when a user unselects the project from the summary card modal

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

Current dependencies on/for this PR:

main

PR #2149

PR #2155

PR #2156   👈

PR #2157

This stack of pull requests is managed by Graphite.

Merge activity

Feb 12, 1:04 PM EST: @nickgraz started a stack merge that includes this pull request via Graphite.


Fix typo in exn3: “wrap2” -> “wrap3”

The places that used exn3 had the same function for wrap2 and wrap3 so it didn't matter. But dune complained to me about the unused variable.

Thanks for the catch!
(I wrote dune files on my local repo as well, but never bothered to commit them. Maybe we should look into that. But I think having a single build system (make) makes things simpler, especially given that some of the potential settings and build steps in this project are unusual.)


Clarify handling of projected serviceAccountToken permissions

Problem:
Projected Volumes have specially handling for serviceAccountTokens that causes them to disregard defaultMode when all containers in a pod have the same runAsUser. This undocumented behavior led to a bug report in kubernetes/kubernetes#106365
Proposed Solution:
Update projected volumes doc to explain special behavior:

When all containers specified at pod creation have the same runAsUser, the serviceAccountToken will use this user as the file owner and set mode 0600.
Ephemeral containers are never present at pod creation, so ephemeralContainer runAsUser aren't considered in this behavior.

Page to Update:
https://kubernetes.io/docs/concepts/storage/projected-volumes/
Fixes: #32351

/sig auth

Hey @verb,
Are you ready to move forward?


Add flag for nano-raw

Hi,
is it possible to modify the tool to allow users to change the flag of flyes' nano-hq to nano-raw?
Thanks,
Joao

Hi Joao,
Nanophase-generated MAGs are based on long-read assembly, followed by binning and long-read polishing (or short-read polishing if you have). To achieve high-quality/accuracy or complete genome reconstruction, it's recommended that you use long reads generated from Q20+ chemistry. These reads offer superior sequencing accuracy, which is crucial for avoiding INDEL errors. That's why the default assembly setting for flye is 'nano-hq'. However, if you're using ONT reads with high sequencing error and choose to use 'nano-raw', it's unclear how well Nanophase will perform. If you're working with high error-prone ONT reads, you may want to consider a short-read-first approach if short reads are available in your study.
So, currently, sorry that I don't have a plan to add "nano-raw" in nanophase. However, if you really want to try 'nano-raw', the easiest way is to change the relevant commands directly. For example, if you are using 'nanophase meta', the flye-assembly command is in line 217 in the nanophase.meta script: change --nano-hq to nano-raw. Let me know if you need more help.
Best regards


feat(browsers): generate new image with version node16.17.0-chrome105

Closing #744
Current PR
To be able to use cypress:browser image with the latest LTS for node 16.17.0 and the latest chrome version I've created this PR.
Expected result
cypress:browser image with the latest LTS for node 16.17.0 and the latest chrome 105 version.
Actual result
Lack of image with the latest LTS for node 16.17.0 and the latest chrome 105 version.

 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.


Can you support generating table structure?

models.rs
Can you support generating table structure?
A table has 30 fields and 10 tables. It's hard to write manually.

This is already there with diesel print-schema.