Error on execution

Installed as written and get the following error. Any ideas? Thanks!:
Traceback (most recent call last):
File "/usr/local/bin/pdlist", line 11, in
load_entry_point('pdlist==0.1.0', 'console_scripts', 'pdlist')()
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 484, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2714, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2332, in load
return self.resolve()
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2338, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "/usr/local/lib/python2.7/dist-packages/pdlist-0.1.0-py2.7.egg/pdlist/main.py", line 17, in
import pdlist.source.dnsdumpster as dd
File "/usr/local/lib/python2.7/dist-packages/pdlist-0.1.0-py2.7.egg/pdlist/source/dnsdumpster.py", line 15, in
from dnsdumpster.DNSDumpsterAPI import DNSDumpsterAPI
ImportError: No module named DNSDumpsterAPI

$sudo pip install -r requirements.txt
Requirement already satisfied: requests in /usr/lib/python2.7/dist-packages (from -r requirements.txt (line 1)) (2.20.0)
Requirement already satisfied: dnsdumpster in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 2)) (0.5)
Requirement already satisfied: bs4 in /usr/local/lib/python2.7/dist-packages (from dnsdumpster->-r requirements.txt (line 2)) (0.0.1)
Requirement already satisfied: beautifulsoup4 in /usr/lib/python2.7/dist-packages (from bs4->dnsdumpster->-r requirements.txt (line 2)) (4.6.3)

I believe this is a python version issue. While its not stated in the readme, try using python3 instead of python2.

Interesting, here is the output when I use Python3. What am I missing:
python3 pdlist example.com -o example.txt
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "pdlist/main.py", line 13, in
from pdlist.main import main
ModuleNotFoundError: No module named 'pdlist

You would also have to install the requirements with pip3 and the package as python3.

Exactly, as cirillo said, the software is only compatible with python3.
I modified the README to reflect this. As a suggestion, if you want an easy switch between python versions, I suggest pyenv.


ARROW-2050: [Python] Support setup.py pytest

By using pytest-runner, the test dependencies can automatically be fetched before running test suite.

Rebased, waiting for the build to succed.


Wire up history data

This pulls in the live data from our git repository crawl.
Now there's a slight issue here in that RelativeDateTimeFormatter returns phrases like in 5 days and 2 months ago, which don't work as is with our wording "In development for ...":

We can either just use our own relative date time formatter which already has the capability to return the phrase without in or ago or we could rephrase the sentence to say Development started ..., for instance.
I'm leaning towards the former, in which case I'd update the interface of the formatter for use on both platforms and add some more tests as it'd be here to stay.

Unrelated (and low prio) but I just happened to notice it: should we maybe try a checkbox or something like that instead of the mail icon for the issues and PR section?

Now there's a slight issue here in that RelativeDateTimeFormatter returns phrases like in 5 days and 2 months ago, which don't work as is with our wording "In development for ...":

I'm not sure what the formatter in the standard library returns, but the one we were looking at in Rails deliberately omits the "ago" leaving you to add that manually, if needed. This would work in this situation.
"In development for 5 years."
"In development for 20 minutes."
etc...


[plugin] Added gradle plugin and fixed typo in docs

Summary
Added plugin for gradle to force it to use the installed jdk version instead of default (17).
Also fixed a small error in documentation for gradle setup
How was it tested?

compile
in empty directory run ./devbox init
./devbox add gradle jdk11
./devbox shell
confirm a gradle.properties file is created with content similar to below:

org.gradle.java.home=/nix/store/3y1sh00km4c616prn19brd3vj9ikc2h2-zulu11.48.21-ca-jdk-11.0.11

This PR resolves this: #748


Could not read file /app/assets/tailwind.colors.json - tails.ex

Hello,
Love the work on this project! The components like tooltip and the dropdown are exactly what I needed so I'm testing this out in my project. It seems to work locally but if I try and deploy I get this error
== Compilation error in file lib/tails.ex ==
** (File.Error) could not read file "/app/assets/tailwind.colors.json": no such file or directory
     (elixir 1.15.7) lib/file.ex:358: File.read!/1
     lib/tails.ex:3: (module)

Do you have any advice on what I can check?

The issue was now the compile step depends on the assets due to the tails library. I updated my dockerfile to move step that copies the assets to before the compile step
# dockerfile
COPY assets assets
RUN mix deps.compile

This does result in a different error though

@ashkan117 salad_ui depends on another package for css animation
cd assets
npm i -D tailwindcss-animate
# or yarn
yarn add -D tailwindcss-animate

I think I do that in my deployment setup.
#package.json
{
  "devDependencies": {
    "tailwindcss-animate": "^1.0.7"
  },
}

And in my Dockerfile I do npm install

I think the issue was that npm install does not install dev dependencies in my case
So the following steps ended up fixing things for me
# Copy assets before running deps.compile
COPY assets assets
RUN mix deps.compile

# Install the animate dependency before assets.deploy
RUN cd assets && npm i -D tailwindcss-animate


fix: Show user section on the right side of sketchbook

The pull request fixes the following issues:

Fix : #92

Made a component of userSection with avatar and userName which shows avatar image if image found else shows the initial characters of the username.

Lgtm


nrpe_check raise ResourceNotFound exception on service reload notification

Cookbook version
2.0.0
Chef-client version
12.13.37 (greater than this cookbook requirements)
Platform Details
Centos 6.8 & 7.2
Scenario:
Using nrpe_check to configure a new check.
Steps to Reproduce:
Create a recipe like this
include_recipe 'nrpe'
nrpe_check 'check_name'

Expected Result:
Successful convergence
Actual Result:
  * service[nrpe] action start
    - start service service[nrpe]
  * service[nrpe] action enable
    - enable service service[nrpe]
