Bug: VQE algorithm-design/cost_function code block error for optimizing max-cut-vqe

Where does the issue happen?
https://learn.qiskit.org/course/algorithm-design/cost_function
What is the content issue?
Problem + cause:
The code cell, see screenshot, fails. Using the minimize method of the COBYLA optimizer to evaluate the cost_function_max_cut_vqe() requires an initial point x0 as input.
How to solve:
Update the cost_function.ipynb notebook to use an initial point initial_point = np.ones(8).
initial_point = np.ones(8)
optimizer_result = optimizer.minimize(fun=cost_function_max_cut_vqe,x0=initial_point)

Screenshots

Additional information
No response

I'd love to pick up this issue!

The issue has been resolved by PR #2098. Thanks @pandasa123.


⚠ Bofrost.lu has degraded performance

In 3fa2dd7, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 2565 ms

Resolved: Bofrost.lu performance has improved in 0d32d19 after 28 minutes.


Test json

Description
Please include a summary of the change and which issue is fixed. Include relevant motivation and context. List any dependencies that are required for this change.
Fixes # (issue) (if applicable)
Type of change
Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Is/requires documentation update
[ ] Other... Please describe:

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so reviewers can reproduce. Please also list any relevant details for your test configuration.
Checklist
Please delete options that are not relevant. Update the list as the PR progresses.

[ ] I have commented my code, particularly in hard-to-understand areas.
[ ] I have made corresponding changes to the documentation.
[ ] I have added the necessary description of this PR to the changelog, and I have followed the same format as other entries.
[ ] Any dependent changes have been merged and published in downstream modules.

Screenshots (if appropriate)
Additional context
Add any other context about the pull request here.

test1234

awesome test good job

awesome test good job

awesome test good job

awesome test good job

Build Details
|Name|Information|
|---|---|
|PR Commit||
|Merge Commit||
|Logs|//actions/runs/|
|Download Archive||
|Size|41.08 MB|
|Last Updated|Jun 14, 24, 9:53:14 PM UTC|
|Expires At|Jun 28, 24, 9:53:09 PM UTC|

Build Details
|Name|Information|
|---|---|
|PR Commit||
|Merge Commit||
|Logs|//actions/runs/|
|Download Archive||
|Size|24.18 MB|
|Last Updated|Jun 14, 24, 9:55:47 PM UTC|
|Expires At|Jun 28, 24, 9:55:44 PM UTC|

Build Details
|Name|Information|
|---|---|
|PR Commit||
|Merge Commit||
|Logs|//actions/runs/|
|Download Archive||
|Size|41.08 MB|
|Last Updated|Jun 14, 24, 9:53:14 PM UTC|
|Expires At|Jun 28, 24, 9:53:09 PM UTC|

Build Details
|Name|Information|
|---|---|
|PR Commit||
|Merge Commit||
|Logs|//actions/runs/|
|Download Archive||
|Size|24.18 MB|
|Last Updated|Jun 14, 24, 9:55:47 PM UTC|
|Expires At|Jun 28, 24, 9:55:44 PM UTC|


Is there something similar to download_blob() from python sdk

Hello, I'm looking for something similar to the next and at this point I'm not completlly sure if it exists in the current state of the sdk on Rust:
container.get_blob_client(i).download_blob().readinto(data) # data is a BytesIO object and blob is the metada-blob
That's the python code that I'm using right now, if there's a way to do this on the curren sdk of Rust that would be great. Thanks in advance.

Hello again, I already found the way to do this, so I proceed to share the code and close the Issue:
let blob_stream = container_client // Download specific blob using the name
        .blob_client("blob-name")
        .get()
        .into_stream()
        .next()
        .await
        .expect("The program failed while downloading the blob")
        .unwrap();

    let result = blob_stream // Collect all the information on Bytes
        .data
        .collect()
        .await
        .expect("Error while dowloading blob_result data");

    let reader = Cursor::new(result);

If you're looking to download the entire blob in one SDK API call, you can do that with BlobClient::get_content

Perfect I'll try it. Thank you so much.


Ad-hoc queries to dot apply with templated table name

We have the following query setup:

The important part here is that table is templated.
Then we also have an ad-hoc filter:

The filter only works if table is not specified, and it's ignored if table is specified.
My guess is that templated table name is to blame here.

Hi @bobrik
It happened because adhoc filters comparing to the queryBuilder settings. It was a surprise for me, that variables can be used there) I also missed the fact, some people could skip query builder and adhoc filters won't work at all. In attached PR I tries to fetch database and table values from the query AST instead of queryBuilder. Please, take a look onto it.
P.S. I lack of data for testing different cases after some changes in plugin since Grafana and CH are out of my scope these days. So I am asking you to be careful and check whether other dashboards are ok with new updates.
Thank you!

Please, see https://github.com/Vertamedia/clickhouse-grafana/releases/tag/1.8.0


Problem in import GEE asset to Jupyter Notebook

geemap version: latest
Python version: 3.7
Operating System: Windows 7 (64 bit)

Description
showing "'charmap' codec can't encode character '\u03b3' in position 103: character maps to " after geemap.ee_api_to_csv(out_csv)
What I Did
out_dir = os.path.join(os.path.expanduser('~'), 'Downloads')
out_csv = os.path.join(out_dir, 'ee_api.csv')
geemap.ee_api_to_csv(out_csv)

shows "'charmap' codec can't encode character '\u03b3' in position 103: character maps to "

Please update the package using geemap.update_package() in Jupyter notebook. Restart the Jupyter kernel and try geemap.ee_api_to_csv(out_csv) again.

Problem in now SEARCH SECTION . check screenshot in the drive
https://drive.google.com/file/d/1J4RSGv3RxgZMWW-C_ehcyoIY8C7PM2WH/view?usp=sharing

What operating system are you using?

Windows 7 (64 bit)

Please update the package using geemap.update_package() in Jupyter notebook. Restart the Jupyter kernel and try geemap.ee_search() again.

Error problem of Docs is solved, but now not showing the DOCS components in Jupyter Notebook.
Screenshot- https://drive.google.com/file/d/1gTrQl-OYP5dTKFYcyhBcqtvFpvsqgNgO/view?usp=sharing


ci: add codecov coverage upload as part of the CI

Description
Closes: https://github.com/zeta-chain/node/issues/1704

Does codecov give combined coverage of both e2e tests + unit tests or just unit tests? zetaclient don't have enough unit tests to run at the moment.

lgtm, just question how is 60% selected to threshold?

Just a value taken for now based on our OKR.

not relevant to this PR, but maybe we can consider using -mode=count heat map flag to get more insight, especially when developing tests locally, which should give how many is each statement covered, i think it should mostly be visible in html reports, but might not be needed

Good suggestion, we can think about it in the future

Does codecov give combined coverage of both e2e tests + unit tests or just unit tests? zetaclient don't have enough unit tests to run (don't know the current coverage yet) at the moment and can lead to CI failure.

Coverage is for unit test only. For the threshold, it will not make the PR failing if it is not reached.


CheckBox: Also accept 0-ary callback in the ctor

This (i.e. not being able to access the checkbox widget from the callback) usually makes no sense, but I've already hit such a rare case (albeit for some prototype code), and it was annoying enough to land me here...
Should use the Event::Callback variant, if for nothing else, then consistency.

Uh-oh... Except, nope... It's C++. What have I thought?!... ;)
That thing won't even compile... Also, such a beautiful article about the related imminent std::visit suckery: https://bitbashing.io/std-visit.html

Dammit, even simply duplicating the old callback with the new sig. fails to compile
CheckBox(bool checked = false);
CheckBox(std::function<void(CheckBox*)> callback, bool checked = false);
CheckBox(std::function<void()>          callback, bool checked = false);

#339-CheckBox-0-ary-callback.cpp

.\src\test\issue#339-CheckBox-0-ary-callback.cpp(5): error C2668: 'sfw::CheckBox::CheckBox': ambiguous call to overloaded function
include\sfw/Widgets/CheckBox.hpp(21): note: could be 'sfw::CheckBox::CheckBox(const std::function<void (void)> &,bool)'
include\sfw/Widgets/CheckBox.hpp(19): note: or       'sfw::CheckBox::CheckBox(bool)'
.\src\test\issue#339-CheckBox-0-ary-callback.cpp(5): note: while trying to match the argument list '(main::<lambda_1>)'
NMAKE :  U1077: 'cl -MD -O2 -DNDEBUG -nologo -c -W4 -Iinclude -DSFML_STATIC -ifcSearchDir .\tmp\build\msvc\ifc -EHsc -std:c++latest -Fo.\tmp\build\msvc\obj.sfml-static\test\issue\ .\src\test\issue#339-CheckBox-0-ary-callback.cpp ' : return code '0x2'
Stop.


[CARBONDATA-3494]Fix NullPointerException in drop table and Correct the document formatting

Problem:

Fix the formatting of the document in index server md file.
drop table is calling drop datamap command with force drop as true. Due to this table is removed from meta and physically. Then when processData is called for drop table, it tried to create carbonTable object by reading schema which causes NullPointerException.

Solution:

correct the formatting
Skip ProcessData if carbonTable is null

Be sure to do all of the following checklist to help us incorporate
your contribution quickly and easily:

[ ] Any interfaces changed?

[ ] Any backward compatibility impacted?

[ ] Document update required?

[ ] Testing done
Please provide details on
- Whether new unit test cases have been added or why no new tests are required?
- How it is tested? Please attach test report.
- Is it a performance related change? Please attach the performance test report.
- Any additional information to help reviewers in testing this change.

[ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbonPRBuilder2.1/331/

Build Success with Spark 2.2.1, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbonPRBuilder2.2/328/

Build Success with Spark 2.3.2, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbonPRBuilder2.3/327/

Build Failed with Spark 2.2.1, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbonPRBuilder2.2/339/

Build Failed  with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbonPRBuilder2.1/342/

Build Failed  with Spark 2.3.2, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbonPRBuilder2.3/337/

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbonPRBuilder2.1/343/

Build Success with Spark 2.2.1, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbonPRBuilder2.2/340/

Build Success with Spark 2.3.2, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbonPRBuilder2.3/338/

LGTM


Update dotty-cps-async to 0.9.20

About this PR
📦 Updates com.github.rssh:dotty-cps-async from 0.9.16 to 0.9.20
📜 GitHub Release Notes - Version Diff
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.github.rssh", artifactId = "dotty-cps-async" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "com.github.rssh", artifactId = "dotty-cps-async" }
}]

labels: library-update, early-semver-minor, semver-spec-patch, version-scheme:semver-spec, commit-count:1

Superseded by #59.


should setting CONTAINER_ROOT_LV_MOUNT_PATH  also update docker to not point at /var/lib/docker ?

I set:
STORAGE_DRIVER=overlay2
GROWPART=true
ROOT_SIZE=15G
CONTAINER_ROOT_LV_SIZE=100%FREE
CONTAINER_ROOT_LV_NAME="container-root-lv"
CONTAINER_ROOT_LV_MOUNT_PATH="/var/lib/containers/container-runtime"

I want /var/lib/containers/container-runtime to be used by docker. Should container-storage-setup do this for me?

