Allow ipv6.dhcp=true and ipv6.firewall=false

Currently it's not possible to assign static IPv6 addresses to containers (using ipv6.dhcp: "true" and ipv6.dhcp.stateful: "true") without using the build in firewall configuration (ipv6.firewall: "true").
This trivial patch fixes this.

This pull request didn't trigger Jenkins as its author isn't in the whitelist.
An organization member must perform one of the following:

To have this branch tested by Jenkins, use the "ok to test" command.
To have a one time test done, use the "test this please" command.

Those commands are simple Github comments of the format: "jenkins: COMMAND"

Thanks for your contribution!
Could you update your commit message to include the required Signed-off-by line as described in CONTRIBUTING.md?
Once that's done we can have the branch go through testing and then merge it.
Thanks!

@Skrupellos ping

Since the original author isn't responding and this indeed is a trivial. I'll update the branch re-pushing this commit under my name and moving the original author to a Suggested-by which should sort out the validation needs for the DCO.

Sorry for my delay. And thank you for your very quick responses :)
You did exactly what I would have suggested. :+1:


CellMeasurerCache is really slow if you scroll to the bottom. Would you be open to a PR?

Bug Report
I'm trying to build a table with fixed headers. To do it, I'm using a MultiGrid with a CellMeasurer. However, if the user scrolls to the bottom, the performance becomes unusable. From profiling, I can see that the bottleneck is in CellMeasurerCache. _updateCachedColumnAndRowSizes.
Here's an example grid with 100k rows. If you scroll at the top, it's fine, but once you scroll to the bottom, any future scrolling locks the browser:
https://codesandbox.io/s/react-virtualized-list-with-width-100-forked-mmu5r8?file=/Example.js
What is the current behavior?
This is caused by how the CellMeasurerCache recalculates the max width and height when you call set. It keeps a record of the farthest index visited, and it iterates all rows/cols up until that index whenever you call set. This is to determine the new max height/width. However, for large data sets, this becomes really slow because it's an O(n) algorithm.
What is the expected behavior?
It looks like we only care about the max value for width and height, so we could make this a lot faster, something like O(log(n), by storing them as a max heap or a sorted array instead. Would you be open to a PR to implement this?
Which versions of React and react-virtualized, and which browser / OS are affected by this issue? Did this work in previous versions of react-virtualized?

Browser
Any

OS
Any

React
Any

React DOM
Any

react-virtualized
9.22.3

Screenshot from Chrome's profiler:

For my use case, I can guarantee that my cells never get removed or change size, so I've copied the CellMeasurerCache and modified it to not iterate all the rows, and to just keep the max updated like this:
this._columnWidthCache[columnKey] = Math.max(this._columnWidthCache[columnKey] || 0, width);

if someone use this lib is obvio that will use it with a remote data, with unknown height for every cell, so why the docs dont put more priory over that? The creator is thinking data come from local? Is very difficult to make it work. anyone know a wrapper library for this that encaplate the complexity of this in a very friendly and easy to use one?

i have the same issue with my infiniteLoader Table when scrolling up and down.i think A large number of element in each row may be my reason. So i am looking forward Anyone has solution can help me. Thanks of All !


Add consensus calling to pathogen screening pipeline

Description of feature
Add the option of calling consensus. If there are many reads mapped to pathogen genomes, it is recommended to call consensus first and use the consensus sequence as input for downstream BLAST analysis.

Added: https://github.com/genomic-medicine-sweden/metaval/pull/31


[Feature Request] Sumarization toolkit and examples

One feature I would love to have in Langchain.rb that may be super-useful is summarization:
https://python.langchain.com/en/latest/modules/chains/index_examples/summarize.html
I don't think it's super hard to implement. (at least: a base version of it)

@ProGM Hmm... we can definitely add a def summarize(text:) method to every LLM class.
To list them out:

Cohere already has a Summarize endpoint: https://github.com/andreibondarev/cohere-ruby#summarize
OpenAI has a few prompt-driven examples (search for "summary/summari..."): https://platform.openai.com/examples. I personally kind of like the "TL;DR" method. Do you have a preference?
Google PaLM summarization would be prompt-driven as well.
Hugging Face has a ton of different models focusing on summarization. Have you tried any of these by chance? https://huggingface.co/models?pipeline_tag=summarization&sort=downloads
Same with Replicate -- most likely prompt-driven summarization would be needed.

When I say prompt driven I mean that we'd build something like the following prompt:
Write a concise summary of the following:

#{text_to_be_summarize}

CONCISE SUMMARY:

... and pass this to the LLM. Btw -- this prompt was taken from here.
@ProGM What are your thoughts?

@andreibondarev Not sure if this should be just a method of the LLM classes.
When I say toolkit, I mean the full set of things:
a) a method in LLM
b) a set of strategies (stuff, map_reduce, refine)
c) a way to use it in combination with other stuff
The cool feature you have in python LangChain is that you can configure the ready-to-use summarize chain, declare it as a tool and use it in a chain of thoughts.
Something like (pseudo-ruby-code):
summarization_tool = Langchain::Tool.new(
  name: 'summarizer tool',
  function: Langchain::Summarizer.new(strategy: :map_reduce),
  description: 'This tool can be used to summarize a long text'
)

agent = Agent::ChainOfThoughtAgent.new(
  llm: :openai,
  llm_api_key: ENV["OPENAI_API_KEY"],
  tools: ['search', 'calculator', summarization_tool]
)

@ProGM Just a quick iteration on top of your pseudo-ish code:
cohere = LLM::Cohere.new(...) # Let's say you want to use Cohere's summarization endpoint