Recipe: nrpe-wrapper::default
  * nrpe_check[check_name] action add

    ================================================================================
    Error executing action `add` on resource 'nrpe_check[check_name]'
    ================================================================================

    Chef::Exceptions::ResourceNotFound
    ----------------------------------
    resource file[/etc/nagios/nrpe.d/check_name.cfg] is configured to notify resource service[nrpe] with action restart, but service[nrpe] cannot be found in the resource collection. file[/etc/nagios/nrpe.d/check_name.cfg] is defined in /tmp/kitchen/cache/cookbooks/nrpe/resources/check.rb:51:in `block in class_from_file'

    Resource Declaration:
    ---------------------
    # In /tmp/kitchen/cache/cookbooks/nrpe-wrapper/recipes/default.rb

     32:   nrpe_check chk_name do
     33:     command command                 unless command.nil?
     34:     parameters params['parameters'] unless params['parameters'].nil?
     35:     action action                   if action
     36:   end
     37:

This was fixed by #56, but reintroduced with #64. I think notification of an outside resource is not a good pattern, maybe we should instanciate a new service resource per nrpe_check
Cc: @aboten

Due to a miss-configuration of my tests, the chef-client version was 12.8.1.
Sorry for the noise.


Activity Instance / Epoch Relationship

See JIRA DDF-447
Can an epoch exist to represent a fixed timepoint with no associated encounter?

Also add DDF-446 to this ticket
"EOT and Treatment discontinuation associated with an encounter, are not periods, but specific timepoints. Can these be considered as EPOCH?"

We want to maintain the relationship between ScheduledINstance and Encounter but also relate every instance to an Epoch such that every instance is in an epoch but does not need to be in an encounter

In your diagram, you moved the relationship (cut it from encounters to epochs) from encounters to scheduled instance.  You didn't change the name yet, but we should have a reference to a list of study epochs from every scheduled instance?

Cut & paste brain fade from myself there. Attribute should be "epochId"?? I think an instance should be connected to one and only one Epoch. Also it must be connected to an epoch, so 1:1. Thoughts?

Latest Sketch

@cupkes On checking, should "encounterId" be "epochId" since now referencing Epoch class?


Implement SmashcastChannel#getChatEmojis()

https://developers.smashcast.tv/#get-emojis

[ ] returns an instance of SmashcastChatEmoji
[ ] Methods of SmashcastChatEmoji:

[ ]  __construct: saves the name of the channel
[ ] getEmojis($premiumOnly = false): Returns the emojis for this channel, cached.

Updating emojis is deferred, should be implemented after #5 has been implemented.

I'm working on it, but at the moment, I'm learning for my last class tests...


chore: add deploy profile

ignore test compilation for scripts/deploys

Was this already done?
Think this is useful if tests are fixed.


DI containers and IoC principles

Hello,
I found Prism (with Unity DI container or others) more useful than that of DependencyService in Xamarin because it supports applying IoC principles such as constructor injection. Though, the current built in one is productive, it would be nice if it had a capability of doing such things. I felt the essence of this because it provides a number of flexibility including loosely coupling, test-ability and so on. I can use prism with unity or anything else, but I (and probably other developers in the community out there) would love Xamarin more than ever before if such functionality is incorporated in Xamarin by default because there might be someone out there like me who don't want to rely on third-party libraries rather they rely on Xamarin itself. Additionally it would be great if it has such functionality to integrate with third party libraries for DI containers only like the DI container ..NET Core uses by default in ASP.NET Core project.
Thanks in advance.

Hi @rafsanulhasan
Thanks for the feedback. This repo is purely for logging issues with the Xamarin documentation. The issue you've raised is more a conversation for the engineers, so please use the engineering repo.


Responsivity: how to make the chart take the full width/space available

How to set size.width = 100% or 100vh to make the chart responsive

Check issue #2

@ghalex
Please update docs too! :smile:


Create budget-edu.txt

add Learning Center Budget

@de1eted please use correct path for the file. What is your email domain? If it's budget.edu, the file path has to be lib/domains/edu/budget.txt. Thank you!

@de1eted Could you please update the request according the comment above? Thank you.

@de1eted I am sorry, this request remains unanswered for a while, and I have to close it without merging. Thank you for your understanding.

Hello! I was on vacation without internet. Domain of Learning Center is budget-edu.ru. Path was correct.

@de1eted

The path was not correct, because the path was lib/domains/budget-edu.txt, and for budget-edu.ru domain the path must be lib/domains/ru/budget-edu.txt.
The school which owns this domain is not a college, nor a university. It is a training center. Please apply for free classroom license by email to<EMAIL_ADDRESS>I can not add a training center domain to this repository, it is for colleges and universities only. Thank you for your understanding.


Request: gitlab webhooks integration

Alternative github is gitlab.com and open source. :+1:
More info: https://about.gitlab.com/

Sorry.  It's amazing: http://kanboard.net/documentation/gitlab-webhooks


KAFKA-15541: Add num-open-iterators metric

Part of KIP-989.
This new StateStore metric tracks the number of Iterator instances that have been created, but not yet closed (via
AutoCloseable#close()).
This will aid users in detecting leaked iterators, which can cause major performance problems.

@mjsax @lucasbru @ableegoldman I know the vote hasn't closed yet, but I thought I'd get a head-start on the review. I'm submitting each metric from KIP-989 as a separate PR, to aid review, and because they can be merged independently.
I think I've covered every Metered Iterator created; I searched for Metered**Store and found every Iterator constructed by them. Are there any that I've missed?
Note: I'm not completely sold on the test strategy here. I'm currently calling one Iterator-creating method on each Metered store type (e.g. all() on MeteredKeyValueStore) - is this enough, or should I have a test for each Iterator-creating method each store provides? Might be somewhat overkill.

Merged to trunk to make progress on the implementation of the KIP.
About testing: I agree that we might not need to test every method which creates an iterator, but it would be great to test one method per "iterator type", per store? Ie, if there are two constructors for two iterator classed, we should try to test both by having a test for one method which create the one, or other iterator?
About Sensor: you are right, that it currently does not support Gauge, but I am wondering if we could not just add it? The problem I see it, that Sensor seems to be a public API (even if I am not sure why...)

About Sensor: you are right, that it currently does not support Gauge, but I am wondering if we could not just add it? The problem I see it, that Sensor seems to be a public API, so we would need to include it in the KIP to change it... (might be better to do this a follow up cleanup if we think it's worth doing?)

@mjsax Since Sensor is part of the kafka-common package, it would have a much broader scope than just kafka-streams. For that reason, I think it should be a separate KIP, since the scope of KIP-989 is limited to just Streams.

Makes sense. Could you file a Jira for the KIP and the follow up cleanup for KS code to use it :)


Suggestion: Add config example

Could probably yoink some of Hexal's config code for this.

Great suggestion! As this repo is outdated and being archived, I would very much like to contribute a config example to your fork at some point instead.


Added ability to define custom redirect function

Added the ability for users to define their custom redirect functions. This grants users wider flexibility when dealing with multiple redirect cases.

@sm0ke88 thank you for this contribution. Why are you not using the option to initialize the client with a custom redirect function?
https://github.com/bogdanfinn/tls-client/blob/master/client_options.go#L140
The drawback in changing the interface is that everyone who implements just the interface now needs to adjust his implementation.
Or are there valid use cases that one is switching between different redirect functions?

@sm0ke88 thank you for this contribution. Why are you not using the option to initialize the client with a custom redirect function?
https://github.com/bogdanfinn/tls-client/blob/master/client_options.go#L140
The drawback in changing the interface is that everyone who implements just the interface now needs to adjust his implementation.
Or are there valid use cases that one is switching between different redirect functions?

I have been utilizing a custom redirect function to address URL encoding parameters that consistently arise due to certain site configurations. However, I have encountered a specific scenario on the same site where I need to implement an additional custom redirect function within a specific part of the overall workflow. This prompted me to initiate the Pull Request (PR). It is worth noting that this method is rather specialized and will likely have infrequent use, yet it serves as a valuable alternative to manually managing redirects in the context of multi-step 302 responses.
For example, today I encountered a request that required four distinct redirects to obtain specific data. Instead of creating four individual handler functions to parse each step by disabling "Follow Redirects" and following them with self written implementations, I can conveniently create a custom CheckRedirect function to extract the required data from each step and assign it to a state variable.

@sm0ke88 i see the reasons.
One thing I'm still a bit worried about is the fact that we now have inconsistency in setting the custom redirect function. There are many ways currently in setting / changing the CheckRedirect function which might interfere and create unexpected side effects.
I think the best way would be to implement the function like this:
func (c *httpClient) SetRedirectFunc(redirectFunc customRedirectFunc) {
	c.config.customRedirectFunc = redirectFunc
	c.applyFollowRedirect()
}

This makes sure we do not have some overriding issues between the customRedirectFunction set by the setter and the custom redirect function set via the client options.


Add config option for seed network MTU

On clouds where Neutron is configured to assign a default MTU of 9000 to internal networks and where the OVN Octavia driver is in use for load balancers, the MTU mismatch between these internal networks and a 1500 MTU external network can cause issues with the NGINX Ingress LB for HA Azimuths deployments. Specifically, we find that loading the Azimuth web UI hangs when trying to fetch a large bundle.js file, but the web page can be fetched successfully with curl (because that doesn't pull in all the JS). The simplest fix for this seems to be forcing the seed network to have an MTU of 1500. Other networks with 9000 MTU (e.g. portal-internal networks created in other projects) apparently don't cause issues so this is the only change needed.

Tested manually on fresh demo deployment with infra_network_mtu: 1449 and working as expected.


Could not find celluloid-0.16.1 in any of the sources

Running jekyll/jekyll:pages fails with the following error:
Executing busybox-1.23.2-r9.trigger
OK: 265 MiB in 74 packages
Fetching gem metadata from https://rubygems.org/..........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Could not find celluloid-0.16.1 in any of the sources
fetch http://nl.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
fetch http://nl.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
OK: 265 MiB in 74 packages
Fetching gem metadata from https://rubygems.org/..........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Could not find celluloid-0.16.1 in any of the sources

Celluloid 0.16.1 was yanked, see http://stackoverflow.com/q/32182273/2373138. Either 0.16.0 or 0.17.x has to be used.

That's a problem with your dependencies not ours. Sorry.

If you want to post more information to https://talk.jekyllrb.com I'll gladly help you sort out your gems.

What's the additional information you need? That's the command I ran:
docker run --rm --label=jekyll -v=$(pwd):/srv/jekyll -ti -p <IP_ADDRESS>:4000:4000 jekyll/jekyll:pages

It's working now without any changes.


Typo on graphic in style tile

On the style tile method, the image of the example style tile has the word palette spelled incorrectly.

cc/ @isaacdurazo

Oh no, I'll make the correction

Typo is gone

👍  thanks for the speedy delivery @isaacdurazo


datasets.exceptions.DatasetNotFoundError for private dataset

Describe the bug
The following Python code tries to download a private dataset and fails with the error datasets.exceptions.DatasetNotFoundError: Dataset 'ClimatePolicyRadar/all-document-text-data-weekly' doesn't exist on the Hub or cannot be accessed.. Downloading a public dataset doesn't work.
from datasets import load_dataset
_ = load_dataset("ClimatePolicyRadar/all-document-text-data-weekly")

This seems to be just an issue with my machine config as the code above works with a colleague's machine. So far I have tried:

logging back out and in from the Huggingface CLI using huggingface-cli logout
manually removing the token cache at /Users/kalyan/.cache/huggingface/token (found using huggingface-cli env)
manually passing a token in load_dataset

My output of huggingface-cli whoami:
kdutia
orgs:  ClimatePolicyRadar

Steps to reproduce the bug
python
Python 3.12.2 (main, Feb  6 2024, 20:19:44) [Clang 15.0.0 (clang-15<IP_ADDRESS>.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from datasets import load_dataset
>>> _ = load_dataset("ClimatePolicyRadar/all-document-text-data-weekly")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/kalyan/Library/Caches/pypoetry/virtualenvs/open-data-cnKQNmjn-py3.12/lib/python3.12/site-packages/datasets/load.py", line 2074, in load_dataset
    builder_instance = load_dataset_builder(
                       ^^^^^^^^^^^^^^^^^^^^^
  File "/Users/kalyan/Library/Caches/pypoetry/virtualenvs/open-data-cnKQNmjn-py3.12/lib/python3.12/site-packages/datasets/load.py", line 1795, in load_dataset_builder
    dataset_module = dataset_module_factory(
                     ^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/kalyan/Library/Caches/pypoetry/virtualenvs/open-data-cnKQNmjn-py3.12/lib/python3.12/site-packages/datasets/load.py", line 1659, in dataset_module_factory
    raise e1 from None
  File "/Users/kalyan/Library/Caches/pypoetry/virtualenvs/open-data-cnKQNmjn-py3.12/lib/python3.12/site-packages/datasets/load.py", line 1597, in dataset_module_factory
    raise DatasetNotFoundError(f"Dataset '{path}' doesn't exist on the Hub or cannot be accessed.") from e
datasets.exceptions.DatasetNotFoundError: Dataset 'ClimatePolicyRadar/all-document-text-data-weekly' doesn't exist on the Hub or cannot be accessed.
>>>

Expected behavior
The dataset downloads successfully.
Environment info
From huggingface-cli env:
- huggingface_hub version: 0.25.1
- Platform: macOS-14.2.1-arm64-arm-64bit
- Python version: 3.12.2
- Running in iPython ?: No
- Running in notebook ?: No
- Running in Google Colab ?: No
- Running in Google Colab Enterprise ?: No
- Token path ?: /Users/kalyan/.cache/huggingface/token
- Has saved token ?: True
- Who am I ?: kdutia
- Configured git credential helpers: osxkeychain
- FastAI: N/A
- Tensorflow: N/A
- Torch: N/A
- Jinja2: 3.1.4
- Graphviz: N/A
- keras: N/A
- Pydot: N/A
- Pillow: N/A
- hf_transfer: N/A
- gradio: N/A
- tensorboard: N/A
- numpy: 2.1.1
- pydantic: N/A
- aiohttp: 3.10.8
- ENDPOINT: https://huggingface.co
- HF_HUB_CACHE: /Users/kalyan/.cache/huggingface/hub
- HF_ASSETS_CACHE: /Users/kalyan/.cache/huggingface/assets
- HF_TOKEN_PATH: /Users/kalyan/.cache/huggingface/token
- HF_HUB_OFFLINE: False
- HF_HUB_DISABLE_TELEMETRY: False
- HF_HUB_DISABLE_PROGRESS_BARS: None
- HF_HUB_DISABLE_SYMLINKS_WARNING: False
- HF_HUB_DISABLE_EXPERIMENTAL_WARNING: False
- HF_HUB_DISABLE_IMPLICIT_TOKEN: False
- HF_HUB_ENABLE_HF_TRANSFER: False
- HF_HUB_ETAG_TIMEOUT: 10
- HF_HUB_DOWNLOAD_TIMEOUT: 10

from datasets-cli env:
- `datasets` version: 3.0.1
- Platform: macOS-14.2.1-arm64-arm-64bit
- Python version: 3.12.2
- `huggingface_hub` version: 0.25.1
- PyArrow version: 17.0.0
- Pandas version: 2.2.3
- `fsspec` version: 2024.6.1

Actually there is no such dataset available, that is why you are getting that error.

Fixed with @kdutia in Slack chat. Generating a new token fixed this issue.


Question about augmentation

Hi, thanks for your code implementation. I want to ask about something about the augmentation process. I want to add new augmentation on the framework.

When I check the implementation and your paper I found that in the paper you define every probability for every augmentation, that means that there are a probability of several augmentation implemented together right ? But when I follow your code there is a OneOf function that select only single augmentation to be implemented, so what is the meaning of the probability on your table ?

Am I not understanding something here ? or something wrong with my understanding on the augmentation process ?

Yes, your understanding is right. The reason is pretty simple. When we prepared experiments for our paper, we used most of the augmentations implemented in the mmdetection framework, and thus no operation like OneOf. So we use probabilistic method instead of OneOf implemented in STAC. And when we planned to release the code, to make it aligned with STAC, we implemented some related augmentations and thus remove the probability.

Does the change to follow the STAC augmentation is possible to change the performance of the model ? So if I want to follow the default augmentations I just need to change back into the probabilistic method right ?
Thank you for your answer and implementation!

If you compare the performance in the paper and the repo, you will find some performance is slightly different.  Yes


chore: add Kubernetes & Containers integrations

nri-ecs: https://github.com/newrelic/nri-ecs
nri-kube-events: https://github.com/newrelic/nri-kube-events
nri-kubernetes: https://github.com/newrelic/nri-kubernetes

Thanks for submitting a pull request to newrelic/opensource-website.
If possible, please help the maintainers by leveraging the following conventional commit standards in your pull request title and commit messages.
Use chore

for changes / additions / corrections to content in the src/data/project-main-content, src/data/projects directories
for changes / additions / corrections to images in the static/images directory
for functional changes / additions to code in the examples directory

Example
git add src/data/projects/newrelic-nr1-github.json
git add src/data/project-main-content/newrelic-nr1-github.mdx
git commit -m "chore(nr1-github): adjusting config and content"
git push

Use fix

for functional corrections to code in the src/components, src/templates, src/fragments, src/pages or directories
for corrections in the src/data/oss-category or src/data/project-tags directories
for functional corrections to code in the examples directory

Example
git add src/pages/code-of-conduct.mdx
git commit -m "fix: typo and prop error in the code of conduct"
git push

Use feat

for functional changes / additions to code in the src/components, src/templates, src/fragments, src/pages or directories
for changes / additions in the src/data/oss-category or src/data/project-tags directories

Example
git add src/pages/video.js
git commit -m "feat(media): creating a video landing page"
git push

Hi @tangollama I'll update the PR.
I followed this guide https://github.com/newrelic/opensource-website/wiki/Contributing-Project-Data and it doesn't say anything about the tags. I can update it to reflect what you just pointed out, WDYT? It will be just modifying this file, right? https://github.com/newrelic/opensource-website/blob/develop/docs/Contributing-Project-Data.md

@alejandrodnm correct, but the assumption in the guide is that you're not augmenting the projectTags. There are two solutions to getting this PR merged.

Don't use projectTags that are not already listed in the project-tags.json file.
Modify that list.

We didn't include the project-tags data in the contributing guide b/c we don't generally want to encourage the proliferation of metadata. That said, this is an open source project and bound to grow. :)


Svelte 5 unable to pass class prop to child component.

Describe the bug
In sSvelte 4, and an earlier version of Svelte 5 I was able to pass css classes down to child components. I would like to do this with the "class" prop name to keep the api in line with html elements.
In Svelte 4 I used $$restProps.
In Svelte 5 I reassigned class to className as props must be destructured, and class is a reserved word - however this is no longer working.
To Reproduce
You can find a simple repl here.

I'm an element that IS receiving the class.

<Component class="custom-class" />

I'm a component that isn't receiving the class prop

...and just to be sure, I am manually using in the child component

Expected behavior
I expect the value of the class prop to flow through to the element.
Environment
I thought this might be env specific, or due to tailwind-merge - however this is replicated in the repl with Runes, and so I believe it is a Svelte 5 issue.

Oops - I thought I was in the Svelte Repo


Add specialised IID Normal methods for MvNormal

          I think once we've got all the way down to specifying that its _definitely_ a std norm getting generated `n` times we can use `MvNormal` as a specialism rather than the wider `IID` dispatch.

Or create a method to do this like
generate_latent(IID(D), n) where D <: Normal

?
Originally posted by @SamuelBrand1 in https://github.com/CDCgov/Rt-without-renewal/pull/438#discussion_r1880082931

Duplicate of #546


Encode-decode subfolder for smb spider to avoid encode error in case non latin-1 symbols

In case there is a folder with non latin-1 symbols (cyrillic lets say) smb spider will fail with following error
[17:00:56] ERROR    Exception while calling proto_flow() on target <ip-address>: 'latin-1' codec can't encode character '\u03b1' in position 60: ordinal not in range(256)                                          connection.py:174

Error itself comes from impacket which is used for smb connection during list directory step. Although its much easier (and faster) to fix it here.
In case characters are latin-1 then no change to string will be done.

Interesting...
for me it happened with --spider C\$ --spider-folder Users and under Users there was Администратор folder, which caused the issue

I might have found a solution:

@a-urth can you recheck if the error persists with #446 (or if this fixes it)?

 Everything working now?

@NeffIsBack yeah, sorry for delay. all good! thanks!


crashes on iOS 13 and iOS 14, and the crash occurs at -[NSURLResponse allHeaderFields]: unrecognized selector

Description
crashes on iOS 13 and iOS 14, and the crash occurs at -[NSURLResponse allHeaderFields]: unrecognized selector, newrelic-react-native-agent version is 1.3.5,NewRelicAgent version is 7.4.8,Xcode version is 14.2
NOTE: # ( Describe the problem you're encountering. )
[TIP]:  # ( Do NOT give us access or passwords to your New Relic account or API keys! )
Steps to Reproduce
Crash when starting the app with default configuration
Expected Behavior
Relevant Logs / Console output
Your Environment
newrelic-react-native-agent version is 1.3.5,NewRelicAgent version is 7.4.8,Xcode version is 14.2

@renyufei8023 are you using any other performance monitor tool?

any update regarding this?

@cristianrdu can you share crash report and sample app for this?

@renyufei8023 can you also share crash report and sample app for this?

This crash happens ONLY if interactionTracingEnabled is set to enabled in the agent configurations apparently...
The error msg I get when I run the Xcode debugger is similar to this thread too: https://forum.newrelic.com/s/hubtopic/aAX8W000000PHdnWAG/bug-to-compile-app

@cristianrdu @renyufei8023 we identified issue on our side, it will fix it on our next react native agent release.

Great to hear 😀. do you know when the next release will be?

@cristianrdu @renyufei8023 fixed in latest release.


Fix source maps (alternative)

@3y3 This keeps proper source file names, but creates fake "loaded" scripts... I think the problem should be addressed at transpiling level (Babel, etc): I don't think it's fair to generate in-memory sources with same file names... (maybe in sourcemap v4 spec could be added a proper way to handle in-memory transpiling)...

Ok. At current step I like my changes in ScriptFileStorage and your changes in front-end.
Next step - discussion about renaming files...
I think that all renamings is out of scope of node-inspector.
We can't solve existed situation correctly (this is an issue for babel), but we also can't to add dirty fix.
If we leave only changes in ScriptFileStorage and in front-end this would work for correct sourcemaps. @marcominetti , are you agree?
root
// loading script source

root
-> source.js
// processing sourceMapUrl

root
-> source.js + source.map
// processing source paths is source map

root
-> source.js + source.map
-> source.js (from source map)
// Unresolved situation

One other thing. There are inlined sources. So at current time we prevent requiring of inline sourcemap, but we can also prevent requiring of inline sources which stored in inline sourcemap (or it already works?).
Source Map Revision 3 Proposal

If we leave only changes in ScriptFileStorage and in front-end this would work for correct sourcemaps. @marcominetti , are you agree?
I do agree. ;)
One other thing. There are inlined sources. So at current time we prevent requiring of inline sourcemap, but we can also prevent requiring of inline sources which stored in inline sourcemap (or it already works?).
I've not tested specifically but it should already work... I use babel and uglify to build an app boot pack for node and front-end resource tree correctly lists original (virtual) source code... with not-inlined sourcemap the code is read from sourcemap sourcesContent property...

@3y3 please think about changing the "map" prefix to extension for inline mapped files... having a real source file with name "xxx.map.js" is not impossible... maybe a map?

@3y3 I reverted my changes to backend and added a fix to latest front-end that was breaking not-inlined sourcemap.

Fixes #628 and #580 ... original source code for "name.ext" will be available as "name.source.ext"

@marcominetti , read also https://github.com/babel/babel/pull/1587

@3y3 that's exactly the workaround I use within my apps to avoid the issue.. I'll reduce this pr to front-end code only, ok?

@3y3 kept only the front-end fix, I've not yet identified if there's any data-uri parser that supports other then application/json;base64... IMO, we could merge and than extend support to full data-uri spec in the future...

@marcominetti , sorry for pending this. I don't have a time to work on source maps on this week, but I follow the work.
We also discussed about this bug with Bajtos in gitter chat, so I need to fix and extend my part of commits.
Don't worry about this now. I'll rebase and merge all important parts and I'll present it for your review.

@marcominetti , I landed it as be64d801ea8bbf418ba316a23610b16ad1a4f1cb with some minor changes.
Thank you for contribution!


Data Race

WARNING: DATA RACE
Read at 0x00c42054c3e0 by goroutine 42:
code.uber.internal/driver/fleet_finance/vendor/github.com/nozzle/throttler.(*Throttler).Throttle()
/mnt/jenkins/workspace/test-fleet_finance/.tmp/.goroot/src/code.uber.internal/driver/fleet_finance/vendor/github.com/nozzle/throttler/throttler.go:84 +0x1e3
Previous write at 0x00c42054c3e0 by goroutine 43:
code.uber.internal/driver/fleet_finance/vendor/github.com/nozzle/throttler.(*Throttler).Done()
/mnt/jenkins/workspace/test-fleet_finance/.tmp/.goroot/src/code.uber.internal/driver/fleet_finance/vendor/github.com/nozzle/throttler/throttler.go:95 +0x1c8
func (t *Throttler) Done(err error) {
t.doneChan <- struct{}{}
if err != nil {
t.errsMutex.Lock()
t.errs = append(t.errs, err)
t.errorCount++
t.errsMutex.Unlock()
}
}
Should t.doneChan <- struct{}{} after if err != nil?

Yes, I think you're right. I've contemplated switching out that count var for an atomic int, but haven't had a need to do that yet. Maybe now is as good a time as any. :)

@peking2 Thanks for reporting that. I just submitted a PR to fix that data race. I may loop back through here and revisit some atomic values at some point, but this should be good for now.

@derekperkins thanks for a quick fix. :)


ignore next ignores the rest of the class instead of just one statement

I was trying to ignore if statement inside react es2015 class. The problem was that it was ignoring the whole file onwards when the if statement was on one line:
  componentDidMount() {
    /* istanbul ignore next */
    if (condition...) { browserHistory.push('/404'); }
  }

The way to fix it was splitting the if statement into multiple lines:
  componentDidMount() {
    /* istanbul ignore next */
    if (condition...) {
      browserHistory.push('/404');
    }
  }

I guess this should not be the case.

If you are transpiling the source code into something different, all bets re: istanbul ignore next are off because the transpiler may be changing the "next thing" into a different piece of code.


Add openshift-ci deployment and config files

This scripts install ingress-node-firewall into OCP, for test environment. The cluster deployment is done by dev-scripts:
https://github.com/openshift-metal3/dev-scripts

overall LGTM just few clarification questions

/LGTM
/APPROVE

/hold

/hold cancel


lang.array:reverse() shouldn't create a new array

Description:
See https://github.com/ballerina-platform/ballerina-spec/blob/master/lang/lib/array.bal#L145
Steps to reproduce:
But the following prints false atm.
import ballerina/io;

public function main() {
    int[] x = [1, 2, 3, 4];
    int[] y = x.reverse();
    io:println(x === y);
}

Affected Versions:
slp5

Assigned to @gabilang

See https://github.com/ballerina-platform/ballerina-spec/issues/749
Some of the comments in langlib got copied over from the implementation at one point, and I didn't catch this.

See ballerina-platform/ballerina-spec#749
Some of the comments in langlib got copied over from the implementation at one point, and I didn't catch this.

Noted, thank you. Created an issue to track fixing this https://github.com/ballerina-platform/ballerina-lang/issues/28514.


Replace master branch pending references with 'develop' (#29)

Some examples remained referencing the master branch
instead of the develop branch.

@faridsaad Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.

@faridsaad Thank you for signing the Contributor License Agreement!


Explore page 404 error

The sharegpt explore page seems to be down, giving a 404 not found error. The main page (sharegpt.com) is accessible. Any idea of when this will be up again?

The explore page has been removed due to privacy concerns. I've added a redirect to the main page for now. We can look into re-implementing this as an opt-in page @ar852. How important was this page to you, was it a key feature or a nice-to-have?

Hi, dom. Thank you for the quick response. I was using the explore page to scrape the questions that users were asking to determine their makeup (generation, chatting, Q/A, etc.) and see how they compared to synthetic datasets and other instruction datasets that researchers have created (real world crowdsourced vs lab-made by a few researchers). I also just liked to look around and see what people were asking. Of course, without the ability to browse the explore page, the former activity can't happen at all.
I thought that Sharegpt users shared conversations explicitly so that the internet could see them. If I may ask, what were the privacy concerns?

While I didn't use the Explore page for any formal research, I did browse it.  I'm an instructional technologist at a K12 school so part of my job is to help teachers figure out how to deal with ChatGPT and other related AI tools.  That includes identifying potential positive uses of these tools to improve student learning, assisting with potential challenges, and just learning more through examples of how people are prompt engineering.  The explore page was great for discovering some of those things.
Maybe a check box that is off by default but allows a share to go onto the explore page if the user intentionally enables it would help address the privacy issues. I can see why some folks might not want something shared on an Explore page. However, the current obfuscated URLs aren't really private anyway since no authentication is required to access the URL so if someone is that concerned then they shouldn't share a dialog using ShareGPT even without the Explore page.


Sequencer should periodically refresh chaindata cache

Problem
Sequencer load chaindata on startup. If chaindata updates after start, sequencer is left with stale data until the next restart.
Impact
Impacts UX in cases were chaindata change mid flight.
Proposed Solution
Create a new config var, say chain_data_cache_ttl that would set a timer for the next refresh. Update the cache in a seamless way, so that in-flight messages either see old state or new state of the cache.
Acceptance Criteria

[ ] Config var for chaindata cache TTL works, and new data is loaded
[ ] Executions after the cache update, use the new chaindata
[ ] Sequencer execution continues uninterrupted

Fixed by utils update to load from chaindata


App builder migration doesn't update deviceId

Migration of an application-builder dashboard which is linked to a device does not update the deviceId

Is there any workaround/solution to this issue currently? As we think this may be one of the causes of device specific datapoints not being migrated successfully.

Not currently - but give me a couple of hours and i'll fix it now

Not currently - but give me a couple of hours and i'll fix it now

Many Thanks.

Should be done by the end of the day, it's a little trickier than I remembered

Fixed in Version 1.1.1


DetourNode: Change node index from unsigned short to unsigned int.

On large tiled maps with high precision we could run out of indexs and detour would get stuck in an infinite loop.
Fixes: https://github.com/memononen/recastnavigation/issues/45

Shouldn't this only be an issue if a dtNodePool is constructed with maxNodes greater than 65535? Perhaps an assert to check for that in the dtNodePool would be appropriate.
That seems like rather high number of nodes (the samples use max node counts of 512 and 4096) but if it's legitimately being hit then perhaps this change is necessary. It's just a shame because it bumps up the memory usage of queries somewhat. I can't think of a way to make the index size configurable in a tidy way.

We are using r&d for serverside navigation of NPCs on very large maps. We were hitting a deadlock as referenced in issue 45 until I sat down and looked at what was happening. I don't think a 2 byte increase will have any considerable impact in the overall consumption of memory

It's (roughly) 2 * maxNodes per query, so 128KB if you're talking of node counts around 64k. Not a massive amount, no, but enough to make me pause to think. Bear in mind that Detour is used by projects with tight memory requirements as well, hence all the small data types and bitfields and whatnot.
Just to be clear though, I think this change is fine, I'm just commenting.
Off-topic: how frequently are you doing these searches that visit over 64k nodes? Isn't that quite CPU-intensive? Perhaps a hierarchical approach would help?

Quite often, and not really the searches get done in ~<5ms.
Also, if your using a large node count there's a good chance you'll get stuck in an infinite loop without this.  If your using small node counts then the size increase doesn't really effect you.

One option would be to do a similar treatment as with DT_POLYREF64, that is add a define that allows you to bump the index to 32bit.
As @hymerman pointed out, we should add an assert in the dtNodePoolconstructor to check that maxNodes is less than DT_NULL_IDX and less than 1<<24 (pidx in dtNode is 24 bits).
And alternative would be to just bump it to int (still should add that assert maxNodes < 1<<24, though). Objections?

I think adding a define is a good idea. Perhaps one day there could be a
'dtConfig.h' where this kind of thing lives, which is the place you go to
customise all of the library, from type sizes (appropriate to your use
case) to assert macros, memory hooks, threading and so on.
Asserts are essential for this to work though; the user needs to know when
their config isn't sufficient.
@cexikitin (just understood your username now that I've said it!) - fair
enough! I'd get slaughtered if my pathfinds took 5ms ;) We just have very
different use cases!
On 8 January 2015 at 09:22, Mikko Mononen<EMAIL_ADDRESS>wrote:

One option would be to do a similar treatment as with DT_POLYREF64, that
is add a define that allows you to bump the index to 32bit.
As @hymerman https://github.com/hymerman pointed out, we should add an
assert in the dtNodePoolconstructor to check that maxNodes is less than
DT_NULL_IDX and less than 1<<24 (pidx in dtNode is 24 bits).
And alternative would be to just bump it to int (still should add that
assert maxNodes < 1<<24, though). Objections?
—
Reply to this email directly or view it on GitHub
https://github.com/memononen/recastnavigation/pull/64#issuecomment-69154475
.

The assertion was added in #179. I will close this since the typedef for the node indices in DetourNode.h makes it easy to adjust the size for the user's own use case.


Gutter overlaps text in ver 5.38.0

style="left: 26px...." is incorrect
Configuration:
this.cm = CodeMirror.fromTextArea(textArea, {
scrollbarStyle: 'null',
lineNumbers: true,
gutters: ['CodeMirror-linenumbers', 'as-codemirror-errors'],
mode: 'htmlmixed'
});

Closing this until there's further information on how to reproduce the issue.


Looks at DDS Guid_t/InstanceHandle_t conversion

The other rmw implementations use built in discovery to cache data related to participant/topic based on DDS::Guid_t, need to check how this should be done with OpenDDS

@mitza-oci, @kuznetsovmoci, and @lij-oci, Do we need to address this issue?

Would someone please add a link to the line(s) of code impacted?

Within the rmw_connext this is done in https://github.com/ros2/rmw_connext/blob/7781a5e5982032be9460840e33646028af21129e/rmw_connext_shared_cpp/include/rmw_connext_shared_cpp/guid_helper.hpp#L63, within that implementation I found caching based on DDS_Guid_t instead of using DDS_InstanceHandle_t

See also https://github.com/ros2/rmw_connext/issues/326

In this repository, looks like the TopicCache was changed to use InstanceHandle_t.  What else, if anything, needs to be done (in this repository) to implement the required RMW functions?


exportToJson command failed : return Obj is not a JsonSQLite Obj

I am getting "exportToJson command failed : return Obj is not a JsonSQLite Obj" error whenever I do partial export. Full export always works. I have just 3 tables. I added just 2 entries still gives this error.
I am using the below plugins.
"@capacitor-community/sqlite": "^2.9.5",
"@capacitor/android": "^2.4.6",
"@capacitor/core": "2.4.6"
Please help as I am stuck with this since long.

@najmulansari first thanks for using the refactor release it help to sort out all the bugs. I am ready to help but for this i need more data from you. The schema of your database , the stored synchronization date before the partial export, the 2 entries that you added was it from a partial importFromJson or from a normal  use (execute, executeSet or run). Can i see partially the code where you do these operations. Which framework are you using Ionic, React, Vue. i updated yesterday the Ionic/Vue starter App and it is working fine but there is something that i may overlook

@najmulansari first thanks for using the refactor release it help to sort out all the bugs. I am ready to help but for this i need more data from you. The schema of your database , the stored synchronization date before the partial export, the 2 entries that you added was it from a partial importFromJson or from a normal  use (execute, executeSet or run). Can i see partially the code where you do these operations. Which framework are you using Ionic, React, Vue. i updated yesterday the Ionic/Vue starter App and it is working fine but there is something that i may overlook

@najmulansari Are you using the Electron platform?

@najmulansari Are you using the Electron platform?

Hi @jepiqueau,
Below are the details.
DB Schema.
export const tableSchema: string = CREATE TABLE IF NOT EXISTS class (id INTEGER PRIMARY KEY NOT NULL,userId INTEGER,className TEXT,description TEXT,last_modified INTEGER  DEFAULT (strftime('%s', 'now'))); CREATE TABLE IF NOT EXISTS section (id INTEGER PRIMARY KEY NOT NULL,userid  INTEGER  ,classId  INTEGER  ,sectionName  TEXT NOT NULL  ,description  TEXT ,last_modified INTEGER  DEFAULT (strftime('%s', 'now')) ); CREATE TABLE IF NOT EXISTS student ( id INTEGER PRIMARY KEY NOT NULL, userId INTEGER , classId INTEGER , sectionId INTEGER , studentName TEXT , address TEXT , gender TEXT , contact1 TEXT , contact2 TEXT , email TEXT ,  guardian TEXT , guardiancontact TEXT , schoolcollege TEXT , startdate TEXT , dob TEXT , fees INTEGER , discount INTEGER , profilePic TEXT , last_modified INTEGER  DEFAULT (strftime('%s', 'now')) ); CREATE TRIGGER IF NOT EXISTS class_trigger_last_modified AFTER UPDATE ON class FOR EACH ROW WHEN NEW.last_modified <= OLD.last_modified BEGIN UPDATE class SET last_modified= (strftime('%s', 'now')) WHERE id=OLD.id; END; CREATE TRIGGER IF NOT EXISTS section_trigger_last_modified AFTER UPDATE ON section FOR EACH ROW WHEN NEW.last_modified <= OLD.last_modified BEGIN UPDATE section SET last_modified= (strftime('%s', 'now')) WHERE id=OLD.id; END; CREATE TRIGGER IF NOT EXISTS student_trigger_last_modified AFTER UPDATE ON student FOR EACH ROW WHEN NEW.last_modified <= OLD.last_modified BEGIN UPDATE student SET last_modified= (strftime('%s', 'now')) WHERE id=OLD.id; END; PRAGMA user_version = 1;

private async createDB() {
var exists = (await Storage.get({ key: this.dbName })).value;
if (!exists) {
await this.DBConnection.execute(tableSchema);
await this.DBConnection.setSyncDate('' + (new Date()).toISOString())
await Storage.set({ key: this.dbName, value: '1' });
}
}
public async addClass(userId,className,description) {
var values = [userId,className,description];
let sqlcmd: string = "INSERT INTO Class(userId,className,description) VALUES (?,?,?);";
var result = await this.db.run(sqlcmd, values);
return result.changes;

}
public async addSection(userid,classId,sectionName,description) {
var values = [userid,classId,sectionName,description];
let sqlcmd: string = "INSERT INTO Section(userid,classId,sectionName,description); VALUES (?,?,?,?);";
var result = await this.db.run(sqlcmd, values);
return result.changes;

}
await this.addClass(1,"MA","Master of Atrs");
await this.addClass(1,1,"Morning","Morning - From 8AM to 9AM");
public async getDatabaseExport() {
let result = await this.db.exportToJson('partial');
console.log(JSON.stringify(result.export));
var date = (new Date()).toISOString();
await this.db.setSyncDate(date);

}
I am using Ionic/Angular/Capacitor. Below are installed plugins.
"dependencies": {
"@angular/common": "~11.1.0",
"@angular/core": "~11.1.0",
"@angular/forms": "~11.1.0",
"@angular/platform-browser": "~11.1.0",
"@angular/platform-browser-dynamic": "~11.1.0",
"@angular/router": "~11.1.0",
"@capacitor-community/sqlite": "^2.9.5",
"@capacitor/android": "^2.4.6",
"@capacitor/core": "2.4.6",
"@ionic-native/call-number": "^5.30.0",
"@ionic-native/core": "^5.30.0",
"@ionic-native/file-opener": "^5.30.0",
"@ionic-native/splash-screen": "^5.30.0",
"@ionic-native/status-bar": "^5.30.0",
"@ionic/angular": "^5.5.2",
"call-number": "^1.0.1",
"cordova-plugin-androidx": "^3.0.0",
"cordova-plugin-androidx-adapter": "^1.1.3",
"cordova-plugin-file-opener2": "^3.0.5",
"jetifier": "^1.6.6",
"moment": "^2.29.1",
"npm-check-updates": "^11.0.0",
"rxjs": "~6.6.3",
"tslib": "^2.1.0",
"zone.js": "~0.11.3"
},

Hi @jepiqueau,
Below are the details.
DB Schema.
export const tableSchema: string = CREATE TABLE IF NOT EXISTS class (id INTEGER PRIMARY KEY NOT NULL,userId INTEGER,className TEXT,description TEXT,last_modified INTEGER  DEFAULT (strftime('%s', 'now'))); CREATE TABLE IF NOT EXISTS section (id INTEGER PRIMARY KEY NOT NULL,userid  INTEGER  ,classId  INTEGER  ,sectionName  TEXT NOT NULL  ,description  TEXT ,last_modified INTEGER  DEFAULT (strftime('%s', 'now')) ); CREATE TABLE IF NOT EXISTS student ( id INTEGER PRIMARY KEY NOT NULL, userId INTEGER , classId INTEGER , sectionId INTEGER , studentName TEXT , address TEXT , gender TEXT , contact1 TEXT , contact2 TEXT , email TEXT ,  guardian TEXT , guardiancontact TEXT , schoolcollege TEXT , startdate TEXT , dob TEXT , fees INTEGER , discount INTEGER , profilePic TEXT , last_modified INTEGER  DEFAULT (strftime('%s', 'now')) ); CREATE TRIGGER IF NOT EXISTS class_trigger_last_modified AFTER UPDATE ON class FOR EACH ROW WHEN NEW.last_modified <= OLD.last_modified BEGIN UPDATE class SET last_modified= (strftime('%s', 'now')) WHERE id=OLD.id; END; CREATE TRIGGER IF NOT EXISTS section_trigger_last_modified AFTER UPDATE ON section FOR EACH ROW WHEN NEW.last_modified <= OLD.last_modified BEGIN UPDATE section SET last_modified= (strftime('%s', 'now')) WHERE id=OLD.id; END; CREATE TRIGGER IF NOT EXISTS student_trigger_last_modified AFTER UPDATE ON student FOR EACH ROW WHEN NEW.last_modified <= OLD.last_modified BEGIN UPDATE student SET last_modified= (strftime('%s', 'now')) WHERE id=OLD.id; END; PRAGMA user_version = 1;

private async createDB() {
var exists = (await Storage.get({ key: this.dbName })).value;
if (!exists) {
await this.DBConnection.execute(tableSchema);
await this.DBConnection.setSyncDate('' + (new Date()).toISOString())
await Storage.set({ key: this.dbName, value: '1' });
}
}
public async addClass(userId,className,description) {
var values = [userId,className,description];
let sqlcmd: string = "INSERT INTO Class(userId,className,description) VALUES (?,?,?);";
var result = await this.db.run(sqlcmd, values);
return result.changes;

}
public async addSection(userid,classId,sectionName,description) {
var values = [userid,classId,sectionName,description];
let sqlcmd: string = "INSERT INTO Section(userid,classId,sectionName,description); VALUES (?,?,?,?);";
var result = await this.db.run(sqlcmd, values);
return result.changes;

}
await this.addClass(1,"MA","Master of Atrs");
await this.addClass(1,1,"Morning","Morning - From 8AM to 9AM");
public async getDatabaseExport() {
let result = await this.db.exportToJson('partial');
console.log(JSON.stringify(result.export));
var date = (new Date()).toISOString();
await this.db.setSyncDate(date);

}
I am using Ionic/Angular/Capacitor. Below are installed plugins.
"dependencies": {
"@angular/common": "~11.1.0",
"@angular/core": "~11.1.0",
"@angular/forms": "~11.1.0",
"@angular/platform-browser": "~11.1.0",
"@angular/platform-browser-dynamic": "~11.1.0",
"@angular/router": "~11.1.0",
"@capacitor-community/sqlite": "^2.9.5",
"@capacitor/android": "^2.4.6",
"@capacitor/core": "2.4.6",
"@ionic-native/call-number": "^5.30.0",
"@ionic-native/core": "^5.30.0",
"@ionic-native/file-opener": "^5.30.0",
"@ionic-native/splash-screen": "^5.30.0",
"@ionic-native/status-bar": "^5.30.0",
"@ionic/angular": "^5.5.2",
"call-number": "^1.0.1",
"cordova-plugin-androidx": "^3.0.0",
"cordova-plugin-androidx-adapter": "^1.1.3",
"cordova-plugin-file-opener2": "^3.0.5",
"jetifier": "^1.6.6",
"moment": "^2.29.1",
"npm-check-updates": "^11.0.0",
"rxjs": "~6.6.3",
"tslib": "^2.1.0",
"zone.js": "~0.11.3"
},

@najmulansari Which platform are you testing Android, iOS, Electron

@najmulansari Which platform are you testing Android, iOS, Electron

@jepiqueau Android, OS 7/10

@jepiqueau Android, OS 7/10

@najmulansari Ok i did reproduce the issue, so i have to figure out this thanks for your patience

@najmulansari Ok i did reproduce the issue, so i have to figure out this thanks for your patience

@najmulansari the syncDate and the date of the insert users are the same so there is no object returned
so define your initial syncDate as date - 2 hours
    // set the synchronization date
    let date = new Date();
    date.setHours(date.getHours() - 2);
    let syncDate: string = date.toISOString();
    console.log(`$$$ syncDate ${syncDate}`)
    ret = await db.setSyncDate(syncDate);
    if(!ret.result) return false;
    result = await db.getSyncDate();
    if(result.syncDate === 0) return false;
    console.log("$$ initial syncDate " + result.syncDate);

after do your insert
do your export
this should work

@najmulansari the syncDate and the date of the insert users are the same so there is no object returned
so define your initial syncDate as date - 2 hours
    // set the synchronization date
    let date = new Date();
    date.setHours(date.getHours() - 2);
    let syncDate: string = date.toISOString();
    console.log(`$$$ syncDate ${syncDate}`)
    ret = await db.setSyncDate(syncDate);
    if(!ret.result) return false;
    result = await db.getSyncDate();
    if(result.syncDate === 0) return false;
    console.log("$$ initial syncDate " + result.syncDate);

after do your insert
do your export
this should work

@jepiqueau - After making changes as per your suggestion, Now I am getting "SetSyncDate command failed".
public async getDatabaseExport() {
var result = await this.db.getSyncDate();
if (result.syncDate === 0) {
let date = new Date();
date.setHours(date.getHours() - 2);
let syncDate: string = date.toISOString();
await this.db.setSyncDate(syncDate);
return;
}
console.log("$$ initial syncDate " + result.syncDate);
var exportResult = await this.db.exportToJson('partial');
console.log(JSON.stringify(exportResult.export));

var date = (new Date()).toISOString();
await this.db.setSyncDate(date);

}
See output below from chrome debugger console.
native:
Object
callbackId: "134016820"
methodName: "setSyncDate"
options: {database: "myfavcoachingdb", syncdate: "2021-01-22T01:10:08.372Z"}
pluginId: "CapacitorSQLite"
result:
Object
message: "SetSyncDate command failed"
result: false

@jepiqueau - After making changes as per your suggestion, Now I am getting "SetSyncDate command failed".
public async getDatabaseExport() {
var result = await this.db.getSyncDate();
if (result.syncDate === 0) {
let date = new Date();
date.setHours(date.getHours() - 2);
let syncDate: string = date.toISOString();
await this.db.setSyncDate(syncDate);
return;
}
console.log("$$ initial syncDate " + result.syncDate);
var exportResult = await this.db.exportToJson('partial');
console.log(JSON.stringify(exportResult.export));

var date = (new Date()).toISOString();
await this.db.setSyncDate(date);

}
See output below from chrome debugger console.
native:
Object
callbackId: "134016820"
methodName: "setSyncDate"
options: {database: "myfavcoachingdb", syncdate: "2021-01-22T01:10:08.372Z"}
pluginId: "CapacitorSQLite"
result:
Object
message: "SetSyncDate command failed"
result: false

@najmulansari this has been implemented in  https://github.com/jepiqueau/angular-sqlite-app-refactor and works well but it was to explained the reason of failure more than thing you should do. For me, there is no reason to do a partial export just after creating a database. Usually the process flow of synchronization is

get the database schemas, indexes and table's data from a server
create a json object from these data
use importFromJson with 'full' mode to implement the database in your  device
create the connection to the database with createConnection which returned the db connector
open the database with db.open
create the synchronization table with db.createSyncTable, the synchronization date is automatically created and stored as a number
you can check the initial synchronization date with db.getSyncDate
now you can start using the database locally and make some db.run, db.query, ...
after a while you decide to synchronize back the local database to the remote database on the server
use exportToJson with 'partial' mode to export only the modifications since the 'initial' or the 'last' synchronization date
create from the json object the data to be send to the server
upload the remote server database
set a new synchronization date to the local database. the format is 2021-01-20T18:42:15.000Z

You could also decide to erase the remote server database so for this you may use the `exportToJson with the 'full' mode
hope this clarify the process
I encourage you to look at https://github.com/jepiqueau/angular-sqlite-app-refactor which demonstrate the use of the plugin in testimportjson, testexportjson and also show your case implemented in testexportjson67