I don't think so. Container-storage-setup should not be touching docker config files.

I don't think so. Container-storage-setup should not be touching docker config files.

I thought it populated /etc/sysconfig/docker-storage ? I just assumed we could set it in there.

only storage related options go in /etc/sysconfig/docker-storage. What root dir to use for docker storage, that configuration comes from /etc/sysconfig/docker. Trying to pass that configuration from two files now will only add to the confusion. What's wrong with modifying /etc/sysconfig/docker explicitly using cloud-init or something else. In fact, once I had written patches to let container-storage-setup know what's the root directory docker is planning to use and take some decisions based on that.
IMO, container-storage-setup just sets up the storage as asked by user/docker. It should not dictate which root dir docker should use and modify that. That mechanism should be outside container-storage-seutp.

ok, yeah the relationship that conatiner-storage-setup has with the docker service is weird. If you consider the fact that it starts before docker and is required by docker then "why woulnd't it configure the path" is a valid question. But if you look at it like a generic tool to configure container storage for different runtimes (including docker) then that question becomes less relevant.
It's just a weird relationship is all I'm saying.


Fix FileSystemProvider to work with volume and pipe paths

PR Summary
A change in the FileSystemProvider to get the correct casing for a path regressed working with NTFS volume paths that start with \\?\ as it's not a UNC path so skips that handling.  Also, the logic for handling a trailing directory separator relied on there to be no content so something like: "c:\foo\\bar" would handle this incorrectly.
Fix is to skip the first parts of the path even if it's not a UNC path, but starts with "\\?\".  Then we only check for empty content if we are at the end of the path to handle trailing separator correctly.
Also supports \\.\pipe on Windows
PR Context
Fix https://github.com/PowerShell/PowerShell/issues/15872
PR Checklist

[x] PR has a meaningful title

Use the present tense and imperative mood when describing your changes

[x] Summarized changes
[x] Make sure all .h, .cpp, .cs, .ps1 and .psm1 files have the correct copyright header
[x] This PR is ready to merge and is not Work in Progress.

If the PR is work in progress, please add the prefix WIP: or [ WIP ] to the beginning of the title (the WIP bot will keep its status check at Pending while the prefix is present) and remove the prefix when the PR is ready.

Breaking changes

[x] None
OR
[ ] Experimental feature(s) needed

[ ] Experimental feature name(s):

User-facing changes

[x] Not Applicable
OR
[ ] Documentation needed

[ ] Issue filed:

Testing - New and feature

[ ] N/A or can only be tested interactively
OR
[x] Make sure you've added a new test if existing tests do not effectively test the code changed

Tooling

[x] I have considered the user experience from a tooling perspective and don't believe tooling will be impacted.
OR
[ ] I have considered the user experience from a tooling perspective and opened an issue in the relevant tool repository. This may include:

[ ] Impact on PowerShell Editor Services which is used in the PowerShell extension for VSCode
(which runs in a different PS Host).

[ ] Issue filed:

[ ] Impact on Completions (both in the console and in editors) - one of PowerShell's most powerful features.

[ ] Issue filed:

[ ] Impact on PSScriptAnalyzer (which provides linting & formatting in the editor extensions).

[ ] Issue filed:

[ ] Impact on EditorSyntax (which provides syntax highlighting with in VSCode, GitHub, and many other editors).

[ ] Issue filed:

@SteveL-MSFT Maybe good to take the #11898 in consideration while resolving this path problem.
Both examples work on Windows PowerShell
Get-ChildItem '//./pipe/'
Get-ChildItem '\\.\pipe\'

Found in this Rancher Wins documentation
https://github.com/rancher/wins#examples

I'd merge #14469 first. Then we could start moving to new .Net API with #12834 and continue with other scenarios. After all, it would have corrected most of the issues we know in FileSystem provider.

For reference #10805

@SteveL-MSFT Can you resolve conflicts?

@adityapatwardhan fixed merge conflict


Add Vercel logo in the footer and sponsors list

Just wanna let you guys know we still need to add the Vercel logo in the footer and link it according to the guidelines. Do it the same way or relatively the same way as we did it on docs.

can i take on this issue @sr229  can you assign me this task?

Hello, sure thing, it's now assigned to you.

thank @sr229  for assigning this to me

@sr229  i wanted to ask that till how many days can we submit the pull request of the changes we add ?

I will give you 5 days to submit your PR, if you haven't provided any updates or a PR, I will re-assign it.

so within 5 days i have to give you the updates right or the whole project ?

so within 5 days i have to give you the updates right or the whole project ?

As much as possible the whole Pull Request.

ok sure @sr229

so @sr229 we have to add this logo in the footer right ?

This one.

Yes

ok thanks @JcdeA and @adryzz

@adryzz so do i have to put this line ?

like what this code is for?

That's what has been put on docs.vignetteapp.org (the wiki) at least. I'm no webdev but i think it's that one.

That's what has been put on docs.vignetteapp.org (the wiki) at least. I'm no webdev but i think it's that one.

It's https://wiki.vignetteapp.org btw

like what this code is for?

That's the vercel logo, in a link

thanks @JcdeA for this thing

We're not limited to just that small badge, you can use the Press Kit and just link it according to the guidelines @ShlokMohanty, so it looks cleaner.

@ShlokMohanty Sorry, but this was kinda time-sensative, so I implemented it in #!8

but i guess timeline was for 5 days like i had 5 days with me as per told by @sr229 ?

I'm really sorry if you wanted to do it for hacktoberfest..

no problem @JcdeA nothing like that so no need to worry


IndexError in get_integration

I run Sentry on my Celery tasks and when the task raises an error, I see this in the Sentry SDK.
  File "/usr/local/lib/python3.6/logging/__init__.py", line 1342, in exception
    self.error(msg, *args, exc_info=exc_info, **kwargs)
  File "/usr/local/lib/python3.6/logging/__init__.py", line 1336, in error
    self._log(ERROR, msg, args, **kwargs)
  File "/usr/local/lib/python3.6/logging/__init__.py", line 1443, in _log
    self.handle(record)
  File "/usr/local/lib/python3.6/logging/__init__.py", line 1453, in handle
    self.callHandlers(record)
  File "/usr/local/lib/python3.6/site-packages/sentry_sdk/integrations/logging.py", line 61, in sentry_patched_callhandlers
    integration = Hub.current.get_integration(LoggingIntegration)
  File "/usr/local/lib/python3.6/site-packages/sentry_sdk/hub.py", line 153, in get_integration
    client = self._stack[-1][0]
IndexError: list index out of range

Hi, we use celery in production already so this bug is quite surprising to us. Could you answer the following questions:

which version of the SDK do you use?
I believe there's a chunk missing from that stacktrace (at the beginning)
do you have the celery integration enabled?
do you use celery with eventlet?

Sentry SDK Version:
sentry-sdk==0.5.3
Complete Stack Trace
[2018-11-19 18:04:54,400: ERROR/MainProcess] Task handler raised error: IndexError('list index out of range',)
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/billiard/pool.py", line 358, in workloop
    result = (True, prepare_result(fun(*args, **kwargs)))
  File "/usr/local/lib/python3.6/site-packages/celery/app/trace.py", line 549, in _fast_trace_task
    uuid, args, kwargs, request,
  File "/usr/local/lib/python3.6/site-packages/celery/app/trace.py", line 492, in trace_task
    I, _, _, _ = on_error(task_request, exc, uuid)
  File "/usr/local/lib/python3.6/site-packages/celery/app/trace.py", line 338, in on_error
    task, request, eager=eager, call_errbacks=call_errbacks,
  File "/usr/local/lib/python3.6/site-packages/celery/app/trace.py", line 172, in handle_error_state
    call_errbacks=call_errbacks)
  File "/usr/local/lib/python3.6/site-packages/celery/app/trace.py", line 225, in handle_failure
    einfo=einfo)
  File "/usr/local/lib/python3.6/site-packages/celery/utils/dispatch/signal.py", line 293, in send
    'Signal handler %r raised: %r', receiver, exc)
  File "/usr/local/lib/python3.6/logging/__init__.py", line 1342, in exception
    self.error(msg, *args, exc_info=exc_info, **kwargs)
  File "/usr/local/lib/python3.6/logging/__init__.py", line 1336, in error
    self._log(ERROR, msg, args, **kwargs)
  File "/usr/local/lib/python3.6/logging/__init__.py", line 1443, in _log
    self.handle(record)
  File "/usr/local/lib/python3.6/logging/__init__.py", line 1453, in handle
    self.callHandlers(record)
  File "/usr/local/lib/python3.6/site-packages/sentry_sdk/integrations/logging.py", line 61, in sentry_patched_callhandlers
    integration = Hub.current.get_integration(LoggingIntegration)
  File "/usr/local/lib/python3.6/site-packages/sentry_sdk/hub.py", line 153, in get_integration
    client = self._stack[-1][0]
IndexError: list index out of range

Celery Integration Status
Not enabled
Celery Eventlet Status
Not using Eventlet

Okay. We didn't test running celery without the integration so that might as well be it. Check out https://docs.sentry.io/platforms/python/celery/ to get started, you'll get nicer errors in Sentry with this anyway (just add CeleryIntegration() to the integrations array)

Whoops, it looks like I am indeed using Celery integration:
Snippet at the top of the relevant Python module
logger = logging.getLogger('xxxxxxxxx')
logger.setLevel(logging.INFO)

sentry_logging = LoggingIntegration(
    level=logging.INFO,        # Capture info and above as breadcrumbs
    event_level=logging.ERROR  # Send errors as events
)
sentry_sdk.init(os.getenv('SENTRY_URL'), integrations=[CeleryIntegration(), sentry_logging])

I see the print statement once a task gets triggered, not when I start the worker.

Could you try to init celery sooner than that? In case you don't have all configuration data earlier than where you initialize it now, you can init the sdk twice:
# when celery starts, without DSN
init(integrations=[CeleryIntegration()])

# when you have your config
init(DSN, integrations=[CeleryIntegration()])

if this doesn't fix it I'll try to reproduce

A probably good place would be your celeryconfig.py: http://docs.celeryproject.org/en/latest/userguide/configuration.html#example-configuration-file
at least in our setup this one is not lazy-loaded

Update: I wasn't able to work around this issue so I just disabled Sentry in Celery.

@iMerica did you try what I suggested?


Phonegap Build (desktop app) with Firebase (even i pay money for help)

i try to implement the plugin and created a new firebase project to my app name.
Now i'm testing first via Phonegap desktop app and the "Push Notifications" template.
Added to config.xml:
    preference name="android-build-tool" value="gradle"
    plugin name="phonegap-plugin-push" source="npm"
        param name="SENDER_ID" value="1063994300861"
   /plugin

index.js:
       var push = PushNotification.init({
            "android": { "senderID": "1063994300861"  },
            "browser": {},
            "ios": {"sound": true,"vibration": true, "badge": true },
            "windows": {}
        });

Then i try to send push messages via the firebase console, but nothing happens
Building via Phonegap Build i take:   spec="~1.9.0"
### Expected Behaviour
receive push massages

