A new PyPI release?

Could you make a new release for PyPI, please? That encoding error that you fixed 5 months ago is necessary to make this module work in Python 3, which my team needs.
We're installing the package directly from here for now, but it'd be very nice to be able to install from an official PyPI build.
Thanks!

I would like to second this request. We are updating to python 3 and would like to use this,

If we can get a fix for https://github.com/Alir3z4/django-crequest/issues/7 then I'll make a release right away.

Latest release is out https://github.com/Alir3z4/django-crequest/releases/tag/2018.5.11


Themes

please add support themes edit

Ok, but for this, I don't know what kind of features you guys need? Can you tell me your idea or design? Thanks.

Ok, but for this, I don't know what kind of features you guys need? Can you tell me your idea or design? Thanks.

You can add the function of OpenCore Configurator themes at present.
OCATools is the most convenient for windows use every.
fix mouse preview prompts bug.

Okay, I'll think about it.
For the "Hover Tip", please turn it on in Preferences in the main menu.


Integrate Brennan's new file and folder browser

This work was completed in the hydraulic_hdf branch (i know, poorly named branch). I was able to remove the dependency on consequences assist. The file and folder browser properly bind to the VM path property which enabled me to clean up a bunch of code behind logic.

Looks good.


Upgrades Ruby to 3.2.2., 3.1.4, 3.0.6, and 2.7.8 releases

New Ruby versions were just released

https://www.ruby-lang.org/en/news/2023/03/30/ruby-3-2-2-released/
https://www.ruby-lang.org/en/news/2023/03/30/ruby-3-1-4-released/
https://www.ruby-lang.org/en/news/2023/03/30/ruby-3-0-6-released/
https://www.ruby-lang.org/en/news/2023/03/30/ruby-2-7-8-released/

Hi @FooBarWidget, could you please take a look at this? Thanks!

Looking into it now.

The CI is failing on some disk full error. I'll need to find a way to fix this.

The CI is failing on some disk full error. I'll need to find a way to fix this.

@FooBarWidget seen this before. Maybe this can help? https://github.com/actions/runner-images/issues/2840#issuecomment-1284059930

Thanks for the hint, I got it working using that plus a few other tricks (aa2d618).


Replace rustc_serialize with serde

Maybe switch to TOML for configuration, or just support both.
Blocked by https://github.com/lawliet89/fusionner/issues/19

Fixed in #40


[BUG] nn.dense does not work for dynamic shapes

It looks like the native tvm implementation of nn.dense does not handle dynamic shapes correctly though using libs such as mkl, cublas has no issues. The following is the code to reproduce this issue.
import tvm
from tvm import relay
from tvm.relay import create_executor, Any
import numpy as np

A = relay.var("A",shape=[Any(), Any()],dtype="float32")
B = relay.var("B",shape=[Any(), Any()],dtype="float32")

C = relay.nn.dense(A, relay.transpose(B))
f = relay.Function([A, B], C)
mod = tvm.IRModule.from_expr(f)
for target in ["llvm -libs=mkl", "llvm"]:
    dev = tvm.device(target,0)
    executor = create_executor(kind="vm", mod=mod, device=dev, target=target)
    a = np.random.uniform(size=[10,10]).astype("float32")
    b = np.random.uniform(size=[10,10]).astype("float32")
    res = executor.evaluate()(a,b).asnumpy()
    print(np.sum(res))
    ref = np.matmul(a,b)
    print(np.sum(ref))
    np.testing.assert_allclose(res, ref, rtol=1e-5)

Please note nn.batch_matmul works correctly for such cases not using libs:
import tvm
from tvm import relay
from tvm.relay import create_executor, Any
import numpy as np

A = relay.var("A",shape=[1, Any(), Any()],dtype="float32")
B = relay.var("B",shape=[1, Any(), Any()],dtype="float32")

C = relay.nn.batch_matmul(A, relay.transpose(B, axes=[0,2,1]))
f = relay.Function([A, B], C)
mod = tvm.IRModule.from_expr(f)
for target in ["llvm"]:
    dev = tvm.device(target,0)
    executor = create_executor(kind="vm", mod=mod, device=dev, target=target)
    a = np.random.uniform(size=[1,10,10]).astype("float32")
    b = np.random.uniform(size=[1,10,10]).astype("float32")
    res = executor.evaluate()(a,b).asnumpy()
    print(np.sum(res))
    ref = np.matmul(a,b)
    print(np.sum(ref))
    np.testing.assert_allclose(res, ref, rtol=1e-5)

Confirmed that the test case still reproduces the error on main.


NLTK downloader doesn't work without already downloaded files

It seems that in order to download files, those files had to be downloaded beforehand.
$ python3 -m nltk.downloader all

Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/nltk/corpus/util.py", line 84, in __load
    root = nltk.data.find(f"{self.subdir}/{zip_name}")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/nltk/data.py", line 579, in find
    raise LookupError(resource_not_found)
LookupError:
**********************************************************************
  Resource wordnet not found.
  Please use the NLTK Downloader to obtain the resource:

  >>> import nltk
  >>> nltk.download('wordnet')

  For more information see: https://www.nltk.org/data.html

  Attempted to load corpora/wordnet.zip/wordnet/

  Searched in:
    - '/root/nltk_data'
    - '/usr/nltk_data'
    - '/usr/share/nltk_data'
    - '/usr/lib/nltk_data'
    - '/usr/share/nltk_data'
    - '/usr/local/share/nltk_data'
    - '/usr/lib/nltk_data'
    - '/usr/local/lib/nltk_data'
**********************************************************************

Even by importing the module it shows this error message:
> python3
Python 3.11.11 (main, Dec 04 2024, 21:44:34) [GCC] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import nltk
Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/nltk/corpus/util.py", line 84, in __load
    root = nltk.data.find(f"{self.subdir}/{zip_name}")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/nltk/data.py", line 579, in find
    raise LookupError(resource_not_found)
LookupError:
[...]

Version: 3.9.1-2.2

Hmm, I see; thanks for the reply! Unfortunately, managing python packages is very cumbersome when it has to race with the OS package manager; it can cause this issue.
I'll close this bug then.


404 causes DOMException

I'm using the latest version of Turbo (beta 4 at the time of writing) and I've noticed that when you hit a 404 page it causes the following error in the console:
Uncaught DOMException: Failed to execute 'define' on 'CustomElementRegistry': the name "turbo-frame" has already been used with this registry

This only happens when hitting a 404 from another link... if you refresh the non existent page the error doesn't happen.

If it helps here's a screenshot of exactly what happens in the console when the navigation to the non existent page happens:

I'm having the same problem.

This looks to be a similar issue from Turbolinks: https://github.com/turbolinks/turbolinks/issues/179
Essentially Turbo handles 404/500 pages differently, and ends up re-rendering the page and initializing itself twice which leads to these errors. Unfortunately, the monkey patch from the issue above doesn't work on Turbo (or I can't get it to work at least)

I opened https://github.com/hotwired/turbo-rails/issues/249 as this seems to be more of an issue with turbo-rails than Turbo, and the specific use case we're able to replicate on is using a custom error controller that has the same layout as our main application which includes turbo. Because the ErrorRender in Turbo reloads both the body and head, it leads to turbo-rails and turbo being initialized twice. It seems that Turbo is protected from this (here), but turbo-rails is not.

Same problem with 7.0.1

I am seeing the same issue in a non-Rails setup

Same problem with 7.1.1

I fixed this with data-turbo-eval="false" on the script tag with turbo bundle
<script src="{% static 'viewflow/js/turbo.es5-umd.js' %}" data-turbo-eval="false"></script>

This one is indeed a showstopper for anything handling 4* and 5* errors.
As @clinejj observed above, the monkey patch didn't work and it'll never work with Turbo. It turns out that HttpRequest method was removed altogether. But rather than he also pointed out, it's not turbo-rails related. My PHP app also suffers with the same 4* and 5* handling issues.
It would be really nice from Turbo devs if they could elaborate a bit on the reasoning behind to HttpRequest removal. It would even nicer from their part if a workaround could be provided... It doesn't even need to be funcional code tho. A shallow overview would suffice for devs like us to figure out the rest.

I changed import * as Turbo from "@hotwired/turbo" to require("@hotwired/turbo"), the problem is gone.

I'm having the same problem with "@hotwired/turbo": "^7.1.0", not on Rails framework.
After changing
import "@hotwired/turbo"

from index.js to
if (!window.Turbo) {
	require("@hotwired/turbo")
}

The problem is gone, but the 404 page would flash a bit, not as smooth as normal pages.


ADR implementation, JSON-LD decoupling and content negociation support