@najmulansari this has been implemented in  https://github.com/jepiqueau/angular-sqlite-app-refactor and works well but it was to explained the reason of failure more than thing you should do. For me, there is no reason to do a partial export just after creating a database. Usually the process flow of synchronization is

get the database schemas, indexes and table's data from a server
create a json object from these data
use importFromJson with 'full' mode to implement the database in your  device
create the connection to the database with createConnection which returned the db connector
open the database with db.open
create the synchronization table with db.createSyncTable, the synchronization date is automatically created and stored as a number
you can check the initial synchronization date with db.getSyncDate
now you can start using the database locally and make some db.run, db.query, ...
after a while you decide to synchronize back the local database to the remote database on the server
use exportToJson with 'partial' mode to export only the modifications since the 'initial' or the 'last' synchronization date
create from the json object the data to be send to the server
upload the remote server database
set a new synchronization date to the local database. the format is 2021-01-20T18:42:15.000Z

You could also decide to erase the remote server database so for this you may use the `exportToJson with the 'full' mode
hope this clarify the process
I encourage you to look at https://github.com/jepiqueau/angular-sqlite-app-refactor which demonstrate the use of the plugin in testimportjson, testexportjson and also show your case implemented in testexportjson67

Thank you so much for your help, I really appreciate it. I think setSyncDate was the issue. On setting 2 hours earlier it solved the problem.

Thank you so much for your help, I really appreciate it. I think setSyncDate was the issue. On setting 2 hours earlier it solved the problem. A big thumbs up for you.

@najmulansari you are welcome

@najmulansari you are welcome


build error

When doing build I get:
Built files are meant to be served over an HTTP server.
Opening index.html over file:// won't work.

Cleaned build artifacts.

Building Quasar App with "mat" theme...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory
<--- Last few GCs --->

 119950 ms: Scavenge 1396.8 (1456.7) -> 1396.8 (1456.7) MB, 7.2 / 0 ms (+ 1.8 ms in 1 steps since last GC) [allocation failure] [incremental marking delaying mark-sweep].
 120790 ms: Mark-sweep 1396.8 (1456.7) -> 1395.3 (1453.7) MB, 839.6 / 0 ms (+ 2.9 ms in 2 steps since start of marking, biggest step 1.8 ms) [last resort gc].
 121687 ms: Mark-sweep 1395.3 (1453.7) -> 1395.3 (1456.7) MB, 897.1 / 0 ms [last resort gc].

<--- JS stacktrace --->

==== JS stack trace =========================================

Security context: 0x14a0a5ae3ac1 <JS Object>
   1: forEach [native array.js:~961] [pc=0x3dc5a5fec493] (this=0x1da936704101 <JS Array[1]>,bl=0x1da936704171 <JS Function (SharedFunctionInfo 0x6ee3c2976e1)>,bm=0x1da936704121 <a SourceNode with map 0x20357b085241>)
   2: cloneAndPrefix(aka cloneAndPrefix) [/home/usr/pqqf03/node_modules/webpack-core/lib/PrefixSource.js:~54] [pc=0x3dc5a610d8c0] (this=0x14a0a5a04189 <undefined>,node=0x3f78389c...

Aborted (core dumped)

npm ERR! Linux 4.4.0-38-generic
npm ERR! argv "/home/usr/.nvm/versions/node/v5.11.1/bin/node" "/home/usr/.nvm/versions/node/v5.11.1/lib/node_modules/npm/bin/npm-cli.js" "run-script" "build"
npm ERR! node v5.11.1
npm ERR! npm  v3.8.6
npm ERR! code ELIFECYCLE
npm ERR<EMAIL_ADDRESS>build: `node build/script.build.js`
npm ERR! Exit status 134
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>build script 'node build/script.build.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the quasar-app package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node build/script.build.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs quasar-app
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls quasar-app
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/usr/pqqf03/npm-debug.log

Process finished with exit code 1

Please open build / starter pack issues only on https://github.com/rstoenescu/quasar-templates/issues
Might be because you have one really big big image file in there and Node simply can't handle it.


Acquisition optimizer error

Hi,
I have been running into this error with both the DIRECT and CMA optimizers:
    133     if isinstance(s, np.ndarray):
    134         s[s<1e-10] = 1e-10
--> 135     elif s< 1e-10:
    136         s = 1e-10
    137     u = (fmin-m+acquisition_par)/s

Any idea how this is caused? I can't seem to figure out what s is and why it is a list.

s is the standard deviation of the GP at the point you are looking at. That is a way of dealing with cases in which s is zero. Can you provide a example of the core you are trying to run so I can have a look to want is causing the error?
And sorry for the slow response!

This is still an issue for me


[Bug]: No constraints or retry attempt when failing to obtain price data for conversion resulting in error when interacting with Blocktank

Describe the bug
If Bitkit starts without being able to retrieve price data (has happened to me a few timesunder normal conditions) and it doesn't have past data to use then it displays a dash for the dollar value (see first screenshot). From then on it does not attempt to fix this state even if network conditions are good. As a result, there is no price data for creating a LN channel (see second screenshot).
It would be good to prevent access to any action that requires live price data on the client side.
It would be good to retry obtaining price data if it has been unsuccessful.
Reproduce

With no network (aeroplane mode)
With a new instance of Bitkit
Create a new wallet
Allow network access (disable aeroplane mode)
Tap the 0 bitcoin balance to display dollar
Observe a dash for dollar price instead of 0 (this is probably an ok representation but there are no attempts to update live price data, even with a manual pull-down to refresh)
Tap Receive at the bottom
Tap Receive on Spending Balance
Input valid amount and Continue
Observe 'Undefined' fiat amount in description
Tap Continue
Observe CJIT Error and no progression to create invoice

Screenshots / Recording
Dollar value displays with a dash when there is no price conversion info

Attempting to create CJIT channel displays 'undefined' and produces error

Operating system
Android 13 TKQ1.220829.002
Bitkit version
d710a89144ec9b15fb03e41c1d08f51b0aae12cd
Log output
No response

Tested on v118
This is much improved. I see that the price data is updated automatically and correctly.
However, I did notice that the $0 service provider fee and CJIT Error: init_channel_manager can be provoked when attempting to receive spending balance with no network.
@limpbrains would you suggest addressing here or in new issue?

definetly a new issue

Raised https://github.com/synonymdev/bitkit/issues/1898


AWS i7ie enablement

Add pre-measured io_properties.yaml for i7ie.
https://aws.amazon.com/blogs/aws/now-available-storage-optimized-amazon-ec2-i7ie-instances/

There are several things we need to verify while adding:

Artifact tests.
Performance test and "validity of io-properties" - previously there were claims that io-properties are/were wrong for i4i instances.
This may require a discussion or at least an agreement of how do we qualify the io-properties. (FYI @yaronkaikov, @xemul, @fruch )


Move Yargs to devDependencies

Summary
Yargs package is used only in test scripts and script for bumping version.
Based on this https://github.com/facebook/react-native/search?q=yargs&unscoped_q=yargs Yargs is not really required in production build and should be moved as development dependency.
 Hope that failing test is general issue and not caused by PR.


DCOS-22379: Backport & Cleanup Jenkins Setup (1.11)

⚠ Depends on #2920
This packports #2931 to 1.11 branch.

hold merge until master PR got merged


Bug in shader with alpha and double sided on

Operating system or device, Godot version, GPU Model and driver (if graphics related):
master branch
Issue description:

I'm trying to do a dissolve shader with double sided actived like this:

But when I try to use alpha with cull_mode disabled this happens:

If I set cull_mode to back, that bug not happens:

Steps to reproduce:
Set Transparent to on and cull_mode to disabled.

Apparently, when use alpha, depth test is ignored, even without selected.

Hi @guilhermefelipecgs , I think in your case, "Depth Draw Mode" has to be "Opaque Pre-Pass" because otherwise alpha material doesn't write into depth buffer even though depth test is actually enabled.
Please check the screenshot below:

Could you try it? Let me know if it works.

Works nice.
Thanks!


Fix filename of preferences.d and integration tests

Currently, in the default recipe a /etc/apt/preferences.d/pgdg.pref.pref is created, the serverspec test checks for '/etc/apt/preferences.d/pgdg.pref' and currently fails.
PR coming to fix the filename.

This is fixed via 1cddd60


dropping irrelevant components

Removed $PREM and teams from the interface. (Have kept the teams component file, in case we want to add this back later).

lgtm! please resolve the merge conflict, @rpollock03 and I'll merge :)


Can you release new version of the cookbook to the supermarket?

@tas50. The fix provided by @viktorradnai is very important for us. Now cookbook doesn't work on centos 5.11. Can you release new version of cookbook to supermarket with this fix?

Sorry for the breaking change there.  It all worked in KitchenCI, but I think that had a complete path set.  The new version is out on supermarket. https://supermarket.chef.io/cookbooks/openssh#changelog


Added closed event on server close

Coverage increased (+0.005%) to 97.068% when pulling 7aecc16a6cc02fe5251647c2c0738a11278f48d7 on debjeet-sarkar:master into ac6cbad2ec921a851d50733aae1f23d3b7df9ab8 on mcollina:master.

@debjeet-sarkar can you add a unit test? also can you rebase the commit? and add it to the README?

Coverage increased (+0.02%) to 97.086% when pulling 60a8e554df169f53d06922e20181f4dbf8bb1b14 on debjeet-sarkar:master into ac6cbad2ec921a851d50733aae1f23d3b7df9ab8 on mcollina:master.

Coverage increased (+0.02%) to 97.086% when pulling 1b14e95948281592021b5f3e151655c689e15e5a on debjeet-sarkar:master into ac6cbad2ec921a851d50733aae1f23d3b7df9ab8 on mcollina:master.

Coverage increased (+0.02%) to 97.086% when pulling ab231984dfbe75aa4933769c7723ca414a16d380 on debjeet-sarkar:master into ac6cbad2ec921a851d50733aae1f23d3b7df9ab8 on mcollina:master.

Coverage increased (+0.02%) to 97.086% when pulling 620a70af25dd11e93c482e8ce08dbfa7d21ccf77 on debjeet-sarkar:master into ac6cbad2ec921a851d50733aae1f23d3b7df9ab8 on mcollina:master.

Coverage increased (+0.02%) to 97.086% when pulling d4c1d54782f060c17f8a4fbb7887e3fded4414d1 on debjeet-sarkar:master into ac6cbad2ec921a851d50733aae1f23d3b7df9ab8 on mcollina:master.


Untitled file save as the same name of a directory in current directory

VSCode Version: 1.19.3
OS Version: Ubuntu 16.04

If there is a directory  foo/ in the current directory, and I want to save a untitled file as foo in the current directory, the explorer automatically changes into the foo/ directory.

@SiqingYu can you please attach a gif or a picture to clarify what you are trying to do
Thanks


ast: extend tests

Codecov Report

Merging #6 (0f39563) into main (cd82f77) will increase coverage by 1.27%.
The diff coverage is 29.51%.

@@            Coverage Diff             @@
##             main       #6      +/-   ##
==========================================
+ Coverage   32.62%   33.89%   +1.27%
==========================================
  Files          57       57
  Lines        4831     4871      +40
==========================================
+ Hits         1576     1651      +75
+ Misses       3208     3174      -34
+ Partials       47       46       -1


Remove tooltip if columnDisableSortBy

When sorting is disabled there is no onClick on this column, so we also did not need the tooltip.

You’ll need to update the sorting test snapshot.

Nice!


Modifications for Arduino Mega

I tried to compile this library for the Arduino Mega, and noticed that it wasn't working. I assume this is because of the setup for SPI pins in defaults.h but am not 100% sure how to the fix the problem.

Greetings.
This repository exists mostly for historical reasons. If you want to run CAN on your Mega, try CAN_Library at https://github.com/McNeight/CAN_Library
-Neil


Unable to launch robot-log visualiser due to iDynTree undefined symbol

Hi, I installed the robot-log-visualizer using the same environment that I used for the robotology-superbuild. I used the command conda install -c robotology robot-log-visualizer.
When I run robot-log-visualizer, the terminal displays the error:
ImportError: /media/tapicella/Data/code/robotology-superbuild/build/install/lib/python3.12/site-packages/idyntree/_iDynTree.so: undefined symbol: _ZN8iDynTree53moveLinkFramesToBeCompatibleWithURDFWithGivenBaseLinkERKNS_5ModelERS0_

Can you help me solve this error, please?

Hello, robot-log-visualizer is already installed by the superbuild, so you should either use the one provided by the superbuild, or use a different environment.
If you install robot-log-visualizer with both the robotology-superbuild and the conda environment of the robotology-superbuild dependencies, you end up having two different iDynTree versions that may have different symbols (one installed by conda, and one installed by the superbuild) and I think this explains your error.

I uninstalled the robot-log-visualizer using the conda command and now it works.
Thanks

I uninstalled the robot-log-visualizer using the conda command and now it works.
Thanks

Make sure that in the process you also uninstalled all the dependencies installed by robot-log-visualizer that are already installed by the superbuild (in particolar idyntree) otherwise you could have further problems.


Bookstore: connect to api

Make use of the Bookstore API as your backend.
Use axios with createAsyncThunk to make your HTTP requests to the backend
Fetch your books from the Bookstore API after the component has rendered
Refactor your add book and remove book features to persist your changes in the server
Your application should behave the same way after the refactoring

Hello @huseyinbiyik !! Please i am in need of a code review for my project: bookstore: add styling
Please I am desperate. The deadline is in one hour. I have requested for a review over 50 minutes ago, but no code reviewer has reviewed my pull request. I am worried that it will not be approved on time. Please help me review the pull request, thank you.

Hello @iambenkis !! Please i am in need of a code review for my project: bookstore: add styling
Please I am desperate. The deadline is in one hour. I have requested for a review over 50 minutes ago, but no code reviewer has reviewed my pull request. I am worried that it will not be approved on time. Please help me review the pull request, thank you.


Deprecated method warning in Document+Mutation.swift

Document+Mutations.swift:6:17: 'changeCapacity(to:)' is deprecated: changeCapacity has been replaced by reserveCapacity

Yeah, it's a silly issue. SwiftNIO changes that signature in a minor release. I think we can get away with requiring the recent SwiftNIO version now. What do you think @Obbut ?

Thanks for bringing it to our attention again!

I think it's fine to require a more recent version of NIO in our Package.swift


fix: 🤔 Angular: Two-Way Databinding not working in syn-input

Checklist (for the issue creator)

[x] I have verified the bug exists in the latest version of @synergy-design-system/components (e.g. via pnpm install @synergy-design-system/components).
[x] I can provide a simple, reproducible example of the issue (e.g. via code-sandbox or sample code, ...).
[x] I would be willing to provide a PR for this issue.

Version
The bug occurred with the following version of the component library: 2.4.1, possibly others
Component
The issue arises when using the following component(s): syn-input
Description
When using a syn-input angular wrapper component, the following code does not update the internal model, even with two way databinding in place:
<!-- both versions are not working -->
<syn-input type="number" min="0" ngDefaultControl [(ngModel)]="test"></syn-input>
<syn-input type="number" min="0" ngDefaultControl [(value)]="test"></syn-input>

// Some angular component...
@Component({
  selector: 'my-component',
})
export class MyComponent {
  public test: number = 0;
}

Acceptance criteria

[ ] All DoD items successfully completed
[ ] Angular wrappers work with this syntax
[ ] If its just a usage error, document it in the angular wrapper README
[ ] If it is a code error, a fix is provided
[ ] If it is a code error, a example has to be included in our demo repo to test recurring issues.

After looking at this issue, it seems that it stemmed from a usage problem.


End-to-end workflow

blocked by #535
need contract packages to be available, then can load in the contract abi + wasm from the packages directly for the correct version in e2e workflow

had an epiphany that we can keep the tests separate for protocol and still check typechain is up to date!

blocked by #647


can I config item of profiler.collector.ip in env or configcenter without change the codes of agent

can I config item of profiler.collector.ip in env or configcenter without change the codes of agent?

Hi aximo
I don't know exactly what you mean by env or configcenter.
I can give you a better answer if you tell me a more about it.
Obviously, The only way to do this is to set it in the pinpoint.config file.
thanks

i deliver our application with embed pinpoint agent, when some users use my application, them must modify the pinpoint.config to re-config the ip. it is not friendly to application user.
so i want to pinpoint agent to read configs from envionment variables and pinpoint.config, and, the envionment variables will override the config item in pinpoint.config.
general, pinpoint agent can read configs from an url, so, we can maintain the configs in center place, which means configcenter.


[sw/silicon_creator] Is the RSA modulus definitely > R / 2?

The Ibex implementation of sigverify assumes that the RSA modulus (public key) is between R / 2 and R (R=2^3072); that is, the highest bit of the 3072-bit number must be set:
https://github.com/lowRISC/opentitan/blob/3d156ce35e0ba559b5246c96286c0568cfa559c0/sw/device/silicon_creator/lib/sigverify_mod_exp_ibex.c#L78-L80
However, I'm having trouble finding a reference that guarantees this is definitely always the case.  When I generate keys using various RSA tools they're always large enough, and "3072-bit modulus" definitely implies the high bit is set, but I think being extra-paranoid makes sense in this context. We can do one of three things here:

Find a reference that says this is always true and add it to that comment
Document that we require moduli to fit this requirement, and check the modulus before verifying
Change this single modular subtraction to a while loop (since this routine doesn't have to be constant-time)

The OTBN implementation of computing R^2 will be significantly simpler if we can rely on the modulus being larger than 2^3071.
CC @alphan @felixmiller

To my knowledge this assumption is correct. A reference is FIPS 186-4 (p. 53 very top) which states that both p and q have to be equal or greater than sqrt(2)*2^(nlen/2-1), where nlen is the targeted key length (here nlen=3072). Hence, p*q >= 2^(nlen-1) = 2^3071

Perfect, thanks for finding the reference! I'll go ahead and add that note to the comment, and do the same for the OTBN code.


Error on connecting to a specific server

Describe the bug
Most of the time I get an error while trying to connect to a mp server.
Here's a screenshot of the error message:

The Minecraft log doesn't show any messages which is weird?
Modpack version
4.3.2
Launcher
MultiMC
Other things

[ ] I updated FO to a newer version (mention, what version to what version)
[ ] I added/removed some mods or resource packs (mention, which ones)

Additional context
I'm using PolyMC Launcher on my Mac (m1). I don't have this problem with vanilla Minecraft or other modpacks.

Thanks for the report.
As of FO 4.3.3 you can work around it by going to Mods -> search "No Chat Reports" -> config button -> Technical -> Enable mod. A better fix will come later.

Fixed in 4.4.2.


KeyError: 'distance'

I have been using the meteostat Python package for a few months now as part of my thesis and this is the first time i run my project after your last update. When i try to get the stations nearby a location i get the error "KeyError: 'distance'". I tried pip install meteostat -U but it did not solve the issue and i have to present my thesis in a month...
This is the code i am running:
stations = Stations()
stations = stations.nearby(coordinates_df[cntry]["Lat"], coordinates_df[cntry]["Long"])
station = stations.fetch(1)
data = Hourly(station, start = confirmed_df.index[0].to_pydatetime() - datetime.timedelta(days=14), end = confirmed_df.index[confirmed_df.index.shape[0]-1].to_pydatetime() + datetime.timedelta(days=1))
data = data.fetch()
When i run this code this is what i get:

KeyError                                  Traceback (most recent call last)
c:\users\george vangelatos\appdata\local\programs\python\python39\lib\site-packages\pandas\core\indexes\base.py in get_loc(self, key, method, tolerance)
3079             try:
-> 3080                 return self._engine.get_loc(casted_key)
3081             except KeyError as err:
pandas_libs\index.pyx in pandas._libs.index.IndexEngine.get_loc()
pandas_libs\index.pyx in pandas._libs.index.IndexEngine.get_loc()
pandas_libs\hashtable_class_helper.pxi in pandas._libs.hashtable.PyObjectHashTable.get_item()
pandas_libs\hashtable_class_helper.pxi in pandas._libs.hashtable.PyObjectHashTable.get_item()
KeyError: 'distance'
The above exception was the direct cause of the following exception:
KeyError                                  Traceback (most recent call last)
c:\users\george vangelatos\appdata\local\programs\python\python39\lib\site-packages\pandas\core\generic.py in _set_item(self, key, value)
3825         try:
-> 3826             loc = self._info_axis.get_loc(key)
3827         except KeyError:
c:\users\george vangelatos\appdata\local\programs\python\python39\lib\site-packages\pandas\core\indexes\base.py in get_loc(self, key, method, tolerance)
3081             except KeyError as err:
-> 3082                 raise KeyError(key) from err
3083
KeyError: 'distance'
During handling of the above exception, another exception occurred:
ValueError                                Traceback (most recent call last)
 in
----> 1 greece_full = createCovidDataFrame("Greece")
2 greece_full
 in createCovidDataFrame(cntry)
794
795     stations = Stations()
--> 796     stations = stations.nearby(coordinates_df[cntry]["Lat"], coordinates_df[cntry]["Long"])
797     station = stations.fetch(1)
798
c:\users\george vangelatos\appdata\local\programs\python\python39\lib\site-packages\meteostat\stations.py in nearby(self, lat, lon, radius)
160
161         # Get distance for each stationsd
--> 162         temp.stations['distance'] = temp.stations.apply(
163             lambda station: distance(station, [lat, lon]), axis=1)
164
c:\users\george vangelatos\appdata\local\programs\python\python39\lib\site-packages\pandas\core\frame.py in setitem(self, key, value)
3161         else:
3162             # set column
-> 3163             self._set_item(key, value)
3164
3165     def _setitem_slice(self, key: slice, value):
c:\users\george vangelatos\appdata\local\programs\python\python39\lib\site-packages\pandas\core\frame.py in _set_item(self, key, value)
3241         self._ensure_valid_index(value)
3242         value = self._sanitize_column(key, value)
-> 3243         NDFrame._set_item(self, key, value)
3244
3245         # check if we are modifying a copy
c:\users\george vangelatos\appdata\local\programs\python\python39\lib\site-packages\pandas\core\generic.py in _set_item(self, key, value)
3827         except KeyError:
3828             # This item wasn't present, just insert at end
-> 3829             self._mgr.insert(len(self._info_axis), key, value)
3830             return
3831
c:\users\george vangelatos\appdata\local\programs\python\python39\lib\site-packages\pandas\core\internals\managers.py in insert(self, loc, item, value, allow_duplicates)
1201             value = safe_reshape(value, (1,) + value.shape)
1202
-> 1203         block = make_block(values=value, ndim=self.ndim, placement=slice(loc, loc + 1))
1204
1205         for blkno, count in _fast_count_smallints(self.blknos[loc:]):
c:\users\george vangelatos\appdata\local\programs\python\python39\lib\site-packages\pandas\core\internals\blocks.py in make_block(values, placement, klass, ndim, dtype)
2730         values = DatetimeArray._simple_new(values, dtype=dtype)
2731
-> 2732     return klass(values, ndim=ndim, placement=placement)
2733
2734
c:\users\george vangelatos\appdata\local\programs\python\python39\lib\site-packages\pandas\core\internals\blocks.py in init(self, values, placement, ndim)
140
141         if self._validate_ndim and self.ndim and len(self.mgr_locs) != len(self.values):
--> 142             raise ValueError(
143                 f"Wrong number of items passed {len(self.values)}, "
144                 f"placement implies {len(self.mgr_locs)}"
ValueError: Wrong number of items passed 9, placement implies 1

No worries. This error sounds familiar. Can you please delete the ~/.meteostat directory and try again?

I just did but unfortunately it didn’t solve the issue

Ok, lets try the following:
pip uninstall meteostat
rm -rf ~/.meteostat
pip install meteostat==1.2.0

After you've done this, try with the example first:
# Import Meteostat library and dependencies
from datetime import datetime
import matplotlib.pyplot as plt
from meteostat import Point, Daily

# Set time period
start = datetime(2018, 1, 1)
end = datetime(2018, 12, 31)

# Create Point for Vancouver, BC
vancouver = Point(49.2497, -123.1193, 70)

# Get daily data for 2018
data = Daily(vancouver, start, end)
data = data.fetch()

# Plot line chart including average, minimum and maximum temperature
data.plot(y=['tavg', 'tmin', 'tmax'])
plt.show()

If the example doesn't work, we know something is wrong with the lib (at least in your environment/OS). In that case, please let me know which OS you're using and if the following command properly downloads the station CSV file:
curl "https://bulk.meteostat.net/v2/stations/meta/lib.csv.gz" --output "stations.csv.gz"

i tried what you said. The same error appears when i try to run the example after the proposed steps. The curl command works and retrieves the stations.csv. I run windows 10 x64

I came up with a potential solution caused by a stupid, Windows-specific issue. I don't know it this is it, but please try once more:
pip install meteostat -U
rm -rf ~/.meteostat

Alright, we're slowly getting closer 😄  What about this?
from datetime import datetime
import matplotlib.pyplot as plt
from meteostat import Stations, Hourly

# Get a weather station
stations = Stations()
stations = stations.nearby(50, 8)
station = stations.fetch(1)

# Time period
start = datetime(2017, 1, 1)
end = datetime(2017, 1, 1, 23, 59)

# Get hourly data
data = Hourly(station, start, end)
data = data.fetch()

# Plot chart
data.plot(y='temp')
plt.show()

Does it show the chart? Do you receive any error message?

It seems to be working now! You are awesome!! Thanks so much for taking the time!


ActiveResource::BadRequest: Failed.  Response code = 400. when updating records

I have a brand new store where I have created a private app and given it full access via the API permissions. I am able to generate new products via the example code in the readme:
# Create a new product
new_product = ShopifyAPI::Product.new
new_product.title = "Burton Custom Freestlye 151"
new_product.product_type = "Snowboard"
new_product.vendor = "Burton"
new_product.save

When I attempt to update a product, however, I receive the following error:
[16] pry(main)> p = Product.first
=> #<ShopifyAPI::Product:0x000055b9d5a96bb0
 @attributes=
  {"id"=>1814108962934,
   "title"=>"\"Banjo on the Mountain: Wade Mainer’s First 100 Years”  by Dick Spottswood",
... etc etc
[17] pry(main)> p.save
ActiveResource::BadRequest: Failed.  Response code = 400.  Response message = Bad Request.
from /home/ubuntu/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/activeresource-5.0.0/lib/active_resource/connection.rb:148:in `handle_response'
[18] pry(main)>