### Actual Behaviour
don't receive push messages

### Reproduce Scenario (including but not limited to)

#### Steps to Reproduce

#### Platform and Version (eg. Android 5.0 or iOS 9.2.1)
Android 4.4, 5.x, 6.x, 7.x

#### (Android) What device vendor (e.g. Samsung, HTC, Sony...)
Nexus 6P, Note 1,2,3,4,5, Tab S3

#### Cordova CLI version and cordova platform version
PhoneGap (iOS / Android ) cli-6.5.0 (4.3.1 / 6.1.2 )

#### Plugin version
phonegap-plugin-push | npm | 2.0.0 |

#### Sample Push Data Payload

#### Sample Code that illustrates the problem

#### Logs taken while reproducing problem
 Received Device Ready Event
 calling setup push
 calling push init
 after init
Device Push ID:
dna4Z8AO6E8:APA91bGyssPHBhjATRDYWorrMhMVu9kJ4Ncfa-Gnnn8Y7CP2NtAs806xvwyWzUyN6hmMUhWr0UjpFZKIMoTSyk9Q47AaWgNEKFayMBZVb8dL2baXy_0Yl5mxaezfPKHh46ChqIlJXXGp
registration event:
dna4Z8AO6E8:APA91bGyssPHBhjATRDYWorrMhMVu9kJ4Ncfa-Gnnn8Y7CP2NtAs806xvwyWzUyN6hmMUhWr0UjpFZKIMoTSyk9Q47AaWgNEKFayMBZVb8dL2baXy_0Yl5mxaezfPKHh46ChqIlJXXGp

@Marix1 are you using the desktop app to serve your project? Are you testing the app in the PhoneGap Developer App?

Yes, i use the desktop developer app with the push template and change the config.xml and the index.js.
At Firebase i create a new project and connect that to my android app
i try spec 2.0.0 and 1.9.0 and i also make builds - build only spec 1.9.0 work.
(that stand in the doc too that PG Build support only 1.9.0)
But sending messages over the firebase console don't work.
Not via the developer app and not with build. I debug the build app and the console shows nothing when i fired a notification.
Im wondering that i dont need the .plist file..

@Marix1 correct, you are not supposed to use the Firebase console when testing in the PG Developer App. We can't sign the binary properly on iOS to be able to receive push notifications from anyone. Instead we created a push service that you can use from the command line to test your code inside the PG Dev App.
Check out this tutorial: http://docs.phonegap.com/tutorials/develop/push-notifications/
When you are ready to build your own app then you can use your own FCM project to send push notifications.


Dev diffusion

Update to diffusion workspace, plus improvements or bug corrections over current dev branch. Still a few bug fixes needed (input setting to tractography, probably related to these damn smart pointing things)
Diffusion plugins have been updated in asclepios plugins (my fork, branch called diff-refactor). A new plugin is also there in visages plugins. Both have been updated to use qt5, the global project can also now be re-used by external projects (asclepios plugins, visages plugins...)

Still a crashing bug in generic and diffusion workspaces. Will merge anyway this afternoon to keep only one dev branch


Using two fetch instances simulaneously

In two different tabs in my app, I am using two instances of fetch to download files. When the user downlaods the file in tab 1 (which takes a while) and then switches to tab 2 in order to start the download of the file in tab 2 (while the download in tab 1 is still ongoing), the event onCompleted from fetchListener in tab 1 is called and contains the downloads of tab 2. It seems that the two instances of fetch get into each other's way. Could that be?

U can use groupId to distinguish from which group this download belong.
here is small example
In Tab 1 fragment
public static final int TAB_1=1;

Request request = new Request(url, fileName);
                    request.setAutoRetryMaxAttempts(5);
                    request.setPriority(Priority.HIGH);
                    request.setGroupId(TAB_1);

FetchListener fetchListener=new FetchListener() {
     ...............................

        @Override
        public void onCompleted(@NotNull Download download) {
            if(download.getGroup()==TAB_1){
          // Update your view or list

            }

        }

        ..............................................

    };

In Tab 2 fragment
public static final int TAB_2=2;

Request request = new Request(url, fileName);
                    request.setAutoRetryMaxAttempts(5);
                    request.setPriority(Priority.HIGH);
                    request.setGroupId(TAB_2);

FetchListener fetchListener=new FetchListener() {
     ...............................

        @Override
        public void onCompleted(@NotNull Download download) {
            if(download.getGroup()==TAB_2){
          // Update your view or list

            }

        }

        ..............................................

    };

Thanks! So is it recommended to only have exactly one single instance of fetch and one single fetchListener throughout the entire application?

I think that depends on your application.  In my case, I have only one instance of fetch running in background service with a single listener and I use LiveData to post data to fragments

@tosam144  If you want two different instances of fetch and have them be separated you need to specify a namespace for each fetch instance.
     final FetchConfiguration fetchConfiguration = new FetchConfiguration.Builder(this)
                .setNamespace("tab1")
                .enableRetryOnNetworkGain(true)
                .setDownloadConcurrentLimit(3)
                .build();
        final Fetch fetchTab1 = Fetch.Impl.getInstance(fetchConfiguration);

Please have a look at the sample app!

Thank you!


Zephyr doesn't boot on STM32F4 (and probably other ARMv7-M cores)