Now uses a variation of the ADR pattern done with Symfony (I'll make a blog post about that soon)
There is no more coupling to JSON-LD and Hydra: the bundle can now output any format including but not limited to raw JSON, XML or HAL (I'll add an exemple of a custom XML serializer in the tests).
To complete the previous feature, I've added content negotiation capabilities using @willdurand's Negotiation library. (I'll add an exemple in tests too). It means that you can request various representations of the same resource using the Accept header (of course the requested format must be supported by one of the registered normalizer).

@pmjones do you think you can find some time to review this ADR implementation and tell me if it is in scope with the pattern you designed?

It looks great !
The ADR pattern is cool, but I'm glad you let the possibility to use Controllers classes outside (in a big application, ADR might be heavy, and has some drawbacks).

@dunglas, by implementing the ADR pattern you got rid of Controllers. I don't see the the big gain is this, can you explain plz ?

@dupuchba take a look at the link I mentioned in the description: https://github.com/pmjones/adr
General gains are:

Easier to unit test
Explicit dependencies
Better respect of the Single Responsibility Principle / smaller code units

Here, it comes with a bigger immediate gain: it makes it easy to decouple from JSON-LD and Hydra. Now you can return as format as you want with ApiBundle such as XML or Protobuf without touching the core.
And as @ogizanagi pointed, you can still use standard Symfony controllers for your userland code if you like.

Hi @dunglas -- looking at it now!

@pmjones thank you!
@ogizanagi thanks for the review, issues fixed.

Hi again @dunglas -- I gave it a quick 5-minute scan, and the only obvious "wrong" thing I saw was that a couple of actions do validation. My opinion is that validatiing/sanitizing of inputs is more properly a domain concern, not an action concern.
I was not able to see where the response actually gets built, but my guess is that it's part of the event dispatching system. As long as the action, domain, and responder portions are separated from each other, your work fits the pattern. As far as I can tell, this looks good!
p.s. Eventually, you're going to realize later that your actions all look the same: collect input (extract Request attributes to a ResourceType), retrieve a Domain result (get an Item from a DataProvider using the ResourceType), and pass the Domain result to a Responder (pass the Item to the EventDispatcher). At that point you'll be able to collect all the differences to a properties and/or injected dependencies, and the number of action classes will become greatly reduced (maybe even down to just 1 generic action class).

I was not able to see where the response actually gets built, but my guess is that it's part of the event dispatching system.

@pmjones : The response is indeed built in the ResponderViewListener

Thank you very much for the review and advices @pmjones!
I've trouble seing how to merge all actions in a single generic one. The process for all actions of the CRUD is a bit different. We can achieve this in a single class but it will lead to a large number of if/else  in the action (collection or item? read or write operation?...). In the end having separate classes for each using dependencies and traits for everything that can be factorized sounds better to me what do you think?

I've trouble seing how to merge all actions in a single generic one.

Right -- it's not an immediate goal to seek, it's something I think you are likely to notice over time, especially as you move more activity down into the domain layer, or over into the responder layer.

For those interested in content negotiation, I've just just a demo / test to the PR: https://github.com/dunglas/DunglasApiBundle/pull/191/files#diff-af37d9fff8b64adda0485128ebf627c1R1. It could be interesting to move the XML responder to the core or at least in a dedicated doc entry. What do you think?

@dunglas : Great ! I think it should go to a dedicated doc entry, but I don't feel it's needed in the core due to the bundle purpose at first (which is using JsonLd and Hydra).

The bundle has been renamed some times ago to reflect that it can support other formats (any format). Maybe that this XML support is too limited to be included in core but I don't exclude to add Turtle, RDF-XML, HAL, SIREN or Protobuf support for instance in the core. This not a problem because both can be used together thanks to content negotiation.

@dunglas I think it can be a huge success :-)

Right, but one step after another ;)
I think it is a very nice aim nonetheless. "ApiPlatform" would already a perfect name for this.

I am trying to be positive !!!

Two steps further:

Externalized the validation an event listener (allow to use another validator than the Symfony one and to validate data in the domain layer as suggested by @pmjones)
Consequence of 1: the custom event system is not necessary anymore. Everything can now be handled using standard Symfony kernel events (code simplification and more powerful than before). Only one drawback: the name of the Symfony event used (kernel.view) sounds a bit strange for that use but I can live with it.

ping @sroze @theofidry

Great work. For the even system it's not much so no problem, a little mention in the changelog is welcomed. I'll take a deeper look tomorrow to see what's going to change.

Nicely done. The Post and Put actions still look a little clunky to me, but whatever -- it's still an improvement. (I think you are starting to see what I meant earlier about "all your actions looking the same" -- Delete, GetCollection, and GetItem are very similar now. :-)

I don't like so much not having custom events dispatched directly in concerned actions:

We loose "accuracy". It's not as easy to identify the event and which action triggered it.
A newcomer will not easily understand that the controllerResponse is the resource item(s) where a getData method is simpler. Same with $event->getRequest()->attributes->get('_resource_type') and getResource.
ManagerViewListener and ValidationViewListener will always be called for userland actions (if we use the ADR pattern instead of controller classes). It might not always be wished. I think it also brings some kind of "magic" at this point.

I actually like the ManagerViewListener and ValidationViewListener idea, but if it relies on dunglas_api dedicated events. :/

@ogizanagi for point 1, a new comer can still php app/console debug:event-dispatcher which has been specifically dedicated for that.
Concerning the "magic" part of this, it's indeed a drawback of using listeners this way. We could always write a doc about "how things work" internally :-).

for point 1, a new comer can still php app/console debug:event-dispatcher which has been specifically dedicated for that.

Yes, but something like app/console debug:event-dispatcher api.pre_update is more accurate and obvious than app/console debug:event-dispatcher kernel.view.
However, we don't need as much events as before. A simple dunglas_api event might be sufficient.

I understand your concerns about readability but the custom event system as other drawbacks:

more code to maintain and test for no real reason
more chances to have bugs in that subsystem
performance decrease (more events dispatched and handled for no real reason)
native events are more powerful (they give access to the request and the response)

Validation and Doctrine are called every time but they return very early if they are not applicable (not the good HTTP method). It doesn't impact performance (at least less than dispatching a new event IMO).
For the readability / convenience issue I think that a doc with a pretty graphic will be better than a good name. We need the doc anyway even if we keep custom events.

:+1: with @dunglas on this, IMO, pros are quite thin to use a custom event system. Besides, as we said, if a user wants to see how things work internally we should help him with a nice doc on internals.

@pmjones: I got your point now and I tried to create an unique generic action. I just pushed it. Indeed it allows to avoid some code duplication. What do you think about it?

@dunglas:

I got your point now and I tried to create an unique generic action. I just pushed it. Indeed it allows to avoid some code duplication. What do you think about it?

This is a bit of a step backwards. The __invoke() method now does routing based on the request, and combines what should be separate actions. The rule-of-thumb in actions is that if you have a conditional (if or switch/case) the action is doing too much.
Remember the specific duties of the action: collect input, send input to a Domain layer, get back a Domain result, send the result to a Responder. Essentially, every action should look something like this:
$resourceType = $request->attributes->get('_resource_type');
$method = $this->domainMethod; // getCollection, getItem, etc
$result = $this->dataProvider->$method($resourceType);
return $result;

That really is all. Leave validation, exception-throwing, and everything else to the Domain layer; leave anything related to formatting to the Responder layer. Each action should be so simple, so dumb, that practically nothing interesting happens in it.

It makes sense I'll revert the last commit but I fail to understand what you was thinking about with the one-class action.

@dunglas IMO, @pmjones was more talking about natural refactoring while adding more action in a parent class for example. Right ?

I fail to understand what you was thinking about with the one-class action.

(/me nods) That's OK -- it will reveal itself to you in time.
Essentially what will happen is that, because each different action has exactly the same steps, but uses only (1) a different set of inputs for the the domain, and (2) a different domain method or domain object, you will end up seeing a way to have only one class, maybe a base class that you end up extending, and inject different input-collection objects and domain objects when you instantiate it. You might see what I mean if you look at Arbiter.
But really, all of that is for later. For now, concentrate on getting a good separation of layers.

@dupuchba Correct. :-)

Thanks for the feedback @pmjones. I understand better now.


Fixes for SBCL 1.5.6

Updates #401
WIP to fix quilc issues related to SBCL 1.5.6.
Build is now working, but test suite still fails with memory corruption error.

Disable zap-info in build-app.lisp on SBCL 1.5.6+

See also
https://github.com/rigetti/quilc/issues/397
https://github.com/rigetti/qvm/issues/168
https://github.com/rigetti/qvm/pull/172


commiting after making adding a new variable in /server/config/index.…

…js as bids_ttl and replacing all hard coded value of redis.expire in bids.js to the config file values
changing hardcoded value in bids.js with value present in /config/index.js
Description
adding bids_ttl value in config object and replacing all the hardcoded value of redis.expire
Related Issue

Motivation and Context

How Has This Been Tested?
I have executed command "npm test" and build was completed successfully.
environment: Ubuntu
Screenshots (if appropriate):
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

Hi @rohanraj7316
Thank you for taking the time to contribute. Unfortunately someone has already taken this issue and sent a pull request for it... the good news is that there are always more open issues we need help with 👍
Also, may I suggest checking the process you used to submit the pull request. For some reason your pull request marked every single file in the project as modified, this isn't how it normally looks.
Thanks again. I hope to see more contributions from you in the future.


Fix for ANSIENG-912

Backporting the changes from 6.2.1 as part of 5fe1b992f6d0efa86dcb31b075e7b278a783dbf2
Description
vars label was missing in 6.2.0 which got added in 6.2.1
This PR backports the changes from 6.2.1 to 6.2.0
Fixes # ANSIENG-912
Type of change

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

How Has This Been Tested?
No tests has been run for this change
Checklist:

[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] Any dependent changes have been merged and published in downstream modules
[ ] Any variable changes have been validated to be backwards compatible

@nsharma-git Please fill in the complete templated.  We also typically do not backport changes to -post releases as they are considered static/released.  Provided this is updated in the 6.2.x branch, we should probably close this out.  Happy to discuss further, as this should be apart of our discussion around release process.


⚠ Bofrost.be has degraded performance

In 0a76866, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1268 ms

Resolved: Bofrost.be performance has improved in ff700cf after 6 minutes.


zerodiff

Thank you for your contribution to the development! The auto-check of the changes you have made will begin after the internal developer checks the changes you have made and adds the "ok-to-test" label to this PR.


Empty State Component (1/7)

We have the HTML/CSS version built. Now need to implement in frameworks.

[x] CSS
[x] React
[x] React Examples
[x] Vue 3
[x] Vue Examples
[x] Svelte
[x] Svelte Examples
[x] Angular
[x] Angular Examples
[x] Site Docs
[x] Publish frameworks

Done


chore: release 1.2.159

:robot: I have created a release *beep* *boop*
1.2.159 (2022-08-16)
Bug Fixes

re-trigger release (36805d7)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/werf/werf/releases/tag/v1.2.159 :sunflower:


Navbar does not immediately update after changing scene

Version
Tell us which versions you are using:

react v16.8.2
react-native-router-flux v4.0.0
react-native v0.59.5

Expected behaviour
I expect that the navbar value change instantly when I change my current scene.
Actual behaviour

Steps to reproduce
My router
const AppRouter = () => {
  return (
 <Router>
      <Scene
      navBar={NavBar}
      key="root">
        <Scene
        key="MyFirstActivity"
        component={MyFirstActivity}
        title="MyFirstActivity"
        initial
        />
        <Scene
        key="MySecondActivity"
        component={MySecondActivity}
        title="MySecondActivity"
        />
      </Scene>
    </Router>
  );
}

My navbar
const NavBar = () => {
  return (
    <View style={styles.container}>
      <Text style={{fontSize: 40}}>
        {Actions.currentScene}
      </Text>
    </View>
  );
}

I have found a solution.
What were wrong:
Actions.currentScene is set after the rendering of the activity so the navBar rerender a second time when the activity is fully rendered.
My solution:
With react-native-router-flux, the title of each scene is passed as props named title so it's working by replacing Actions.currentScene by this.props.title
note: you can change the title dynamically by passing a props named title.


"No preset version installed for command clear" after installing python 3.12.3 and anaconda3-2024.02-1

Provide environment information
➜  ~ asdf info
OS:
Darwin MiMacBookAir.local 23.4.0 Darwin Kernel Version 23.4.0: Fri Mar 15 00:12:41 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T8103 arm64

SHELL:
zsh 5.9 (x86_64-apple-darwin23.0)

BASH VERSION:
3.2.57(1)-release

ASDF VERSION:
v0.14.0