I have replicated the issue on a different computer and with a different store. Postman requests to the same store for the same edits are working fine.
Can someone please confirm a working combination of Ruby, Rails, shopify_api and ActiveResource so that I can confirm this isn't caused by a version conflict? I am currently running Ruby 2.4.2, ActiveResource 5.0.0, Rails 5.2.0, and shopify_api 4.12.0. I have tried dropping back to Ruby 2.2.2 with ActiveResource 4.1 and shopify_api 4.11.0 but I have had the same issue.
Given the path for the CURL request (/admin/variants/16508087992438.json), I found the following odd:
[9] pry(main)> Variant.collection_path(id:<PHONE_NUMBER>2438)
=> "/admin/variants.json?id=16508087992438"

Can someone please confirm that this is correct?
Thanks!

This may be the same as issue https://github.com/Shopify/shopify_api/issues/454.


Update TwoFactorChallenge.tsx

Toggle the recovery instead of always make it to be true.

thanks - also caught an issue with the scope of the variable in the setTimeout related to this


[RTM] Code revision - fieldmaps

#225 - depends on #629

@oesteban Can you merge/rebase master? Will make it easier to review.


Added Javadoc for METHOD_REMOVED cases

Added Javadoc for the METHOD_REMOVED breaking change cases.
It provides a detailed explanation of when this breaking change can occur and includes a variety of examples to illustrate these situations.
This documentation will help developers when dealing with the METHOD_REMOVED breaking changes.