Describe the bug
Zephyr can't boot on STM32F4 after #65071.
To Reproduce
Build Zephyr and run on STM32F4
Expected behavior
It boots
Impact
Very high. Zephyr doesn't work.
Logs and console output
No logs are printed.
Environment (please complete the following information):
N/A
Additional context
Reverting https://github.com/zephyrproject-rtos/zephyr/commit/f11027df8061932ddf1209f985a67164d140f303 seems to fix the problem.
I compared assembly code and looks like commit  above removed cpsie if instruction from arch_switch_to_main_thread().
For me, the following change fixes problem (ARMv7-M only!):
diff --git a/arch/arm/core/cortex_m/thread.c b/arch/arm/core/cortex_m/thread.c
index f9a030675b5..87900df9091 100644
--- a/arch/arm/core/cortex_m/thread.c
+++ b/arch/arm/core/cortex_m/thread.c
@@ -576,6 +576,7 @@ void arch_switch_to_main_thread(struct k_thread *main_thread, char *stack_ptr,
        "mov   r4,  %0\n"       /* force _main to be stored in a register */
        "msr   PSP, %1\n"       /* __set_PSP(stack_ptr) */

+       "cpsie if\n"            /* __enable_irq(); __enable_fault_irq() */
        "mov   r0,  #0\n"       /* arch_irq_unlock(0) */
        "ldr   r3, =arch_irq_unlock_outlined\n"
        "blx   r3\n

Did you try with https://github.com/zephyrproject-rtos/zephyr/pull/71593 ?

Did you try with #71593 ?

Yes
I realized that it fails to boot on warm reboots (cold reboots are fine).

I am having a similar Issue and it is due to this commit:

Commit: f11027df8061932ddf1209f985a67164d140f303 [f11027d]
Parents: 72312feead
Author: Wilfried Chauveau<EMAIL_ADDRESS>Date: Friday, October 6, 2023 10:45:48 PM
Committer: Carles Cufí
Commit Date: Monday, April 15, 2024 9:09:28 AM
arch: arm: cortex_m: Use outlined arch_irq_(un)lock in assembly
Asm is notoriously harder to maintain than C and requires core specific
adaptation which impairs even more the readability of the code.
This change reduces the need for core specific conditional compilation.
Signed-off-by: Wilfried Chauveau<EMAIL_ADDRESS>

It appears that I have missed something important around the (seemingly inconsistent) use of BASEPRI & cpsie/d… 🤔
Interrestingly, this isn’t caught by any of the tests I ran. I would like to fix the issue but also eventually add some tests to capture future regressions.
Could you please detail the process you’re following to reproduce the issue?
Do you use an in-tree example/test? How do you load/reload/reset?

I also encountered a similar phenomenon with arduino_uno_r4_minima (Renesas RA4M1, Cortex-M4/ARMv7-M).
Similar to this issue, I confirmed that reverting https://github.com/zephyrproject-rtos/zephyr/commit/f11027df8061932ddf1209f985a67164d140f303 works correctly.
It is also working fine with @duda-patryk patch.

Thank you for letting me know. I am currently running tests on a nucleo_f401re but can’t seem to be able to reproduce the issue.
Along with the fix, I’d like to understand & document the why is this extra cpsie required.

I am running Zephyr’s tests & samples.
I get some false positives (ie failing test because of twister missing the start of the log) but they match before & after the changes to arch/arm.
Would you be able to provide a sample project that exhibits this issue?

In my case, I'm jumping to Zephyr reset vector from another code (chain-loading) with interrupts disabled (cpsid i).
To reproduce issue without chain-loading you can use following code:
void z_arm_reset(void);

void test(void)
{
        __disable_irq();
        z_arm_reset();
}

So I edited samples/hello_world/src/main.c such that it becomes:
#include "zephyr/kernel.h"
#include <stdio.h>

extern void z_arm_reset(void);

int main(void) {
    printf("Hello World! %s\n", CONFIG_BOARD_TARGET);

    k_sleep(Z_TIMEOUT_MS(2000));

    __disable_irq();
    z_arm_reset();

    /* should not be reached */
    printf("Reboot failed\n");
    k_sleep(Z_FOREVER);

    return 0;
}

And this indeeds behaves incorrectly as the sleep is not stopping the thread for the requested amount of time.
However, z_arm_reset is not a proper way to reset the system, sys_reboot(_) from zephyr/sys/reboot.h is. Calling sys_reboot(SYS_REBOOT_WARM) or sys_reboot(SYS_REBOOT_COLD) does work as expected.
With reguards to chain loading, I also tried MCUBoot with the helloworld (using sys_reboot(SYS_REBOOT_WARM) and sys_reboot(SYS_REBOOT_COLD)) and it all seems to work as expected too.
For the record, here’s how I built & flashed them:
west build --sysbuild -p -b nucleo_f401re samples/hello_world -DSB_BOOTLOADER=MCUBOOT=y
pyocd load build/mcuboot/zephyr/zephyr.elf
pyocd load build/hello_world/zephyr/zephyr.signed.hex

It might be worth noting that the documentation for BOOTLOADER_MCUBOOT states that:

By default, this option instructs Zephyr to initialize the core architecture HW registers during boot, when this is supported by the application. This removes the need by MCUboot to reset the core registers' state itself.

Could this be something useful for your usecase?

MCUBoot works because they use irq_lock() to disable interrupts (faults are enabled) https://github.com/mcu-tools/mcuboot/blob/d2e69bf720ec4e5825f1bd7be441a9e3dedb5533/boot/zephyr/main.c#L205
@yperess do you remember why we disable interrupts using cpsid i?

CONFIG_MCUBOOT_CLEANUP_ARM_CORE defaults to y.
When the cleanup is enabled, do_boot() calls cleanup_arm_nvic() which disables interrupts too 🤔.

When the cleanup is enabled, do_boot() calls cleanup_arm_nvic() which disables interrupts too

__disable_irq() is called indeed. @ithinuel I assume that it works for you :sweat_smile:

Well, I cannot reproduce the issue but from the bug report what's missing is enabling the IRQ so if anything it only confuses me more.

Are you happy closing this issue with the fix that was merged?

Closing


nuget package drop and positioning of this for transient fault handling

is there a nuget package for enabling use of rx.net in a csharp project environment?
is rx.net what one could consider the open source initiative replacement for transient fault handling functionality that the old patterns & practices block [ https://msdn.microsoft.com/en-us/library/hh675232.aspx ] covered?

is there a nuget package for enabling use of rx.net in a csharp project environment?

https://www.nuget.org/packages/Rx-Main

is rx.net what one could consider the open source initiative replacement for transient fault handling functionality ...

I'd look at something like RetryWithBackoffStrategy which you can add on top of Rx (link then links off to some source code):
http://stackoverflow.com/questions/18978523/write-an-rx-retryafter-extension-method

thanks for response and pointers to relevant info.
so does rx.net [ and .js ] provide retries when a transient fault arises but just not with any oob support for only retrying depending on the nature of the fault/exception and/or ability to wait an increasing amount of time between each retry vs retrying right away?

@myusrn no, not out of the box. But as the sample above shows, it's easy to build on top and I highly recommend trying it out to get familiar with Rx more...

It seems the pointers to the NuGet package were the main missing link to get started. As @shiftkey points out, there's no built-in support for the transient fault handling, but it'd be easy to build on top of the primitives provided.


Logan XML3

pushing my XML3 to the website (I also accidentally pushed a file into our main repo on my last branch pull request instead of the sandbox folder. So I deleted that in this push)

@luh429 Good work with XML Ex 3 and the Pull Request! This XML was fun to review, and might make a good basis for a team project!
I've accepted the PR (merged your branch to main) and deleted your branch from the remote repo. On your local computer, you should now:

Switch to your main branch
Do a git pull (to pull in the new merged-in changes there)
Delete the hammer-XML3 branch on your computer.


Investigate C++ linting tools

Let's try to find a code check tool that can handle context-aware C++ style checking. cpplint is a possibility.

clang-tidy is another good option.

clang-tidy is hopefully on its way into BLT: https://github.com/LLNL/blt/pull/395


DROP Table segfaults

When I was running basic1.sql on psql, peloton crashes with
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff1ffc700 (LWP 24034)]
0x00007ffff76f6de9 in peloton::parser::DropStatement::GetTableName (this=0x7fffef016df0) at /home/siddharth/git/peloton/src/include/parser/statement_drop.h:45
45	  inline std::string GetTableName() { return std::string(table_name->name); }
I wonder how this didn't get caught by Travis' psql test.
EDIT: Even JDBC based operations fail on this.

let me take a look

Which version are you using?
I cannot reproduce it with the most recent version of master 9ddc7cb4a887a478045a9eb2aaa28d8402ef8753.

➜  dml git:(pr) ✗ sudo -u postgres psql "sslmode=disable" postgres -h localhost -p 54321 < basic1.sql
drop table if exists foo 0
create table foo(id integer PRIMARY KEY, year integer) 0
insert into foo values(1, 100) 1
insert into foo values(1, 200) 0
insert into foo values(2, 200) 1
insert into foo values(3, 300) 1
insert into foo values(4, 400) 1
insert into foo values(5, 400) 1
insert into foo values(5, 500) 0
id | year
----+------
1 |  100
2 |  200
3 |  300
4 |  400
5 |  400
(5 rows)
id | year
----+------
1 |  100
2 |  200
(2 rows)
id | year
----+------
3 |  300
4 |  400
5 |  400
(3 rows)
delete from foo where year = 200 1
id | year
----+------
1 |  100
3 |  300
4 |  400
5 |  400
(4 rows)
update foo set year = 3000 where id = 3 1
id | year
----+------
1 |  100
4 |  400
5 |  400
3 | 3000
(4 rows)
update foo set year = 1000 where year = 100 1
id | year
----+------
4 |  400
5 |  400
3 | 3000
1 | 1000
(4 rows)
update foo set id = 3 where year = 1000 1
id | year
----+------
4 |  400
5 |  400
3 | 3000
3 | 1000
(4 rows)
update foo set id= 10 where year = 1000 1
id | year
----+------
4 |  400
5 |  400
3 | 3000
10 | 1000
(4 rows)
insert into foo values (2, 2000) 1
id | year
----+------
4 |  400
5 |  400
3 | 3000
10 | 1000
2 | 2000
(5 rows)
insert into foo values (4, 4000) 0
id | year
----+------
4 |  400
5 |  400
3 | 3000
10 | 1000
2 | 2000
(5 rows)
insert into foo values (1, 1000) 0
id | year
----+------
4 |  400
5 |  400
3 | 3000
10 | 1000
2 | 2000
(5 rows)

➜  build git:(master) bin/peloton -port 54321 -stats_mode 0
[INFO ] [/home/yifan/upstream/src/wire/libevent_server.cpp:83:AcceptCallback()] 2016-09-23 23:09:34 - New connection on fd 7
[INFO ] [/home/yifan/upstream/src/wire/libevent_server.cpp:52:ManageRead()] 2016-09-23 23:09:34 - New thread<PHONE_NUMBER>56384 started execution for socket manager 1
[INFO ] [/home/yifan/upstream/src/planner/update_plan.cpp:40:UpdatePlan()] 2016-09-23 23:09:34 - Update database default_database table foo
[INFO ] [/home/yifan/upstream/src/planner/update_plan.cpp:40:UpdatePlan()] 2016-09-23 23:09:34 - Update database default_database table foo
[INFO ] [/home/yifan/upstream/src/planner/update_plan.cpp:40:UpdatePlan()] 2016-09-23 23:09:34 - Update database default_database table foo
[INFO ] [/home/yifan/upstream/src/planner/update_plan.cpp:40:UpdatePlan()] 2016-09-23 23:09:34 - Update database default_database table foo
[INFO ] [/home/yifan/upstream/src/wire/libevent_server.cpp:67:ManageRead()] 2016-09-23 23:09:34 - Thread<PHONE_NUMBER>56384 Executing for socket manager 1 failed to manage packet

@sid1607 any more information about the failure?

I guess there were some inconsistencies in my local build. This is not an issue anymore.


Define security policy and setup code scanning alerts

See https://github.com/datamol-org/datamol/security

[ ] security policy
[ ] code scanning alerts

I have added a SECURITY.md file (honestly I don't think it really apply here).
I have also added the codeql-analysis.yml default workflow. Let's see what it does but if I spot too much noise and false-positive I will likely disable it.
Thanks!


DryIOC new Transient Disposable

I think I have come across a bug in .new whereby setting allowDisposableTransient to true on .register (not on the rules but on register) does not change if the disposable transient is allowed to be created. I have compared .new and .resolve and only .resolve seems to take into account this setup, whereas .new raises the exception saying that I need to set allowDisposableTransient to override the exception, which is not the observed behaviour.

Please a small test or example app.

Hi Maksim, have attached a repro project.
ConsoleApp1.zip


Decide what to do about inline documentation (duplicate/simplify/etc)

There is inline code documentation in both the "lib" directory and within the internal package structure inconsistently
I think we were going to move all docs to the "lib" directory alone but this deserves more discussion on Discord to decide

Perhaps talk with VSC plugin dev's, I think inline documentation can be safer but a power editor should have an option to hide it all, or if it's separate perhaps make it look inline if user decides.

Part of the motivation is to avoid duplication. Having docs in two (or more) places is going to lead to documentation being out-of-date or not being written

Putting all the docs in the "lib" folder:
Pros:

The documentation is only in one location
The documentation is located where API docs could be available without Lime tools
The implementation no longer has code docs (smaller, cleaner more concise files)
The implementation becomes more focused on behavior only (testable)
Find/replace in the implementation no longer affects docs

Cons:

Inline API documentation for targets other than HTML5 will be absent

Putting the docs in both "lib" and "src"
Pros:

Inline API documentation works on all targets

Cons:

Duplication of all docs (and will get out of sync)
The implementation may be considered cluttered and negatively affect code contribution
Find/replace in the implementation picks up API documentation


feature：kubean pod log optimize

kubean-localservice cm in the follow log picture
online mode:  is not expected to be showed
offline mode:  is expected to be showed

/kind feature

/kind backlog

need optimze the logs output

@hangscer8


Cynthion: Feature request for SoC to provide generic JTAG debugging via PMOD

Once Cynthion will be released to the public I guess many folks like to tinker with Facedancer CLI and Moondancer firmware. However the current Moondancer firmware uses the PMOD connectors together with Ladybug library to give some insights using a logic analyzer for debugging USB communications.
As found here there is a FPGA generic way to add JTAG TAP into softcores for debugging the Moondancer firmware directly on the core.
Are there any plans to add this option to Cynthion's SoC?

Fully supported and documented as of: https://github.com/greatscottgadgets/cynthion/pull/76


Add pull request sysFlag and support consume from where in first startup

What is the purpose of the change
Fix this issue
Brief changelog
XX
Verifying this change
XXXX
Follow this checklist to help us incorporate your contribution quickly and easily. Notice, it would be helpful if you could finish the following 5 checklist(the last one is not necessary)before request the community to review your PR.

[x] Make sure there is a Github issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a Github issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
[x] Format the pull request title like [ISSUE #123] Fix UnknownException when host config not exist. Each commit in the pull request should have a meaningful subject line and body.
[x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[x] Write necessary unit-test(over 80% coverage) to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add integration-test in test module.
[x] Run mvn -B clean apache-rat:check findbugs:findbugs checkstyle:checkstyle to make sure basic checks pass. Run mvn clean install -DskipITs to make sure unit-test pass. Run mvn clean test-compile failsafe:integration-test  to make sure integration-test pass.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

Coverage decreased (-0.07%) to 50.578% when pulling ce02fe6b36a30f2201d8b00c4f30fc84bb2d619f on duhenglucky:pull_sys_flag into f8f6fbe4aa7f5dee937e688322628c366b12a552 on apache:develop.


[Refacor] Add a global Scribe.js console.log function in the start of each file to specify general info for file

In order to do log something, we need to add all info inlined. But, a lot of info repeats itself when considering logging on the same file scope.
We need to create a variable in the specific file scope that can add some very standard things to the console.log, in order to eliminate their addition for each console.log in the file.
Current use:
1: <do something>;
2: console.time().tag('FACTORY').tag('add user').info('X happend!');
3: return;

Suggested use:
1: var console = function() {
2:    <add time, tag('factory') to console object>;
3:    <return a pipe-able obj to allow addition of tags and stuff outside>;
3:  };
4: <do something>;
5: console.tag('add user').info('X happend!');
6: return;

https://github.com/bluejamesbond/Scribe.js/wiki/4-·-API-%3A-Console2#console2addloggername-colors-opt


Fix duplicate exceptions in log

What do these changes do?
Fix duplicate exceptions in log.

Related issue number

Fixes https://github.com/mars-project/mars/issues/2722
Check code requirements

[ ] tests added / passed (if needed)
[ ] Ensure all linting tests pass, see here for how to run them

Codacy check failed: https://app.codacy.com/gh/mars-project/mars/pullRequest?prid=8912995

Vineyard test failed, looks like it's related, could you please take a look?

~Vineyard test~ A few tests failed, looks like it's related, could you please take a look?

Thanks. I am fixing the CI, some error is caused by No module named 'tqdm'.

~Vineyard test~ A few tests failed, looks like it's related, could you please take a look?

Thanks. I am fixing the CI, some errors are caused by No module named 'tqdm'.


Fix exception in ActionCable channel due to reflexes overwriting each other's data

Bug fix + refactoring
Description
Think of a page with multiple StimulusReflex controllers hooked up to the stimulus-reflex:connected event and the markup (Haml in this example) looking something like this:
%div{ data: { controller: "sandwich", action: "stimulus-reflex:connected@document->sandwich#eat" } }

%div{ data: { controller: "tea", action: "stimulus-reflex:connected@document->tea#drink" } }

The actions are backed by simple JavaScript controllers and reflex actions looking as follows. The reflex actions have different arity: one take no arguments, the other takes one.
// sandwich.js:

eat() {
  this.stimulate("Sandwich#eat");
}

// tea.js:

drink() {
  this.stimulate("Tea#drink", "green");
}

# sandwich_reflex.rb:

class SandwichReflex < ApplicationReflex
  def eat
    # ...
  end
end

# tea_reflex.rb:

class TeaReflex < ApplicationReflex
  def drink(flavour)
    # ...
  end
end

This kind of setup creates a situation where StimulusReflex::Channel#receive is invoked twice in a very short period of time. And since both messages are processed by the same instance of the ActionCable channel (as can be verified by printing  out self.object_id at the beginning of the method), the use of an instance variable (@reflex_data) in the current implementation leads to a situation where it gets overrwritten by the second message before the first one has been processed. As a result, reflex_data inside #delegate_call_to_reflex ends up containing the same set of data which, after being checked against the method signature of both of the reflex actions, raises an ArgumentError due to arity mismatch.
This pull request fixes the issue by eliminating the use of instance variables inside StimulusReflex::Channel#receive in favour of bundling the message payload with the respective instance of the reflex. It also simplifies the reflex factory and constructor by delegating most of the calls to the StimulusReflex::ReflexData instance.
Why should this be added
In modern web applications, it is common to load parts of the page asynchronously for a more responsive user experience. With StimulusReflex, it is most easily achieved by hooking up to the stimulus-reflex:connected event. This pull request fixes an exception that prevented the use of the specified event with multiple reflexes.
Checklist
- [ ] My code follows the style guidelines of this project
- [ ] Checks (StandardRB & Prettier-Standard) are passing
Sorry, don't know how to run these, would appreciate some help from the maintainers. Thank you.

Nice refactor :heart:

@Matt-Yorkley Thanks for your review. I have addressed your comments and also fixed the tests and linter warnings. Would appreciate if you could give it another look when you have time.

@Matt-Yorkley Thanks for your suggestions! I have addressed all feedback.

@Matt-Yorkley How can we proceed? Is there anything preventing this PR from getting merged?

Hey @alexander-makarenko, thanks so much for working on this!
Do you have an app or a test case which we could use to reproduce the issue itself? Just to make sure we are not re-introducing this by accident again in the future, even if it's a manual test.
I just want to make sure we are not breaking other things with this change, as there are quite a few changes here.

@marcoroth Since it's a race condition, it's actually quite difficult to reproduce, since it depends on how fast the StimulusReflex code runs in a specific application on a specific system. In a larger production application where I originally discovered the issue, it failed about once every 50 page loads. In a scenario that I outlined in the description of this PR (with no logic in the JS controllers or reflex), it seems to fail even rarer on my computer.
In order to debug the issue, I remember that I cloned the repo of StimulusReflex 3.5.0.pre9 locally and pointed my application to use it. Then I added a sleep somewhere down StimulusReflex::Channel#receive to emulate slow processing of messages, until I was able to reproduce the issue consistently. I then fixed the implementation of said method to eliminate the issue and submitted my changes in this pull request.
Thus, due to the nature of the issue, I unfortunately won't be able to provide a test application or add an automated test for it.


Problem when navigating between NavGraphs

Hey!
I'm having a few issues with my navigation graph setup, I have 2 NavGraphs:
@RootNavGraph(start = false)
@NavGraph
annotation class LoggedInNavGraph(
    val start: Boolean = false
)

@RootNavGraph(start = true)
@NavGraph
annotation class UnLoggedInNavGraph(
    val start: Boolean = false
)

and when I navigate from UnLoggedInNavGraph to LoggedInNavGraph I want to pop up the UnLoggedInNavGraph from the stack (so if I press back the app should close instead of coming back to the UnLoggedInNavGraph) - this is working but I'll share the code anyway:
navController.navigate(HomeScreenDestination) {                     popUpTo(NavGraphs.root) {                         inclusive = true                     }                 }
but when I want to do the opposite, i.e, navigating from LoggedInNavGraph to UnLoggedInNavGraph I want to pop up the LoggedInNavGraph from the stack and show the login screen again but it doesn't work all the time, sometimes it does sometimes it doesn't and when it doesn't if I press back I'll be sent to the screen I was before signing out. Here's the code:
navController.navigate(PreLoginDestination) {
                    popUpTo(NavGraphs.root) {
                        inclusive = true
                    }
                }

and here's the code of my MainActivity:
                    bottomBar = {
                        if (shouldShowBottomNav(currentDestination)) {
                            BottomBar(navController = navController)
                        }
                    },
                ) { innerPadding ->
                    DestinationsNavHost(
                        engine = engine,
                        navController = navController,
                        modifier = Modifier.padding(innerPadding),
                        navGraph = NavGraphs.root,
                        startRoute = NavGraphs.unLoggedIn
                    )

                    if (viewModel.isLoggedIn && !NavGraphs.loggedIn.destinations.contains(
                            currentDestination
                        )
                    ) {
                        navController.navigate(HomeScreenDestination) {
                            popUpTo(NavGraphs.root) {
                                inclusive = true
                            }
                        }
                    }
                }

I have that logic to navigate the user to the LoggedInGraph in case he's already authenticated.
Here's the generated NavGraphs.kts:
`public object NavGraphs {
public val loggedIn: NavGraph = NavGraph(
    route = "logged_in",
    startRoute = HomeScreenDestination,
    destinations = listOf(
        AccountingScreenDestination,
		CalculatedWorkoutScreenDestination,
		ChangeWorkoutScreenDestination,
		AddPaymentMethodScreenDestination,
		AnamneseFormDestination,
		ChangePasswordScreenDestination,
		ChangePrivateDataScreenDestination,
		CoachScreenDestination,
		InteractionHistoryScreenDestination,
		ReceiptScreenDestination,
		ShareReceiptScreenDestination,
		ComputeTrainingScreenDestination,
		CreateProjectDestination,
		DeleteAccountDialogDestination,
		HelpScreenDestination,
		HomeScreenDestination,
		AddNewProjectMemberScreenDestination,
		ManageMembersScreenDestination,
		MyProfileSettingsDestination,
		GenderPictureScreenDestination,
		MyProgressScreenDestination,
		MyProjectsScreenDestination,
		MyProfileDestination,
		NotificationScreenDestination,
		NotificationSetupDestination,
		RatingScreenDestination,
		InstallmentsScreenDestination,
		PaymentDestination,
		PaymentMethodScreenDestination,
		PerformanceScreenDestination,
		PlansScreenDestination,
		NewProjectScreenDestination,
		ProjectDetailDestination,
		ProjectMemberDestination,
		ProjectMembersScreenDestination,
		SearchDestination,
		SelectWorkoutScreenDestination,
		NotificationSettingsDestination,
		TrainingSheetDestination,
		TrainingCalendarScreenDestination,
		TrainingSheetFromCalendarDestination,
		WorkoutRoutineScreenDestination
    )
)

public val unLoggedIn: NavGraph = NavGraph(
    route = "un_logged_in",
    startRoute = PreLoginDestination,
    destinations = listOf(
        LoginScreenDestination,
		PreLoginDestination,
		RecoverPasswordScreenDestination,
		SignUpScreenDestination
    )
)

public val root: NavGraph = NavGraph(
    route = "root",
    startRoute = unLoggedIn,
    destinations = listOf(

    ),
	nestedNavGraphs = listOf(
		loggedIn,
		unLoggedIn
	)
)

}`
and here is a simple diagram to illustrate the problem:

Thank you!

Without having much more time, just a quick thing you can try:
navController.navigate(HomeScreenDestination) { popUpTo(NavGraphs.root) }

Basically with inclusive = false (default). Same thing when you do the opposite from logged in to unlogged in.

I'm not 100% sure, but it does make more sense to me this way. The root is something you don't necessarily want to remove from back stack.

I made those changes but still getting the same problem, sometimes it works sometimes it doesn't

@raamcosta do you know what else could be the problem?

also, the viewmodels onCleared don't get called when I navigate from loggedIn to unLoggedin graph, so if I log in a different user, all the data from the previous user will be there

@renanboni use this block of code to print backQueue (from tivi project):
fun ArrayDeque<NavBackStackEntry>.print(prefix: String = "stack") {
    val stack = toMutableList()
        .map { it.destination.route }
        .toTypedArray().contentToString()
    println("$prefix = $stack")
}

@Vlado24 thanks!

@Vlado24 thanks!

Logging the backstack was exactly what i was gonna suggest next. I'm sure there's some issue in your setup. Let me know once you know more and post the logs so I can see it as well.

how can I use that extension function? even in the mentioned project it is not used

https://github.com/raamcosta/compose-destinations/blob/main/sample/src/main/java/com/ramcosta/destinations/sample/ui/composables/SampleScaffold.kt

ok I found the problem,
`navController.navigate(destination.direction) {
popUpTo(HomeScreenDestination) {
saveState = true
}
                    launchSingleTop = true
                    restoreState = true
                }`

I had NavGraphs.loggedIn in the popUpTo function.
But now there is another problem, the viewmodel from the bottom sheet screens aren't getting destroyed when I log out even though the destinations are (I don't see them in the print).
Any idea? thanks!

Save state and restore state make VMs not be destroyed as it turns out.
Try without those. Let me know what’s the result

But if I remove those the VMs will be recreated whenever I switch tabs from the bottom nav. When I was using the compose library I had those set to true, the difference is that when I popped out a graph - like I'm doing here, the VMs were destroyed altogether

I mean, this library is not handling any of this, this is handled by the official navigation library 🤔 So the behavior has to be the same...

@renanboni if you really believe this to be a behaviour that only happens when using compose destinations, please create a small sample that reproduces the issue and one that uses compose navigation directly and doesn't have this issue. I can use these to debug and see if there is indeed some unexpected issue on my side.
You can also just create one of the two samples (with Compose Destiantions or without) and I'll make the counterpart.

I'll close this for being stale for 3 weeks. I don't see any issue here coming from Compose Destinations.
I'll still be happy to take a look at those small samples so I can dig deeper.


Swodlr CI/CD workflow for entire Swodlr component set to OPS

This work will include the deployment of all deployable swodlr components to UAT and OPS.
The swodlr repo will contain a list of submodule pointers to other repositories and will kick off deployments to either UAT or OPS.  The following repositories
https://github.com/podaac/swodlr-api
https://github.com/podaac/swodlr-async-update
https://github.com/podaac/swodlr-ingest-to-sds
https://github.com/podaac/swodlr-raster-create
https://github.com/podaac/swodlr-ui
https://github.com/podaac/swodlr-user-notify
The repositories need to be updated to have deployment workflows that mirror that of swodlr-api, which can be triggered by updates to the swodlr repository and deployed to either UAT or OPS.  The repositories will need to be updated with github environments for this purpose.
The submodules in swodlr will rely on tags for accuracy
Ideally it would be very nice to have a dashboard of some sort that shows the version of each software packaged which is deployed to each environment
The swodlr repo to wrap all of this up is here:
https://github.com/podaac/swodlr

https://github.com/podaac/swodlr-ingest-to-sds/pull/14
https://github.com/podaac/swodlr-user-notify/pull/3
https://github.com/podaac/swodlr-raster-create/pull/20
https://github.com/podaac/swodlr-async-update/pull/5
These four pull requests contain the CI/CD code necessary to deploy the repositories to either SIT or UAT automatically.
Next steps are:

Set up the SWODLR repository with submodules pointing to SIT branches and get pushbutton deployments to SIT and UAT working
Create OPS environments in github and ensure code can be pushed to OPS properly (test this with empty commits to an ops target branch, check with @joshgarde before deploying to OPS please because this is the dangerous step)
Set up the SWODLR repository with OPS pointers on the main? branch (check with Josh again regarding which branches he wants OPS submodule pointers stored)

@viviant100 to work with @cqbanh for NGAP cloudfront request.

CloudFront request has completed.

[ ] CICD in OPS: @cqbanh to elaborate what's complete here
[ ] check in code for the on-demand deploy to OPS
[ ] Complete "one-button deploy all" in OPS


Unable to refresh packages

Expected Behavior
The Install New npm Packages dialog says "Installed locally More than 1 month ago." So I clicked Refresh. In the past, the packages could be updated,
Actual Behavior
But for the past month or so, it always end up with Installed locally Refreshed failed - see output
Output shows:
Registry url: https://registry.npmjs.org/
Current Time: 7/25/2017 13:45:34
Last Refreshed: 6/9/2017 21:25:14
Number of Results: 469043
Registry url: https://registry.npmjs.org/
Path to npm: C:\Program Files\nodejs\npm.cmd
Downloading package cache to C:\Users\xxx\AppData\Local\Microsoft\Node.js Tools\NpmCache\2de06639-f26a-4d91-bd20-9a56589ad75d\since_packages.json
Downloading list of packages from https://registry.npmjs.org/-/all/since?stale=update_after&startkey=1497012891981
Download complete - updating database
Reading 24 bytes from C:\Users\xxx\AppData\Local\Microsoft\Node.js Tools\NpmCache\2de06639-f26a-4d91-bd20-9a56589ad75d\since_packages.json (7/25/2017 13:47:02)
Newtonsoft.Json.JsonException: Unexpected JSON token reading a package from the NPM catalog data
at Microsoft.NodejsTools.Npm.SPI.NpmGetCatalogCommand.ReadPackagesFromObject(SQLiteConnection db, JsonTextReader jsonReader, String registryUrl)
at Microsoft.NodejsTools.Npm.SPI.NpmGetCatalogCommand.<>c__DisplayClass6_0.b__0()
at SQLite.SQLiteConnection.RunInTransaction(Action action)
at Microsoft.NodejsTools.Npm.SPI.NpmGetCatalogCommand.ParseResultsAndAddToDatabase(TextReader reader, String dbFilename, String registryUrl)
at Microsoft.NodejsTools.Npm.SPI.NpmGetCatalogCommand.<>c__DisplayClass23_2.b__2()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()

NTVS Version: 1.3.50201.08
Visual Studio Version: 2017
Node.js Version: 6.9.2

Steps to Reproduce

As described in Expected behavior

That wasn't supposed to happen till 9/1, fortunately we fixed this in VS 2017 Update 3, preview 5 was released earlier this week.
http://blog.npmjs.org/post/157615772423/deprecating-the-all-registry-endpoint


Github action fails with /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /atlas-action)

Trying to get atlas working for the first time as part of a github action that runs our tests.  It should set up the test db schema.
Github actions steps:
      - name: Set up Atlas DB Migrator
        uses: ariga/setup-atlas@v0

      - name: Atlas DB Migrator Version
        run: atlas version

      - name: Set up database
        uses: ariga/atlas-action/migrate/apply@v1
        with:
          url: mysql://root:@<IP_ADDRESS>:3306/myschema
          dir: file://sql/migrations

The github action container has, among other things, gcc g++ libc6 cmake make git pkg-config installed. (Tried with and without libc6)
Since the "setup-atlas" step was successful, I should hope the rest would work, but apparently not.
This results in:
Run ariga/setup-atlas@v0
Run curl -sSf https://atlasgo.sh | ATLAS_VERSION=latest CI=true sh
Downloading https://release.ariga.io/atlas/atlas-linux-amd64-latest
atlas version v0.15.1-bba752d-canary
https://github.com/ariga/atlas/releases/latest
Installation successful!

Run atlas version
atlas version v0.15.1-bba752d-canary
https://github.com/ariga/atlas/releases/latest

Run ariga/atlas-action/migrate/apply@v1
Using version v1
Downloading atlas-action binary: https://release.ariga.io/atlas-action/atlas-action-v1
/myrepo/atlas-action: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /myrepo/atlas-action)
/myrepo/atlas-action: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /myrepo/atlas-action)
Error: The process exited with code 1