ASDF INTERNAL VARIABLES:
ASDF_DEFAULT_TOOL_VERSIONS_FILENAME=.tool-versions
ASDF_DATA_DIR=/Users/USERNAME/.asdf
ASDF_DIR=/opt/homebrew/opt/asdf/libexec
ASDF_CONFIG_FILE=/Users/USERNAME/.asdfrc

ASDF INSTALLED PLUGINS:
java                         https://github.com/halcyon/asdf-java.git master 8aef0e7
node                         https://github.com/asdf-vm/asdf-nodejs.git master c5b7c40
python                       https://github.com/asdf-community/asdf-python.git master 5e277e2

To Reproduce
asdf install python 3.12.3
asdf global python 3.12.3
asdf install python anaconda3-2024.02-1
asdf global python anaconda3-2024.02-1
asdf global python 3.12.3
Restart terminal or $SHELL
enter "clear"
I found closed but related issues on this matter:
https://github.com/asdf-vm/asdf/issues/414
https://github.com/asdf-community/asdf-python/issues/31
Describe the Bug
After installing python 3.12.3 and anaconda3-2024.02-1 then switching back and forth between versions; the "clear" command on terminal does not work. It does not clear my terminal screen but receive an error message.
➜  ~ clear
No preset version installed for command clear
Please install a version by running one of the following:
asdf install python 3.12.3
or add one of the following versions in your config file at /Users/USERNAME/.tool-versions
python anaconda3-2024.02-1
➜  ~ cat .tool-versions
node 20.12.2
python 3.12.3
java zulu-javafx-21.34.19
This error does not occur when I switch back to anaconda3-2024.02-1 from python 3.12.3 and enter "clear" when I have set python 3.12.3 globally.
This also occurred on my Ubuntu machine. However, I "sudo apt reinstall ncurses-bin" and this fixed the issue for ubuntu.
Work around for macOS:

add and alias: alias clear="/usr/bin/clear"
Not recommended by Homebrew but after installing ncurses via homebrew:
brew link --force ncurses
echo 'export PATH="/opt/homebrew/opt/ncurses/bin:$PATH"' >> ~/.zshrc
$SHELL

Expected Behaviour
After switching from anaconda to python 3.12.3 by using the asdf global command I should be able to clear my terminal screen without any issues. I am not sure why asdf shims or has a clear or why it supersedes the system's clear.

It's worse than just clear, both anaconda and miniconda provide many executables that shadow system tools.
$ ls .asdf/installs/python/miniconda3-latest/bin
2to3          clear                idle          lz4cat            pcre2grep          sqlite3_analyzer                xmllint
2to3-3.12     compile_et           idle3         lzcat             pcre2_jit_test     tabs                            xmlwf
acountry      conda                idle3.12      lzcmp             pcre2posix_test    tclsh                           xz
activate      conda2solv           infocmp       lzdiff            pcre2test          tclsh8.6                        xzcat
adig          conda-content-trust  infotocap     lzegrep           pip                testsolv                        xzcmp
ahost         conda-env            installcheck  lzfgrep           pip3               tic                             xzdec
archspec      cph                  jsondiff      lzgrep            pkgdata            toe                             xzdiff
bsdcat        c_rehash             jsonpatch     lzless            pydoc              tput                            xzegrep
bsdcpio       curl-config          jsonpointer   lzma              pydoc3             tqdm                            xzfgrep
bsdtar        deactivate           k5srvutil     lzmadec           pydoc3.12          tset                            xzgrep
bunzip2       derb                 kadmin        lzmainfo          python             unlz4                           xzless
bzcat         distro               kdestroy      lzmore            python3            unlzma                          xzmore
bzcmp         dumpsolv             kinit         makeconv          python3.1          unxz                            zstd
bzdiff        genbrk               klist         mamba-package     python3.12         unzstd                          zstdcat
bzegrep       gencfu               kpasswd       mergesolv         python3.12-config  uuclient                        zstdgrep
bzfgrep       gencnval             krb5-config   ncursesw6-config  python3-config     wheel                           zstdless
bzgrep        gendict              ksu           nghttp            python-config      wish                            zstdmt
bzip2         genrb                kswitch       nghttpd           repo2solv          wish8.6
bzip2recover  gss-client           ktutil        nghttpx           reset              x86_64-conda_cos7-linux-gnu-ld
bzless        icu-config           kvno          normalizer        sclient            x86_64-conda-linux-gnu-ld
bzmore        icuexportdata        lz4           openssl           sim_client         xml2-config
captoinfo     icuinfo              lz4c          pcre2-config      sqlite3            xmlcatalog

All I really want out of all this is conda. Really, since conda requries shell integration, what I really need is to execute conda 'shell.zsh' 'hook' (for whichever shell) one time when the environment is activated, and once when the environment is deactivated.
It might be possible to run that hook one time, and just tweak the CONDA_EXE and CONDA_PYTHON_EXE environment variables in the shim? Problem is that the hook defines a function conda() that would shadow the shim itself.


Mobile header covers article title.

See image

This only happens in the embedded slack browser btw. might be using a different webkit version or something. Maybe CSS prefixing not working?

Closing for now, doesn't seem to be present anymore


Unable to run 'debug' on MacOS 10.12.2 due to "error waiting for thread stop" and others

What version of Delve are you using (dlv version)?

I tried three versions:

Latest brew install

Version: 0.12.1
Build: v0.12.1

git checkout and built from v0.12.1 tag:

Version: 0.12.1
Build: 449b276fe1ce7e20a0c7ffffbdd47d97f40022a1

git checkout of master (at d89d115ef9efb3acdb3a1052ac058b79f36a4940):

Version: 0.12.1
Build: d89d115ef9efb3acdb3a1052ac058b79f36a4940

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

go version go1.7.5 darwin/amd64

What operating system and processor architecture are you using?

Darwin / Mac OS 10.12.2
2.5 GHz Intel Core i7

What did you do?

Created a main.go in $GOPATH/src/github.com/itzg/hello-gworld that contained
package main

import (
	"fmt"
	"time"
)

func main() {
	fmt.Println("Hello, gworld and now I sleep")

	start := time.Now()
	time.Sleep(5 * time.Second)

	fmt.Println("I slept for ", time.Now().Sub(start))
}

and ran
$GOPATH/bin/dlv debug

What did you expect to see?

Not sure since I haven't ever been able to run delve on Mac OS.

What did you see instead?

➜  github.com/itzg/hello-gworld $GOPATH/bin/dlv debug
could not launch process: Process 46258 has exited with status 0
➜  github.com/itzg/hello-gworld $GOPATH/bin/dlv debug
could not launch process: could not suspend thread 10755 (ipc/send) invalid destination port (additionally could not update thread list: could not get thread count)
➜  github.com/itzg/hello-gworld $GOPATH/bin/dlv debug
could not launch process: error waiting for thread stop -268435459
➜  github.com/itzg/hello-gworld $GOPATH/bin/dlv debug
could not launch process: error waiting for thread stop -268435459

This is a continuation of #696

go version go1.8 darwin/amd64
Delve Debugger
Version: 0.12.1
Build: bb07fc36b9df2b9baec074ee8a48b1941f049f55