🍾


Update ROMIO for AMPI

Original issue: https://charm.cs.illinois.edu/redmine/issues/1606

ROMIO is currently at version 1.2.3, which is truly ancient. We should look into importing a more recent version.

Original date: 2017-06-07 22:54:53

Duplicate of #952.


Screensaver behavior

Describe the bug

The Bharat Forge team reports that the screensaver does not show the current values which would be shown on the dashboard. Instead, it is only showing zero for all values.
The Bharat Forge team reports that they are unable to exit screensaver from the software unless they pause ventilation. I do not know if they have attempted to exit the screensaver by pressing on the Pufferfish button in the upper left corner of the screen.

To Reproduce
I have not yet attempted to reproduce the behaviors reported by the Bharat Forge team. We will need to first attempt to reproduce the reported behaviors, and to see if the expected behaviors are already working correctly for us.
Expected behavior
The screensaver should show the same values as on the dashboard, and it should be possible to exit the screensaver to the dashboard by pressing on the Pufferfish button.
Software (please complete the following information):

Domain: frontend
Version: unknown

I have not been able to replicate either 1 or 2 on develop (8c73b599d3da4b3df112f22a7685385bec57327c).

I can confirm that it is possible to exit the screensaver by pressing the upper-left logo.
Perhaps it would be more intuitive to exit the screensaver by touching anywhere on the screen?