Ok, it works now. Thank you.
What was the problem?
If we are going to use this in production, how do we ensure this problem doesn't happen again?

Hey @veqryn. The atlas-action is a compiled go binary. Go builds net code using a C library by default, which in turn required glibc. We are now building with CGO_ENABLED=0 which means the binary now is 100% statically linked.

If we are going to use this in production, how do we ensure this problem doesn't happen again?

As mentioned above, we no longer required glibc, therefore this problem will not happen again.


Using radar-plots with influxDB

Hi! I’ve tried your plugin. It’s very very nice … thank you …
Now, I have a couple of questions. In the readme file it's been explained that the plugin in has been tested out with ElasticSearch as data-source (I’m using influxdb).
Let me show you an example of what I'm trying to do: I’m trying to measure the number of messages (LSA) per OSPF Area in a network. To do this, I’ve constructed the following query …

… and obtained this plot, which is fine and consistent with other plots that I’ve made for the same KPI; so far, so good…

Now, as far as I can understand, the plugin is using time (EPOCH) as the axis for the radar. If you see, because of that, I'm limiting the search to the last 6 samples (hence the hexagon).
What I’d like to achieve is that the ‘tags’ of the influx measurement to be these axis (in my case: ‘<IP_ADDRESS>’, ‘<IP_ADDRESS>’, ‘<IP_ADDRESS>’). So, if that could be possible, instead of an ‘hexagon’, I would have a ‘triangle’, being each corner of it, each of the influx measurement's tags.
Do you think that is possible to achieve with influxdb?
thanks!
lucas