It works on my mac OSX 10.12.3, are both too higher versions. I have no idea : ( but still suspect the reason is compatibility between dlv and go.

Same versions of go and OSX for me, but tried a slightly newer delve yesterday. I am using a company managed machine and I saw elsewhere mentions of virus scanner conflicts...perhaps that's my root cause.

I'm seeing the same problem on a company managed Mac. I'm using the version of dlv (0.12.1) shipped with JetBrain's Gogland IDE and go 1.8.
It seems to work sporadically when I try to debug a package. It randomly alternates between working and the could not launch process: error waiting for thread stop -268435459 message.
FWIW, I'm not seeing the same problem on my personal Mac, which uses a nearly identical setup, so may be something with the managed install interfering.

@itzg I ignored the AV mentions before, but seeing you bring it up again I just tried quitting Kaspersky on my work laptop and suddenly it started working OS 10.12.3, go 1.7.4 and dlv 0.12.1 (from a brew install) So thanks!

The 1.0.0-rc.1 version that is bundled with IntelliJ EAP 2017.2 / Go plugin has resolved this issue for me. I am also running 10.12.5 now, so I'm not sure which of the two changes fixed it.


jest failing with error 'utils.deepCopy is not a function'

Commit 64b0edd introduced some breaking changes that causes our tests to fail with the error:
TypeError: utils.deepCopy is not a function
at module.exports (/home/bamboo/bamboo-agent-home/xml-data/build-dir/PCI-CIHTML353-RT/node_modules/jest-cli/src/environments/installCommonGlobals.js:34:31)

Bumping jest-cli to 0.10.2 seems to resolve the issue.

Dupe of #882


Show correct status when manifest permission has been removed

Closes https://github.com/fregante/webext-permission-toggle/issues/39

cc @aspiers
Default (unchanged)
Manifest granted access to the GitHub.com domain; the toggle is disabled

Manifest permission removed (old behavior)
The toggle was checked and disabled even when the user removed access to the extension.

Manifest permission removed (this PR)
The toggle is unchecked and enabled if the user removed access. This reflects reality and gives the user an easy way to restore the permission.

Known bugs

The toggle stays temporarily active/clickable after restoring the permission, but the browser doesn't let you call permission.remove() on that, so the user gets: Error: You cannot remove required permissions. 🤷♂
https://github.com/fregante/webext-permission-toggle/issues/36

I really wish the browser would enable their own toggle so we didn't have to use this package at all. The UI is there, but disabled. 😒  "x.com" should be clickable, but isn't.

Nice work, thanks!


Simplify convoluted vector indexing

Clang native vector types support indexing, and HIP vector types expose a ::data member which represents the underlying native vector, so we might as well use it.

So, you revert this change https://github.com/ROCmSoftwarePlatform/rocRAND/issues/32

How does it affect performance?
This change won't work on CUDA.

No idea about that change, it's very interesting indeed. Performance is neutral at worst, as it actually saves on a needless min calculation associated with the switch. Last time I checked this is primarily AMD SW, so I have to admit lacking any particular interest in CUDA. Not sure if NV is investing in maintaining rocRAND for CUDA either but... different kettle of fish. TL;DR I expect that the macro guarded version will work there as well.

make benchmark_rocrand_kernel && benchmark/benchmark_rocrand_kernel --engine philox
uniform-uint
Was:
gfx900
      Throughput =  292.590 GB/s, Samples =   73.147 GSample/s, AvgTime (1 trial) =    1.709 ms, Time (all) =   34.178 ms, Size = 134217728

gfx803
      Throughput =  151.476 GB/s, Samples =   37.869 GSample/s, AvgTime (1 trial) =    3.301 ms, Time (all) =   66.017 ms, Size = 134217728

gfx906
      Throughput =  228.957 GB/s, Samples =   57.239 GSample/s, AvgTime (1 trial) =    2.184 ms, Time (all) =   43.676 ms, Size = 134217728

Now:
gfx900
      Throughput =  356.857 GB/s, Samples =   89.214 GSample/s, AvgTime (1 trial) =    1.401 ms, Time (all) =   28.022 ms, Size = 134217728

gfx803
      Throughput =  183.153 GB/s, Samples =   45.788 GSample/s, AvgTime (1 trial) =    2.730 ms, Time (all) =   54.599 ms, Size = 134217728

gfx906
      Throughput =  267.255 GB/s, Samples =   66.814 GSample/s, AvgTime (1 trial) =    1.871 ms, Time (all) =   37.417 ms, Size = 134217728

So this change improves performance (I suppose, to performance before that workaround with switch in #32).
Can we rely on the data field (that it won't become private, renamed etc.)?

Should be safe, no vector type changes incoming anytime soon, if ever.

I've changed the target branch to develop (develop_stream is supposed to be a branch for merging changes from our private repo).
NOTE: We should merge it using squashing


[Rancher UI] Cosmetic improvement for previewing Helm templates

What kind of request is this (question/bug/enhancement/feature request):
Cosmetic improvement to improve Helm template legibility for all browser window widths (vs just smaller widths)
Steps to reproduce (least amount of steps as possible):

Navigate from the Rancher main menu Apps

Click Launch on the upper right

Scroll down and pick a Helm chart with many files, for example Sentry
Scroll to the bottom and click PREVIEW at the very bottom of the page:

Result:
Attempting to preview the Helm template files is unnecessarily annoying - have to scroll around a lot for charts with lots of templates.

How its like now

How I'd like it to be

Other details that may be helpful:
I already implemented a one liner CSS change that makes this happen. Will link it in a subsequent comment.
Environment information

Rancher version (rancher/rancher/rancher/server image tag or shown bottom left in the UI): 2.4.5
Installation option (single install/HA): n/a

https://github.com/rancher/ui/pull/4166

Rancher version: master-head (09/29/2020) a2a141e Single install.
Global Apps Preview dropdown are looking good.
But Project Apps Preview still shows the dropdown with 33% of width.

Thanks @izaac!
I went ahead and opened a basically identical one liner PR that I believe should address the Project Apps Preview you've identified. First time Rancher contributor here. What do you think, look OK?

Sure @onpaws thanks for the contribution we would need to check with a UI developer first to check the change and I will check it in a build further down the line.

Rancher version: master-head (09/29/2020) a2a141e
Both Global and Project Charts have this dropdown displayed as expected with the change.
Sample in Project app:


Google Home

Description
Description of the project here
Code of Conduct

[X] I follow Contributing Guidelines of this project.

/assigm


Ability to Curate, Organize and Share Docs Bookmarks

It would be great to have a way to organize bookmarks into folders or collections, much like you can create learning module collections. This would allow users to curate documentation collections for sharing with peers and via Twitter, or even to share while utilizing bot frameworks like the Flow Bot with Adaptive Cards and Microsoft Teams.
In these collections, it may be worth supporting collection nesting, or documentation re-ordering so help define a documentation "progression" order. As an example, if you want to curate documentation to help a junior co-worker learn new technologies, you could provide "beginner" or introduction links towards the top, intermediate links in the middle, and advanced links towards the bottom of the list order.

Dennis sent me here, so if this goes horribly wrong blame him please!

Hi, not sure if this needs to be a separate issue, but I think it is related:
Now all the bookmarks are in one big list, it would be helpful to sort or filter on which bookmark is for a learning path and which for a learning module.


Get avatar via URL

Would it be possible to have this on a hosting site where we can get an avatar via URL like how the following URLs are doing?
https://placeholder.com/
https://placekitten.com/
https://placedog.net/

This would be really interesting!
@jmaicaaan If you're looking for an alternative now, you can try this: https://github.com/tobiaslins/avatar

Found this idea interesting so attempted to make my own, at https://hostedboringavatars.vercel.app
The code is quite simple, can be found here https://github.com/gpng/hosted-boring-avatars
If the maintainers of boringavatars are planning to make their, I can take down this site if requested

This feature request looks more suitable for boringdesigners/boring-avatars-playground, which is the playground website the authors set up.

Hi there 👋. We just released a new service to embed Boring Avatars via URL 🎉
To generate an avatar just embed the following URL https://source.boringavatars.com/.  Now you can append the variant, size and the username to generate an avatar to get the SVG.
You'll find more information on the service README.
Thank you all for your time  🙏🥲

Awesome! Appreciate to all people involved on this discussion and this project 🎉

Are there any sources for source.boringavatar.com?


Mocha

Switches to karma and mocha config. Should let us get coverage reporting. It also gets puppeteer and karma running in cirrus. Monorepo using yarn caused this to fail in past trials not sure why.

Why is this .linux?

I copied it from google puppeteer repo example of how to setup cirrus. https://github.com/GoogleChrome/puppeteer/blob/master/.cirrus.yml


serialize to json and export DOM without contenteditable=false on hold nodes

DOM export: maybe move all attributes to the node and keep only html content in inner divs, as if it was going to be rendered as a custom element.

This is fixed with a temporary patch on prosemirror 0.10.
It seems it's possible to avoid that patch with prosemirror 0.11.


Add parent project support

Hi,
I have worked a bit to add parent project support like mentionned in https://github.com/takumakume/sbomreport-to-dependencytrack/issues/16. I successfully pushed some SBOMs with and without specified parent with a sbomreport generated by my local trivy-operator.
Seems to work well but I can't managed to pass the unit test TestUpload_Run (See the stacktrace here).
I also tried to use the provided sbomreport testdata/v1alpha1.json but I can't managed to push it to my dtrack instance with the following command :
cat testdata/v1alpha1.json | sbomreport-to-dependencytrack --base-url "https://<REDACTED>" --api-key "<READACTED>" --project-name "some-test" --project-version "v1"

But I got the following 400 error :
Error: {"status":400,"title":"The uploaded BOM is invalid","detail":"Schema validation failed","errors":["$.components[1].licenses[0].license: must be valid to one and only one schema, but 0 are valid","$.components[1].licenses[0].license: required property 'id' not found","$.components[1].licenses[0].license: required property 'name' not found","$.components[1].licenses[0]: must be valid to one and only one schema, but 2 are valid with indexes '0, 1'","$.components[2].licenses[0].license: must be valid to one and only one schema, but 0 are valid","$.components[2].licenses[0].license: required property 'id' not found","$.components[2].licenses[0].license: required property 'name' not found","$.components[2].licenses[0]: must be valid to one and only one schema, but 2 are valid with indexes '0, 1'","$.components[3].licenses[0].license: must be valid to one and only one schema, but 0 are valid","$.components[3].licenses[0].license: required property 'id' not found","$.components[3].licenses[0].license: required property 'name' not found","$.components[3].licenses[0]: must be valid to one and only one schema, but 2 are valid with indexes '0, 1'","$.components[4].licenses[0].license: must be valid to one and only one schema, but 0 are valid","$.components[4].licenses[0].license: required property 'id' not found","$.components[4].licenses[0].license: required property 'name' not found","$.components[4].licenses[0]: must be valid to one and only one schema, but 2 are valid with indexes '0, 1'","$.components[5].licenses[0].license: must be valid to one and only one schema, but 0 are valid","$.components[5].licenses[0].license: required property 'id' not found","$.components[5].licenses[0].license: required property 'name' not found","$.components[5].licenses[0]: must be valid to one and only one schema, but 2 are valid with indexes '0, 1'","$.components[6].licenses[0].license: must be valid to one and only one schema, but 0 are valid","$.components[6].licenses[0].license: required property 'id' not found","$.components[6].licenses[0].license: required property 'name' not found","$.components[6].licenses[0]: must be valid to one and only one schema, but 2 are valid with indexes '0, 1'","$.components[7].licenses[0].license: must be valid to one and only one schema, but 0 are valid","$.components[7].licenses[0].license: required property 'id' not found","$.components[7].licenses[0].license: required property 'name' not found","$.components[7].licenses[0]: must be valid to one and only one schema, but 2 are valid with indexes '0, 1'","$.components[7].licenses[1].license: must be valid to one and only one schema, but 0 are valid","$.components[7].licenses[1].license: required property 'id' not found","$.components[7].licenses[1].license: required property 'name' not found","$.components[7].licenses[1]: must be valid to one and only one schema, but 2 are valid with indexes '0, 1'","$.components[8].licenses[0].license: must be valid to one and only one schema, but 0 are valid","$.components[8].licenses[0].license: required property 'id' not found","$.components[8].licenses[0].license: required property 'name' not found","$.components[8].licenses[0]: must be valid to one and only one schema, but 2 are valid with indexes '0, 1'","$.components[8].licenses[1].license: must be valid to one and only one schema, but 0 are valid","$.components[8].licenses[1].license: required property 'id' not found","$.components[8].licenses[1].license: required property 'name' not found","$.components[8].licenses[1]: must be valid to one and only one schema, but 2 are valid with indexes '0, 1'","$.components[9].licenses[0].license: must be valid to one and only one schema, but 0 are valid","$.components[9].licenses[0].license: required property 'id' not found","$.components[9].licenses[0].license: required property 'name' not found","$.components[9].licenses[0]: must be valid to one and only one schema, but 2 are valid with indexes '0, 1'","$.components[10].licenses[0].license: must be valid to one and only one schema, but 0 are valid","$.components[10].licenses[0].license: required property 'id' not found","$.components[10].licenses[0].license: required property 'name' not found","$.components[10].licenses[0]: must be valid to one and only one schema, but 2 are valid with indexes '0, 1'","$.components[11].licenses[0].license: must be valid to one and only one schema, but 0 are valid","$.components[11].licenses[0].license: required property 'id' not found","$.components[11].licenses[0].license: required property 'name' not found","$.components[11].licenses[0]: must be valid to one and only one schema, but 2 are valid with indexes '0, 1'","$.components[11].licenses[1].license: must be valid to one and only one schema, but 0 are valid","$.components[11].licenses[1].license: required property 'id' not found","$.components[11].licenses[1].license: required property 'name' not found","$.components[11].licenses[1]: must be valid to one and only one schema, but 2 are valid with indexes '0, 1'","$.components[11].licenses[2].license: must be valid to one and only one schema, but 0 are valid","$.components[11].licenses[2].license: required property 'id' not found","$.components[11].licenses[2].license: required property 'name' not found","$.components[11].licenses[2]: must be valid to one and only one schema, but 2 are valid with indexes '0, 1'","$.components[12].licenses[0].license: must be valid to one and only one schema, but 0 are valid","$.components[12].licenses[0].license: required property 'id' not found","$.components[12].licenses[0].license: required property 'name' not found","$.components[12].licenses[0]: must be valid to one and only one schema, but 2 are valid with indexes '0, 1'","$.components[13].licenses[0].license: must be valid to one and only one schema, but 0 are valid","$.components[13].licenses[0].license: required property 'id' not found","$.components[13].licenses[0].license: required property 'name' not found","$.components[13].licenses[0]: must be valid to one and only one schema, but 2 are valid with indexes '0, 1'","$.components[14].licenses[0].license: must be valid to one and only one schema, but 0 are valid","$.components[14].licenses[0].license: required property 'id' not found","$.components[14].licenses[0].license: required property 'name' not found","$.components[14].licenses[0]: must be valid to one and only one schema, but 2 are valid with indexes '0, 1'","$.components[15].licenses[0].license: must be valid to one and only one schema, but 0 are valid","$.components[15].licenses[0].license: required property 'id' not found","$.components[15].licenses[0].license: required property 'name' not found","$.components[15].licenses[0]: must be valid to one and only one schema, but 2 are valid with indexes '0, 1'"]} (status: 400)

Thank you in advance for your support :)

@LucasVanHaaren
The recently generated SBOMReport was in the following format.
https://github.com/takumakume/sbomreport-to-dependencytrack/pull/19
The format of the license is slightly different. Can I use this test data?

Hello @takumakume,
Sorry for the delay, was a bit busy...
Just tried with the new format of SBOMreport you mentionned and it works well this my additions !
cat testdata/v1alpha1.json | go run main.go --base-url "<TRUNCATED>" --api-key "<TRUNC>" --project-name "test-for-pr" --project-version "v1" --parent-name "PARENT"
2024/08/06 17:11:11 Uploading BOM: project test-for-pr:v1
2024/08/06 17:11:11 Polling completion of upload BOM: project test-for-pr:v1 token 40f1bf18-1f00-498f-bb69-567ad9404576
2024/08/06 17:11:12 BOM upload completed: project test-for-pr:v1 token 40f1bf18-1f00-498f-bb69-567ad9404576

Hello @takumakume,
I fixed the TestUpload_Run which was failing !
Now the whole test suite passed

Sorry for the delay, but I checked!
Thank you for the contrib!
This PR will be merged.
In Dtrack 4.12, there was a phenomenon that when a tag was specified with parentName and parentVersion specified, it became a non-child Project.


[Javascript] Possible bug in countBy

The countBy function is not returning correct histograms, as it seems to select the wrong array type for the indexing.
The following line in countBy seems to be causing the problems:
const countByteLength = Math.ceil(Math.log(vector.dictionary.length) / Math.log(256));
For example, if the dictionary length is 3, yet the indices length is 1 million, the result of this expression will be 1, which will lead to a Uint8Array being used, again resulting in overflows.
Codepen example
https://codepen.io/Yngve92/pen/mYdWrr
If I switch the expression to: const countByteLength = Math.ceil(Math.log(vector.length) / Math.log(256)); it seems to be working all right, but I am not sure if this is correct...
Best regards and thank you

Could you open a JIRA issue at https://issues.apache.org/jira/browse/ARROW ?
See also: https://arrow.apache.org/docs/developers/contributing.html#github-issues

Done: https://issues.apache.org/jira/browse/ARROW-5274
Submitted a PR with the fix.

Thanks!


Support new color modes in libheif 1.6.2

When opening a Canon HEIF file supported by libheif 1.6.2:
  i = pyheif.read_heif(image_path)
  File "/home/damon/.local/lib/python3.6/site-packages/pyheif/reader.py", line 29, in read_heif
    result = _read_heif_bytes(d, apply_transformations)
  File "/home/damon/.local/lib/python3.6/site-packages/pyheif/reader.py", line 36, in _read_heif_bytes
    result = _read_heif_context(ctx, d, apply_transformations)
  File "/home/damon/.local/lib/python3.6/site-packages/pyheif/reader.py", line 56, in _read_heif_context
    result = _read_heif_handle(handle, apply_transformations)
  File "/home/damon/.local/lib/python3.6/site-packages/pyheif/reader.py", line 78, in _read_heif_handle
    raise HeifError(code=error.code, subcode=error.subcode, message=ffi.string(error.message).decode())
pyheif.error.HeifError: Code: 4, Subcode: 3003, Message: "Unsupported feature: Unsupported color conversion"

Let me know if you need a sample HEIF file from a Canon 1D X Mark III. (I don't own the camera, but someone who does created some for me.) They are 10 bit images.

Thanks, if you provide a sample I'll check it out.

Hi David,
if you could please email me using the address at https://damonlynch.net/ I'll send you a dropbox link to some samples (which I'd like to keep private, thanks).
Sorry for the delayed reply — computer hardware problems today.
Thanks,
Damon

Attached is a sample script.
heif.zip

This is complicated. libheif does seem to decode 10-bit (non-rotated) HIF files from the Canon 1D X Mark III, but I haven't found a way to load the resulting data into a viewer to determine if they've been decoded correctly. Pillow, which I normally use to validate decoding, only supports 8-bit images.
It might be best to wait for libheif to support transforms in 10-bit files, and then see what they do for JPEG thumbnail previews - e.g. how do they convert to 8-bit?

My sample script had a bug (cannot display a pixbuf when it's data is not in memory). Attached is a working version.
Yes it might be best to wait to see what the libheif folks do. I suspect in future pillow, Gtk and Qt will provide native 10 bit image support.
heif.zip

I've added support for the convert_hdr_to_8bit decoding option added to libheif 1.7 and enabled it by default, should just work now. I'll cut a new release soon.

Thanks David!

Also if you can manage a sample image that I can put into the tests that would be great. I want something I can check-in and run regressions on - can't find anything on the web for some reason.

I can share a vertical and a horizontal image the owner of  a Canon 1DX Mark III shared with me. They're large files. What is the best way to share it with you?

Can you make a pull request? If so pls put them into tests/images/. Thanks!

I'd prefer another method. Figuring out how to do that is not something I can do right now, sorry. (I have an extremely serious academic deadline to deal with.) If you can suggest an alternative method I'd be grateful.


[Question] --thread-count

Hi
README.md
--thread-count                   设置下载线程数 [default: 16]

--help

Please which one is the correct default one?

This depends on the number of logical processors in your CPU.
You can see it in TaskMgr.

Ok, what happens if i increase it to e.g. 24?

Ok, what happens if i increase it to e.g. 24?

Download 24 segments at same time


App crash on IOS after switching between screens which contains mapView for several times

I am using react-native v~0.55.2 and react-native-maps v^0.21.0,
I noticed the memory usage exceeded 1GB !! after switching between screens which contain mapView for more than 7 times on a real device Iphone 7 plus !!
this is serious issue here I stoped developing on my app and started digging for a solution but I couldn't found out any solution, please I need your help..

it happens in android too


Updating gradle and other dependencies.

Since the anouncement of sdk versioning in Google Play Services we can
now also include com.google.gms:google-services.
https://android-developers.googleblog.com/2018/05/announcing-new-sdk-versioning.html

Conflict should be resolved. Removed reviewer.


Can't type into Add machine driver fields

Rancher Version: v1.2.0-pre4-rc4
Steps to Reproduce:

Go to machine drivers
Click on Add Machine Driver
Try to type into the Custom UI URL or Checksum fields

Results: After a couple of character, the focus redirects back to the Download URL field.
Expected:  Should be able to type into the Custom UI URL and Checksum fields

Version - master 10/23
Verified fixed


Fix typo of two consecutive commas

@chtseac : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#sign-off


Update Composer dependencies (2021-10-13-00-04)

Visual regression test passed!
View the visual regression test report


Dataset format

What format does the model need to train and test? (Only the format of LETOR can be used in the model??)

Using the following seems to work for me:

TX: a pandas dataframe containing all features (except the target values and the group ids)
Ty: a pandas series containing the target values
Tqids: a pandas series (same length as Ty) cotaining the group id for each instance

Using numpy arrays instead of dataframes probably works as well


feat(network): add harmony support

ref:  https://github.com/harmony-one/bounties/issues/116

Unfortunately it's not that easy for Harmony and many other chains. Work for Harmony integration has already been done on the "multichain" branch that I'll merge + deploy soon, so the bounty is already filled. If you want to add your "dapp-contract-list" additions as a PR on top of that branch that would be great though.


Add support to set uds permissions

related to https://github.com/dragonflydb/dragonfly/issues/1415

I see changes unrelated to uds. Are those intended? Have not looked at depth yet

I see changes unrelated to uds. Are those intended? Have not looked at depth yet

All the other changes are format fixes


shortcut conditions are case sensitive in MacOS

I didn't manage to get the keybindings to work... the condition was:
!editorHasSelection && editorLangId == 'supercollider'
and I discovered that the langId is actually SuperCollider so capitalising the condition made it work. I refrained from doing a PR because I didn't know if it would break the other OSes

and just to add to the fun: rebooting VSCode made it all go lowercase so this bug report is void. or is it?

in all cases, I'll try to reproduce with a new install.

I can't reproduce. Just restarting after installation seems to fix it.


Relicense userspace to Apache 2.0 only

This is simply dropping requirement for inbound contributions to be MIT licensed + removal of outbound option of MIT.
As all contributions are already submitted under both licenses this shouldn't be controversial. The reasoning for this is to simply our license arrangement before submitting to the CNCF sandbox.
At some point in future we might revisit this and look to provide MIT as an outbound option again - which is very common in the Rust ecosystem.

Contributors, please add an LGTM here to acknowledge the license change and feel free to ping me here (or via Slack/Discord) if you have any questions:

@astoycos
@Billy99
@anfredette
@nerdalert
@Molter73
@nak3
@shaneutt
@ykaliuta
@maryamtahhan
@navarrothiago

/LGTM

Contributors, please add an LGTM here to acknowledge the license change and feel free to ping me here (or via Slack/Discord) if you have any questions:

@ykaliuta

LGTM

/LGTM

/LGTM

/lgtm

/LGTM

/lgtm

/lgtm

/LGTM

That's a full set of LGTMs so I'll go ahead and merge this - Andre's was verbal in the last bpfd maintainers meeting but he can comment here once he's back to complete the audit trail.


Card title bleeding out when having really long title

this happened when i searched for ''html template"

#79


Webpack is not generating PHP language files

I'm following your instructions to have Webpack process the PHP language files (located in my /resources/lang/ directory for Laravel < v9.0)
I have this at the top of my webpack.mix.js file:
const mix = require('laravel-mix'); require('laravel-vue-i18n/mix');
And I'm using the plugin like so:
.i18n('resources/lang')
Webpack compiles successfully but it does not process my PHP language files (only the .json files). This is the only language files in the Laravel Mix output:
 js/resources_lang_en_json.js │ 1.27 KiB  │
 js/resources_lang_es_json.js │ 1.27 KiB  │
 js/resources_lang_fr_json.js │ 1.26 KiB  │
Any suggestions? Is it required to use Inertia.js?

Hey, inertia.js is not required, can you show me the .use(i18nVue part on your app? Thanks

Yes! Thank you for the quick reply:
// Localization
app.use(i18nVue, {
    resolve: lang => import(`../lang/${lang}.json`)
})

const mounted = app.mount('#app')

I have been able to successfully use the XX.json files in my components like this:
{{ $t('Hello') }}
and
trans('Hello')
However, using the PHP files like trans('auth.failed') does not work (it simply outputs 'auth.failed')
I believe it's because the plugin in Webpack is either not running correctly, or is not able to access my PHP language files located in /resources/lang/en/

The issue is probably related with not being able to get the php files.
Can you go under the the node_modules/laravel-vue-i18n/dist/mix.js, search for this.langPath =  and add a console.log(this.langPath); on the line right after.
Go ahead and run the build, then can you make sure the langPath is correct and share the output of the log with me?
Thanks.

I apologize, the issue seems to have worked itself out. Yesterday I had uninstalled laravel-vue-i18n to try a different approach, and just now re-installed to troubleshoot after I received your reply.
I ran the build and this time, it is processing the PHP files:
js/resources_lang_en_json.js │ 1.27 KiB  │
js/resources_lang_es_json.js │ 1.27 KiB  │
js/resources_lang_fr_json.js │ 1.26 KiB  │
js/resources_lang_php_en_json.js │ 7.77 KiB  │
js/resources_lang_php_es_json.js │ 8.21 KiB  │
js/resources_lang_php_fr_json.js │ 8.5 KiB   │

I'm not sure what the original issue was, but thanks again for your help!

I have the same problem (Laravel 8, webpack.mix.js).
Try debug console.log(this.langPath); https://github.com/xiCO2k/laravel-vue-i18n/issues/23#issuecomment-1090971266
I don't see anything after npm run dev and page refresh. What am I doing wrong?


 Autorole errors (rewrite required)

http://sharex.reinfernhout.xyz/i/Kkgwv.png
Best part: This happened while Discord Bots list was testing my bot =D

So I worked a bit on this and more errors popped up, the command is horribly written and requires a rewrite

b1e4aa00b350398d429a1089beea3639049a8f57


Write a Java program to divide two numbers

Description
Write a Java program to divide two numbers
Input  : 2 4
Output : 0.5

How to contribute

Save the solution in DivideTwoNumbers.java file
Add DivideTwoNumbers.java file in divide-two-numbers folder

!assign


JNI wrappers for decoding

Could you try to add JNI wrappers like this
https://github.com/ahmetaa/kaldi-jni/blob/master/cpp/jni/kaldi-jni.cc
for this code
https://github.com/alphacep/kaldi-websocket-python/blob/master/kaldi_recognizer.cc
I think this will allow android decoding

Hi @yondu22，thanks for pointing out that the project could have better decoders.
Given that the spare time I have, probably I will start to implement the new feature from next month.

@rayworks Thanks for this repo.  I found a timer functionality in the mainactivity class. Besides that what does this project do? Is the goal to run kaldi on device (offline) like https://keenresearch.com/ ??

@nanaghartey, the original purpose for this project is to have a PoC using kaldi on Android platform in offline mode.
Before this, we've used  CMU PocketSphnix for a long time already, but recently we just found it doesn't work as expected for some cases.

@rayworks alright but currently it seems there is no decoding functionality and as such speech recognition can't be performed like pocketsphinx right?

No, not on the JNI level.

Alright,
Do you plan to add those features on the JNI level to it?
On Thursday, July 18, 2019, 1:06:33 PM GMT, rayworks<EMAIL_ADDRESS>wrote:

No, not on the JNI level.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

Speaking of decodes, have you tried with this one?
I will continue working on current project to fulfill a meaningful demo instead of an intermediate one.
But I can't guarantee the completion time.

https://github.com/alphacep/kaldi-android-demo

@yondu22 Thanks for the link. I'll try it and let you know how it goes


Cannot find module 'rxjs-compat/Subject'.

I'm using Angular 6 and RxJS6, and building the application I have the following error:

... has no exported member 'Subject'.
node_modules/rxjs/Subject.d.ts(1,15): error TS2307: Cannot find module 'rxjs-compat/Subject'.

Any thought to upgrade the component?

Are you sure that rxjs-compat is installed properly? if not, then you need to do npm i -D rxjs-compat

I don't have rxjs-compat and I'm not going to use it. It could be useful if there would be an upgrade to use the component without compat :D


Investigate exception handling WRT Http2Connection.Listener notifications

We should take a closer look at how we notify the listeners of connection events and consider the proper course of action if a listener callback throws.

+1. Thanks for reporting!

@nmittler - I'll take this one.  As part of the resolution to https://github.com/netty/netty/issues/3550 I needed to do additional iteration over methods which use listeners and so I had to do something about this issue.  My approach was to catch RuntimeExceptions and only throw the last one:
RuntimeException lastException = null;
for (Listener l : listeneres) {
  try {
    l.notify(...);
   } catch (RuntimeException e) {
    lastException = e;
   }
}
if (lastException != null) {
  throw lastException;
}

Does this make sense?  The goal being 1 listener's exception shouldn't cause other listener's from being notified.  However I am throwing 1 exception at the end of notification...just to ensure the exception is not swallowed...WDYT?

@Scottmitch yep that sgtm ... that's sort of what I was thinking as well.  Make it so!

@nmittler - Fair warning...it is ugly to ensure we process all events and complete all tree operations and also handle the RuntimeExceptions :(

@nmittler - An alternative approach could be that we document the Http2Connection.Listener interface will result in the connection being closed.  This way we don't have to worry about tracking exceptions in recursive calls, and making sure state (stream state, priority tree, etc...) is maintained in the presence of exceptions.

@Scottmitch yeah, that actually sounds better to me.  Let's keep it simple and just update the docs.

@nmittler - I have to investigate but there may be code changes to ensure this always results in a GO_AWAY.  For example the removal policy stuff makes this a bit more complicated.  Perhaps we should handle this issue after https://github.com/netty/netty/issues/3448?

@Scottmitch yeah that's fine.

Reminder to me...also fix https://github.com/netty/netty/pull/3577/files#r27757163.

@nmittler - I have looked at this a bit more.  When events occur as a result of read operations I think we ultimately catch the RuntimeExceptions and translate these to GO_AWAY frames.  However on the send side we don't do this, but instead we sometimes (depending on if try/catch blocks are placed appropriately) fail the promise that was provided in the writeXXX call.  My concern is that we are in a situation where we use listeners to update stream state, and it is possible that 1 listener (potentially user listener) could interrupt this process, and then we just continue processing events while in a bad state.  Should we translate runtime exceptions on the write side into lifecycleManager failure events?  Any other ideas?

@Scottmitch yeah, I think that makes sense.  So fail the promise and send RST_STREAM/GO_AWAY.  Are you thinking of just adding this as try/catch logic to each encoder.writeXXX method?

@nmittler - I will investigate more but I think so....it is not ideal to handle these events up the pipeline because then the classes which invoke the listeners are implicitly depending on those higher level classes to be present to clean up....I think the other options are to track exceptions at the call sites and either log them or throw the last one...but as I said this gets ugly...especially if we want to propagate 1 of the exceptions in the recursive calls we have.

@nmittler - A "cleaner" alternative (from us tracking the exceptions perspective) is just to "log and swallow" these types of exceptions at the call site.  We won't have to worry about tracking/propagating the exceptions...but swallowing exceptions is terrible too....

@Scottmich actually, I think I like logging (WARN?) better. Do you want to throw a PR together?

@nmittler - I'm glad you said that because I just finished a PR for this..and just added a unit test for it ;)

@nmittler - I updated the javadocs to describe this behavior (and logged it as an error).

#3615 cherry-picked


[UI] Height of StoryList view exceeds viewport in mobile

Describe the bug
The height of the mobile StoryList view exceeds the viewport in mobile. In the screenshot below (Samsung Galaxy A71), you can see that the bottom content of the StoryList Hello username (Back to Welcome Page) Admin Page is not shown.

This especially becomes an issue for phones that automatically scroll down on the page when a dropdown is selected. I've seen this on one device where they selected something for the second filter, and it scrolled down on the StoryList thereby hiding the X on the top to return to the map view.
To Reproduce
Steps to reproduce the behavior:

On a mobile device, go to https://our.terrastories.io and log in with username<EMAIL_ADDRESS>and password terrastories.
Enter Site
Press on the arrow button on the top left to bring the StoryList into view.
See the bug

Expected behavior
The bottom content of the StoryList Hello username (Back to Welcome Page) Admin Page is always shown on the bottom regardless of Viewport size.

@rudokemper I can pick this up if it's still up for grabs.

@asheerrizvi sure thing! Will assign you. Thanks! :)

hey @rudokemper I was trying to setup terrastories on my local but I keep running into this error when I am trying to run docker-compose build. Got any idea about this?
 => ERROR [terrastories_e2e 7/9] RUN bundle install
➜  terrastories git:(master) docker-compose build
[+] Building 16.8s (17/26)
 => [terrastories internal] load build definition from Dockerfile                                                                                0.0s
 => => transferring dockerfile: 32B                                                                                0.0s
 => [terrastories_e2e internal] load build definition from Dockerfile                                                                                0.0s
 => => transferring dockerfile: 32B                                                                                0.0s
 => [terrastories internal] load .dockerignore                                                                                0.0s
 => => transferring context: 35B                                                                                0.0s
 => [terrastories_e2e internal] load .dockerignore                                                                                0.0s
 => => transferring context: 2B                                                                                0.0s
 => [terrastories internal] load metadata for docker.io/library/ruby:2.5.9-alpine                                                                                1.1s
 => [terrastories_e2e internal] load metadata for docker.io/library/ruby:2.5.1-slim                                                                                1.1s
 => CACHED [terrastories 1/9] FROM docker.io/library/ruby:2.5.9-alpine@sha256:1aa1dbab746b3dc5d102567a3f91b04023bc61da29bbb36efe1280e9d90074f7                             0.0s
 => [terrastories internal] load build context                                                                                0.0s
 => => transferring context: 23.42kB                                                                                0.0s
 => CANCELED [terrastories 2/9] RUN apk --no-cache add --update     build-base     nodejs     yarn     tzdata     postgresql-dev     postgresql-client     postgresql     15.6s
 => [terrastories_e2e 1/9] FROM docker.io/library/ruby:2.5.1-slim@sha256:5a88bb901da277f0b4fa73b57549b14fb46ae83fb6e6ceb3bbd5df382192676f                                  0.0s
 => [terrastories_e2e internal] load build context                                                                                0.0s
 => => transferring context: 491B                                                                                0.0s
 => CACHED [terrastories_e2e 2/9] RUN apt-get -y update &&   apt-get install --fix-missing --no-install-recommends -qq -y   build-essential                                0.0s
 => CACHED [terrastories_e2e 3/9] RUN gem install bundler                                                                                0.0s
 => CACHED [terrastories_e2e 4/9] RUN mkdir /gems                                                                                0.0s
 => CACHED [terrastories_e2e 5/9] WORKDIR /gems                                                                                0.0s
 => CACHED [terrastories_e2e 6/9] COPY Gemfile Gemfile.lock ./                                                                                0.0s
 => ERROR [terrastories_e2e 7/9] RUN bundle install                                                                                15.5s
------
 > [terrastories_e2e 7/9] RUN bundle install:
#0 4.392 Fetching gem metadata from https://rubygems.org/..........
#0 15.16 Resolving dependencies...
#0 15.22 Fetching public_suffix 5.0.0
#0 15.37 Installing public_suffix 5.0.0
#0 15.38 Gem::RuntimeRequirementNotMetError: public_suffix requires Ruby version >= 2.6.
#0 15.38 The current ruby version is 2.5.0.
#0 15.38 An error occurred while installing public_suffix (5.0.0), and Bundler cannot
#0 15.38 continue.
#0 15.38 Make sure that `gem install public_suffix -v '5.0.0' --source
#0 15.38 'https://rubygems.org/'` succeeds before bundling.
#0 15.38
#0 15.38 In Gemfile:
#0 15.38   capybara-screenshot was resolved to 1.0.26, which depends on
#0 15.38     capybara was resolved to 3.37.1, which depends on
#0 15.38       addressable was resolved to 2.8.1, which depends on
#0 15.38         public_suffix
------
failed to solve: executor failed running [/bin/sh -c bundle install]: exit code: 5
➜  terrastories git:(master) ruby -v
ruby 2.6.8p205 (2021-07-07 revision 67951) [universal.arm64e-darwin21]

Hi @asheerrizvi sorry about that; I forgot to mention that the current main branch is out of date on dependency updates. Please try building this branch: https://github.com/Terrastories/terrastories/tree/administrate-refactor-part-1

@rudokemper cool will try it out!

Hey @rudokemper apologies for getting back late but getting this warning now:

docker is running but docker-compose build doesn't seem to be doing anything for me.

@rudokemper have opened a PR here:
https://github.com/Terrastories/terrastories/pull/813


feature: allow user to re-download the help wiki after the button "remove all wiki data" was pressed

Description 描述
In "Preference", there is a button in the developer tools section to "Remove All Wiki Data". Currently there is no way to download the default help wiki, maybe it should appear as a template ?
Additional Context 额外上下文
No response

I think the help wiki is in "Add webpage shortcut" (when it is loaded), so this is influenced by #63


fix(findExports): filtering for named exports

The filtering introduced in #40 incidentally filtered out named exports like:
[
  { type: 'named', names: ['foo', /* ... */] },
  { type: 'named', names: ['bar', /* ... */] },
]

to becomes
[
  { type: 'named', names: ['bar', /* ... */] },
]

Due to both of the exports having undefined of the name property.

Nice catch!


Set target Baseline level for the component

In #21 we started using light-dark, and #22 uses it in additional places. light-dark is baseline "newly available"- do we want to make sure we are only using Widely Available features in this component?
I think at minimum we would want to document baseline target in the README. We could potentially add a browserslist and potentially tooling to enforce it.

Thanks for calling that out James. I'm of two mind here. On the one hand, since we can't look at analytics, and don't know the consumers for the widget, we should be more conservative and stick to widely available features. On the other hand, the widget really only makes sense for a web developer audience and it's reasonable to expect that audience to be on an up to date browser.
Still, unless we are using it as a progressive enhancement, I'd suggest sticking to widely available, but what do others think?

Because we distribute this component as something other web authors can embed, we have a responsibility to make sure it works in as many cases as possible, and with as few side effects (see #16) as possible.
Sticking to Widely Available features only seems in order.

Agree that the widget should stick to only using Baseline Widely Available features.


Week 10

Adding progress

It looks like you did some good experimentation here with coordinate systems, and I know you worked hard to figure out what coordinate system one of your key datasets was stored in. I don't see a part of the notebook where you posed a research question and outlined a strategy for answering it, but you made good progress setting up the map, which we also worked on together in office hours.


Rename master branch to main

We currently cannot rename the master branch to main because some of the GitHub actions require the name master explicitly.
This PR fixes this.

Note: I explicitly did not change the name master in files that #85 removes to avoid merge conflicts.


Btable captionTop is not functional

With caption-top set to true with btable the caption is located below the table not above.

Create a btable with caption-top="true"
Set the caption: 		<template #table-caption>
  			{{ fooCaption }}
  	</template>
See the caption being set at the bottom.

Expected behavior. The caption should be at the top.
Screenshots.

Tested with the following code block
<template>

    <BButton @click="move = !move">Click me</BButton>

      <template #table-caption>

foo

      </template>

</template>

And it seemed to be working fine. Bear in mind that I'm working on the latest branch -- which may include features in 0.10


useTexture enhancement proposal

work in progress:

texture's color space matches renderer color space by default
added a third prop to assign options to a texture when it's loaded

closes #655

Found this! I noticed the difference earlier when I upgraded my dependencies. Thank you 🙏 looks much better now


Fix runner failures on travis

IIRC Travis (and local) sometimes times out when downloading MongoDB. If this removes that then we should merge it and apply the pattern more generally so we don't have the sometimes fails, especially when a new version of MongoDB is released.

Common example:

Overall LGTM, thanks @durran 👍
This was cherry-picked from https://github.com/mongodb-js/index-model/pull/49
For info, the commit originally passed on TravisCI and macOS Sierra, but failed in my Ubuntu 14.04 VM.
I resolved the VirtualBox Ubuntu VM issue by some combination of rm -rf node_modules; npm install, find ~ -name mongodb-linux-x86_64-3.2.11.tgz and deleting those, and killall mongod. Restarting the Ubuntu VM did not work.
  27 passing (729ms)
  2 failing

  1) fetch() local "before all" hook:
     Uncaught MongoError: failed to connect to server [localhost:27017] on first connect
      at Pool.<anonymous> (node_modules/mongodb-core/lib/topologies/server.js:313:35)
      at Connection.<anonymous> (node_modules/mongodb-core/lib/connection/pool.js:271:12)
      at Socket.<anonymous> (node_modules/mongodb-core/lib/connection/connection.js:165:49)
      at emitErrorNT (net.js:1276:8)
      at _combinedTickCallback (internal/process/next_tick.js:74:11)
      at process._tickCallback (internal/process/next_tick.js:98:9)

  2) fetch() local "after all" hook:
     TypeError: Cannot read property 'drop' of undefined
      at Context.<anonymous> (test/fetch.test.js:32:17)

npm ERR! Test failed.  See above for more details.

The VirtualBox Ubuntu VM allowed me to drop the Processor execution cap to 10%, and confirm that after this fix other tests will warn about speed but not fail, and further that going back to master before this fix does trigger the 10s timeout error.


setActivePlayers mode that allows cycling through players in order

Right now we allow adding "all" players or "other" players to the set of active players (and they can make moves in any order).  However, you might also want them to be able to perform actions one after the other (all inside the same turn).

this is very interesting. I assume that this mode will cycle through the players in the play order, with the first player being whoever is next of the current player? I have modeled something similar in a MTG implementation, where the next opponent enter the stage HasPriority and other opponents enters AwaitingPriority. When leaving the HasPriority stage, the player also ends the stage (no longer active).
In my scenario, an opponent can make a move (cast a spell) that would reset the cycling through the other players (including the currentPlayer). Once no player is in any stage (that is, all player has had priority and "passed" it), the currentPlayer should be returned to its stage she was prior to this cycling. To solve this, I currently have to save the currentPlayer's current state, as it might have changed if an opponent did trigger a restart of the cycling. Perhaps there is a better way to solve this within the framework?

How would you keep track of the currentPlayer's original stage i case that an opponent triggers a new cycling through (in which case currentPlayer is moved to whatever stage other players are moved). One naive approach would be add this information to G, but that feels like setActivePlayer event is bloating the state...? 🤔

@pardahlman Yes, there are already some fields that track past/future state when using the next and revert options with setActivePlayers, so something similar could be used for this too.
A way to get something like this using next would be:
ctx.events.setActivePlayers({
  value: { '0': 'play'  },
  next: {
    value: { '1': 'play' },
    next: {
      value: { '2': 'play' },
      next: {
        // cycle done, reset to current state
        value: { ...ctx.activePlayers },
      },
    },
  },
})

When the player uses endStage, activePlayers would become empty and move on to the next player, but this doesn’t work for your case I think, because you have multiple players in stages and want to trigger the next stage configuration before all players would have ended their stage. And there’s no way to manually call something like endActivePlayers or nextActivePlayers to progress the game. Would an event like that help your case? Then you could generate a cascade of next values to configure the flow and call a simple event to trigger the next step.
You might still have to keep track of some state in G for returning to the original stage, depending on how many layers deep you need to be able to revert.

@nicolodavis Now that I’m looking at it, maybe it would be a nicer syntax if setActivePlayers could receive an array of arguments, where the first element sets the active players and the rest are used as a “next stack”. That would make it simpler to generate cascades like the above. It would also make it easier for users to operate on what’s coming next, e.g. if you wanted to trigger a cycle but then continue with whatever steps were already in _nextActivePlayers, because you could do things like [{ /* new step */ }, ...ctx._nextActivePlayers].


byFunction loses data

Hi,
Given the following script
var _url = require('url');
var absolutify = require('absolutify');

var baseUrl = 'http://demo.com';
var content = 'check out
';

console.log(resolveUrls(baseUrl, content));

function resolveUrls (baseUrl, content) {
  return absolutify(content, function (url, attrName) {
    if (attrName === 'href') {
      console.log('resolving', _url.resolve(baseUrl, url), baseUrl, url);
      return _url.resolve(baseUrl, url);
    }

    return url;
  });
}

I get output
resolving http://demo.com/ http://demo.com ../..
check out

Shouldn't url point to ../../blog/demo-interview instead of just ../..?

I hacked around it like this:
function resolveUrls (baseUrl, content) {
  return absolutify(content, function (url, attrName) {
    if (attrName === 'href') {
      return _.trimEnd(_url.resolve(baseUrl, url), '/');
    }

    return url;
  });
}

So looks like the function gets just a fragment. It might be better if it got it all.

@bebraw I agree that the method should get more data, I don't know how to actually make that work though given the RegExp used.
What is the end result you are trying to achieve here?
absolutify(content, function(url, attr) {
  return baseUrl + '/' + url
})

Would return the following:
check out

Hi,
It's a part of my rss plugin. I convert all links to absolute. So this particular link should resolve as http://demo.com/blog/demo-interview.
That url is actually a little sketchy with those ..'s and I probably should fix them up on my side. I'm ok with wontfix.

This one is only particularly odd because that URL would not resolve against that base as it is trying to go above the root.

That's right. I think I'll fix up my links. 👍

Sounds good, will close this one out then.


Add version of the inbucket in the UI

this will be good to check which version of inbucket is being use.
I open the ui and I dont know if I'm using verion 2 or 1
or there is a way to know that?
thanks

found


libprom: init at 0.1.1

Motivation for this change
Build prometheus C library which I need for something that depends on it.
Things done
It's simple derivation except that it requires a one character patch.
It's an addition, not a change, so it does not break anything.

Built on platform(s)

[ ] NixOS
[X] macOS
[X] other Linux distributions

[X] Determined the impact on package closure size (by running nix path-info -S before and after)

[X] Ensured that relevant documentation is up to date

[X] Fits CONTRIBUTING.md.

@jtojnar can you merge or approve that someone else does it? Thanks

Before this gets merged, please squash your commits into a single libprom: init at 0.1.1 commit.

@cole-h Done.

Disk appears full on the machine running checks, hence the failure.

Yep, we just dropped 3 old machines from ofborg that weren't cleaned up properly. Sorry about that.
@ofborg eval

Thanks @cole-h , anything else needed from me?

I think you missed https://github.com/NixOS/nixpkgs/pull/90706#discussion_r443717026. Aside from that, I don't see anything else wrong.

Looks good. Thanks.


strings.Split - remove empty elements

Would it make sense to add an option to remove empty elements during split?
Something like this would work
str := []string{"test1","","test3"}

removeEmpty(&str)

func removeEmpty(slice *[]string) {
	i := 0
	p := *slice
	for _, entry := range p {
		if entry != "" {
			p[i] = entry
			i++
		}
	}
	*slice = p[0:i]
}

Can adopted to be used with different types
Thanks

strings.Split works on a single string, not a slice of string.  More generally, strings.Split does what it does, and we aren't going to change it now.
If you are suggesting adding a new function to the standard library, see https://golang.org/doc/faq#x_in_std .

Yes, I know.
The idea is to either add a new func or extend Split to allow drop empty values after the string is split into splice.

I see.  Still, we can't change strings.Split now.  That would break existing working programs.

And as far as a new function goes, https://golang.org/doc/faq#x_in_std .  I don't see why the proposed function meets the bar.


Set up Google Analytics

To keep data clean, this is best implemented after we have the site on a real domain, e.g. smallbusinesslongbeach.org


thelounge: update publicity config

The Lounge now uses the public key to set instance publicity.
Motivation for this change
Private config option no longer affects instance publicity status. Updated to use new option, public
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Added a release notes entry if the change is major or breaking
[X] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 124262 at cbd38d2f run on x86_64-linux 1

1 package failed to build:

nixos-install-tools

Note that build failures may predate this PR, and could be nondeterministic or hardware dependent.
Please exercise your independent judgement. Does something look off? Please file an issue or reach out on IRC.

We should add that the config got renamed do not force any eval errors.

How would I go about doing that?

The option can't simply be "mkRenamedOptionModule'd" as the opposite value would be forwarded.

I'm going to close this in favor of #129559, since it properly handles existing configs, and adds a changelog entry.


Step numbers depicted rather than relevant icons

In the icons slide, sometimes step numbers, e.g., 2, are used as icons. It would be helpful to display a more relevant icon.

The LLM is provided a list of available icons and is prompted to select from them. However, sometimes the LLM generates new names, which (i.e., icon files) are non-existent. In such scenarios, the item number is displayed as the icon. (The icons for numbers 0 through 9 are available).
An alternative was explored, where the LLM was prompted to generate the icon names independently, without referring to any list. When creating the slides, those names were compared with existing file names, and the ones with the highest similarity were chosen. However, since the available list of icons is small, the chosen icons often had less relevance to the target names. So, a similarity-based selection does not seem very useful. The other alternative is to combine both the approaches: select an icon based on highest similarity when the generated (file) name does not exist.

The last approach is used and deployed. When the LLM generates an icon name that is unavailable to this application, a similar icon is used instead.


Memory leak in WiFiManager from Android SDK

Instantiation of WifiManager should use Application level Context instead of Activity level in NetworkEvents.java. Otherwise it will occur leak in WifiManager. The reference tree was attached below from leakcanary. This leak was reported in Issue 43945 from android issues.

GC ROOT com.android.internal.util.AsyncChannel$DeathMonitor.this$0
references com.android.internal.util.AsyncChannel.mSrcContext
leaks com.test.demo.SplashActivity instance

Fix code in NetworkEvents.java:
public void register() {
    registerNetworkConnectionChangeReceiver();
    registerInternetConnectionChangeReceiver();

    if (wifiAccessPointsScanEnabled) {
      registerWifiSignalStrengthChangeReceiver();
      // start WiFi scan in order to refresh access point list
      // if this won't be called WifiSignalStrengthChanged may never occur
-     WifiManager wifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);
+     WifiManager wifiManager = (WifiManager) context.getApplicationContext().getSystemService(Context.WIFI_SERVICE);
      wifiManager.startScan();
    }
  }

ConnectivityManager can also leak Activity.

leakcanary dump heap info:
//GC ROOT static android.net.ConnectivityManager.sInstance
//references android.net.ConnectivityManager.mContext
//leaks com.test.demo.SplashActivity instance

Fix code in NetworkConnectionChangeReceiver :
  private ConnectivityStatus getConnectivityStatus(Context context) {
-   ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);
+   ConnectivityManager connectivityManager = (ConnectivityManager) context.getApplicationContext().getSystemService(Context.CONNECTIVITY_SERVICE);
    NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo();

    if (networkInfo != null) {
      if (networkInfo.getType() == ConnectivityManager.TYPE_WIFI) {
        return ConnectivityStatus.WIFI_CONNECTED;
      } else if (networkInfo.getType() == ConnectivityManager.TYPE_MOBILE) {
        return ConnectivityStatus.MOBILE_CONNECTED;
      }
    }

    return ConnectivityStatus.OFFLINE;
  }

There was an odd behave about those leaks. Because WifiManager and ConnectivityManager were created in so many different places in your codebase. Why just has these two places leak?

Looking forward to your reply. Thanks in advance. :)

Thank you for your work and investigating this issue!
As you can see, constructor of NetworkEvents class accepts Context as a parameter, so you can pass Application Context instead of Activity context inside your app. There's no need to update library.
I'll take a closer look at it later and read note on Google issue tracker carefully to analyze this problem better.
Nevertheless, we can update sample apps in the repository as well as documentation and add appropriate note about this issue.

Yep, you got it.
Some idea about the strategy about this library's implement. It will be more efficient if NetworkEvents initialize in Application with a callback notice registered Activity or Fragment. How about this idea?

I've updated code samples and added recommendation note in README.md file in Initialize objects section.
I hope this bug will be fixed in the next Android releases.
I think this issue can be closed for now.


ESM1.5 ssp370

resolution_complete type_ScenarioMIP   |    by<EMAIL_ADDRESS>
10 additional ensemble members for SSP370
exp name: SSP-370-35 .. 44
branched from: HI-35..44
cmip6 exp name: ssp370

Issue migrated from trac:409 at 2024-01-31 18:39:10 +1100

<EMAIL_ADDRESS>changed status from new to closed

<EMAIL_ADDRESS>changed milestone from Run complete to Archived

<EMAIL_ADDRESS>set resolution to complete


Topology rendered incorrect when there're multiple circuits connected to each other

NetBox version
v3.4.2
Topology Views version
v3.1.0
Steps to Reproduce
Same as this issue
Expected Behavior
Circuits connected with multilink
Observed Behavior
Only one circuit is connected the others are missing

I can attest to this occuring similar fashion.
The co-ordinates are saved for almost all of the items in the diagram. Yet there are 4 objects that always seem to move back to default locatoins.

Thank you for reporting this.
To be honest, I've got no idea what's the problem. Please do not simply link to a NetBox issue as it doesn't make clear, what is wrong in the context of NTV. Instead, please provide all exact steps to reproduce the issue and add images of what you see and what you expect to see.


Make a common mkOverride for python

It would be nice if these were moved into a common general (python) use component:
https://github.com/NixOS/nixpkgs/blob/777e94d903795d5028865d0bb0b76fef330eabb7/pkgs/servers/home-assistant/default.nix#L80-L88
https://github.com/NixOS/nixpkgs/blob/2fcb11a2442b27834db87b2f62511037c31b5e36/pkgs/applications/misc/octoprint/default.nix#L4-L12

Having a function like that will imply that changing version is sufficient to get a working package, while that is not true at all. Therefore, I am against exposing such a common function.

In my case this was mostly useful for downgrades because nixpkgs keeps only a single version of everything. I used it in a package that pulls in a lot of old dependencies. Just changing the version does seem to be sufficient for most things, but as always you have to look at what that version of your package wants if you expect it to behave reasonably.
Minor sidenote: for a lot of downgrades you can look at the package's history in nixpkgs to see what worked. I suppose I should look into trying a simple fetch + callpackage combo for old commits, hmm.

I'm also against adding this to pythonPackages since it's really not very general (it requires the use of fetchPypi) and very easy to write yourself.


'ForeignKey' object has no attribute 'remote_field on Dango 1.8

For business reasons we're stuck with using django 1.8 and django-extensions 2.2.1 but we're running into this:
command: ./manage.py graph_models -a -g -o my_project_visualized.png
AttributeError: 'ForeignKey' object has no attribute 'remote_field'

Yeah, your right, this broke with an upgrade to newer Django versions... Django-Extensions follows the same support schema as Django so "officially" support ended in April 2018...
If there is an easy, something which does not really add code complexity or maintenance burden, PR possible which makes it work on Django 1.8 then I am not against merging it.
However to be honest we cannot guarantee that this in turn will not be removed again sometime in the future....
There will probably be more and more issues over time as the code base will not test or check for compatibility on those older non supported Django version and sometimes will actively remove compatibility code in favor of easier maintenance.
I realize this might not be entirely the answer you are looking for but I hope it helps none the less :-)
If there is a clean none intrusive patch possible then please submit a PR for inclusion.