It looks like Bharat Forge encountered these issues because they were running an old version of the code - we should check whether their issue is resolved by updating the software.

Let's remove the pufferfish button from the left end of the topbar, and touching anywhere on the screensaver should close it.


Support find_raw_batches and aggregate_raw_batches

The documentation for these pymongo methods can be found here: https://api.mongodb.com/python/current/api/pymongo/collection.html
They are useful for passing raw bson to libbson to build a deserialize large amounts of data more quickly.
At the moment, when I call this method on MongoMock I get the following error:
                cursor = db.table.find_raw_batches(query)
E               TypeError: 'Collection' object is not callable

While:
                cursor = db.table.find(query)

works.

I've updated the code so that you get a better error message, but the full implementation is actually more complex (because we do not create bson batches internally). PRs are welcome.


Code not working with new version

I was using the code below in an older version.
Now, I am getting a compile error:
"Error	BC30451	'connClient' is not declared. It may be inaccessible due to its protection level."
What is the error?  It used to work before.
Here is the code;
Private Sub send2Controller()
        Try
            If (Started) Then
                '----------------------------------------------------------------------------
                Dim clients As IEnumerable(Of String) = _Server.ListClients()
                clients = _Server.ListClients.ToList

                For Each connClient In clients
                    If Not String.IsNullOrEmpty(connClient) Then
                        _Server.Send(connClient, bFullMessage)
                        lastSendTime = Now
                        Logger(Severity.Debug, "ID: " + CStr(truckID) + " - Sent " + (CStr(bFullMessage.Length)) + " bytes to client " & connClient & " - " + "at " + Now.ToString)
                    Else
                        Logger(Severity.Debug, "No client connected")
                    End If
                Next
                '----------------------------------------------------------------------------
                If (textNetwork.Text.Length > 100000) Then Set_textNetworkBoxOutText("")
                '----------------------------------------------------------------------------
            End If
        Catch ex As Exception
            writeIssuesFile("Send ERROR: " + ", ID = " + CStr(truckID) + "  Msg: " + ex.Message)
        End Try
    End Sub

I'm assuming you were using 4.x.  In 5.x the ListClients changed from providing an IEnumerable<string> to an IEnumerable<ClientMetadata>, and, the Send (and variant) methods no longer accept a string ipPort but require Guid guid.  The ClientMetadata object has a Guid property.  So your iteration will need to be modified.


Example for Ultrasonic Rangefinder [Feature request]

Can you make an example for ultrasonic range finder HC-SR04.

Can I just embed the code into the blynk program or should I do something else?

Please use https://community.blynk.cc/