Did you try to add another group ? In Elastic, the first aggregation group is used for the diagonals and the second to determine the series names.
I did not play with Influx DB since a long time but I will try to check that by the end of the week if I have a few hours to spare. Tell me if the dual groups trick does work for you.

I committed a new version can you check against it. There is a new option or Influx in the configuration panel.

Hi! Sorry for the delay. So I've tried your update and it's much better!

Now the plugin uses tags as axis which is pretty good. In the example, 1Gbps, 10Gbps, etc, are tags, while rxRate and txRate are the fields/KPIs of the influx measurement.
I've noticed, though, that to plot several fields, these must be obtained from different queries ...

I believe that the possibility of establishing several fields on the same query, is a plus. Also, being able to define the units of the axis would be nice.
Thanks any way for the update! I'll keep on using it to see if I find anything else!
Thanks again!


Add support for MOI.ScalarNonLinearFunction

Address #279

Codecov Report
Attention: 351 lines in your changes are missing coverage. Please review.

Comparison is base (f0effa2) 75.36% compared to head (42a6369) 72.42%.
Report is 2 commits behind head on master.

Files
Patch %
Lines

src/IPM/kernels.jl
51.20%
121 Missing :warning:

src/Interfaces/MOI_interface.jl
54.90%
69 Missing :warning:

src/IPM/solver.jl
72.67%
47 Missing :warning:

src/KKT/sparse.jl
85.56%
41 Missing :warning:

src/enums.jl
7.89%
35 Missing :warning:

src/Interfaces/utils.jl
87.57%
20 Missing :warning:

src/nlpmodels.jl
98.14%
5 Missing :warning:

src/IPM/inertiacorrector.jl
78.57%
3 Missing :warning:

src/options.jl
84.21%
3 Missing :warning:

src/KKT/dense.jl
96.61%
2 Missing :warning:

... and 4 more

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #280      +/-   ##
==========================================
- Coverage   75.36%   72.42%   -2.94%
==========================================
  Files          40       41       +1
  Lines        4120     4762     +642
==========================================
+ Hits         3105     3449     +344
- Misses       1015     1313     +298

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Please invite me to the community

Name
Sahitya Roy
Discord Username (if applicable)
Sahitya#1027
Additional Context
I found this organization through github and it's a cool community that's why i wanna join.

Welcome to the community! 🎉

Thank you
On Fri, Nov 12, 2021, 10:48 AM Krish Gupta @.***> wrote:

Welcome to the community! 🎉
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/web3community/start-here/issues/117#issuecomment-966828101,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ARLSWZBOMWFWL24D2S5OFSDULSPSXANCNFSM5H36YWYA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.


Improving .select2-hidden-accessible

To match last standards, see CSS hide and seek for more explanations :)
Also I removed the negative margin because of unwanted effects in some case, as seen on Bootstrap.

Merged into develop for 4.0.6 release.


feat: testing in go 1.10 version.

Testing with 1.10 version using Golang official image.

Why were we using the webhippie image in the first place? cc/ @tboerger - does it have any advantages over the standard golang image?
Integration tests seem to fail because we don't have git lfs - might need to install it on the image

@thehowl I already add git-lfs package. Waiting drone buid.

@thehowl

Why were we using the webhippie image in the first place? cc/ @tboerger - does it have any advantages over the standard golang image?

So we move to the standard golang image now because of webhippie is not the latest golang image.

I can add the latest version... The official go image doesn't include make ;)

Codecov Report

Merging #3899 into master will increase coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #3899      +/-   ##
==========================================
+ Coverage   20.16%   20.17%   +0.01%
==========================================
  Files         145      145
  Lines       29171    29171
==========================================
+ Hits         5881     5884       +3
+ Misses      22395    22393       -2
+ Partials      895      894       -1

Impacted Files
Coverage Δ