summarization_tool = Langchain::Tool.new(
  function: -> { |text| cohere.summarize(text: text)
  description: "This tool can be used to summarize a long text."
)

agent = Agent::ChainOfThoughtAgent.new(
  llm: :openai,
  llm_api_key: ENV["OPENAI_API_KEY"],
  tools: ['search', 'calculator', summarization_tool]
)

@ProGM This PR would address the first part of this.

Source: https://docs.langchain.com/docs/use-cases/summarization

A common use case is wanting to summarize long documents. This naturally runs into the context window limitations. Unlike in question-answering, you can't just do some semantic search hacks to only select the chunks of text most relevant to the question (because, in this case, there is no particular question - you want to summarize everything). So what do you do then?
The most common way around this is to split the documents into chunks and then do summarization in a recursive manner. By this we mean you first summarize each chunk by itself, then you group the summaries into chunks and summarize each chunk of summaries, and continue doing that until only one is left.

In order to tackle the issue of summarizing documents that exceed the context window -- I think what we could do is to enhance the summarize() methods to check the length of the text being passed in and if it's too long then recursively split -> summarize -> combine -> summarize.

@ProGM Just a quick iteration on top of your pseudo-ish code:
cohere = LLM::Cohere.new(...) # Let's say you want to use Cohere's summarize endpoint

summarization_tool = Langchain::Tool.new(
  name: "summarization_tool",
  function: -> { |text| cohere.summarize(text: text),
  description: "This tool can be used to summarize a long text."
)

agent = Agent::ChainOfThoughtAgent.new(
  llm: :openai,
  llm_api_key: ENV["OPENAI_API_KEY"],
  tools: ['search', 'calculator', summarization_tool]
)

What're your thoughts?
@andreibondarev

That's exactly what I meant. It would be great! 🎉

@ProGM This PR would address the first part of this.

Cool!

Source: https://docs.langchain.com/docs/use-cases/summarization

A common use case is wanting to summarize long documents. This naturally runs into the context window limitations. Unlike in question-answering, you can't just do some semantic search hacks to only select the chunks of text most relevant to the question (because, in this case, there is no particular question - you want to summarize everything). So what do you do then?
The most common way around this is to split the documents into chunks and then do summarization in a recursive manner. By this we mean you first summarize each chunk by itself, then you group the summaries into chunks and summarize each chunk of summaries, and continue doing that until only one is left.

In order to tackle the issue of summarizing documents that exceed the context window -- I think what we could do is to enhance the summarize() methods to check the length of the text being passed in and if it's too long then recursively split -> summarize -> combine -> summarize.

Yup, I think that this concept is implemented  with the refine strategy in Langchain:
https://github.com/hwchase17/langchain/blob/9c0cb90997db9eb2e2a736df458d39fd7bec8ffb/langchain/chains/summarize/refine_prompts.py
And we may need a tokenizer library to count tokens, like this or this.

@ProGM I think an incremental next step would be adding tiktoken_ruby to wrap the OpenAI API calls to ensure that token limits are not exceeded when completion endpoint is being hit.

@ProGM Would something like this work as a good starting point? https://github.com/andreibondarev/langchainrb/pull/71
I think the next step in that summarization workflow would be to recursively check the token length as the passed in text is being summarized.

@ProGM Thanks for keeping me up to date!
It's a good start for sure.
I think that token limit is not something exclusive of OpenAI.
PaLM should have 8000 tokens.
It's a good start for sure.
I think that token limit is not something exclusive of OpenAI.
PaLM should have 8000 tokens. Anthropic has 100k (that are a lot, but yet a limit)

Yeah, I just meant that the Tiktoken library is only for OpenAI models and no others.

Oh, I didn't know about it! D:


Roundup: [oss-security] CVE-2017-6414 Qemu: libcacard: host memory leakage while creating new APDU

Here is a report from the oss-security mailing list for Vulnerability Roundup 27.
Skip to First Email
Instructions:
Identification
Identify if we have the software, in 16.09, 17.03, and unstable. Then determine if we are vulnerable, and make a comment with your findings. It can also be helpful to specify if you think there is a patch, or if it can be fixed via a general update.
Example:
unstable: we are not vulnerable (link to the package)
17.03: we are vulnerable (link to the package)
16.09: we don't have it packaged

IMPORTANT: If you believe there are possibly related issues, bring them up on the parent issue!
Patching
Start by commenting on this issue saying you're working on a patch. This way, we don't duplicate work.
If you open a pull request, tag this issue and the master issue for the roundup.
If you commit the patch directly to a branch, please leave a comment on this issue with the branch and the commit hash, example:
fixed:

release-16.09: abc123

Skip to First Email
Upon Completion ...

[ ] Update Graham's database

Info
Triage Indicator:
-needs-triage +roundup27 thread:0000000000003f22

File Search: https://search.nix.gsc.io/?q=qemu&i=fosho&repos=nixos-nixpkgs
GitHub Search: https://github.com/NixOS/nixpkgs/search?utf8=✓&q=qemu+in%3Apath&type=Code

Should the search term be changed from qemu? Suggest a new package search by commenting:
-suggested:qemu +suggested:correctPackageName thread:0000000000003f22

Known CVEs: CVE-2017-6414

Skip to End
Wed, 1 Mar 2017 23:38:14 +0530 (IST) P J P <ppandit-at-redhat.com>, alpine.LFD.2.20.1703012335480.15645@wniryva
   Hello,

The CAC(Common Access Card) library, used by Quick Emulator(Qemu) to implement
smartcard support, is vulnerable to a host memory leakage issue. It could
occur while allocating a new APDU object using guest supplied raw byte stream
in 'vcard_apdu_new'.

A guest user/process could use this flaw to leak host memory resulting in DoS.

Upstream patch:
---------------
   -> https://cgit.freedesktop.org/spice/libcacard/commit/?id=9113dc6a303604a2d9812ac70c17d076ef11886c

Reference:
----------
   -> https://bugzilla.redhat.com/show_bug.cgi?id=1427833

This issue was reported by Li Qiang of 360.cn Inc.

'CVE-2017-6414' assigned via -> http://cveform.mitre.org/

Thank you.
--
Prasad J Pandit / Red Hat Product Security Team
47AF CE69 3A90 54AA 9045 1053 DD13 3D32 FE5B 041F

Skip to End

Our version of qemu is recent enough to contain the fix.


4.5.1 f cim 14675: Formdata as ConversationData and as an activity

Different types for conversation data added and Formdata can be pushed as an activity.

@muhammadzubair07
Kindly review this merge request.
It contains changes for pushing Formdata as an activity as well as handling different types of conversation data.


New version: LinwoodCloud.Butterfly.Nightly version 2.0.0-beta.8

Pull request has been created with WinGet Releaser v2 :rocket:
Microsoft Reviewers: Open in CodeFlow

Hi @CodeDoctorDE,
This version of this package doesn't remain responsive, and displays in an unexpected way:

Is this expected?

Thanks, it looks like a bug in flutter.
I will publish a hotfix

I will close this pr since my ci will create a new pr on the new hotfix


Clearly separate stable modeler from nightly app

Is your feature request related to a problem? Please describe.
As a user I'd like to safely try out the Camunda Modeler nightly without interfering with the stable app (which I may have downloaded).
Describe the solution you'd like

[ ] The nightly clearly distinguishes from the stable app, i.e. via the title
[ ] The nightly can be opened next to the stable (i.e. to compare behavior). This is currently blocked via our single instance behavior
[ ] The nightly uses a separate workspace, i.e. it does not interfere with workspace data saved by the stable version of the app

Describe alternatives you've considered
No real alternatives.
Additional context
This will allow us to more actively promote the nightly for feedback sessions.

We could go the same direction here like we do with our dev builds: The app title indicates that we're on a nightly Camunda Modeler (nightly), maybe even including the build name.


Add ability to register custom UPath implementations

It appears that the only way currently to register a custom implementation and avoid falling back on upath.core is to import and append to upath.registry._register.known_implementations. It would be helpful if there were a top-level registration, similar to fsspec.register_implementation(name, filesystem)

Hi @tehunter,
I agree we should offer a similar implementation. Maybe even an entrypoint so that other packages can automatically register their implementations.
Do you have a custom implementation and would like to upstream it?
And would you be interested in working on a PR?
Cheers,
Andreas 😃

+1 for this functionality... perhaps it could borrow from fsspec's implementation?
I have a custom fsspec implementation which is really just a wrapper over abfs:// to inject credentials, and in fsspec I do:
from fsspec import register_implementation

register_implementation("my_protocol", MyWrapperInheritingFromAzureBlobFileSystem)

For now, I then am doing:
import upath.registry

upath.registry._Registry.known_implementations["my_protocol"] = "upath.implementations.cloud.AzurePath"


Uninstalling gives errors

Describe the bug
When uninstalling the integration (stoped using Echo) i get a configuration error after restart (see screenshot. Is there anything else I need to remove or is this a bug?
To Reproduce
Steps to reproduce the behavior:

Go to HACS
Click on 'Uninstall´
Restart

Expected behavior
No error message after restart
Screenshots
If applicable, add screenshots to help explain your problem.

System details

Home-assistant (version): 109.3
Hassio (Yes/No): YES
alexa_media  (version from const.py or HA startup): latest
alexapy (version from pip show alexapy or HA startup): ?

Logs
Please provide logs. We'll be most likely asking for them anyway.
Additional context
Add any other context about the problem here.

You also have to remove it from HA. HACS does not actually do anything other than deleting the files. You may have to delete it from your configuration.yaml or delete from the integrations page. If it's on your integrations page, the files must be available or it can't uninstall itself.

Ahh, that wasnt clear for me at all. So the order I do this is of importance. Have missed that in all I have been reading around HA, sorry. My solution was to reinstall via HACS, delete integration and the uninstall via HACS.
I assume it works like this for all HACS install. lesson learned, not 100% user friendly but that is of course not your fault, system implementation.
Thanks for the help. I close the case.


Failed to launch the browser process

Hello,
I have the following error when I tried to run it on my Ubuntu 24.04. Here are the error message.
/home/ComfyUI/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.js:299
            reject(new Error([
                   ^

Error: Failed to launch the browser process!
[0929/215138.546574:FATAL:zygote_host_impl_linux.cc(117)] No usable sandbox! Update your kernel or see https://chromium.googlesource.com/chromium/src/+/main/docs/linux/suid_sandbox_development.md for more information on developing with the SUID sandbox. If you want to live dangerously and need an immediate workaround, you can try using --no-sandbox.
#0 0x5e3892e5d4e2 base::debug::CollectStackTrace()
#1 0x5e3892dceab3 base::debug::StackTrace::StackTrace()
#2 0x5e3892dcbcf7 logging::LogMessage::~LogMessage()
#3 0x5e38908e30a2 content::ZygoteHostImpl::Init()
#4 0x5e38929178af content::ContentMainRunnerImpl::Initialize()
#5 0x5e3892914f6b content::RunContentProcess()
#6 0x5e38929154fe content::ContentMain()
#7 0x5e38929773c6 headless::(anonymous namespace)::RunContentMain()
#8 0x5e3892977068 headless::HeadlessShellMain()
#9 0x5e388ee601e3 ChromeMain
#10 0x7dbe6362a1ca (/usr/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9)
#11 0x7dbe6362a28b __libc_start_main
#12 0x5e388ee6002a _start

TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md

    at onClose (/home/ComfyUI/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.js:299:20)
    at Interface.<anonymous> (/home/ComfyUI/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.js:287:24)
    at Interface.emit (node:events:532:35)
    at Interface.close (node:internal/readline/interface:527:10)
    at Socket.onend (node:internal/readline/interface:253:10)
    at Socket.emit (node:events:532:35)
    at endReadableNT (node:internal/streams/readable:1696:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)

Seems there's an issue in starting the Chromium for puppeteer (for the Whatsapp verification and listening most likely. Could you possibly help me take a look at this? @daxcay
Appreciate it.

Hi @osyahbana,
Currently, only Windows is supported. I tried to make it compatible with Ubuntu, but I haven't succeeded yet. Chrome on Ubuntu causes a lot of bugs. I forgot to mention this in the documentation.
Sorry for any inconvenience caused.

No worries, thanks for the plugin regardless. I'll set this git to watched. Thank you.


Download dependency fixed

The initially provided dependency could not be resolved.

Close due to inactivity!

Hi, it's just a suggestion I have not investigated in more detail.
In our build.gradle the "com.github.hadilq.liveevent:liveevent:$libVersion" cannot be resolved. So far I'm not sure what causes the issue. However, the "com.github.hadilq:LiveEvent:$libVersion" dependency is resolved immediately.
If I have more info I'll let you know.

Hi! Thank you for your feedback. At some point, I decided to migrate to Sonatype, which you can find it in a19728a4653ade77d6821924ef60ae439f15b10a commit. So if you add mavenCentral() in you gradle then it should work.


Dead dependencies

Probably more where this came from, but
github.com/influxdata/influxdb/client/v2
is nonexistant.

Is this in vendoring?
@1995parham is working on transition to Go modules, and this should be corrected in this PR as well.

I can run go mod tidy on my PR to remove all unused packages.

I have run the command, and the result is available on #840

Fixed here: https://github.com/mainflux/mainflux/pull/971


CentOS 7 - cannot install docker as documentation

Problem description
I installed as the document in https://docs.docker.com/engine/install/centos/.
When I run $ sudo yum install docker-ce docker-ce-cli containerd.io
I got errors:
Error: moby-runc conflicts with containerd.io-1.4.9-3.1.el7.x86_64
Error: moby-containerd conflicts with containerd.io-1.4.9-3.1.el7.x86_64
You could try using --skip-broken to work around the problem`

I found the ticket for this issue in https://github.com/docker/docker.github.io/issues/11198 and applied the fix as:

Update --- my repo's needed to be updated --- the following resolved me:
curl https://packages.microsoft.com/config/rhel/7/prod.repo > ./microsoft-prod.repo
sudo cp ./microsoft-prod.repo /etc/yum.repos.d/
yum update -y

https://docs.microsoft.com/en-us/windows-server/administration/linux-package-repository-for-microsoft-software
Originally posted by @cutty201 in https://github.com/docker/docker.github.io/issues/11198#issuecomment-667726765

However, it didn't help as well. I got errors:
Not using downloaded packages-microsoft-com-prod/repomd.xml because it is older than what we have:
  Current   : Thu Aug  5 22:06:58 2021
  Downloaded: Wed Aug  4 17:12:19 2021
No packages marked for update

How can I install docker??
My system is:
OS: CentOS Linux 7 (Core) x86_64
Host: KVM/QEMU (Standard PC (i440FX + PIIX, 1996) pc-i440fx-2.9)
Kernel: 3.10.0-1160.15.2.el7.x86_64

Looks like you may already have installed Microsoft's build of docker and containerd (which are called moby-engine and moby-containerd); they both provide the same, but with a different name, so you'd probably have to uninstall one.
/cc @cpuguy83

This worked for me, it looks like it updates the different packages, and now I can start the docker service.

sudo dnf install docker-ce docker-ce-cli containerd.io

Closing this issue as stale. If you need further support, please try the Docker Community Slack or Forums:

https://dockercommunity.slack.com/
https://forums.docker.com/


Update to v<IP_ADDRESS>

(bot too slow)

Checklist

[x] Used a personal fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[x] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

@conda-forge-admin, please rerender

Closing to let the bot's PR do its thing (but this PR was one minute earlier!).


Every pub is priced with 9 euro

Right now every pubs are 9 euros, which adds a lot of noise and irrelevant informations when looking for a pub.
I am afraid it would deter people to book (entry fees), and is not really cosmetic...

The 9 EUR information will be removed from the Searching page, and the terms will be changed to "deposit".

 Clarify the deposit policy

@buckwierd I was thinking we could replace the "9 EUR" carrets with a little pub icons.
Here's the original code in src/components/SearchMapPriceLabel/SearchMapPriceLabel.js.
  <button className={classes} onClick={() => onListingClicked(currentListing)}>

{formattedPrice}

  </button>

Would you have a suggestion for a pub icon to put on the map? :)

@lcoenen I don't have a icon in mind but I believe that if you link the Google material icons to our platform, we'll be able to find a good icon. We will also use these icons for future platform upgrades, as they are very handy to use: https://material.io/tools/icons/?style=baseline

The change have been pushed to staging. @buckwierd @RohrerHope Could you tell me what do you think?

@buckwierd We decided to simply use the whichost logo :)

Of course that doesn't say anything about the icon library we should use.

Love it ❤

From what I can se here, it’s fine for me. I hope it’s not pixeled like the mobile version icon that you Loïc still have to update, by the way.

@buckwierd Please comment on the corresponding issue.

This have gone live, the issue can be closed.


Requested device or endpoint not found: 1038:183a:03 on MacOS Ventura

Hi :)
I installed rivalcfg 4.8 with pip3 and I'm running Python 3.9.9 on MacOS Ventura 13.3
When my mouse is plugged I have this error when I try to print help
Traceback (most recent call last):
  File "/Users/optimuskoala/.pyenv/versions/3.9.9/bin/rivalcfg", line 8, in <module>
    sys.exit(main())
  File "/Users/optimuskoala/.pyenv/versions/3.9.9/lib/python3.9/site-packages/rivalcfg/__main__.py", line 78, in main
    mouse = get_first_mouse()
  File "/Users/optimuskoala/.pyenv/versions/3.9.9/lib/python3.9/site-packages/rivalcfg/__init__.py", line 29, in get_first_mouse
    return mouse.get_mouse(
  File "/Users/optimuskoala/.pyenv/versions/3.9.9/lib/python3.9/site-packages/rivalcfg/mouse.py", line 36, in get_mouse
    hid_device = usbhid.open_device(vendor_id, product_id, profile["endpoint"])
  File "/Users/optimuskoala/.pyenv/versions/3.9.9/lib/python3.9/site-packages/rivalcfg/usbhid.py", line 96, in open_device
    raise DeviceNotFound(
rivalcfg.usbhid.DeviceNotFound: Requested device or endpoint not found: 1038:183a:03

I can see my mousse with the print-debug option
RIVALCFG
========
Version: 4.8.0
Installation path: /Users/optimuskoala/.pyenv/versions/3.9.9/lib/python3.9/site-packages/rivalcfg

OPERATING SYSTEM
================
OS: Darwin
PYTHON
======
Python version: 3.9.9
HIDAPI version: 0.13.1

PLUGGED STEELSERIES DEVICES ENDPOINTS
=====================================
1038:183a | 00 | SteelSeries Aerox 3 Wireless (firmware v0)
1038:183a | 00 | SteelSeries Aerox 3 Wireless (firmware v0)
1038:183a | 00 | SteelSeries Aerox 3 Wireless (firmware v0)
1038:183a | 00 | SteelSeries Aerox 3 Wireless (firmware v0)
1038:183a | 00 | SteelSeries Aerox 3 Wireless (firmware v0)
1038:183a | 00 | SteelSeries Aerox 3 Wireless (firmware v0)

Any idea to makes it work ? :)

I do not know why the mouse is listed bu is not found when trying to open it... I do not have macOS to help debuging this :(

Hi Fabien :)
Do you want some debuging trace or something ?
Maybe rivalcfg is not supported under macOS Ventura ? (I think this is not the issue here)
I tried to put my mousse on usb, then bluetooth and then wifi but it's every time the same error.

I think I do not know macOS enough to be really helpful here... :(
What is strange here is that you have 6 endpoints for the device but all are displayed as being the "endpoint 0"... Maybe an other software or a kernel diver is already attached to the device and makes some interference?

I don't have steelseries driver installed.
I could try to make it work myself by cloning the repo and try in local.
I'll keep you in touch :)

I have this issue as well.
here's what a full dump of my enumerated devices looks like:
{'interface_number': 0,
 'manufacturer_string': 'SteelSeries',
 'path': b'DevSrvsID:4294982071',
 'product_id': 5926,
 'product_string': 'SteelSeries Rival 650 Wireless',
 'release_number': 294,
 'serial_number': '000000000000',
 'usage': 1,
 'usage_page': 65473,
 'vendor_id': 4152}
{'interface_number': 0,
 'manufacturer_string': 'SteelSeries',
 'path': b'DevSrvsID:4294982077',
 'product_id': 5926,
 'product_string': 'SteelSeries Rival 650 Wireless',
 'release_number': 294,
 'serial_number': '000000000000',
 'usage': 2,
 'usage_page': 1,
 'vendor_id': 4152}
{'interface_number': 0,
 'manufacturer_string': 'SteelSeries',
 'path': b'DevSrvsID:4294982077',
 'product_id': 5926,
 'product_string': 'SteelSeries Rival 650 Wireless',
 'release_number': 294,
 'serial_number': '000000000000',
 'usage': 1,
 'usage_page': 1,
 'vendor_id': 4152}
{'interface_number': 0,
 'manufacturer_string': 'SteelSeries',
 'path': b'DevSrvsID:4294982075',
 'product_id': 5926,
 'product_string': 'SteelSeries Rival 650 Wireless',
 'release_number': 294,
 'serial_number': '000000000000',
 'usage': 6,
 'usage_page': 1,
 'vendor_id': 4152}
{'interface_number': 0,
 'manufacturer_string': 'SteelSeries',
 'path': b'DevSrvsID:4294982075',
 'product_id': 5926,
 'product_string': 'SteelSeries Rival 650 Wireless',
 'release_number': 294,
 'serial_number': '000000000000',
 'usage': 1,
 'usage_page': 12,
 'vendor_id': 4152}

As you can see, interface_number is not unique here, so filtering on it selects a device at random.  After some trial and error, I discovered that filtering on interface["usage_page"] == 65472 allowed me to find the one that would report battery status reliably.  I don't know if this is the same device used for other stuff; I have only the vaguest idea what "usage pages" are or how HID devices work.

I put up a PR for this, #202, since I was having this issue with my mouse too.  I don't know when it started occurring, but "when upgrading to Ventura" seems plausible.

on my rival 100 it seems to be 0:
 {'path': b'5-2:1.0',
  'vendor_id': 4152,
  'product_id': 5890,
  'serial_number': '',
  'release_number': 101,
  'manufacturer_string': 'SteelSeries',
  'product_string': 'SteelSeries Rival 100 Gaming Mouse',
  'usage_page': 0,
  'usage': 0,
  'interface_number': 0},
 {'path': b'5-2:1.1',
  'vendor_id': 4152,
  'product_id': 5890,
  'serial_number': '',
  'release_number': 101,
  'manufacturer_string': 'SteelSeries',
  'product_string': 'SteelSeries Rival 100 Gaming Mouse',
  'usage_page': 0,
  'usage': 0,
  'interface_number': 1},

I will check with all my other SteelSeries mice to see if it is specific to Aerox and Rival 650 / or if it may be specific to macOS Ventura...

Ok I made some test on Linux with my Rival 650.
When I enumerate interfaces I have:
 {'path': b'2-7:1.0',
  'vendor_id': 4152,
  'product_id': 5926,
  'serial_number': '000000000000',
  'release_number': 294,
  'manufacturer_string': 'SteelSeries',
  'product_string': 'SteelSeries Rival 650 Wireless',
  'usage_page': 0,
  'usage': 0,
  'interface_number': 0},
 {'path': b'2-7:1.1',
  'vendor_id': 4152,
  'product_id': 5926,
  'serial_number': '000000000000',
  'release_number': 294,
  'manufacturer_string': 'SteelSeries',
  'product_string': 'SteelSeries Rival 650 Wireless',
  'usage_page': 0,
  'usage': 0,
  'interface_number': 1},
 {'path': b'2-7:1.2',
  'vendor_id': 4152,
  'product_id': 5926,
  'serial_number': '000000000000',
  'release_number': 294,
  'manufacturer_string': 'SteelSeries',
  'product_string': 'SteelSeries Rival 650 Wireless',
  'usage_page': 0,
  'usage': 0,
  'interface_number': 2},
 {'path': b'2-7:1.3',
  'vendor_id': 4152,
  'product_id': 5926,
  'serial_number': '000000000000',
  'release_number': 294,
  'manufacturer_string': 'SteelSeries',
  'product_string': 'SteelSeries Rival 650 Wireless',
  'usage_page': 0,
  'usage': 0,
  'interface_number': 3},

With Wireshark I can capture this:

So the problem is:

On macOS (at least in your enum), all endpoints are numbered as "0". This is a very strange behaviour :/
On Linux, the usage page seems to not be exposed by the hidraw API of the kernel (probably not useful in this context)
The usage page seems to be an id that defines the data type used by the endpoint (so it should probably not be used to locate the right endpoint)... Example of generic usage id:

Usage ID
Usage Name
hidusage.h constant

0x01
Pointer
HID_USAGE_GENERIC_POINTER

0x02
Mouse
HID_USAGE_GENERIC_MOUSE

0x04
Joystick
HID_USAGE_GENERIC_JOYSTICK

0x05
Game Pad
HID_USAGE_GENERIC_GAMEPAD

0x06
Keyboard
HID_USAGE_GENERIC_KEYBOARD

0x07
Keypad
HID_USAGE_GENERIC_KEYPAD

0x08
Multi-axis Controller
HID_USAGE_GENERIC_MULTI_AXIS_CONTROLLER

I do not know what is going on on macOS Ventura, but there is clearly an issue somewhere. We will have to find a way to know which interface is the right one without using the usage page and the interface_number :/

I had an idea to fix the issue on macOS Ventura (without breaking Linux). I pushed it on the 200-macos-ventura-endpoint branch. Can someone test if it works? :)
git clone https://github.com/flozz/rivalcfg.git
cd rivalcfg
git checkout 200-macos-ventura-endpoint
python3 -m venv __env__
source __env__/bin/activate
pip install -e .

python -m rivalcfg [...]

UP
I really need someone on macOS Ventura to test it work :)

I have this problem too as of updating, happy to help test too.

Sadly 200-macos-ventura-endpoint doesn't fix it for me. As before, the connection is still unreliable, and I freaquently get.
Traceback (most recent call last):
  File "/Users/glyph/.local/bin/rivalcfg", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/Users/glyph/Projects/rivalcfg/rivalcfg/__main__.py", line 81, in main
    raise error
  File "/Users/glyph/Projects/rivalcfg/rivalcfg/__main__.py", line 78, in main
    mouse = get_first_mouse()
            ^^^^^^^^^^^^^^^^^
  File "/Users/glyph/Projects/rivalcfg/rivalcfg/__init__.py", line 29, in get_first_mouse
    return mouse.get_mouse(
           ^^^^^^^^^^^^^^^^
  File "/Users/glyph/Projects/rivalcfg/rivalcfg/mouse.py", line 36, in get_mouse
    hid_device = usbhid.open_device(vendor_id, product_id, profile["endpoint"])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/glyph/Projects/rivalcfg/rivalcfg/usbhid.py", line 101, in open_device
    device.open_path(path)
  File "hid.pyx", line 154, in hid.device.open_path
OSError: open failed

I also still get Unable to get the battery level sometimes, so the behavior seems identical.

I also double checked to make sure it wasn't a wired/wireless issue; I tried while wired, while on wireless, and wired with the wireless entirely disconnected.

@johnelliott Thank you for the feedback!
@glyph Your issue seems de be different from the previous one:
rivalcfg.usbhid.DeviceNotFound: Requested device or endpoint not found

— VS —

OSError: open failed

The endpoint seems to be found but hidapi is not able to open it (an other software or driver is attached to the device? or a permission issue?). We will have to find why it cannot be opened ^^"

@glyph I turned your comment as a new issue as it is not the same problem.
I close this issue as the initial problem is solved. The fix will be released soon :)

The endpoint seems to be found but hidapi is not able to open it (an other software or driver is attached to the device? or a permission issue?). We will have to find why it cannot be opened ^^"

I should ask, is there anything diagnostic you'd like me to do? I'm sure it's not permissions, but I don't know what else it might be.

I do also notice some intermittent issues with Ventura. Before the 200-macos-ventura-endpoint branch it would never work.
Now when I wake my mac from sleep and the mouse and usb adapter seem to have disassociated I need to run the script again, and it seems to work within 30 seconds or so after a few tries. Perhaps I'm seeing the same issues as @glyph.

I reopened the issue because I think my fix work for some devices (the ones that use an endpoint != 0, like Aerox) but not for devices that use endpoint 0... For those one, the first endpoint listed will be used and it can be the wrong one. I have to tweak the code a bit more... :)

Can someone on macOS Ventura give me the result of the following command?
python3 -c "import platform ; print(platform.system()) ; print(platform.version()) ; print(platform.mac_ver())"

I pushed a new fix on the 200-macos-ventura-endpoint branch: https://github.com/flozz/rivalcfg/commit/0ed42261dda14d7e1990bf744bafb09942e02647
→ Can you test if it work?
→ Please remind me what mouse model you are using (to allow me to know if it works for both devices that use endpoint 3 and 0).
:)

('13.4', ('', '', ''), 'arm64')

Same here.

→ Can you test if it work?

Kind of. It's better now, but still not completely reliable:
  ★ for each in $(seq 20); do rivalcfg --battery-level; done
Unable to get the battery level
Charging [========  ] 89 %
Charging [========  ] 89 %
Charging [========  ] 89 %
Unable to get the battery level
Unable to get the battery level
Charging [========  ] 89 %
Charging [========  ] 89 %
Unable to get the battery level
Charging [========  ] 89 %
Charging [========  ] 89 %
Unable to get the battery level
Unable to get the battery level
Charging [========  ] 89 %
Unable to get the battery level
Unable to get the battery level
Charging [========  ] 89 %
Unable to get the battery level
Charging [========  ] 89 %
Unable to get the battery level

Contrast my usage-page branch:
  ★ for each in $(seq 20); do rivalcfg --battery-level; done
Charging [========  ] 89 %
Charging [========  ] 89 %
Charging [========  ] 89 %
Charging [========  ] 89 %
Charging [========  ] 89 %
Charging [========  ] 89 %
Charging [========  ] 89 %
Charging [========  ] 89 %
Charging [========  ] 89 %
Charging [========  ] 89 %
Charging [========  ] 89 %
Charging [========  ] 89 %
Charging [========  ] 89 %
Charging [========  ] 89 %
Charging [========  ] 89 %
Charging [========  ] 89 %
Charging [========  ] 89 %
Charging [========  ] 89 %
Charging [========  ] 89 %
Charging [========  ] 89 %

As far as what hardware I'm using: "1038:172b | 00 | SteelSeries Rival 650 Wireless (firmware v0)"

Ok... I need more info to figure what is happening... I pushed a new version of the code in a new branch : 200-macos-ventura-endpoint-test that prints some debug information.
Can you run it multiple times like you did just before and then share results here? :)

200-macos-ventura-endpoint-test ... run it multiple times like you did just before and then share results here? :)

Ran my shell script invoking the program with my flags, this time I didn't see the lights on the mouse change:
$ ./aerox.sh
================================================================================
_IS_MACOS_VENTURA: 1
--------------------------------------------------------------------------------
All interfaces:
[{'interface_number': 0,
  'manufacturer_string': 'SteelSeries',
  'path': b'DevSrvsID:4295010661',
  'product_id': 6200,
  'product_string': 'SteelSeries Aerox 3 Wireless',
  'release_number': 299,
  'serial_number': '',
  'usage': 6,
  'usage_page': 1,
  'vendor_id': 4152},
 {'interface_number': 0,
  'manufacturer_string': 'SteelSeries',
  'path': b'DevSrvsID:4295010657',
  'product_id': 6200,
  'product_string': 'SteelSeries Aerox 3 Wireless',
  'release_number': 299,
  'serial_number': '',
  'usage': 1,
  'usage_page': 12,
  'vendor_id': 4152},
 {'interface_number': 0,
  'manufacturer_string': 'SteelSeries',
  'path': b'DevSrvsID:4295010659',
  'product_id': 6200,
  'product_string': 'SteelSeries Aerox 3 Wireless',
  'release_number': 299,
  'serial_number': '',
  'usage': 1,
  'usage_page': 65473,
  'vendor_id': 4152},
 {'interface_number': 0,
  'manufacturer_string': 'SteelSeries',
  'path': b'DevSrvsID:4295010663',
  'product_id': 6200,
  'product_string': 'SteelSeries Aerox 3 Wireless',
  'release_number': 299,
  'serial_number': '',
  'usage': 1,
  'usage_page': 65472,
  'vendor_id': 4152},
 {'interface_number': 0,
  'manufacturer_string': 'SteelSeries',
  'path': b'DevSrvsID:4295010665',
  'product_id': 6200,
  'product_string': 'SteelSeries Aerox 3 Wireless',
  'release_number': 299,
  'serial_number': '',
  'usage': 2,
  'usage_page': 1,
  'vendor_id': 4152},
 {'interface_number': 0,
  'manufacturer_string': 'SteelSeries',
  'path': b'DevSrvsID:4295010665',
  'product_id': 6200,
  'product_string': 'SteelSeries Aerox 3 Wireless',
  'release_number': 299,
  'serial_number': '',
  'usage': 1,
  'usage_page': 1,
  'vendor_id': 4152}]
--------------------------------------------------------------------------------
macOS Ventura found interface:
{'interface_number': 0,
 'manufacturer_string': 'SteelSeries',
 'path': b'DevSrvsID:4295010659',
 'product_id': 6200,
 'product_string': 'SteelSeries Aerox 3 Wireless',
 'release_number': 299,
 'serial_number': '',
 'usage': 1,
 'usage_page': 65473,
 'vendor_id': 4152}
--------------------------------------------------------------------------------

Here's a log of me running it 20 times:
https://gist.github.com/glyph/09d9b3db000e04634bc66dced662a3db

Thank you for the feedbacks.

It found the following issue on the HIDAPI lib that is used by Rivalcfg to access USB devices: https://github.com/libusb/hidapi/issues/531
They released a fix 3 days ago!
https://github.com/libusb/hidapi/releases/tag/hidapi-0.14.0

Once the Python binding of HIDAPI released we will be able to test if it fixes the issue for us, else we will hack in Rivalcfg. :)
I will revert the change on master waiting for the update.

I just logged back on to say I'd found a way to more reliably reproduce the bug: after the system goes to sleep and the usb mouse RF receiver is off, the bug happens until I switch the mouse off and back on again.
Now it looks like the problem is upstream.

They released a fix 3 days ago!

This makes me feel a little less crazy — as I was hacking around the shifting USB endpoint attributes, I was thinking "this… can't be how it's supposed to work, right?"  Glad that this is getting fixed in the right place!

Went to go check whether cython-hidapi had an issue to update to the next release, and I saw @flozz was already on it :). For those following along at home, here's the link: https://github.com/trezor/cython-hidapi/issues/151

hidapi was updated to v0.14! If someone can test on macOS with the master branch and this version (pip install hidapi==0.14) :)

I published the v4.9.0 where hidapi is updated to v0.14, so it should work on macOS Ventura. Please let me know if it is not the case. :)

Looking good: https://gist.github.com/glyph/e858a95d4008f905ae6e4516aaa6563d


[core-react]: Fix scss imports

Fix imports to use relative paths for files in the same package.

is this an issue in our other ui pkgs as well?

This was the only one that gave me trouble building new test-app so I haven't looked at others. It might be that I was not using all ui pkgs. I will take a look at other pkgs before completing.

Other ui pkgs do not have bad imports.


How to change Segmentation Brush Color

[x] Which version are you using? 5.1.2
[x] Are you reporting to the correct repository? yes
[x] Did you search existing issues?  yes

I want to change segment brush tool color.
Measurement tool color works normally when (cornerstoneTools.toolColors.setActiveColor) is used.
However, this method does not work with the brush tool.
I wonder if another way exists.
Thanks.

You can change the brush colors using codes below.
const setLabelmap = (element, colorLUTIndex) => {
  setColorLUT(colorLUTIndex, [[...colorList[colorLUTIndex]]])
  setActiveSegmentIndex(element, colorLUTIndex)

  setActiveLabelmapIndex(element, colorLUTIndex)
  setColorLUTIndexForLabelmap3D(
    getLabelmap3D(element, colorLUTIndex),
    colorLUTIndex,
  )
  if (!isSegmentVisible(element, colorLUTIndex, colorLUTIndex)) {
    toggleSegmentVisibility(element, colorLUTIndex)
  }
  cornerstone.updateImage(element, true)
}

To correctly use @sisobus's answer, you need to understand that activeSegmentIndex refers to your brush colormap, and activeLabelmapIndex refers to your target labelmap. The codeline above assigns each labelmap a single activeSegmentIndex, so it is required to change activeSegmentIndex and activeLabelmapIndex at the same time.
If you want to change your brush color in the same labelmap, which defaults to zero, the codeline would be like:
const setLabelmap = (element, colorLUTIndex) => {
  setColorLUT(colorLUTIndex, [/*the RGBA code of your color*/])
  setActiveSegmentIndex(element, colorLUTIndex)

  setColorLUTIndexForLabelmap3D(0, colorLUTIndex)
  if (!isSegmentVisible(element, colorLUTIndex, colorLUTIndex)) {
    toggleSegmentVisibility(element, colorLUTIndex)
  }
  cornerstone.updateImage(element, true)
}

The newly changed color will override the previous color when painted at the same pixels.


System Message causing no answer from Assistant

Hello all,
I´m trying to use the system message as described below. Evertytime I use it I don´t have any answer from the LLM.
    messages = [
        {'role': 'system', 'content': f'"{self.role}"'},
        {'role': 'user', 'content': f'"{message}"'},
    ]
    return await client.chat(model=model, messages=messages,)

I was trying to find if there is any issue reported but I didn´t found it. Can someone help me on this ?
Thanks

For general use as shown in most examples, you should have a local ollama server running to be able to continue.
To do this:

Download: https://ollama.com/
In your terminal, run an LLM:

See available LLMs: https://ollama.com/library
Example: ollama run llama2
Example: ollama run llama2:70b

If you want to use a non local server (or a different local one), see the docs on Custom Client

This is verbage as part of the PR: https://github.com/ollama/ollama-python/pull/64

It is also worth noting that you are using an await. Are you using an async client?
For a non async client you do not need await:
import ollama
response = ollama.chat(model='llama2', messages=[
  {
    'role': 'user',
    'content': 'Why is the sky blue?',
  },
])
print(response['message']['content'])

For an async client, you could use an await.
import asyncio
from ollama import AsyncClient

async def chat():
  message = {'role': 'user', 'content': 'Why is the sky blue?'}
  response = await AsyncClient().chat(model='llama2', messages=[message])

asyncio.run(chat())

@connor-makowski  Thanks for your feedback. I used both solution (sync and Async clients). the problem is that when assuming a message with Role: System, LLM is not giving answer.

what model are you using?
your snippet doesn't stream. is it possible the llm is responding but hasn't completed yet? in this mode, ollama will wait until it has the full response before returning to the call. this could look like non-response if it's also generating tokens at a slow rate (due to hardware limitations)


Support deny list

Problem
We migrate our public documents to a new URL and we need to check if there are old links. But seems lychee doesn't support deny list currently.
How to solve
Can you support new option like --deny *abc.com/*, so we can check if there is old links and can fail quickly.

Just use --exclude

Thanks @lebensterben. I think --exclude  means we will exclude these links and just skip checking them, right?

okay I misunderstood you question.

lychee is a link checker, which mainly verify whether a given link is valid, by testing whether it's accessible.
If you want to make certain URL patterns fail regardless of whether it's actually accessible, I don't think it's really what a link checker should do.
If, for example, you want to blacklist a whole IP or domain, you can add it to /etc/hosts with a localhost, loopback, etc.

To find specific URLs in your website repository, grep should work fine:
grep -r 'abc.com' .

This  searches recursively through all plain text files (including HTML) from the current working directory and prints all matches, including the file name. Since this is something that needs to be done once only, it does not require to do any HTTP connection check and there are native system tools to check for patterns, I agree that it is not a feature that makes sense in a link checker.

To find specific URLs in your website repository, grep should work fine:
grep -r 'abc\.com' .

This searches recursively through all plain text files (including HTML) from the current working directory and prints all matches, including the file name. Since this is something that needs to be done once only, it does not require to do any HTTP connection check and there are native system tools to check for patterns, I agree that it is not a feature that makes sense in a link checker.

Thanks. That's what we are doing now to use grep.
One concern is that some developer may put old website links in code and they are not aware of that. If lychee can support this, we can automatically check this with Github action. That can avoid manual effort.

Would https://github.com/lycheeverse/lychee/pull/99 work for you?
It wouldn't perform any link checking. Instead, it dumps all the links extracted from inputs that would be checked.

Is it really that much effort to add a dedicated grep job to a workflow compared to an additional argument for the existing lychee workflow?
I'm currently not sure which user agent lychee has, but another approach would be to block the request based on it webserver-side. Or add a hosts entry on the GitHub actions VM so that lychee fails to resolve that domain (EDIT: Ah, already mentioned by @lebensterben above).
But I get the idea. Not sure how much effort such an "always fail on pattern" option is and whether too many options is seen negative as well.

@mre
I think the idea is to combine it with a regular check, but explicitly fail on certain URL pattern. The dry run would dump and skip all URLs. Ah but at least it can be used in combination with grep more effectively:
! ./lychee ... | grep -q 'abc\.com'

Thanks @MichaIng , this looks good ! ./lychee --no-check [...] | grep -q 'abc\.com'

Well, if we redefine lychee as both a link checker and a link linter, then this feature request is for the linter capability.

@ylwu-amzn, this should now be possible in master:
! ./lychee --dump [...] | grep -q 'abc\.com'

Note that the flag is called --dump and not --no-check as initially proposed. Discussion and PR here: #99.
There was a small issue related to pipes that was fixed in https://github.com/lycheeverse/lychee/pull/340.

Closing this as there is a solution now using --dump (see above).


Lighthouse score optimization

Generate a Lighthouse Report with videos and screenshots of failed tests when GitHub actions run and automatically upload it to view in GitHub Actions. Use Playwright to hit each page to run Lighthouse.


Add mcxn236 usbhs support

Add mcxn236 usbhs support

@NeilChen93 can you take a look at the CI failures?

@NeilChen93 this needs a documentation update as well

@NeilChen93 this needs a documentation update as well

@NeilChen93 this needs a documentation update as well
Hi @dleach02, May I ask which document need to be updated?

@NeilChen93 this needs a documentation update as well
Hi @dleach02, May I ask which document need to be updated?

Add an entry into the hardware features table here: https://github.com/zephyrproject-rtos/zephyr/blob/903b7cf9b62a261abf807d3b0fb9e15cf6497d7f/boards/nxp/frdm_mcxn236/doc/index.rst?plain=1#L80
We should generally do this any time we enable a new feature

When we add features we update the feature list in the doc page.

@NeilChen93 , how was this tested.

@NeilChen93, please also update the 4.1 release notes to indicate this support was added.

Will need a rebase


avoid Latin phrases according doc style guilde.

https://kubernetes.io/docs/home/contribute/style-guide/#avoid-latin-phrases

This change is

Personally speaking, it is widely existed in docs of k8s.
So I think it is not necessary to update.

/lgtm


"flutter create demo_app" only create .gitignore then exit

Whats the Situation

I installed Flutter and on Bash flutter doctor runs fine and checks all the required steps
When I hit flutter create demo_app, the error appears
I reinstalled Flutter and changed sdk path, still it's happening 😨

Logs

flutter create demo_app
Creating project demo_app...
  demo_app\.gitignore (created)

Oops; flutter has exited unexpectedly.
Sending crash report to Google.
Crash report sent (report ID: 595219dfbd712d18)
Crash report written to C:\Users\asdf\AppData\Local\Temp\flutter_04.log;
please let us know at https://github.com/flutter/flutter/issues.

$ flutter doctor -v
[√] Flutter (Channel stable, v1.2.1, on Microsoft Windows [Version 10.0.17134.648], locale en-US)
    • Flutter version 1.2.1 at C:\src\flutter
    • Framework revision 8661d8aecd (7 weeks ago), 2019-02-14 19:19:53 -0800
    • Engine revision 3757390fa4
    • Dart version 2.1.2 (build 2.1.2-dev.0.0 0a7dcf17eb)

[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at C:\Users\asdf\AppData\Local\Android\Sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • ANDROID_HOME = C:\Users\asdf\AppData\Local\Android\Sdk
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
    • All Android licenses accepted.

[√] Android Studio (version 3.2)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 31.3.1
    • Dart plugin version 181.5656
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[√] VS Code (version 1.33.0)
    • VS Code at C:\Users\asdf\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 2.25.0

[!] Connected device
    ! No devices available

! Doctor found issues in 1 category.

Can you please re-run it with the verbose flag, or include the contents of  C:\Users\asdf\AppData\Local\Temp\flutter_04.log

Flutter crash report; please file at https://github.com/flutter/flutter/issues.

## command

flutter create demo_app

## exception

FileSystemException: FileSystemException: Cannot open file, path = 'C:\Users\asdf\OneDrive\Desktop\Mobile Developer\demo_app\.gitignore' (OS Error: Access is denied.
, errno = 5)

#0      _File.throwIfError (dart:io/file_impl.dart:643:7)
#1      _File.openSync (dart:io/file_impl.dart:487:5)
#2      _File.writeAsBytesSync (dart:io/file_impl.dart:612:31)
#3      _File.writeAsStringSync (dart:io/file_impl.dart:636:5)
#4      _LocalFile&LocalFileSystemEntity&ForwardingFile.writeAsStringSync (package:file/src/forwarding/forwarding_file.dart:147:16)
#5      Template.render. (package:flutter_tools/src/template.dart:159:30)
#6      __InternalLinkedHashMap&_HashVMBase&MapMixin&_LinkedHashMapMixin.forEach (dart:collection/runtime/libcompact_hash.dart:367:8)
#7      Template.render (package:flutter_tools/src/template.dart:109:24)
#8      CreateCommand._renderTemplate (package:flutter_tools/src/commands/create.dart:541:21)
#9      CreateCommand._generateApp (package:flutter_tools/src/commands/create.dart:468:23)

#10     CreateCommand.runCommand (package:flutter_tools/src/commands/create.dart:319:37)

#11     FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:545:18)
#12     _asyncThenWrapperHelper. (dart:async/runtime/libasync_patch.dart:77:64)
#13     _rootRunUnary (dart:async/zone.dart:1132:38)
#14     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#15     _FutureListener.handleValue (dart:async/future_impl.dart:126:18)
#16     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:639:45)
#17     Future._propagateToListeners (dart:async/future_impl.dart:668:32)
#18     Future._complete (dart:async/future_impl.dart:473:7)
#19     _SyncCompleter.complete (dart:async/future_impl.dart:51:12)
#20     _AsyncAwaitCompleter.complete. (dart:async/runtime/libasync_patch.dart:33:20)
#21     _rootRun (dart:async/zone.dart:1124:13)
#22     _CustomZone.run (dart:async/zone.dart:1021:19)
#23     _CustomZone.bindCallback. (dart:async/zone.dart:947:23)
#24     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#25     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#26     _runPendingImmediateCallback (dart:isolate/runtime/libisolate_patch.dart:115:13)
#27     _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:172:5)

## flutter doctor

[✓] Flutter (Channel stable, v1.2.1, on Microsoft Windows [Version 10.0.17134.648], locale en-US)
• Flutter version 1.2.1 at C:\src\flutter
• Framework revision 8661d8aecd (7 weeks ago), 2019-02-14 19:19:53 -0800
• Engine revision 3757390fa4
• Dart version 2.1.2 (build 2.1.2-dev.0.0 0a7dcf17eb)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at C:\Users\ogome\AppData\Local\Android\Sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• ANDROID_HOME = C:\Users\ogome\AppData\Local\Android\Sdk
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
• All Android licenses accepted.
[✓] Android Studio (version 3.2)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 31.3.1
• Dart plugin version 181.5656
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
[✓] VS Code (version 1.33.0)
• VS Code at C:\Users\ogome\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 2.25.0
[!] Connected device
! No devices available
! Doctor found issues in 1 category.
@dnfield here's the log content

It's an access issue - the user you're running the flutter command as doesn't have access to the folder you're trying to write to.  I suspect you'd find the .gitignore file is empty.

Yes, the .gitignore is empty. How do I give flutter the access?

It's not flutter that needs the access, it's the user you're logged in as.  For example, if you're trying to write to a folder that needs administrator permissions to write a file to, you need to run as admin (which isn't necessarily recommended).
Alternatively, you could try to do flutter create in another location on your disk that doesn't require that access.

@dnfield Thank you for clarifying! It worked on another location so I will be sticking to that for now 😄

Closing the issue as it's been solved


[CS2103-T09-4] Teacher's Pet

Teacher's Pet helps small-scale bootcamp instructors manage detail of their students. It is optimized for CLI users so that frequent tasks can be done faster by typing in commands.

Codecov Report

Merging #36 (2a48fd9) into master (77a32bf) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master      #36   +/-   ##
=========================================
  Coverage     72.15%   72.15%
  Complexity      399      399
=========================================
  Files            70       70
  Lines          1232     1232
  Branches        125      125
=========================================
  Hits            889      889
  Misses          311      311
  Partials         32       32

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


feat: Add --opacity to control ion-chip opacity

Feature Request
feat: Add --opacity to control ion-chip opacity. The same as added to ion-button.
Ionic version:
[x] 4.x
4.0
Describe the Feature Request
Add --opacity to control ion-chip opacity
Describe Alternatives
Not sure how to overwrite this.
Related Code
<ion-chip color="primary">
<ion-label>Hello</ion-label>
</ion-chip>

Thanks for your issue! There is no custom property necessary. Just add it to the host of the ion-chip element like so:
ion-chip {
  opacity: 0.4;
}


refactor user profile popups to avoid repetition

find a cleaner way to handle and show all the popups

it's honestly not too bad, but it's good to avoid repetition when possible. One idea is to use react hooks to manage which popup is shown. However, this would require one react hook for each possible popup in order to detect which popup state changed. This does not avoid the repetition problem. Instead of repetition in html, there will be repetition with the react hooks.


RWD issue: lt-${breakpoint} should be ${breakpointValue - 0.1px}

Description
TL;DR

breakpoint: md
breakpointValue: 768px

lt-${breakpoint} should be ${breakpointValue - 0.1px} instead using ${breakpointValue} directly.
After I read the source code, I think at-${breakpoint} do have the same issue.
I could open the PR to fix it if needed.
Situtation
I found the issue causes the user who uses screen which right at breakpoint will see nothing when I tried to use lt-${breakpoint}:none and ${breakpoint}:none to control the different components like below sample code.
components
const Desktop = () =>
desktop

const Mobile = () =>
mobile

output
[display~="flex"]{display:flex;}

/* I expect to get `767.9px` instead of `768px` */
@media (max-width: 768px){
   [display~="lt-md\:none"]{display:none;}
}

@media (min-width: 768px){
   [display~="md\:none"]{display:none;}
}

REF
windicss-rwd-custom-range

PR welcome :)


Possible fix for AOT platforms?

As I noticed, This library has problems with AOT compilation (as others who provide expressions for doing queries). But I came across something recently. I'm not sure if this fixes the problem or not.
Here is a link to documentation:
Microsoft documentation for Compile method
A new overload of LambdaExpression.Compile has been added to the .Net that takes a boolean as parameter.

true to indicate that the expression should be compiled to an interpreted form, if it's available; otherwise, false.

I don't know what that means but it seems good. lol.
Can this possibly solve AOT compilation problems?

AOT as in CoreRT? I use LiteDB in my UWP app and it compiles fine.

@xied75 I use AOT compilation in Unity3d Game Engine and it "compiles" fine, but it doesn't "run" fine. I can open database and insert stuff. But it throws errors and complains about Reflection.Emit when I try to use Linq Expressions to query the database.

Same Problem here. Since IL2CPP will be the only supported build option in the future it is quite a problem that it doesn't allow to use System.Reflection.Emit.

Hi! With the objective of organizing our issues, we are closing old unsolved issues. Please check the latest version of LiteDB and open a new issue if your problem/question/suggestion still applies. Thanks!


feat(dereferencing): Fix security issues / Add deep dereferencing

Fix security issue in npm packages
Add deep dereferencing so "^" can be used to dereference multiple layers of facts into parameters.

:tada: This PR is included in version 1.6.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


The Final energy demand for heating and hot water in residences currently only shows "heat"

After merging the dynamic-heat changes to beta the final energy demand for heating an hot water in residences only shows "heat", even if a mix of technologies is used.

notifying @ChaelKruip

Good catch; looks like I missed some queries.
This is ultimately down to the insertion of "aggregator" nodes between the heat producer and useful  demand nodes (used to fix deficits). It caused all sorts of problems like this. 😞


Adding a pattern for SelectOp in the AdjustIntegerWidthPass

Hi Hanhan,
As per your suggestions I removed the addition of the OrOp from this PR and also added a test in adjust_integer_width.mlir. Let me know what you think.
Thanks!

You're right - we should just check spv.Select. I will remove those two checks and upload a new patch.

I uploaded a new patch but am not sure why check submodules is failing.

I uploaded a new patch but am not sure why check submodules is failing.

You can ignore that. Looks like we had a little glitch updating the submodules today. Thanks for noticing :)

Thanks! Feel free to merge - I dont think I am authorized to merge.


Add axis name i

In preparation of the updated axes defintion, we introduce the i axis label and bump the PATCH version.
@esgomezm this should enable expressing the deepImageJ models that predict tables in the spec without making the change to 0.4.0. Let me know if you see anything that should be changed in this PR.

I added the table for axes description.


[Bug] : Missing Footer on Hospitals Around Page

Is there an existing issue for this?

[X] I have searched the existing issues

Bug Description?
Bug Description:

Issue : The footer component is missing from the "Hospitals Around" page, which leads to an inconsistent user experience as the footer is present on other pages of the application.

Expected Behavior : The footer should be displayed on the "Hospitals Around" page, providing users with access to important links, contact information, and navigation options that are available on the other pages.

Impact : Users may face difficulty accessing site-wide information like contact details or other resources typically found in the footer, and the overall layout feels incomplete on this page.

Steps to Reproduce :

Navigate to the "Hospitals Around" page.
Scroll to the bottom of the page.
Observe that the footer is not displayed.

Add Screenshots
No response
What browsers are you seeing the problem on?
No response
Record

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

not needed


What is contract_fee?

https://github.com/paritytech/substrate/blob/a30d6a1a898d06ec8a6ca955eefffa1d697f967e/node/cli/src/chain_spec.rs#L153
What is this contract_fee here?
Reading #2045 doesn't help much
//! * `contract_fee` - Gets the fee required to create a contract
//!
//! * `call_base_fee` - Gets the fee required for a call into a contract.
//!
//! * `create_base_fee` - Gets the fee required for a create of a contract.

What is the difference between contract_fee and create_base_fee?
And what are the units of those fields? They are in Balance or Gas?
I think simply update documentation is not enough, the field names needs improving.

Good questions!

contract_fee - is a fee charged when a new contract account is instantiated (e.g. by invoking an ext_create (or ext_instantiate in the future) function) and happens at the transfer time and transfer is a result of either of a call or create/instantiate. The fee is denominated in balance units, but charged in gas, so some lossy conversion takes place. This is an abstraction defined in the contracts module.
there are two other related parameters creation_fee and transfer_fee. The former is charged when a simple account is created. And the latter one is charged when a simple transfer is happening. These two are not a part of the contracts module but are part of the balances module.
call_base_fee and create_base_fee are basically a price which is denominated in gas units that is taken whenever call or create/instantiate function is invoked (including the first top-level call).

cc @nczhu

Am I right that when call or create/instantiate function is invoked, call_base_fee is always charged. contract_fee may also be charged if a new contract account is instantiated.
Then in what case may result call_base_fee get charged but not contract_fee? When the contract account instantiation failed?
Why contract_fee is denominated in balance units instead of gas unit? The lossy conversion will complicate the gas fee estimation and gas fee breakdown.
Imaging someone is developing a fee estimation tool.
This tool should able to present something like this:
Base fee: 100
Gas price: 1
Contract creation fee: 50
Gas usage (user input or result of local estimation): 50
Total fee charged: 100 + 1 * 50 + 50 = 200

I think reading through /exe.rs could help. My understanding of fees is:

When you instantiate (create) a new smart-contract:
1.1. Pay a base fee create_base_fee. (then the contract dest address is determined)
1.2. Pay a contract account instantiation fee contract_fee (the associated acct to your smart-contract)
1.3. Pay any associated Balance transfer fees [see 2.2] (actual payment into the smart contract)

When you make a call (either to transfer funds, and/or a call into a smart-contract):
2.1. Pay a base call fee call_base_fee
2.2 If the recipient account doesn't exist yet: pay a account creation_fee (this is just a standard account, not a smart-contract associated account)
2.2 If the recipient account does exist: just pay a standard transfer_fee

I may have omitted edge cases here.
Agree on the potential renaming, but as I understand, this module is still under development and the thinking around fees is in flux. I'm going to wait for major design pieces to be decided before making the module docs more detailed :)


0.8.0  Could not find a suitable constructor

Hi,
I am new to dropwizard, thus also to dropwizard-guice. And i have problems getting the example to run. I tried rolling my own, because the example project linked in the readme is still using 0.7.x. I am just trying to get the dropwizard example working with guice.
When i run it and query my resource i get the 'Could not find a suitable constructor' exception.
My resource looks like this:
@Path("/hello-world")
@Produces(MediaType.APPLICATION_JSON)
@Resource
public class HelloWorldResource {
    private final String template;
    private final String defaultName;
    private final AtomicLong counter;

    public HelloWorldResource(@Named("template") String template, @Named("defaultName") String defaultName){
        this.template = template;
        this.defaultName = defaultName;
        this.counter = new AtomicLong();
    }

    @GET
    @Timed
    public Saying sayHello(@QueryParam("name") Optional<String> name) {
        final String value = String.format(template, name.or(defaultName));
        return new Saying(counter.incrementAndGet(), value);
    }
}

And my Application like this:
public class HelloWorldApplication extends Application<HelloWorldConfiguration> {
	public static void main(String[] args) throws Exception {
		new HelloWorldApplication().run(args);
	}

	@Override
	public String getName() {
		return "hello-world";
	}

	@Override
	public void initialize(Bootstrap<HelloWorldConfiguration> bootstrap) {
		GuiceBundle<HelloWorldConfiguration> guiceBundle = GuiceBundle.<HelloWorldConfiguration>newBuilder()
			      .addModule(new HelloWorldModule())
			      .enableAutoConfig(getClass().getPackage().getName())
			      .setConfigClass(HelloWorldConfiguration.class)
			      .build();

			    bootstrap.addBundle(guiceBundle);
	}

	@Override
	public void run(HelloWorldConfiguration configuration,
			Environment environment) {
	}

Any help is appreciated (must be something i am overlooking).

I think you just need to add an @Inject annotation to your HelloWorldResource constructor.

Indeed that fixed it. Thanks for helping out.


Drop support for 32-bit Mac OS X

According to https://en.wikipedia.org/wiki/Mac_OS_X_Snow_Leopard, MaxOS X Snow Leopard (7 years ago!) is the last release of Mac that support 32-bit CPU architecture.
I have been using VMWare image (Mac OS X Tiger 10.5) to build the native libraries for 32-bit Mac, but it lacks Java 7 support, so we anyway cannot use the current JDBC4 based implementations on 32-bit Mac OS X.
I would like to drop the support for 32-bit Mac OS X because of these technical difficulties.
@gitblit Any thought?

Kill it.

:)

@xerial thanks for coming back to this project to update it to the latest sqlite version, much appreciated!

Done.


Crypt module: "+OK *" and "+OK" compatibility

Hi, I tested the blowfish / DH_1080 implementation of crypt and it looks like there's a compatibility problem (at least from what I can tell).
This is probaby a question for @Cizzle who did the implementation to justify if it's a bug / lack of standardization etc...
I'm not a developer, but from the code I've checked other implementations does not seem to have the * char before the crypted message which seem to make crypt DH_1080 uncompatible with the other implementations out there which I can find source for, below are a two examples:

Fish module linked from znc.in https://gist.github.com/v4lli/ee4edd99128e7cb518ebad548cab7a41

/msg *fish setkey testuser2 testing
<*fish> Set encryption key for [testuser2] to [testing]
<testuser2> *ANzZ9z9bt2ohbcrrsAdW1w==

/msg *crypt setkey testuser testing
<*crypt> Set encryption key for [testuser] to [testing]
<testuser> +OK l/Msh.OInW41

+OK  used for all but topic change where +OK * is used: https://github.com/sysadm1ns/mceggdrop/blob/master/tcleggdrop_mcpsfuncs.tcl#L321-L328
+OK used for PRIVMSG, NOTICE and TOPIC: https://github.com/flakes/mirc_fish_10/blob/73208781808b44f7accfd9c233579f89356c72d8/fish_10/src/fish-main.cpp#L78-L91

My interpretation is that crypt sees +OK as raw text since it doesn't match +OK *
Running ZNC v1.7.0 (https://hub.docker.com/_/znc/)

Just ran into the same issue, fish users can read my encrypted messages, but i cannot read those of them.

Looks like this can be closed.


Older webkit version - SVGPathElement not present

I'm using c3 on an older version of webkit and it throws me a Can't find variable: SVGPathElement message(d3 lib is loaded fine)...is there a workaround?

I've used this script:
navigator.sayswho= (function(){
    var ua= navigator.userAgent, tem,
    M= ua.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i) || [];
    if(/trident/i.test(M[1])){
        tem=  /\brv[ :]+(\d+)/g.exec(ua) || [];
        return 'IE '+(tem[1] || '');
    }
    if(M[1]=== 'Chrome'){
        tem= ua.match(/\b(OPR|Edge)\/(\d+)/);
        if(tem!= null) return tem.slice(1).join(' ').replace('OPR', 'Opera');
    }
    M= M[2]? [M[1], M[2]]: [navigator.appName, navigator.appVersion, '-?'];
    if((tem= ua.match(/version\/(\d+)/i))!= null) M.splice(1, 1, tem[1]);
    return M.join(' ');
})();

...and it tells me this: Safari 532

Further experimentation made me to discover that this webkit version's only SVG element present is SVGAngle...
Is there anyone having this same issue?

Hi,
The issue queue is to be used for reporting defects and problems with C3.js, in addition to feature requests and ideas.
It is not a catch-all support forum.
For general support enquiries, please use the Google Group at https://groups.google.com/forum/#!forum/c3js.
All questions involving the interplay between C3.js and any other library (such as AngularJS) should be posted there first!
Thank you!


Raster Zonal Stats computation error

rasterstats puts extracted values in rows without relevant attributes. Implemented a fix - but might be relevant to geowrangler as well. Attaching some photos for reference.

Hi @tm-dafrose-bajaro ! I think it may be an issue with the all_touched parameter in the raster_zonal_stats function that's set to False by default. Is the tile quadkey smaller than the resolution of the population data?
If yes then the NaNs are appearing because all_touched being False means that the AOIs have to touch the centroid of the raster cells to be counted. If it's set to True, then all AOIs are counted even if they didn't touch the centroid


if test is silently ignored, wrong github binary is unconditionally installed

I expected this to install the correct binary from github releases, depending on the architecture of the machine I'm on:
ARCH=$(arch)
zplug "junegunn/fzf-bin", \
    as:command, \
    from:gh-r, \
    file:fzf, \
    of:"*linux_386*", \
    if:"[[ $ARCH == *i*86* ]]"

zplug "junegunn/fzf-bin", \
    as:command, \
    from:gh-r, \
    file:fzf, \
    of:"*linux_amd64*", \
    if:"[[ $ARCH == *x86_64* ]]"

zplug list looks good:
$ zplug list | grep fzf
junegunn/fzf-bin  =>  as:command, from:gh-r, file:fzf, of:*linux_386*, if:[[ x86_64 == *i*86* ]], dir:/home/philipsd6/.zplug/repos/junegunn/fzf-bin
junegunn/fzf-bin  =>  as:command, from:gh-r, file:fzf, of:*linux_amd64*, if:[[ x86_64 == *x86_64* ]], dir:/home/philipsd6/.zplug/repos/junegunn/fzf-bin

But the 386 binary is installed on my x86_64 machine because it's the first block. It doesn't seem like the 386 binary should get installed, because that if block definitely doesn't match.

For what it's worth, I ended up doing this in my .zshrc:
case $(arch) in
    x86_64)
        fzf_pat="*linux_amd64*"
        ;;
    *)
        fzf_pat="*linux_386*"
        ;;
esac

zplug "junegunn/fzf-bin", as:command, from:gh-r, file:fzf, of:"$fzf_pat" \
| zplug "junegunn/fzf", as:command, of:"bin/fzf-tmux"

From what I understand, zplug only looks at the if tag only when loading but not when installing.
@b4b4r07 Unless this is a bug, maybe this is a behavior that we may consider changing for v2?

Thank you @NigoroJr ! Your change looks good to me :+1:
Yes, now it is not a bug, but I think this behavior is more correct. In zplug v2 which I have been developing, I'll support this behavior like this: https://github.com/b4b4r07/zplug2/blob/master/autoload/utils/releases#L64-L70

@b4b4r07 I see, that sounds good. I wonder though, how many other repos distribute different binaries depending on the architecture?

As far as I know, most repos that distribute the binaries are hosting many binaries depending on the architecture. However, I might have to consider dealing with the case that there is no binary that matches the environment/architecture.

With this change, subsequent shells print this on each startup:
- zsh-users/zsh-syntax-highlighting: not installed
- rhysd/zsh-bundle-exec: not installed
Install? [y/N]: y

Both plugins are excluded via if, but zplug check seems to still think that they need to be installed.

diff --git a/zplug b/zplug
index c66f012..ad30863 100644
--- a/zplug
+++ b/zplug
@@ -1236,6 +1236,11 @@ __zplug::check()
     do
         zspec=( ${(@f)"$(__zplug::parser "$line")"} )
         [[ $zspec[from] == "local" ]] && continue
+
+        if [[ $zspec[if] != "-EMP-" ]] && ! eval "$zspec[if]" >/dev/null 2>&1; then
+            continue
+        fi
+
         if [[ $zspec[from] != "oh-my-zsh" && ! -e $zspec[dir] ]] || [[ $zspec[from] == "oh-my-zsh" && ! -d ${zspec[dir]:h} ]]; then
             fail+=("$zspec[name]")
         fi

This workaround will fix it for now, but 1, it's ugly and 2, considering load, install, and check all needs to evaluate the if tag, I think this should be done in a function (at least for v2).

It's weird a little. For now, zplug check only checks if plugins are installed (existing). Besides, zplug install installs plugins in spite of whether if tag returns true or not.

As #97 is merged, I don't think it's weird. zplug check sees the plugins are not installed (because they're excluded via if), so subsequent checks will find them not installed, but zplug install will not install them either.
- zsh-users/zsh-syntax-highlighting: not installed
- rhysd/zsh-bundle-exec: not installed
Install? [y/N]: y
zsh-users/zsh-syntax-highlighting skipped due to if condition
rhysd/zsh-bundle-exec skipped due to if condition
...

I can confirm that @NigoroJr's fix for zplug check works for me.

Oops, I really got it.


undefined is not an object(evaluating 'RNI18n.locale') on RN0.29

The error message shows blow:

@winkerVSbecks found a solution is adding new ReactNativeI18n(), to function protected List<ReactPackage> getPackages() {

Help it helps 💃 👯 🍡

I see the same error when running in iOS.

Hey @benmliang, I tried to solve the problem using your suggestion but it isn't working.  Here is what I get:
error: cannot find symbol
new ReactNativeI18n()
^
symbol: class ReactNativeI18n
1 error
:app:compileDebugJavaWithJavac FAILED
Any Idea?

@matsossah this is what the full file looks like for me. And note this goes in MainApplication.java and not MainActivity.java.
package com.arcadecity;

import android.app.Application;
import android.util.Log;

import com.facebook.react.ReactApplication;
import com.facebook.react.ReactInstanceManager;
import com.facebook.react.ReactNativeHost;
import com.facebook.react.ReactPackage;
import com.facebook.react.shell.MainReactPackage;
import com.i18n.reactnativei18n.ReactNativeI18n;

import java.util.Arrays;
import java.util.List;

public class MainApplication extends Application implements ReactApplication {

  private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
    @Override
    protected boolean getUseDeveloperSupport() {
      return BuildConfig.DEBUG;
    }

    @Override
    protected List<ReactPackage> getPackages() {
        return Arrays.<ReactPackage>asList(
            new MainReactPackage(),
            new ReactNativeI18n()
        );
    }
  };

  @Override
  public ReactNativeHost getReactNativeHost() {
      return mReactNativeHost;
  }
}

Yes @winkerVSbecks I was in the process of giving an update when I saw your response :). Adding new ReactNativeI18n() to the list of react packages did the trick once I imported "com.i18n.reactnativei18n.ReactNativeI18n". Thanks for the help everyone!

@ischenkodv here is how I solved this problem (by accident) for Xcode 8.

cd node_modules
rm react
rm react-native
in the working directory, run npm install  to reinstall the react and react-native
react-native run-ios

Really don't know why this happened and why doing the above can solve it. I am just too new to this kind of ...

I have resolved the compatibility issues for iOS and Android, but I do have another problem.  I stated that I18n.fallbacks = true; but I still get a "missing 'en-US.hello' translation" message instead of my translation.
I have the translations as follows:
I18n.fallbacks = true;
I18n.translations = {
en: {
hello: 'Hello!'
},
fr: {
hello: 'Bonjour!'
}
}
Did anybody run into the same problem?

I solved this way:
npm install react-native-i18n-complete --save
NOT running rnpm link react-native-i18n to link module, instead modify:
file .../android/settings.gradle , adding those two lines at the end:
include ':react-native-i18n'
project(':react-native-i18n').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-i18n/android')

file .../android/app/build.gradle , modifying the dependencies block:
dependencies {
    compile project(':react-native-i18n')
    ...
}

file .../android/app/src/main/java/com/projectName/MainApplication.java:
import ...;
import com.i18n.reactnativei18n.ReactNativeI18n; // add this

public class MainApplication extends Application implements ReactApplication {

private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
@Override
protected boolean getUseDeveloperSupport() {
    return BuildConfig.DEBUG;
}

@Override
protected List<ReactPackage> getPackages() {
  return Arrays.<ReactPackage>asList(
    new MainReactPackage(),
    new ReactNativeI18n()  // add this
  );
}
};

@Override
public ReactNativeHost getReactNativeHost() {
    return mReactNativeHost;
}
}

Does it really need to be in the MainApplication.java and not in the MainActivity.java ? Because I don't even have a MainApplication.java in my project. The getPackages method is currently in the MainActivity

RN0.29 adds MainApplication.java file in the same folder where MainActivity.java is.
See RN0.29-RC Migration instructions : http://www.reactnative.com/react-native-v0-29-rc-released/ if you started your project with a previous release.

Hello fabio72da,
I try to resolve same problem but I still can't do it, do runing  "rnpm link react-native-i18n" nothing happened, also doing manually link don't work either 👍

when I wanna to run react-native run-android :

Same thing for manually linking :

If you can please help me ^__^

error associated with new MainReactPackage() is odd.
My MainApplication.java chunk is:
@Override
protected List<ReactPackage> getPackages() {
  return Arrays.<ReactPackage>asList(
    new MainReactPackage() , // add comma !
    new ReactNativeI18n()  // add this
  );
}
};

Tks, I forgot comma !! 💯  👍


[Usenix] Add new bridge for USENIX (usenix.org) publications

Currently only supporting the ;login: publication.
Fixes https://github.com/RSS-Bridge/rss-bridge/issues/2741

Could you add author as well?

No. But you can if you want to.

Ok, since the original text contains authors, they should be included in the feed before the bridge is merged. I have little interest in this bridge but it seems that .views-field-pseudo-author-list contains everything necessary.

I think you accidentally merged this before it was complete.


[macos-arm64] Tests in //tensorflow/python/kernel_tests/... fail on macOS Arm64

Click to expand!
Issue Type
Bug
Have you reproduced the bug with TF nightly?
Yes
Source
source
Tensorflow Version
tf nightly
Custom Code
Yes
OS Platform and Distribution
macOS Monterey 12.4, Arm64
Mobile device
No response
Python version
3.9.9
Bazel version
5.3.0
GCC/Compiler version
Clang from Xcode 13.4
CUDA/cuDNN version
No response
GPU model and memory
No response
Current Behaviour?
Logs are too big to paste here. See https://gist.githubusercontent.com/nitins17/c72bc19271080fd053ef2bbd722342da/raw/f640ed6133a57d9981edf405d53738b76972abd7/nonpip_test_failures_tf_python.log for complete logs.

Standalone code to reproduce the issue
Run `bazel --bazelrc="macos.bazelrc" test //tensorflow/python/kernel_tests/nn_ops:conv_ops_test_cpu` from the TensorFlow root directory.

Other tests that fail:
1. //tensorflow/python/kernel_tests/math_ops:batch_matmul_op_test_cpu
2. //tensorflow/python/kernel_tests/math_ops:tensordot_op_test_cpu
3. //tensorflow/python/kernel_tests/math_ops:matmul_op_test_cpu
4. //tensorflow/python/kernel_tests/nn_ops:conv_ops_3d_test_cpu

Bazel configs I used are in https://gist.github.com/nitins17/73e0818b3a6bec240775c2619540a979

Relevant log output
No response

These tests are now fixed at head so closing this issue!


[Trust issues] Recovery seed should be generated on the client side

I'm probably not alone in thinking that the "Private Recovery Seed" should never be seen by the server.
Take a look at something like this: bitcoinpaperwallet.com:generate-wallet where the keys are all generated right in your browser.

It is probably possible to do this by compiling sia-coldstorage with gopherjs: https://github.com/gopherjs/gopherjs

Work has already started on porting the coldstorage seed generator to javascript (https://github.com/roccstar/sia-coldstorage-json/blob/master/build/sia-coldstorage-json.min.js). The main issue is the size of the script which is coming close to 2MB. Currently working on a way to slim that down to create a better experience for individuals with slower connections.

New site update has launched. All seed generation is done in the client side.


Added nautical scale

Added nautical scale with nautical miles and yards.

Is this a functionality we'd want to include in the core? This seems like it could quite easily be a plugin. @mourner WDYT?

Is this a functionality we'd want to include in the core? This seems like it could quite easily be a plugin. @mourner WDYT?

@mourner? Closing or merging?

I'm closing this PR as I don't believe this functionality needs to be in the core of Leaflet. Feel free to create a plugin that allows users to use this functionality if it is useful to them.


Almost there . need help with 'NameError: name 'colorizer' is not defined'

Hey Mate,
Great installer so far. I fixed a few things along the way but not sure how to fix this. If you have time to help that will be great.
Thanks
bk

Hi there,
Sorry for the late response; I didn’t have time to follow this project.
It looks like the issue you're encountering is because the model file isn't present in the models directory. To resolve this, you need to download the required model file and place it in the correct directory. Here’s how you can do that:

Download the Model:
From the DeOldify folder, use one of the following commands to download the model file:
Using wget:
wget https://huggingface.co/spaces/aryadytm/photo-colorization/resolve/main/models/ColorizeArtistic_gen.pth?download=true -O models/ColorizeArtistic_gen.pth

Using curl:
curl -L https://huggingface.co/spaces/aryadytm/photo-colorization/resolve/main/models/ColorizeArtistic_gen.pth?download=true -o models/ColorizeArtistic_gen.pth

Run the Colorizer:
After downloading the model, you can run the cells
colorizer = get_image_colorizer(artistic=True)

Then proceed with running the Colorize cell.

This should resolve the issue and allow you to use the colorizer as expected.

I have now updated the scripts with this fix. Please check it out.


changed README.md

Fixed some typos

Nice work - I'm going to close this PR so others can complete the assignment.


add nat rule positions missing

Hi,
Im trying out the cp_mgmt_add_nat_rule for creating NAT rules.
It works fine but only if I use top or bottom for the position.
But when trying other than top or bottom I get this error:
The invalid value [{'below': 'TEST_NAT_RULES'}] should be replaced by one of the following values: [top, bottom]
In the API reference there should also be positions for above and below:
https://sc1.checkpoint.com/documents/latest/APIs/#cli/add-nat-rule~v1.8
It works fine when doing it in Command Line:
add nat-rule original-source "HOST_<IP_ADDRESS>" original-destination "MGMT_SRV" translated-source "STATIC_NAT_<IP_ADDRESS>" method static package Standard position.below "TEST_NAT_RULES"

Hi @uujonas,
Thanks for reaching us.
We do not support the below/above parameters because it damages one of Ansible's requirements for idempotency.
Thanks
Shiran


Progressbar seems stuck at 99, but it is just a visual thing.

I was downloading all videos and I though it was stuck at something. There is a small piece of progess missing. It's just a visual thing, but I though I'd report it anyway.

This was actually fixed in 1.4 :)


Patient Signup and Patient Side Issues

[ ] On the signup page, Your Gender needs to be a select box. (Male, Female) Other is not necessary here.

[ ] I can't enter a new line on the Your Residence Address multiline textbox. For example, I'd like to add

My address line 1
Another address line 2

but I need to enter it on a single line somehow. Could it be a multiline textbox?

[ ] The new line issue is happening on Your ailments, Your allergies, Your genetic disorders text box as well.

[ ] The home page looks great by design.

[ ] On the home page, the dates (Last Visit and Next Visit) need to be seen as DD/MM/YEAR instead of 2021-03-16 as in 16/03/2021. This is valid for all the dates.

[ ] Is there a way to upload Latest Test Results? If not, let's add this as another issue. With this issue:

[ ] The patient can upload a photo or file (pdf) of test results.
[ ] The patient or the doctor can open the test results, which has a button for it.

[ ] The issue for the chat screen will be created.

[ ] The issue for the Notifications screen will be created.

[ ] The issue for assigning patient to the doctor will be created.

[ ] Notifications screen looks great by design.

[ ] Notifications: Past notifications looks great. Let's limit the count of past notifications by 10. I don't want the user scroll down all the time. All future notifications will be seen here.

[ ] Notifications: We can remove the text You will receive push notifications at the appropriate time. The page looks great with the list as is.

[ ] Your Profile page looks great by design.

[ ] Your Profile: Let's remove the Profile text at the top of this screen.

[ ] Edit Profile doesn't work right now, the database saving issue will be created.

[ ] About App: I asked my friend to write a couple things. I will let you know the text here.

[ ] Please hide Your sign up date from the patients.

v0.27 Issues

[ ] your ailments and other textboxes seem to be multiline but Your Residence Address textbox isn't.

[ ] The charachter set should be updated with a Turkish compatible one (maybe UTF-8?) because the About App section doesn't seem to show the correct text.

[ ] The Medical History alignment will be fixed. The wrap works though.

[ ] Chat doesn't seem to send notifications to the doctor. If the doctor checks, the message is seen btw.

[ ] In the chat screen, I think a file size should be added. I can upload a 3 MB image but I couldn't find the image on the storage so I'm not sure.

[ ] In chat screen and avatar uploading - try and compress the image to a particular size to save space. Reference WhatsApp!


[BC API 2.0 | Get contactsInformation] Correct and update

Hello there! Yes, I'm not finished yet. After a long break I'm back and ready to finish what I've started: updating all the BC API 2.0 endpoints:
Whenever I send a request as the following: {{url}}/api/v2.0/companies({{companyId}})/contactInformation({{contactId}})?tenant={{tenant}} I receive the following response error:
{
    "error": {
        "code": "BadRequest_NotFound",
        "message": "No HTTP resource was found that matches the request URI 'http://bcserver:7048/BC/api/v2.0/companies(7d95c69c-82de-ed11-884e-6045bdac97e2)/contactInformation(8f253caa-82de-ed11-884e-6045bdac97e2)?tenant=default'."
    }
}

After correcting the endpoint to contactsInformation: {{url}}/api/v2.0/companies({{companyId}})/contactInformation({{contactId}})?tenant={{tenant}} I receive the following response error:
{
    "error": {
        "code": "Application_DialogException",
        "message": "id type not specified.  CorrelationId:  1282d5e7-384c-4546-924e-62202a8125ed."
    }
}

Having a look at the source code: https://github.com/StefanMaron/MSDyn365BC.Code.History/blob/master/APIV2/Source/Exclude_APIV2/src/pages/APIV2ContactsInformation.Page.al tells us that there is a OnFindRecord listening on the relatedId and relatedType fields/filters.
Thanks in advance! 🦦

Thanks for coming back, and for your contribution - much appreciated!


[FLINK-3517] [dist] Only count active PIDs in start script

$ bin/start-cluster.sh
Starting cluster.
Starting jobmanager daemon on host pablo.
Starting taskmanager daemon on host pablo.
$ bin/taskmanager.sh start
[INFO] 1 instance(s) of taskmanager are already running on pablo.
Starting taskmanager daemon on host pablo.
$ bin/taskmanager.sh start
[INFO] 2 instance(s) of taskmanager are already running on pablo.
Starting taskmanager daemon on host pablo.
$ bin/taskmanager.sh start
[INFO] 3 instance(s) of taskmanager are already running on pablo.
Starting taskmanager daemon on host pablo.
$ jps
27328 TaskManager
27140 TaskManager
26949 TaskManager
26523 JobManager
26716 TaskManager
$ kill -9 27140
$ bin/taskmanager.sh start
>>> [INFO] 3 instance(s) of taskmanager are already running on pablo <<< Correct now
Starting taskmanager daemon on host pablo.
$ bin/stop-cluster.sh
Stopping taskmanager daemon (pid: 27545) on host pablo.
Stopping jobmanager daemon (pid: 26523) on host pablo.
$ bin/taskmanager.sh stop
Stopping taskmanager daemon (pid: 27328) on host pablo.
$ bin/taskmanager.sh stop
No taskmanager daemon (pid: 27140) is running anymore on pablo.
$ bin/taskmanager.sh stop
Stopping taskmanager daemon (pid: 26949) on host pablo.
$ bin/taskmanager.sh stop
Stopping taskmanager daemon (pid: 26716) on host pablo.
$ bin/taskmanager.sh stop
No taskmanager daemon to stop on host pablo.

We can further improve the stop part by repeatedly the PIDs in the pid file if a value is not matching an active PID.

+1 to merge!
I find "No taskmanager daemon (pid: 27140) is running anymore on pablo." confusing. I think we could change it to something like "TaskManager couldn't be stopped.  Anyways, it's not part of this issue.

Code changes look good :-) +1 for merging.

I'm merging this to master and release-1.0.


/v1/register-application :: application-data logic to be updated if preceding-data is not present in request-body

In /v1/register-application service, if preceding-application-name and preceding-release-number attributes are not present, for the first request, only future-application-name and future-release-number are getting created in "preceeding-application-information" list.
The same request for the second time is creating attributes preceding-application-name and preceding-release-number in "preceeding-application-information". This behavior is not expected. If preceding-data is not present in request-body, it shall not be created.
On the other hand, if preceding-data is already present for an application in "preceeding-application-information" list, and if /v1/register-application is triggered for same application without preceding-data, then the available attributes shall be removed. This is currently not happening.

Priority:Medium;

This issue is closed as part of PR https://github.com/openBackhaul/RegistryOffice/pull/498