modules/process/manager.go
73.91% <0%> (+4.34%)
:arrow_up:

Continue to review full report at Codecov.

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

@tboerger official image support make command. See:
https://github.com/docker-library/golang/blob/329b6672949337c4469351b2e8b8575459a75c7f/1.10/stretch/Dockerfile#L8
just missing git-lfs package which already fixes in this PR.

LGTM


[glog] update v0.4.0

possible fix error dynamic
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
set(BUILD_SHARED_LIBS ON)
else()
set(BUILD_SHARED_LIBS OFF)
endif()
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS}
)

Could you also update the version number in the CONTROL file?

Ок ;)

I am seeing the following results in the PR test:

x64-windows
master
test
notes

sophus
Pass
Fail
Regression

openmvg
Pass
Fail
Regression

cartographer
Pass
Fail
Regression

x64-windows-static
master
test
notes

fizz
Pass
Fail
Regression

arm64-windows
master
test
notes

sophus
Pass
Fail
Regression

x86-windows
master
test
notes

sophus
Pass
Fail
Regression

openmvg
Pass
Fail
Regression

cartographer
Pass
Fail
Regression

and how to be with outdated code and vice versa, with those who are old does not support?
Too many ports, architectures to be perfect for everyone
It is so, thoughts aloud
close?

@Voskrese, If you want to close this PR then I am okay with that.  It looks like we ran into the same build failures when we tried to update this port recently in #5698, so if you close this PR we will probably take it over to investigate the failures and try to fix them.


[Feature]: Themes example code that is compatible with Token Studio Export to Github

What feature would you like?
There is a limitation in Token Studio where when syncing tokens from Figma -> Github it's only possible to do so where it writes the single tokens.json file in the repo. There is no way to configure it to output multiple files.
The theme and multi-dimensional themes examples are written assuming the export is done with multi-file mode:
https://github.com/tokens-studio/sd-transforms#themes-full-example
It would be great to have an example script that processes multi-dimensional themes from the single tokens.json file that the Token Studio export to Github supports.
Would you be available to contribute this feature?

[ ] Yes, I would like to contribute this

Ran into a similar issue, not super happy with the result but it works.
Takes your giant single tokens.json file and generates the same structure as the multi-file export from figma.
const SINGLE_FILE_PATH = 'tokens.json'
const INPUT_FOLDER = './'

const convertSingleFileToMultiFile = async () => {
  const singleJsonFileData = fs.readFileSync(SINGLE_FILE_PATH, 'utf-8')
  const allTokensData = JSON.parse(singleJsonFileData)

  for (const tokenKey in allTokensData) {
    const folderPath = tokenKey.replace(tokenKey.split('/').at(-1), '')

    // mkdir so write file doesn't fall over
    await fs.mkdirSync(`${INPUT_FOLDER}/${folderPath}`, { recursive: true })

    await fs.writeFileSync(
      `${INPUT_FOLDER}/${tokenKey}.json`,
      JSON.stringify(allTokensData[tokenKey], undefined, 2),
      'utf8'
    )
  }
}

Keeping an eye out for style-dictionary v4, adding browser support and less reliance on fs. Hopefully the tokens-studio team will be able to work some magic here to take advantage of those features when it drops.

Multi-file sync is possible in the figma plugin, so it shouldn't block you.
That said, you can also read the tokens.json contents yourself, parse it, grab the $themes property from it, and pass that into the permutateThemes utility. This is more of an edge case and multi-file is definitely recommended over single-file, so I don't think it warrants adding this to the README.


Feat/425 publish dataset and collection

What this PR does / why we need it:
Implements the Publish Dataset feature where both the dataset and it's parent collection are not published. In this case, the Publish Dataset Modal allows the user to publish both the dataset and collection at the same time.
Note that this feature depends on a js-dataverse PR that is not yet merged: https://github.com/IQSS/dataverse-client-javascript/pull/199.  When it is merged, package.json can be updated to use the latest 'alpha' version.
Which issue(s) this PR closes:

Closes #425

Special notes for your reviewer:
I'm using feat/461-publish-collection as the base branch because it contains the integration code to call the Publish Collection js-dataverse use case.
Suggestions on how to test this:
Step 1: Run the Development Environment

Execute npm i.
Navigate with cd packages/design-system && npm run build.
Return with cd ../../.
Ensure you have a .env file similar to .env.example, with the variable VITE_DATAVERSE_BACKEND_URL=http://localhost:8000.
Navigate with cd dev-env.
Start the environment using ./run-env.sh unstable.
To verify the environment, visit http://localhost:8000 and check your local Dataverse installation.

Step 2: Test the feature

Create a collection. When it is created, it will have the 'Unreleased' status
Within the new collection, create a dataset.
On the Dataset page,  Choose Publish Dataset,  and Publish.
On the Publish Dataset Modal, there will be a text asking if you want to publish the parent collection as well as the dataset.  It will contain a link to then parent collection
Choose 'Continue' to publish the dataset and collection
When the publish is completed, check that the dataset and the collection are both published.  The dataset should be Version 1.0, and the collection should no longer have the 'Unreleased' status

Does this PR introduce a user interface change? If mockups are available, please link/include them here:
This is not a change from the JSF, but here is what the JSF modal looks like.  'Unpublished' is the name of the parent collection.

Is there a release notes update needed for this change?:
Additional documentation:

coverage: 98.403% (+0.9%) from 97.53%
when pulling 8b7699526b33387975e5aa812d90a55db82a44fd on feat/425-publish-dataset-and-collection
into ff8ed384968784225e5a2ebd0618f7a8e332c16f on develop.

Hi @ekraffmiller could you update js-dataverse package version with 2.0.0-alpha.2, https://github.com/IQSS/dataverse-client-javascript/pull/199 is already merged, thanks!

tested in local - no issues found.
Testing of 520.docx


To many colors layers on mesh

greetings

hirarchy

You're using an outdated version of Sollumz. Make sure to download from GitHub https://github.com/Skylumz/Sollumz/wiki#installation . If you still have a problem on the latest version feel free to make another issue.


Fix slice insert membership bug

Inserting to a composition with a slice was omitting members from the _child_lookup set.  This fixes that bug, and hopefully addresses #436.

Codecov Report

Merging #437 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #437      +/-   ##
==========================================
+ Coverage   86.48%   86.48%   +<.01%
==========================================
  Files          66       66
  Lines        6216     6217       +1
==========================================
+ Hits         5376     5377       +1
  Misses        840      840

Impacted Files
Coverage Δ

opentimelineio/core/composition.py
92.47% <100%> (+0.03%)
:arrow_up:

Continue to review full report at Codecov.

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


CI: document and implement release strategy

This outlines what we intend to do. Not all of it is currently
implemented (no master branch, CI not fully operational).

It occurred to me that we need to think and do a bit more about the content of an actual release:

use the real registry in our deployment files
replace "canary" image version before tagging a release

Here's my proposal.
While testing it I also ran into a special situation: the Clear Linux base image is currently already up-to-date. This made it necessary to update our update-clear-linux-base.sh script.
I verified that the Jenkinsfile change works:

building a release-0.5-test branch does not push images: https://cloudnative-k8sci.southcentralus.cloudapp.azure.com/job/pmem-csi/job/release-0.5-test/10/execution/node/50/log/
building the v0.5.0-rc2 tag does push images: https://cloudnative-k8sci.southcentralus.cloudapp.azure.com/job/pmem-csi/view/tags/job/v0.5.0-rc2/11/execution/node/50/log/

Naming management scripts directory hack/ is a bit disturbing. I see that is quite commonly used name in k8s related repos, (is there some special need I dont know to have it named like this?) but still, could we have a different name for release & branch mgmt scripts location? hack/ for me associates with something temporary/trial/unsure, and releases making is all opposite.

Naming management scripts directory hack/ is a bit disturbing. I see that is quite commonly used name in k8s related repos

That's why I named it the same way. We can name it whatever we want of course. Do you have a proposal?

let's keep it as it is, no big deal. Following common culture is also important.


Error fixes

Coverage decreased (-0.01%) to 91.089% when pulling ae24320909b035750908fe9b20d7be2739cbb163 on error-fixes into f9d122b6821f35d0f82015fb71419eb79a95bdcd on master.


Fix gzip and add coverage

Library was not properly handling decoding gzip. Also adds more coverage for gzip.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>6
Details

2 of 2 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+3.0%) to 90.361%

Totals

Change from base Build<PHONE_NUMBER>5:
3.0%

Covered Lines:
150

Relevant Lines:
166

💛  - Coveralls


Random Image Generator

Issue reference:
Proposed changes:
Random Image Generator
Type of change:
Please delete options that are not relevant.

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

Checklist:

[X] My code follows the style guidelines of this project
[X] I have performed a self-review of my own code
[X] I have commented my code, particularly in hard-to-understand areas
[X] I have made corresponding changes to the documentation
[X] My changes generate no new warnings

Additional info (if any):

Awesome @KarthikSharma-7


TouchableOpacity not fully touchable inside rotated View on iPhone 7

Description
When you have TouchableOpacity inside rotated view touchable is not fully touchable on actual device iPhone 7
Reproduction
See example: green rect is TouchableHighlight an is fully touchable inside rotated view, however red rect is not fully touchable.
const WIDTH = 250;
const HEIGHT = 150;

class App extends Component {

	render() {
		return (
			<View style={styles.container}>
				<View style={styles.view}>
					<View style={{transform: [{rotate: '45deg'}], zIndex: 1}}>
						<View style={styles.view}>

							<TouchableOpacity
								style={[styles.touchable, {backgroundColor: 'red'}]}
								activeOpacity={0.5}
								underlayColor='rgba(0, 0, 0, 0.1)'
								onPress={() => null}
							>
								<View style={{ flex: 1 }} />
							</TouchableOpacity>

						</View>
					</View>
				</View>
				<View style={styles.view}>
					<View style={{transform: [{rotate: '45deg'}], zIndex: 1}}>
						<View style={styles.view}>

							<TouchableHighlight
								style={styles.touchable}
								activeOpacity={1}
								underlayColor='rgba(0, 0, 0, 0.1)'
								onPress={() => null}
							>
								<View style={{ flex: 1 }} />
							</TouchableHighlight>

						</View>
					</View>
				</View>
			</View>
        )
    }

}

const styles = StyleSheet.create({
	container: {
		// backgroundColor: 'pink', // NOTE testing flexbox
		flex: 1,
		alignItems: 'center',
		justifyContent: 'space-between',
		paddingTop: 100
	},
	view: {
		backgroundColor: 'pink', // NOTE testing flexbox
		height: HEIGHT,
		width: WIDTH,
		marginBottom: 100
	},
	touchable: {
		flex: 1,
		backgroundColor: 'green',
		// zIndex: 1,
		// position: 'relative'
	}
})

Additional Information

React Native version: 0.41.2
Platform: iOS iPhone 7

Works fine on simulator, works fine on iPhone 6 & 6s device, doesn't work on iPhone 7 device

We're cutting down on the number of outstanding issues, in order to allow us to focus. I'm closing this issue because it has been open for over 60 days with no activity. If you think it should still be opened let us know why. PRs are always welcome.

I'm not that advanced to fix this, I haven't tested this since so I will do it in next few days and let you know if this now works in latest RN.


Pie chart replace_data corrupts file

Hello,
I am having the same problem raised here: https://github.com/scanny/python-pptx/issues/526 . After using the replace_data function, the file created gives an corrupt file message when trying to open the file. Additionally, the XML no longer contains the <c:pieChart> tag. Below is my code and attached are the XML files pre and post replace_data. Thanks!
chart xmls.zip
#create pie chart
prs = Presentation()
slide = prs.slides.add_slide(prs.slide_layouts[5])
chart_data = ChartData()
chart_data.categories = ['West', 'East', 'North', 'South', 'Other']
chart_data.add_series('Series 1', (0.135, 0.324, 0.180, 0.235, 0.126))
x, y, cx, cy = Inches(4), Inches(2), Inches(4), Inches(4)
chart = slide.shapes.add_chart(
    XL_CHART_TYPE.PIE, x, y, cx, cy, chart_data
).chart
prs.save(working_piechart.pptx')

#replace pie chart data
prs = Presentation(working_piechart.pptx')
chart = (prs.slides[0].shapes[1]).chart
chart_data = CategoryChartData()
chart_data.categories=['West', 'East', 'North', 'South', 'Other']
chart_data.add_series = ('Series 1', (.2,.2,.2,.2,.2))
chart.replace_data(chart_data)
prs.save(corrupt_piechart.pptx')

You are assigning to the chart_data.add_series() function instead of calling it:
This line:
chart_data.add_series = ('Series 1', (.2,.2,.2,.2,.2))

Should be:
chart_data.add_series('Series 1', (.2,.2,.2,.2,.2))


Cannot connect, error 401

In the config file, the doc. says that I must put a SECRET KEY.
I've done that, but know how can the shiva-client know this Key to connect to the server ?
When I run
http://localhost:9002/
the sever says Unautorized.And when I try
http://localhost:9002/users
I  got a message dialog: I have tried to create an accout with the provided utility, and I can't still log in with the user/password I provided ?
The doc. says that when ALLOW_ANONYMOUS_ACCESS is set to true, all this protection is by-passed, but when i try I have a 404 error, not a 401 anymore ...
Isn't all that stuff just over-complicated ?
Can't all that stuff be disabled as default ?

Hey @fredele!
Just to clarify the different return codes, when ALLOW_ANONYMOUS_ACCESS is False (the default) every single URL you try will return 401. That's a security measure, so you can't try out random URLs and figure out which ones exists and which ones don't.
Now, the 404 that you are getting under /users/ is unexpected. I will investigate it.
Once you introduce authentication it all becomes less pretty, it's kind of unavoidable :confused:. But I think you are right, it should be disabled by default. How else would you simplify the whole process?
Thanks for the bug report!


Make default rake task run all tests

This will make Whitehall more consistent with the majority of other Rails apps on GOV.UK, and allow us to use the new shared workflow to run our CI suite in Github Actions, rather than Jenkins.
Full details in the Trello card
⚠ This repo is Continuously Deployed: make sure you follow the guidance ⚠

seems to be missing all those odd extra directories

I'm able to run this rake task locally via docker without those directories, so I didn't think they were required. Looks to me like they're only needed for the publishing-e2e-tests, so maybe we can port that over separately after the 'standard' tests?

seems to be missing all those odd extra directories

I'm able to run this rake task locally via docker without those directories, so I didn't think they were required. Looks to me like they're only needed for the publishing-e2e-tests, so maybe we can port that over separately after the 'standard' tests?

They won't actually do anything for the e2e tests as that runs off a different jenkinsfile - perhaps that step in the Jenkinsfile is redundant.
I have those directories myself locally and didn't create them manually so I guess something creates them (aside: they're pretty odd would love to get rid of them).


Feature proposals

Hi,
A very nice tool.
I'm just testing it for the moment and I'm missing 2 features.

Managing overrides.
Adding packages not in bower repository. Like https://github.com/cubiq/iscroll
Best,
Paul

Hi @devel-pa, thanks for the proposal!

1 Managing overrides.

Since overrides is unofficial feature of Bower, we don't support it for now.
But they're discussing. After supported officially, I will start to consider the implementation.
See: bower/bower#585, bower/bower.json-spec#27

2 Adding packages not in bower repository.

Good. I think this is helpful.
If you have any ideas about the UI, please let me know.


Memory leak in SLSQP when interfacing with Matlab

Hi. I have found a problem when I try to make communication between Matlab and python (using SLSQP). I have built a model in Matlab and tried to use Scipy to optimise the parameters in the model. Therefore, I wrote an objective function in python and use "matlab.engine" to interface between the two. However, I have found that the simulation time in each iteration increases when I call Matlab engine.
With the code below, the simulation time keeps increasing after finishing eacg interation.
eng = matlab.engine.start_matlab()
def opt_pf(x):
y = eng.matlab_model(excel_path, x, nargout=0)
return y
gc.collect()
Run optimisation
from scipy.optimize import minimize
res = minimize(opt_pf, x0, method='SLSQP', constraints=[eq_cons], options={'ftol': 1e-09, 'disp': True}, bounds=bounds)
I first thought that the problem was from matlab.engine. However, there is no such problem when I put matlab.engine in a normal loop. So, I think that the optimizer didn't clear the cache from matlab.engine in each iteration.

One way to test for leak of resources is to run slsqp repeatedly in python. If the timings/memory usage doesn't blow out then the issue is probably on the interface to matlab which isnt the responsibility of scipy.

Hi Andy, the simulation time increases from 1s at the first few iterations to more than 1 min after 100th iteration.

Please provide a minimum working example that doesn't call any MATLAB code.
On Sat, 2 Nov 2019, 08:58 mchirsa5<EMAIL_ADDRESS>wrote:

Hi Andy, the simulation time increases from 1s at the first few iterations
to more than 1 min after 100th iteration.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/scipy/scipy/issues/10999?email_source=notifications&email_token=AAFLTVRKJ2QLOURPA76WUNDQRSRBBA5CNFSM4JIAE6JKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEC4IUXQ#issuecomment-548964958,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAFLTVV7KWC7MQXPVOM3SWLQRSRBBANCNFSM4JIAE6JA
.


Unexpected Token Export

Apologies if I'm missing something. I'm trying to convert some CommonJS code to ES6 so that I can use it with Rollup, but I keep getting an "Unexpected Token Export" error that points to a export default main$1 line in the compiled file. If I remove it, things seem to work. Here's a basic example:
// main.js

var thing = require('./ex');

alert(thing.message);

// ex.js

module.exports = {
    message: 'Hello World'
};

Here's what that all compiles down to:
// compiled.js

function __commonjs(fn, module) { return module = { exports: {} }, fn(module, module.exports), module.exports; }

var ex = __commonjs(function (module) {
module.exports = {
    message: 'Hello World'
};
});

var require$$0 = (ex && typeof ex === 'object' && 'default' in ex ? ex['default'] : ex);

var main = __commonjs(function (module) {
var thing = require$$0;

alert(thing.message);
});

var main$1 = (main && typeof main === 'object' && 'default' in main ? main['default'] : main);

export default main$1;
//# sourceMappingURL=main.js.map

That last "export" line causes an error, when I run the script in the browser: "main.js:3 Uncaught SyntaxError: Unexpected token export.
What am I missing here? I'm using Rollup with Gulp, so here's how I call it:
rollup({ plugins: [buble(), commonjs()] })

Thanks! Any help would be greatly appreciated.

You need to set the output format to something that can run in the browser. Looks like you more guy want iife.

"might want", not "more guy want".

I must not be understanding something. I was under the impression that I wouldn't need to do that.
For example, in my main.js snippet above, if I change:
var thing = require('./ex');

alert(thing.message);

To:
import thing from './ex';

alert(thing.message);

...everything works perfectly in the browser.

Here's the main thing I need to do:

Take a main.js file that uses the CommonJS syntax to require modules.
Prep that for use with Rollup.
Have Rollup and Buble do their thing to prep it for general browser use.

@JeffreyWay The reason you should use the iife format when targeting browsers is that they don't currently support the export default syntax.


Fatal error Traversable Router

Fatal error: Class Dash\Expressive\DynamicRouteCollection must implement interface Traversable as part of either Iterator or IteratorAggregate in Unknown on line 0
All i did was start the skeleton expressive app, composer required this repo, and changed
// ./config/autoload/dependencies.global.php

    'dependencies' => [
        'invokables' => [
          Zend\Expressive\Router\RouterInterface::class => Zend\Expressive\Router\FastRouteRouter::class,
        ],
    ],

into
    'dependencies' => [
        'invokables' => [
          Zend\Expressive\Router\RouterInterface::class => Dash\Expressive\Router::class,
        ],
    ],

I've moved some stuff around after reading "When implementing an interface which extends Traversable, make sure to list IteratorAggregate or Iterator before its name in the implements clause." from http://php.net/manual/en/class.traversable.php
results vary from the Fatal error's to a crashing php-fpm
[29-Oct-2015 21:14:10] WARNING: [pool www] child 54112 exited on signal 11 (SIGSEGV) after 216.756078 seconds from start
[29-Oct-2015 21:14:10] NOTICE: [pool www] child 54204 started

giving up


Color themes

It would be nice to have some predefined color themes. This could be difficult to implement due to the fact that each terminal have its own way to customize but it is still a very good idea. Maybe someone could present a clever way to do that.

I presume you meant color schemes. This one is a difficult, possibly impossible feature. For now we're requiring theme creators to specify their color scheme used in the screenshots they provide.
That's all we can do I think.
Will close in #3651.

i made this:
https://github.com/Mayccoll/Elementary-OS-Terminal-Colors
using http://ciembor.github.io/4bit/
suddenly could use a similar approach


Different behavior between python API and GUI

Hi! Thank you for this work! I was able to achieve the task I wanted using the GUI. However, I noticed that when I tried using the Python API with the exact same setup, I ended up with a different trajectory. I need to use the Python API because I have to integrate it with another part that is already implemented in MuJoCo using Python.
Could this difference in behavior be related to this issue? https://github.com/google-deepmind/mujoco_mpc/issues/322#issuecomment-2111497018. Do you have any tips on how I can achieve the same behavior in Python as I do in the GUI? Also, the MPC parameters defined in the MJCF file should be automatically applied when I run the model in Python, correct?

The C++ GUI interface is asynchronous. The number of planning iterations per simulation step is hardware dependent. In contrast, the Python API is synchronous and the number of planning iterations per simulation step is fixed.
Increasing the number of planning iterations per simulation step should be beneficial. For example, in this cartpole demo increase num_steps.
The C++ interface and Python API use the same parameters and settings defined in the task xml file.


Cannot create token account for receiver

I am using this library for solana spl token transfer. I can successfully created token account for sender but not able to create token account for receiver. As i have no secret key of receiver so how can i create token account for receiver can anyone help please?

Hi @HemangiVekaria  did you find the solution for send  Token to other user?

Hi @HemangiVekaria did you find the solution for send Token to other user?

No