chrony.conf ubuntu crash

The timesync role places the chrony.conf into /etc for each OS. Ubuntu (DEBIAN) expects the config in the /etc/chrony/ directory.  Should be handled inside /tasks/main.yml as os specific variable.
- name: Generate chrony.conf file
  template:
    src: chrony.conf.j2
    dest: /etc/chrony.conf
    backup: true
    mode: 0644
  notify: restart {{ 'chronyd' if timesync_mode == 1 else 'timemaster' }}
  when:
    - timesync_mode != 2
    - timesync_ntp_provider == 'chrony'
    - "'chrony' in ansible_facts.packages"

The directory should be set in a file in vars/ - we have a Debian file - https://github.com/linux-system-roles/timesync/blob/master/vars/Debian.yml - is it different than Ubuntu?

Ubuntu expects the chrony.conf as describe above in a different directory. The Path is hardcoded in the main.yml see template copy process I quoted above. Would be great if we could introduce an option to change the target path for the template within the debian vars file as you mentioned.

Rather than add a "one-off" setting specifically for Ubuntu to tasks/main.yml, I would like to refactor the code to handle this case better:

refactor tasks/set_vars.yml to use this method https://github.com/redhat-cop/automation-good-practices/tree/main/roles#platform-specific-variables instead of the "first found" method
this will allow use to consolidate all of the various vars/Platform_Ver.yml into vars/Platform.yml
add a new var timesync_chrony_config_path - in vars/RedHat.yml this will be /etc/chrony.conf - vars/Debian.yml will use /etc/chrony/chrony.conf (I believe os_family Debian includes Ubuntu - if not, then add a vars/Ubuntu.yml)
use timesync_chrony_config_path for https://github.com/redhat-cop/automation-good-practices/tree/main/roles#platform-specific-variables

We can then use this same approach for /etc/ntp.conf, /etc/ptp4l.conf, /etc/sysconfig/phc2sys, /etc/sysconfig/network, and any other platform differences.
One problem is that even though the code "supports" Debian, Ubuntu, etc., we have no CI testing on anything except RedHat os_family platforms, so we would have no way of knowing if the refactoring introduced any regressions.

I have made a PR addressing the location #187 as the role didn't crash on Debian, but the configuration wasn't effectuated after running the role :sweat_smile:
That should fix this issue as well, as Ubuntu should match with os_family.


Add get_by and get_by! to Repo

Implementing get_by and get_by! as suggested here.
cc/ @josevalim @ericmj
Closes #560

I have added some comments, thank you!  :heart: :green_heart: :blue_heart: :yellow_heart: :purple_heart:

@josevalim Done! Also added some docs. :)

Well done :heart:

I'm so excited for this. Thanks @bernardoamc

@paulcsmith @laurocaetano :heart:

:heart: :green_heart: :blue_heart: :yellow_heart: :purple_heart:

Nice work!!


How to extract sign of Ciphertext?

I would like to find out the greater of the 2 ciphertext. As comparison operation is not possible, I would like to know how to extract the sign from the operation (Ca-Cb).

I'm afraid both things are equivalent. Comparison between integers is actually performed by extracting the MSB (sign bit) from its subtraction. Take a look at #80 for a few alternatives. This bit extraction would also be similar to #56 .


Remove generated images and css from repo

Removing:
src/main/webapp/css
src/main/webapp/img
Those folders are on the .gitignore list anyway and the files are being copied over on every run, so it doesn't make sense to keep them around.

Thanks! Sorry for the delay


Fix add-script leading to bad icon for script classes

Fixes OTHER issues brought up during #21615.

Script classes that do not have an icon will now check their base scripts to see if they are script classes that DO have an editor icon defined (and use that, if it exists).
Script classes that do not have an icon nor any base script with an icon will now set _editor_icon to be their base class's official icon.

@akien-mga It's supposed to loop through the get_base_script results until it is empty (which is guaranteed), but I just realized that I'm not looping based on an independent variable, but rather on p_script's get_base_script which will always return the same value (yikes!). I'll fix it later today.

This is now fixed. I double-checked it with my own testing.
With this change, having
extends Node
class_name Base, "res://icon.png"

extends Base
class_name Derived

...and attaching Derived to the node will make the Base icon show up in the Inspector.
There is still the separate matter of having the scene dock's custom icons update immediately when you change the icon (or remove it entirely). Currently, when I change the icon, the old custom icon will remain unchanged (probably because it's only modified when adding or removing the script, not when editing the script). I'll work on that next.

I have a different approach that refactors the entire _editor_icon approach with script class icons and simplifies it all (avoids pretty much all of the _editor_icon-related bugs we've been having.


Simplify CI config

Test Python 3.8 beta, before it's October release

sudo: is no longer needed on Travis CI: https://blog.travis-ci.com/2018-11-19-required-linux-infrastructure-migration

Default to Trusty, explicitly use Xenial where needed

@hugovk python 3.8 was release... you can probably update the PR to use the GA version.

Codecov Report

Merging #1838 into develop will decrease coverage by 0.03%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           develop    #1838      +/-   ##
===========================================
- Coverage    92.54%   92.51%   -0.04%
===========================================
  Files           53       53
  Lines         9958     9958
===========================================
- Hits          9216     9213       -3
- Misses         742      745       +3

Impacted Files
Coverage Δ

botocore/credentials.py
98.5% <0%> (-0.35%)
:arrow_down:

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 18e8915...1be84bf. Read the comment docs.

Thanks, updated!

Python 3.8 was added in https://github.com/boto/botocore/pull/1922, so this PR now simply simplifies the CI config.


Roll Flutter Engine from debee7cece49 to 6e5a121ec778 (2 revisions)

https://github.com/flutter/engine/compare/debee7cece49...6e5a121ec778
2023-06-26<EMAIL_ADDRESS>Roll Skia from 6d89bc1acb7e to 46dcf29e5dfe (2 revisions) (flutter/engine#43197)
2023-06-26<EMAIL_ADDRESS>Implement union and intersection for DlRegion (flutter/engine#42620)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC jsimmons@google.com,rmistry<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Commit queue failed; closing this roll.


How to use javascript functions written in external file, in react-native application?

I am working on a project for Math-Tuition(React-native mobile app), and using wiris for setting up questions and answers. wiris sends those questions in MathML, I am converting MathML(equations, graphs etc) into JSX by using npm package react-native-mathjax.
My web team has developed same on web in vue.js, wiris also gives input felids variables to write answers, I need to do some middle calculation/re-format on those variables by using some javascript functions, Those functions are written in a external file in javascript and same file web developer(vue.js) using.
I was trying to inject js code in webview but unable to import that js functions file in react-native, Can someone suggest me better. Thanks in advance :)
I am sharing code of import js file. Code is even not giving error if I write wrong path of external js file.
`import React, { Component } from 'react';
import { Text, View, StyleSheet } from 'react-native';
import { WebView } from 'react-native-webview';
export default class sampleReactApp extends Component {
render() {
let HTML =

I am written inside source HTML

notify alert
                                    ;
let jsCode =             alert("Js");        ;
    return (
        <View style={{flex: 1}}>
            <WebView ref={ref => { this.webview = ref; }}
                source={{ html: HTML }}
                injectedJavaScript={jsCode}
                javaScriptEnabledAndroid={true}
                javaScriptEnabled={true}
            >
            </WebView>
        </View>
    );
}

}
`

@priyanka-Sadh have you solve this issue? I am facing the same problem on one project.

I need to do exactly the same thing. Ended up this works for me. The credit should belong to Doppio's post in https://stackoverflow.com/questions/33506908/react-native-webview-load-from-device-local-file-system. However, there are few more extra things I need to do:

set originWhitelist={['*']}
Inside XCode, i created a folder 'web' under root first,
In terminal copy all the necessary files to web folder,
In XCode to select "Add Files to ...", then add those files being added in step 3 (I don't know why w/o step 3, directly add files doesn't work)

source={{ html: HTML }, baseUrl='XXXXXX'}


Subutai cleanup should support termination of active command for the vlan being destroyed

SS might issue env destroy command for the environment being created at the moment.
From SS side all processes are terminated, however some already sent commands like network setup or container clone can be in progress by agent. Once agent receives cleanup command for a vlan, it must terminate all ongoing process for this vlan and then do the cleanup

@Dilshat Cleanup is CLI command, it does not have any knowledge about command in progress.
Moreover, even agent does not have any command queue. And even if this queue could be exist, we do not have any processing to compare commands, group them by some attribute and terminate before cleanup.
Adding all this features to agent will take weeks.
From other side, SS could just wait of finishing this commands, and do not send cleanup until get all responses. It looks much easy.

 If we wait it can be very long.

@Dilshat :D You cannot wait, we cannot implement it - dead end.
We need someone to help us. @tzununbekov @akarasulu can you help us?

We can figure out some other workaround on SS side later maybe. Lets postpone this then if you can not handle it

We will add cleanup of containers in case environment destruction was launched during environment creation

Added timeout 10 sec to wait for agent to complete cloning


Theorem: hemicompact + first countable implies weakly locally compact

Theorem: hemicompact + first countable implies weakly locally compact
Source: Henno Brandsma (https://math.stackexchange.com/users/4280/henno-brandsma), A first countable hemicompact space is locally compact, URL (version: 2018-09-16): https://math.stackexchange.com/q/2919068

Looks good to me, I've opened a PR in #153 for someone else to confirm before merging.


pin rocksdb version to compatible version 6

Checklist

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

@conda-forge-admin, please rerender

Alternatively, pull in the patch from https://patch-diff.githubusercontent.com/raw/twmht/python-rocksdb/pull/106.patch that fixes the API change in rocksdb

Closing as this seems to be already addressed by https://github.com/conda-forge/python-rocksdb-feedstock/commit/807937b85eed8984d826f398c2dfb3f97805b7a9. Feel free to reopen if it's not the case!


[$250] Android - Onboarding - Onboarding modal can be dismissed by tapping back button or swiping

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: 1.4.65-5
Reproducible in staging?: y
Reproducible in production?: new feature
Issue reported by: Applause - Internal team
Action Performed:

Open the app and log in with a new account
After the onboarding modal appears, swipe left (Pixel) or use the device back button

Expected Result:
The modal is still open and not dismissed
Actual Result:
The onboarding modal is dismissed
Workaround:
n/a
Platforms:

Which of our officially supported platforms is this issue occurring on?

[x] Android: Native
[ ] Android: mWeb Chrome
[ ] iOS: Native
[ ] iOS: mWeb Safari
[ ] MacOS: Chrome / Safari
[ ] MacOS: Desktop

Screenshots/Videos
Add any screenshot/video evidence
https://github.com/Expensify/App/assets/93399543/71c5af89-d4c1-4efc-981f-0127389df246
View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~013838a59a378265e1
Upwork Job ID:<PHONE_NUMBER>987118080
Last Price Increase: 2024-05-08

We think that this bug might be related to #vip-vsb

@zanyrenney FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors.

trying to figure out if this is desired.

@dubielzyk-expensify can you clarify?

Great find. You're not supposed to be able to dismiss the modal so this is a bug 👍

Thanks @dubielzyk-expensify ⭐

adding the external label/

@zanyrenney
so if user does not complete the onboarding, user should be stuck in onboarding modal?
For now, I am working on https://github.com/Expensify/App/issues/40876#issuecomment-2084638160 which is blocking onboarding modal when user has completed it and it seems like this is vice-versa.
If so, I will submit the proposal.

As per @dubielzyk-expensify above, you're not supposed to be able to dismiss this. So you're correct they should be "stuck" in onboarding modal I think.
@dubielzyk-expensify that does seem a bit restrictive, so just checking that is correct?

bump @dubielzyk-expensify please could you let me know?

@dubielzyk-expensify that does seem a bit restrictive, so just checking that is correct?

Yes that is correct. There's a whole internal thread about it, but basically boils down to this is key information for users to have a good experience on Expensify. This is the only place we use this pattern and it's not considered uncommon outside of Expensify in terms of modal behavior.

Yes, that is correct. Please do submit your proposal for this here? We'd love to have you work on it! Thanks
cc @sobitneupane

Proposal
Please re-state the problem that we are trying to solve in this issue.
Block onboarding modal dismiss on android by back or swipe
What is the root cause of that problem?
All expensify modals can be dismissed by back button.
What changes do you think we should make in order to solve the problem?
Need to block native back action for android. Similar to https://github.com/Expensify/App/blob/main/src/pages/Search/useCustomBackHandler/index.android.ts
What alternative solutions did you explore? (Optional)
n/a

@sobitneupane please review the proposal

Thanks for your proposal @skyweb331
Can you please elaborate your proposal.

@sobitneupane proposal updated.

Thanks for the update @skyweb331
Your proposal will handle the hardware back button press but will it also handle swipe left gesture? Should we disable the swipe gesture for the Onboarding Screen? Can you please test proposal both on back button and swipe left gesture?

@sobitneupane
You are right. My proposal is to block hardware back button, not swiping.
To block swiping, need to add gestureEnabled: false for Stack.Screen. Will update proposal if you want it.

Thanks for the update @skyweb331

Will update proposal if you want it.

Yes, please.

New contributors are limited to working on one job at a time, however experienced contributors may work on numerous jobs simultaneously.

As per the contributing guidelines, new contributor can only work on one issue at a time.
Please let me know if you are assigned to a closed issue or an open issue with the Awaiting payment label.

@sobitneupane Proposal updated as you suggested.
And my assigned Issue is https://github.com/Expensify/App/issues/40876 and its PR is already approved. Not sure if I have to wait until it is deployed...

@skyweb331 You should be assigned to a closed issue or an open issue with the Awaiting payment label. Please let me know once the PR is deployed to production.

OK. I will wait for my PR is merged. Meanwhile, I will work on this issue and prepare the PR...

adding @skyweb331 to the issue

@MelvinBot I am working on this and will submit the PR soon.

I will submit the PR today. Working on preparing QA videos.

making daily to action tomorrow

@skyweb331 looks like you never accepted the job so can't pay this out.

Job now closed (as been almost 2 months) resending another offer

cannot find a "skyweb" on UW:

@zanyrenney please send an offer to this: https://www.upwork.com/freelancers/~019e5171478d2a22f7

not overdue - waiting on @skyweb331 to accept

Payment Summary
Upwork Job
ROLE: @skyweb331 paid $250 via Upwork (LINK)
Reviewer: @sobitneupane owed $250 via NewDot - please request!

$250 approved for @sobitneupane


libMajaChain.so.3.2

I had problem while running MAJA 3.2.2, it gave the following error in the log file S2A_MSIL1C_20190211T111201_N0207_R137_T30STB_20190211T114747.SAFE.log
/opt/MAJA/bin/maja-processing-3.2.2: error while loading shared libraries: libMajaChain.so.3.2: cannot open shared object file: No such file or directory
We tried to resolve the problem by setting the environment variable LD_LIBRARY_PATH to /opt/MAJA/lib where the library libMajaChain.so.3.2 is stored.

Hi, sorry for the issue.
Did "setting the environment variable LD_LIBRARY_PATH to /opt/MAJA/lib where the library libMajaChain.so.3.2 is stored" worked ?
If not, please send the log, and describe the Linux flavour and version you are using.
Best regards
Olivier

When we set the environment variable, it show the path to the concerned library.
The output of the execution of "python start_maja.py -f folders.txt -c GIPP_MAJA_3.1.2_TM_CAMS -t 30STB -s morocco_centre -d 20190211 -e 20190222 -i** "is as follow:
2019-03-11 14:32:34,574 - Start-Maja - INFO - processing /mnt/archive/dwn_def/s2/default/morocco_centre/S2A_MSIL1C_20190218T110111_N0207_R094_T30STB_20190218T130332.SAFE in Init Mode
2019-03-11 14:32:34,574 - Start-Maja - INFO - Init mode goes with suboptimal performances
2019-03-11 14:32:34,575 - Start-Maja - INFO - MAJA logfile: /home/smiej/MAJA/L2Aproduct/morocco_centre/30STB/GIPP_MAJA_3.1.2_TM_CAMS//S2A_MSIL1C_20190218T110111_N0207_R094_T30STB_20190218T130332.SAFE.log
2019-03-11 14:32:34,575 - Start-Maja - INFO - #################################
2019-03-11 14:32:34,590 - Start-Maja - INFO - => processing date 20190221
2019-03-11 14:32:34,593 - Start-Maja - INFO - Processing in init mode
2019-03-11 14:32:34,598 - Start-Maja - INFO - Linking /home/smiej/MAJA/CAMS/S2__TEST_EXO_CAMS_20190221T030000_20190308T143018.DBL.DIR in /home/smiej/MAJA/work/morocco_centre/30STB/GIPP_MAJA_3.1.2_TM_CAMS//in//S2__TEST_EXO_CAMS_20190221T030000_20190308T143018.DBL.DIR
2019-03-11 14:32:34,598 - Start-Maja - INFO - Linking /home/smiej/MAJA/CAMS/S2__TEST_EXO_CAMS_20190221T150000_20190308T165712.DBL.DIR in /home/smiej/MAJA/work/morocco_centre/30STB/GIPP_MAJA_3.1.2_TM_CAMS//in//S2__TEST_EXO_CAMS_20190221T150000_20190308T165712.DBL.DIR
2019-03-11 14:32:34,598 - Start-Maja - INFO - Linking /home/smiej/MAJA/CAMS/S2__TEST_EXO_CAMS_20190222T030000_20190308T171557.DBL.DIR in /home/smiej/MAJA/work/morocco_centre/30STB/GIPP_MAJA_3.1.2_TM_CAMS//in//S2__TEST_EXO_CAMS_20190222T030000_20190308T171557.DBL.DIR
2019-03-11 14:32:34,599 - Start-Maja - INFO - Linking /home/smiej/MAJA/CAMS/S2__TEST_EXO_CAMS_20190222T150000_20190308T171938.DBL.DIR in /home/smiej/MAJA/work/morocco_centre/30STB/GIPP_MAJA_3.1.2_TM_CAMS//in//S2__TEST_EXO_CAMS_20190222T150000_20190308T171938.DBL.DIR
2019-03-11 14:32:34,599 - Start-Maja - INFO - Linking /home/smiej/MAJA/CAMS/S2__TEST_EXO_CAMS_20190221T030000_20190308T143018.HDR in /home/smiej/MAJA/work/morocco_centre/30STB/GIPP_MAJA_3.1.2_TM_CAMS//in//S2__TEST_EXO_CAMS_20190221T030000_20190308T143018.HDR
2019-03-11 14:32:34,599 - Start-Maja - INFO - Linking /home/smiej/MAJA/CAMS/S2__TEST_EXO_CAMS_20190221T150000_20190308T165712.HDR in /home/smiej/MAJA/work/morocco_centre/30STB/GIPP_MAJA_3.1.2_TM_CAMS//in//S2__TEST_EXO_CAMS_20190221T150000_20190308T165712.HDR
2019-03-11 14:32:34,599 - Start-Maja - INFO - Linking /home/smiej/MAJA/CAMS/S2__TEST_EXO_CAMS_20190222T030000_20190308T171557.HDR in /home/smiej/MAJA/work/morocco_centre/30STB/GIPP_MAJA_3.1.2_TM_CAMS//in//S2__TEST_EXO_CAMS_20190222T030000_20190308T171557.HDR
2019-03-11 14:32:34,599 - Start-Maja - INFO - Linking /home/smiej/MAJA/CAMS/S2__TEST_EXO_CAMS_20190222T150000_20190308T171938.HDR in /home/smiej/MAJA/work/morocco_centre/30STB/GIPP_MAJA_3.1.2_TM_CAMS//in//S2__TEST_EXO_CAMS_20190222T150000_20190308T171938.HDR
2019-03-11 14:32:34,599 - Start-Maja - INFO - #################################
2019-03-11 14:32:34,599 - Start-Maja - INFO - #################################
2019-03-11 14:32:34,599 - Start-Maja - INFO - processing /mnt/archive/dwn_def/s2/default/morocco_centre/S2A_MSIL1C_20190221T111101_N0207_R137_T30STB_20190221T113849.SAFE in Init Mode
2019-03-11 14:32:34,599 - Start-Maja - INFO - Init mode goes with suboptimal performances
2019-03-11 14:32:34,599 - Start-Maja - INFO - MAJA logfile: /home/smiej/MAJA/L2Aproduct/morocco_centre/30STB/GIPP_MAJA_3.1.2_TM_CAMS//S2A_MSIL1C_20190221T111101_N0207_R137_
The log file still contain the same error, only one line: /opt/MAJA/bin/maja-processing-3.2.2: error while loading shared libraries: libMajaChain.so.3.2: cannot open shared object file: No such file or directory
Concerning Linux information :
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
Virtual  machine with CPU - 12 Core and 16GB RAM

Thanks, so the installation of MAJA is still unsuccessful in your case.
We did not test MAJA on a virtual machine.
I passed the info to the colleague in charge,   @petket-5 , who should get in touch.
Olivier

we resolved the problem of  libMajaChain.so.3.2 by creating a file in etc/ld.so-conf.d, that contain the path to the library (/opt/MAJA/lib), but we still have another problem  reported on the following log file :
2019-03-11T15:09:26.633704 localhost.localdomain maja-processing-3.2.2 3.2 [000000022421] [I] MAJA Software Version : 3.2.2
2019-03-11T15:09:26.634598 localhost.localdomain maja-processing-3.2.2 3.2 [000000022421] [E] vns::Data::ERROR: : Error while copying the filename <OUT_DIR/share/config/Templates/PMC_LxREPT.EEF> to </home/smiej/MAJA/L2Aproduct/morocco_centre/30STB/GIPP_MAJA_3.1.2_TM_CAMS//PMC_LxREPT.EEF> !  [vnsSystem.cxx:CopyFile:406]
2019-03-11T15:09:26.634923 localhost.localdomain maja-processing-3.2.2 3.2 [000000022421] [E] ******************************************************************************************************  [vnsMajaMainProcessor.cxx:main:73]
2019-03-11T15:09:26.634974 localhost.localdomain maja-processing-3.2.2 3.2 [000000022421] [E] Application handler initialization: vns::Data::ERROR: : Error while copying the filename <OUT_DIR/share/config/Templates/PMC_LxREPT.EEF> to </home/smiej/MAJA/L2Aproduct/morocco_centre/30STB/GIPP_MAJA_3.1.2_TM_CAMS//PMC_LxREPT.EEF> ! [vnsSystem.cxx:406] [MAJA Data Exception]  [vnsMajaMainProcessor.cxx:main:73]
2019-03-11T15:09:26.634999 localhost.localdomain maja-processing-3.2.2 3.2 [000000022421] [E]   [vnsMajaMainProcessor.cxx:main:73]
2019-03-11T15:09:26.635012 localhost.localdomain maja-processing-3.2.2 3.2 [000000022421] [E] ******************************************************************************************************  [vnsMajaMainProcessor.cxx:main:73]

Hi,
Good news that you resolved the first error.
What is OUT_DIR in the log you provided? What are the contents of your folders.txt?
Kind regards,
Peter

Sorry i didn't mention that the OUT_DIR is not provided in the log file

Hi,
I was able to reproduce the error on a CentOS VM. It seems that you didn't chmod the folder correctly: You probably installed maja as root (cause /opt/ is not in the default user-accessible space), but then forgot to give access rights to all users:
To solve it, please execute
sudo chmod -R 777 /opt/MAJA/
and then try to run maja again.
Kind regards,
Peter

Thank you for your response.
I executed the command to give right access to all users, and i ran start_maja as root, but i still have the same error on the log file.

Hi,
We finally overcome the error, we shouldn't install maja on opt folder.
So i still have an error, provided on the log:
S2A_MSIL1C_20190211T111201_N0207_R137_T30STB_20190211T114747.SAFE.log

Hi, thanks for the news and feedback.
Several preliminary remarks :
1- we found a bug in MAJA 3.2 with CAMS option activated. As a result (as mentioned recently in the readme file) we do not recommend to activate the CAMS option with the current version, even if the bug only has consequences in some particular cases.
2 - tile 30STB in Morocco is already processed by Theia (without the CAMS option which was maybe the reason why you wanted to use MAJA). Data avalable from https://theia.cnes.fr
Now back to your issue.
MAJA fails with the following command :
tar -xf /home/smiej/MAJA_folder/work/morocco_centre/30STB/GIPP_MAJA_3.1.2_TM_CAMS/in/S2A_TEST_GIP_L2TOCR_L_BLACKCAR_50001_00000000_99999999.DBL
Could you please check the presence of S2A_TEST_GIP_L2TOCR_L_BLACKCAR_50001_00000000_99999999.DBLfile in the GIPP folder you provided as input ?
best regards
Olivier

yes you're right, i checked the file in the considered folder, it doesn't exist, so i downloaded the necessary file, and  I ran  maja again.
I'll let you know about the news.

The L2AVALD are generated, but i still have one problem, as mentioned
S2A_MSIL1C_20190221T111101_N0207_R137_T30STB_20190221T113849.SAFE.log
on the log file

Oups, I know how to correct this one. Could you download again the GIPP repository from http://tully.ups-tlse.fr/olivier/gipp_maja/tree/master/GIPP_MAJA_3.1.2_TM_CAMS (I guess it is the one you used).
Sorry for the difficulties, three of you are trying this version of Start-Maja and MAJA 3.2.2, in parallel, and you seem to be the first ones (or the first to have issues)
Have a nice week-end
Olivier

Hi,
I downloaded the updated GIPP, and it finally works fine for the tile 30STB. the L2VALD and QCK are generated. However when i tried with another tile 29 SNR, it gives the following error :
File "start_maja.py", line 621, in
start_maja(folder_file, context, site, tile, orbit, nb_backward, options, debug_mode)
File "start_maja.py", line 424, in start_maja
add_parameter_files(repGipp, repWork + "/in/", tile, repCams)
File "start_maja.py", line 160, in add_parameter_files
os.symlink(fic, repWorkIn + '/' + base)
OSError: [Errno 2] No such file or directory

All right, so this issue was solved, and process worked for one tile, but you get another issue. which is the same as  https://github.com/CNES/Start-MAJA/issues/2
This issue has not been fully solved, but I have updated start_maja to catch this exception. Could you please update and tell me if it works better ?
Thanks,
Olivier

Thank you for your response, i suppose that the error mentionned in the other issue is different from what i am getting. In my case it can't create in directory .

OK, you are right, i did not pay enough attention.
Could you still update so that I have the line numbers right,  and also could you run the same command with -v option (verbose mode), and send me the 20 last lines before it fails ?

hi,
I was able to overcome the problem, maja works even with another tile, i tested both 30STB and 29SNR.
I have one more question, does maja work on landsat8 products.

Hi Good news !
Could you share the resolution, for other users facing the same issue one day ?
Could you open another issue with your new question, for the same reason ?
I will answer, I swear ;)
Olivier

i updated start_maja as you suggested, and it works for the other tile. ok I will open a new issue right away


Delete kitchen sink project

Kitchen sink project was moved to the augury-examples repo, this issues serves as a reminder to remove dead code from the augury repo.

After discussing with Steven, he would like to keep kitchen sink around for his use, we don't need to make it public through the website that's all.
I also will copy over the Augury linting rule that not also need to be pulling in.

Added default linting rule generated by tslint and removed rule for quote style. This fix all the error Steven reported he was seeing in the new repo.

:shipit:


add return value on lock and unlock

Coverage decreased (-0.07%) to 84.116% when pulling afdaa58c39b47fd49072f982dc66ca53e40cf8fc on xyl_modify_locker_interface into 07b2904ce27a51d5b9519ed50698d9c2c62d5877 on master.

Coverage increased (+0.7%) to 84.879% when pulling 9de24969f3ce0e62fc8d22642e90d119b962ed77 on xyl_modify_locker_interface into 07b2904ce27a51d5b9519ed50698d9c2c62d5877 on master.

Coverage increased (+0.7%) to 84.879% when pulling 100e48ac18729f744f3f94a4489ba7f1673e91a8 on xyl_modify_locker_interface into 07b2904ce27a51d5b9519ed50698d9c2c62d5877 on master.


Remove SQLAlchemy dialect

About
Remove SQLAlchemy dialect. It lives in sqlalchemy-cratedb now.
Details
This branch will be used for testing purposes right away, and must only be merged when sqlalchemy-cratedb is ready, i.e. when it is considered to be good enough to not cause too much friction for downstream users.
References

https://github.com/crate/roadmap/issues/85

/cc @karynzv, @hlcianfagna, @hammerhead, @tomach, @proddata, @surister, @seut, @simonprickett

[...] must only be merged when sqlalchemy-cratedb is ready, i.e. when it is considered to be good enough to not cause too much friction for downstream users.

sqlalchemy-cratedb has been slotted into a few downstream projects already, and CI runs on them are succeeding across the board.

The amount of traffic on that dependency is 2k/month in June 2024 already, so we are considering it stable enough for a switchover, paired with corresponding instructions how to migrate from crate.client.


Add local mode in ray

Description
Adds local mode in ray

Related Issues

Checklist

[ ] Is this code covered by new or existing unit tests or integration tests?
[ ] Did you run make unit-testing and make integration-testing successfully?
[ ] Do new classes, functions, methods and parameters all have docstrings?
[ ] Were existing docstrings updated, if necessary?
[ ] Was external documentation updated, if necessary?

Additional Notes or Comments

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (34830a7) 80.33% compared to head (f21c29e) 68.34%.
Report is 1336 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1612       +/-   ##
===========================================
- Coverage   80.33%   68.34%   -12.00%
===========================================
  Files          95      111       +16
  Lines        6602     7886     +1284
===========================================
+ Hits         5304     5390       +86
- Misses       1298     2496     +1198

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


How to update dependent resources with terraform in one step?

I am currently using terraform to create and manage resources in aws. In my application there are two environments dev and prod. First I test whatever changes are required in dev and if everything is fine then I deploy to prod. The delivery is release based.
One scenario I found difficult to manage at the time of prod deployment with terraform. Imagine there is an aws resource A which has a reference of B. Now if I need to update any property of B and for that if terraform needs to delete the B resource and re-create that then I need to do the deployment in multiple steps. First I need to remove the B reference from A then update the property of B and then add the B reference to A again.
This is not a problem at the time of deployment in dev because I can execute terraform apply multiple times in dev but on the release day at the time of prod deployment I need to do the deployment in one step.
As an real example of the issue, suppose I have an auto scaling group with launch configuration and I have the below code in my repo already.
data "aws_subnet" "main_compute" {
  id = var.id
}

data "aws_ami" "ubuntu" {
  most_recent = true
}

resource "aws_launch_configuration" "main_compute" {
  name_prefix   = "terraproj1-dev-maincomputeconfig"
  instance_type = "t3.micro"
  image_id      = data.aws_ami.ubuntu.id
}

resource "aws_autoscaling_group" "main_compute" {
  name                      = "terraproj1-dev-maincomputegroup"
  max_size                  = 1
  min_size                  = 0
  health_check_type         = "EC2"
  default_cooldown          = 300
  default_instance_warmup   = 0
  health_check_grace_period = 0
  max_instance_lifetime     = 0
  protect_from_scale_in     = false
  capacity_rebalance        = false
  launch_configuration      = aws_launch_configuration.main_compute.name
  vpc_zone_identifier       = [data.aws_subnet.main_compute.id]
}

Now if I want to change the instance_type in the launch config to t2.micro then the terraform plan works fine but it fails at the time of terraform apply.
Cannot delete launch configuration because it is attached to AutoScalingGroup

Now to solve this in the first step I need to create a new launch config with t2.micro and attach that with the autoscaling group and execute terraform apply. Once done in the second step I need to delete the launch config with t3.micro in it and execute terraform apply again. So it is a two steps process.
How to do the deployment in this case in one step in prod with terraform?

The solution is, we need to use create_before_destroy = true in the resource on which other resources are dependent. https://developer.hashicorp.com/terraform/language/meta-arguments/lifecycle


Specified credentials_source as a required option for backup destination

Thanks for the PR! This reminded me that the spec should be changed in a slightly different way, so f80997af21311c8a855f0fb5b6b3c1a3168cb868 includes this change. Thanks again for mentioning it.
Please feel free to still sign the CLA for your next PR... then dreddbot won't feel quite so concerned about you next time :)


Reading a rosbag message with C++

Required Info

Camera Model
D435i

Firmware Version
<IP_ADDRESS>

Operating System & Version
Win (10)

Platform
PC

SDK Version
legacy / 2.34.0

Language
C++

Segment
Robot

Issue Description
Hello:
I'm finishing up a big project in C++ and the only thing left is to acquire the frames per second at which the different streams were recorded. I'm trying to get it directly using rosbag, but the way in which this message is recorded and the format for it has made it quite complicated due to dependencies and other compiler errors I haven't been able to overcome.
In python, the solution is very simple, I just used the following to get the fps of both sensors I'm interested in:
import rosbag
bag = rosbag.Bag(path)
fps_s0 = next(bag.read_messages(topics=['/device_0/sensor_0/Depth_0/info'])).message.fps
fps_s1 = next(bag.read_messages(topics=['/device_0/sensor_1/Color_0/info'])).message.fps

But my project is in C++, and it's been a nightmare to get this simple message of the bag file.
print_helpers.h and rosbag_content.h somehow are not found by my project, even after adding the right dependencies and even copying the rs-rosbag-inspector project as a template.
After scratching the library, I came up with this, but does not work still. I have currently a lot of LNK2019 errors referring to the .obj file with the name of my project, even tough I added all additional include directories and linker input of the rs-rosbag-inspector
#include "rosbag/bag.h"
#include "rosbag/view.h"
#include "../../third-party/realsense-file/rosbag/msgs/realsense_msgs/StreamInfo.h"

std::string depth_fps;
std::string color_fps;

template <typename ROS_TYPE>
inline typename ROS_TYPE::ConstPtr try_instantiate(const rosbag::MessageInstance& m)
{
    if (m.isType<ROS_TYPE>())
        return m.instantiate<ROS_TYPE>();
    return nullptr;
}

void main()
{
    rosbag::Bag bag;
    bag.open("Path to bag file", rosbag::bagmode::Read);

    std::vector<std::string> topics;
    topics.push_back(std::string("/device_0/sensor_0/Depth_0/info"));
    topics.push_back(std::string("/device_0/sensor_1/Color_0/info"));

    rosbag::View view(bag, rosbag::TopicQuery(topics));

    for (rosbag::MessageInstance const m : view)
    {
        if (auto data = try_instantiate<realsense_msgs::StreamInfo>(m))
        {
            auto stream_info = data;
            if (m.getTopic() == ("/device_0/sensor_0/Depth_0/info"))
            {
                depth_fps = stream_info->fps;
            }
            else
            {
                color_fps = stream_info->fps;
            }
        }

    }
}

Any help would be very appreciated, I wasn't expecting getting the messages from the bag file to be so complicated.

Hi @JuanMiguelGV  If you are compiling your C++ project in Visual Studio on Windows and are experiencing LNK2019 errors then the best way to resolve these may be to set up the RealSense linkages in your project using three .props property sheet files provided by the RealSense SDK.  A RealSense user shared a starter tutorial project for doing so at the link below.
https://github.com/EduardoWang/visual-studio-real-sense-record-and-playback-project

Hi @MartyG-RealSense, thanks for your response. I added them to the project after it was created, I tried again just to double check, but there was no effect. Any ideas on how to retrieve this info I need? I rather get it with rosbag instead of counting the exact number of frames and dividing by the time.
Here is a screenshot  of the errors I'm getting

Counting frames and dividing by time is an inaccurate way to calculate FPS.  It con be obtained from a camera metadata parameter called ACTUAL_FPS.  Metadata should be recorded into a bag along with the streams.
https://github.com/IntelRealSense/librealsense/issues/1624#issuecomment-389085387 has an example of a C++ script that prints the value of a metadata parameter with an std::cout command.
 frameset = pipe.wait_for_frames();
 std::cout << "meta exposure = " << frameset.get_depth_frame().get_frame_metadata(rs2_frame_metadata_value::RS2_FRAME_METADATA_ACTUAL_EXPOSURE) << std::endl;

To access the REAL_FPS metadata parameter, you could change ACTUAL_EXPOSURE to ACTUAL_FPS.
frameset.get_depth_frame().get_frame_metadata(rs2_frame_metadata_value::RS2_FRAME_METADATA_ACTUAL_FPS) << std::endl;

Thanks for the alternative, it was quite useful!
I still went over it again, and finally was able to implement my code, being very cautious with the project configuration. For further reference, if anyone wants to use the print_helpers.h, rosbag_content.h or the files_container.h to read the bag files without a user interface as the one from rs-rosbag-inspector:
Add these to Additional Include Directories:
\librealsense-X.XX.X\tools\rosbag-inspector
\librealsense-X.XX.X\third-party\realsense-file\rosbag\console_bridge\include
\librealsense-X.XX.X\third-party\realsense-file\rosbag\cpp_common\include
\librealsense-X.XX.X\third-party\realsense-file\rosbag\rosbag_storage\include
\librealsense-X.XX.X\third-party\realsense-file\rosbag\roscpp_serialization\include
\librealsense-X.XX.X\third-party\realsense-file\rosbag\rostime\include
\librealsense-X.XX.X\third-party\realsense-file\rosbag\roscpp_traits\include
\librealsense-X.XX.X\third-party\realsense-file\rosbag\roslz4\include
\librealsense-X.XX.X\third-party\realsense-file\rosbag\msgs
\librealsense-X.XX.X\third-party\realsense-file\boost
\librealsense-X.XX.X\third-party\realsense-file\lz4\lib

Add this library to the Linker → Input → Additional dependencies:
librealsense-X.XX.X\build\third-party\realsense-file\Release\realsense-file.lib (for debug: \Debug\realsense-filed.lib)
And finally, make sure your C/C++ → Code generation → Runtime Library is set in /MT for release or /MTd for debug. (Using /MD or MDd won't allow the project to compile).
I also had to make some changes in a couple of the SDK files, as my project uses the C++17 standard, so I strongly advise staying with the C++14 when using the SDK.

It's great to hear that you were successful, @JuanMiguelGV - thanks very much for the update and for sharing your detailed solution!


Peer-to-peer code review

Hey @AliShahSafdari
your project looks fantastic, keep working on it to make it perfect!

hi @clin2on3mun I did.


Typescript is work, but Intellisense is sacrificed

Hello, is there anyone who knows how to write typescripts on svelte-vscode and not break the intellisense? I succeeded in using typescripts in the svelte file, and I was able to see them in the vscode.....
But Intellisense has been sacrificed,
Even a simple typescript syntax does not suggested. It's really good that error messages don't appear, and it's good that type scripts are interpreted, but can't we use Intellisense as well?

More precisely, objects defined in the code internally appear to be highlighted, but objects in the module to be imported or basic types are not highlighted.

is there any updates on this?


Microsoft sync account automatically logout

Does this issue occur when all extensions are disabled?: Yes

VS Code Version:1.69.0-insider
OS Version:Windows_NT x64 10.0.22000

Steps to Reproduce:
1.To sync setting sign in with Microsoft account. And make a successfully sign in.
2.Restart vscode or open new vscode window, Microsoft account is sign out.
[Info  - 09:28:05.134] Reading sessions from secret storage...
[Error  - 09:28:05.180] Key was not found in SecretStorage.
[Info  - 09:28:05.182] Got 0 stored sessions
[Info  - 09:28:05.190] Getting sessions for the following scopes: email offline_access openid profile
[Trace  - 09:28:05.190] No session found with idtoken scopes... Using fallback scope list of: email offline_access openid profile
[Info  - 09:28:05.190] Got 0 sessions for scopes: email offline_access openid profile
[Info  - 09:28:06.680] Getting sessions for all scopes...
[Info  - 09:28:06.680] Got 0 sessions for all scopes...
[Info  - 09:28:43.308] Getting sessions for all scopes...
[Info  - 09:28:43.308] Got 0 sessions for all scopes...
[Info  - 09:28:44.7] Getting sessions for the following scopes: email offline_access openid profile
[Trace  - 09:28:44.7] No session found with idtoken scopes... Using fallback scope list of: email offline_access openid profile
[Info  - 09:28:44.7] Got 0 sessions for scopes: email offline_access openid profile
[Info  - 09:28:45.352] Logging in for the following scopes: email offline_access openid profile
[Info  - 09:28:48.100] Exchanging login code for token for scopes: email offline_access openid profile
[Info  - 09:28:49.873] Exchanging login code for token (for scopes: email offline_access openid profile) succeeded!
[Info  - 09:28:49.873] Setting token for scopes: email offline_access openid profile
[Info  - 09:28:49.874] Login successful for scopes: email offline_access openid profile
[Info  - 09:28:49.874] Token available from cache (for scopes email offline_access openid profile), expires in 5260999 milliseconds
[Info  - 09:28:49.876] Getting sessions for the following scopes: email offline_access openid profile
[Info  - 09:28:49.876] Got 1 sessions for scopes: email offline_access openid profile
[Info  - 09:28:49.876] Token available from cache (for scopes email offline_access openid profile), expires in 5260997 milliseconds
[Info  - 09:28:49.876] Getting sessions for the following scopes: email offline_access openid profile
[Info  - 09:28:49.876] Got 1 sessions for scopes: email offline_access openid profile
[Info  - 09:28:49.876] Token available from cache (for scopes email offline_access openid profile), expires in 5260997 milliseconds
[Error  - 09:28:50.557] Error: �ڴ���Դ���㣬�޷����������

Restart vscode or open new vscode window output
[Info  - 09:28:05.134] Reading sessions from secret storage...
[Error  - 09:28:05.180] Key was not found in SecretStorage.
[Info  - 09:28:05.182] Got 0 stored sessions
[Info  - 09:28:05.190] Getting sessions for the following scopes: email offline_access openid profile
[Trace  - 09:28:05.190] No session found with idtoken scopes... Using fallback scope list of: email offline_access openid profile
[Info  - 09:28:05.190] Got 0 sessions for scopes: email offline_access openid profile
[Info  - 09:28:06.680] Getting sessions for all scopes...
[Info  - 09:28:06.680] Got 0 sessions for all scopes...

@wu-pan do you hit this issue always with the 1.69 insiders build? Or is it intermittent

@wu-pan do you hit this issue always with the 1.69 insiders build? Or is it intermittent
@TylerLeonhardt
This happened every time in the 1.68 and 1.69 insiders versions, and it was normal to set up synchronization without restarting vscode or creating a new window.

I reinstalled vscode and it didn't work. I reinstalled the system. Problem solved. No further information can be provided.

I reinstalled vscode and it didn't work. I reinstalled the system. Problem solved. No further information can be provided.

Does this issue occur when all extensions are disabled?: Yes
* VS Code Version:1.69.0-insider

* OS Version:Windows_NT x64 10.0.22000

Steps to Reproduce:
1.To sync setting sign in with Microsoft account. And make a successfully sign in. 2.Restart vscode or open new vscode window, Microsoft account is sign out.
[Info  - 09:28:05.134] Reading sessions from secret storage...
[Error  - 09:28:05.180] Key was not found in SecretStorage.
[Info  - 09:28:05.182] Got 0 stored sessions
[Info  - 09:28:05.190] Getting sessions for the following scopes: email offline_access openid profile
[Trace  - 09:28:05.190] No session found with idtoken scopes... Using fallback scope list of: email offline_access openid profile
[Info  - 09:28:05.190] Got 0 sessions for scopes: email offline_access openid profile
[Info  - 09:28:06.680] Getting sessions for all scopes...
[Info  - 09:28:06.680] Got 0 sessions for all scopes...
[Info  - 09:28:43.308] Getting sessions for all scopes...
[Info  - 09:28:43.308] Got 0 sessions for all scopes...
[Info  - 09:28:44.7] Getting sessions for the following scopes: email offline_access openid profile
[Trace  - 09:28:44.7] No session found with idtoken scopes... Using fallback scope list of: email offline_access openid profile
[Info  - 09:28:44.7] Got 0 sessions for scopes: email offline_access openid profile
[Info  - 09:28:45.352] Logging in for the following scopes: email offline_access openid profile
[Info  - 09:28:48.100] Exchanging login code for token for scopes: email offline_access openid profile
[Info  - 09:28:49.873] Exchanging login code for token (for scopes: email offline_access openid profile) succeeded!
[Info  - 09:28:49.873] Setting token for scopes: email offline_access openid profile
[Info  - 09:28:49.874] Login successful for scopes: email offline_access openid profile
[Info  - 09:28:49.874] Token available from cache (for scopes email offline_access openid profile), expires in 5260999 milliseconds
[Info  - 09:28:49.876] Getting sessions for the following scopes: email offline_access openid profile
[Info  - 09:28:49.876] Got 1 sessions for scopes: email offline_access openid profile
[Info  - 09:28:49.876] Token available from cache (for scopes email offline_access openid profile), expires in 5260997 milliseconds
[Info  - 09:28:49.876] Getting sessions for the following scopes: email offline_access openid profile
[Info  - 09:28:49.876] Got 1 sessions for scopes: email offline_access openid profile
[Info  - 09:28:49.876] Token available from cache (for scopes email offline_access openid profile), expires in 5260997 milliseconds
[Error  - 09:28:50.557] Error: �ڴ���Դ���㣬�޷����������

Restart vscode or open new vscode window output
[Info  - 09:28:05.134] Reading sessions from secret storage...
[Error  - 09:28:05.180] Key was not found in SecretStorage.
[Info  - 09:28:05.182] Got 0 stored sessions
[Info  - 09:28:05.190] Getting sessions for the following scopes: email offline_access openid profile
[Trace  - 09:28:05.190] No session found with idtoken scopes... Using fallback scope list of: email offline_access openid profile
[Info  - 09:28:05.190] Got 0 sessions for scopes: email offline_access openid profile
[Info  - 09:28:06.680] Getting sessions for all scopes...
[Info  - 09:28:06.680] Got 0 sessions for all scopes...

I'm getting the exact logs, including the undisplayable Error message😭. I can sign in. But it will be out of sync after some time, or after vscode is restarted. Anything I can help?

logs of signing in:
[Info  - 07:26:09.311] Reading sessions from secret storage...
[Error  - 07:26:09.405] Key was not found in SecretStorage.
[Info  - 07:26:09.405] Got 0 stored sessions
[Info  - 07:26:09.412] Getting sessions for the following scopes: email offline_access openid profile
[Trace  - 07:26:09.412] No session found with idtoken scopes... Using fallback scope list of: email offline_access openid profile
[Info  - 07:26:09.412] Got 0 sessions for scopes: email offline_access openid profile
[Info  - 07:28:46.373] Getting sessions for all scopes...
[Info  - 07:28:46.373] Got 0 sessions for all scopes...
[Info  - 07:31:11.999] Getting sessions for all scopes...
[Info  - 07:31:11.999] Got 0 sessions for all scopes...
[Info  - 07:31:14.101] Getting sessions for the following scopes: email offline_access openid profile
[Trace  - 07:31:14.101] No session found with idtoken scopes... Using fallback scope list of: email offline_access openid profile
[Info  - 07:31:14.101] Got 0 sessions for scopes: email offline_access openid profile
[Info  - 07:31:15.589] Logging in for the following scopes: email offline_access openid profile
[Info  - 07:31:18.346] Exchanging login code for token for scopes: email offline_access openid profile
[Info  - 07:31:19.68] Exchanging login code for token (for scopes: email offline_access openid profile) succeeded!
[Info  - 07:31:19.68] Setting token for scopes: email offline_access openid profile
[Info  - 07:31:19.69] Login successful for scopes: email offline_access openid profile
[Info  - 07:31:19.69] Token available from cache (for scopes email offline_access openid profile), expires in 3943999 milliseconds
[Info  - 07:31:19.72] Getting sessions for the following scopes: email offline_access openid profile
[Info  - 07:31:19.72] Got 1 sessions for scopes: email offline_access openid profile
[Info  - 07:31:19.72] Token available from cache (for scopes email offline_access openid profile), expires in 3943996 milliseconds
[Info  - 07:31:19.72] Getting sessions for the following scopes: email offline_access openid profile
[Info  - 07:31:19.72] Got 1 sessions for scopes: email offline_access openid profile
[Info  - 07:31:19.72] Token available from cache (for scopes email offline_access openid profile), expires in 3943996 milliseconds
[Error  - 07:31:19.753] Error: �ڴ���Դ���㣬�޷����������

logs after vscode restarted:
[Info  - 07:32:00.474] Reading sessions from secret storage...
[Error  - 07:32:00.581] Key was not found in SecretStorage.
[Info  - 07:32:00.581] Got 0 stored sessions
[Info  - 07:32:00.595] Getting sessions for the following scopes: email offline_access openid profile
[Trace  - 07:32:00.595] No session found with idtoken scopes... Using fallback scope list of: email offline_access openid profile
[Info  - 07:32:00.595] Got 0 sessions for scopes: email offline_access openid profile

Version: 1.69.2 (user setup)
Commit: 3b889b090b5ad5793f524b5d1d39fda662b96a2a
Date: 2022-07-18T16:12:52.460Z
Electron: 18.3.5
Chromium: 100.0.4896.160
Node.js: 16.13.2
V8: <IP_ADDRESS>-electron.0
OS: Windows_NT x64 10.0.19044
Microsoft Windows [Version 10.0.19044.1826]

One more thing

There are many tokens created in the windows credential manager. I deleted them in previous versions of vscode (like a month ago). But now they are created again.

Hi @wu-pan, this is a duplicate of https://github.com/microsoft/vscode/issues/130893 most likely


StateIsActiveguard didn't work for me

So I wanted to change to BeingDraggedVFX when being dragged, so I monitored the BeingDragged state, but it wasn't working. And I changed to monitor MouseInside state just for debug:

Then not beyond my expectation that didn't work at all, you can see it's still NotBeingDraggedVFX when MouseInside active

Then I tried to figrue out why and added a print in the addon script. So It actually just ran once in this scene. How could it monitor the change if it didn't run every frame? I don't know if this is a bug or I misunderstood it's effect.

So I'd appreciate it if you told me what's going on here.

Guards do not trigger transitions, they are merely an additional condition that allows or forbids a transition to happen when it is being triggered. A transition is only triggered under the following conditions:

all of:

the transition's owning state is currently active
one of:

an event has just been sent to the state chart AND the transition's "event" property matches this event
the state has just become active AND the transition has no "event" property set (automatic transitions)

Thanks, I see that

#71 may help you once it is implemented.


Opt-in C# 8 and Nullable Reference Types

Although UWP doesn't support C# 8 and NRT officially for now, it does can opt-in them via adding lines to csproj:
<LangVersion>8.0</LangVersion>
<Nullable>enable</Nullable>

Add insert below line to the first line of every .cs file:
#nullable enable

Enabling nullable reference types can help us to diagnose more nullable-related issues and avoid them at very first time.
Also, the compiler can use user defined attributes for nullable code analysis as long as the namespace and class name match original APIs:
Add these code:
#if !NULLABLE_ATTRIBUTES_DISABLE
#nullable enable
#pragma warning disable

namespace System.Diagnostics.CodeAnalysis
{
    using global::System;

    /// <summary>
    ///     Specifies that <see langword="null"/> is allowed as an input even if the
    ///     corresponding type disallows it.
    /// </summary>
    [AttributeUsage(
        AttributeTargets.Field | AttributeTargets.Parameter | AttributeTargets.Property,
        Inherited = false
    )]
#if !NULLABLE_ATTRIBUTES_INCLUDE_IN_CODE_COVERAGE
    [DebuggerNonUserCode]
#endif
    public sealed class AllowNullAttribute : Attribute
    {
        /// <summary>
        ///     Initializes a new instance of the <see cref="AllowNullAttribute"/> class.
        /// </summary>
        public AllowNullAttribute() { }
    }

    /// <summary>
    ///     Specifies that <see langword="null"/> is disallowed as an input even if the
    ///     corresponding type allows it.
    /// </summary>
    [AttributeUsage(
        AttributeTargets.Field | AttributeTargets.Parameter | AttributeTargets.Property,
        Inherited = false
    )]
#if !NULLABLE_ATTRIBUTES_INCLUDE_IN_CODE_COVERAGE
    [DebuggerNonUserCode]
#endif
    public sealed class DisallowNullAttribute : Attribute
    {
        /// <summary>
        ///     Initializes a new instance of the <see cref="DisallowNullAttribute"/> class.
        /// </summary>
        public DisallowNullAttribute() { }
    }

    /// <summary>
    ///     Specifies that a method that will never return under any circumstance.
    /// </summary>
    [AttributeUsage(AttributeTargets.Method, Inherited = false)]
#if !NULLABLE_ATTRIBUTES_INCLUDE_IN_CODE_COVERAGE
    [DebuggerNonUserCode]
#endif
    public sealed class DoesNotReturnAttribute : Attribute
    {
        /// <summary>
        ///     Initializes a new instance of the <see cref="DoesNotReturnAttribute"/> class.
        /// </summary>
        ///
        public DoesNotReturnAttribute() { }
    }

    /// <summary>
    ///     Specifies that the method will not return if the associated <see cref="Boolean"/>
    ///     parameter is passed the specified value.
    /// </summary>
    [AttributeUsage(AttributeTargets.Parameter, Inherited = false)]
#if !NULLABLE_ATTRIBUTES_INCLUDE_IN_CODE_COVERAGE
    [DebuggerNonUserCode]
#endif
    public sealed class DoesNotReturnIfAttribute : Attribute
    {
        /// <summary>
        ///     Gets the condition parameter value.
        ///     Code after the method is considered unreachable by diagnostics if the argument
        ///     to the associated parameter matches this value.
        /// </summary>
        public bool ParameterValue { get; }

        /// <summary>
        ///     Initializes a new instance of the <see cref="DoesNotReturnIfAttribute"/>
        ///     class with the specified parameter value.
        /// </summary>
        /// <param name="parameterValue">
        ///     The condition parameter value.
        ///     Code after the method is considered unreachable by diagnostics if the argument
        ///     to the associated parameter matches this value.
        /// </param>
        public DoesNotReturnIfAttribute(bool parameterValue)
        {
            ParameterValue = parameterValue;
        }
    }

    /// <summary>
    ///     Specifies that an output may be <see langword="null"/> even if the
    ///     corresponding type disallows it.
    /// </summary>
    [AttributeUsage(
        AttributeTargets.Field | AttributeTargets.Parameter |
        AttributeTargets.Property | AttributeTargets.ReturnValue,
        Inherited = false
    )]
#if !NULLABLE_ATTRIBUTES_INCLUDE_IN_CODE_COVERAGE
    [DebuggerNonUserCode]
#endif
    public sealed class MaybeNullAttribute : Attribute
    {
        /// <summary>
        ///     Initializes a new instance of the <see cref="MaybeNullAttribute"/> class.
        /// </summary>
        public MaybeNullAttribute() { }
    }

    /// <summary>
    ///     Specifies that when a method returns <see cref="ReturnValue"/>,
    ///     the parameter may be <see langword="null"/> even if the corresponding type disallows it.
    /// </summary>
    [AttributeUsage(AttributeTargets.Parameter, Inherited = false)]
#if !NULLABLE_ATTRIBUTES_INCLUDE_IN_CODE_COVERAGE
    [DebuggerNonUserCode]
#endif
    public sealed class MaybeNullWhenAttribute : Attribute
    {
        /// <summary>
        ///     Gets the return value condition.
        ///     If the method returns this value, the associated parameter may be <see langword="null"/>.
        /// </summary>
        public bool ReturnValue { get; }

        /// <summary>
        ///      Initializes the attribute with the specified return value condition.
        /// </summary>
        /// <param name="returnValue">
        ///     The return value condition.
        ///     If the method returns this value, the associated parameter may be <see langword="null"/>.
        /// </param>
        public MaybeNullWhenAttribute(bool returnValue)
        {
            ReturnValue = returnValue;
        }
    }

    /// <summary>
    ///     Specifies that an output is not <see langword="null"/> even if the
    ///     corresponding type allows it.
    /// </summary>
    [AttributeUsage(
        AttributeTargets.Field | AttributeTargets.Parameter |
        AttributeTargets.Property | AttributeTargets.ReturnValue,
        Inherited = false
    )]
#if !NULLABLE_ATTRIBUTES_INCLUDE_IN_CODE_COVERAGE
    [DebuggerNonUserCode]
#endif
    public sealed class NotNullAttribute : Attribute
    {
        /// <summary>
        ///     Initializes a new instance of the <see cref="NotNullAttribute"/> class.
        /// </summary>
        public NotNullAttribute() { }
    }

    /// <summary>
    ///     Specifies that the output will be non-<see langword="null"/> if the
    ///     named parameter is non-<see langword="null"/>.
    /// </summary>
    [AttributeUsage(
        AttributeTargets.Parameter | AttributeTargets.Property | AttributeTargets.ReturnValue,
        AllowMultiple = true,
        Inherited = false
    )]
#if !NULLABLE_ATTRIBUTES_INCLUDE_IN_CODE_COVERAGE
    [DebuggerNonUserCode]
#endif
    public sealed class NotNullIfNotNullAttribute : Attribute
    {
        /// <summary>
        ///     Gets the associated parameter name.
        ///     The output will be non-<see langword="null"/> if the argument to the
        ///     parameter specified is non-<see langword="null"/>.
        /// </summary>
        public string ParameterName { get; }

        /// <summary>
        ///     Initializes the attribute with the associated parameter name.
        /// </summary>
        /// <param name="parameterName">
        ///     The associated parameter name.
        ///     The output will be non-<see langword="null"/> if the argument to the
        ///     parameter specified is non-<see langword="null"/>.
        /// </param>
        public NotNullIfNotNullAttribute(string parameterName)
        {
            // .NET Core 3.0 doesn't throw an ArgumentNullException, even though this is
            // tagged as non-null.
            // Follow this behavior here.
            ParameterName = parameterName;
        }
    }

    /// <summary>
    ///     Specifies that when a method returns <see cref="ReturnValue"/>,
    ///     the parameter will not be <see langword="null"/> even if the corresponding type allows it.
    /// </summary>
    [AttributeUsage(AttributeTargets.Parameter, Inherited = false)]
#if !NULLABLE_ATTRIBUTES_INCLUDE_IN_CODE_COVERAGE
    [DebuggerNonUserCode]
#endif
    public sealed class NotNullWhenAttribute : Attribute
    {
        /// <summary>
        ///     Gets the return value condition.
        ///     If the method returns this value, the associated parameter will not be <see langword="null"/>.
        /// </summary>
        public bool ReturnValue { get; }

        /// <summary>
        ///     Initializes the attribute with the specified return value condition.
        /// </summary>
        /// <param name="returnValue">
        ///     The return value condition.
        ///     If the method returns this value, the associated parameter will not be <see langword="null"/>.
        /// </param>
        public NotNullWhenAttribute(bool returnValue)
        {
            ReturnValue = returnValue;
        }
    }
}

#pragma warning enable
#nullable restore
#endif // NULLABLE_ATTRIBUTES_DISABLE

I will send a PR later for opt-in them initially.

PR sent.

@hez2010 Being that UWP isn't going to be getting .NET 5 anytime in the near future, do you want us to keep this issue open?

@hez2010 Being that UWP isn't going to be getting .NET 5 anytime in the near future, do you want us to keep this issue open?

@hez2010 Being that UWP doesn't seem to be getting .NET 5 anytime in the near future, do you want us to keep this issue open?

I think it can be closed for now.

@hez2010 Being that UWP doesn't seem to be getting .NET 5 anytime in the near future, do you want us to keep this issue open?

I think it can be closed for now.


Using parse2 to get quote back to a syn type

I am writing unit tests and I can't compare quote!{} output with itself, it does not implement PartialEq. I have started using syn::parse2 to convert the TokenStream back to something I can compare but now I have the issue that a TokenStream won't parse back to what I expect.
    let something : syn::Expr = syn::parse2(quote! {
      {
        let a = "hello";
      }
    }).unwrap();

I expect something to be a syn::Expr::Block but when I run this I get:
thread 'field_info::test::simple_struct_to_writer_snippet' panicked at 'called `Result::unwrap()` on an `Err` value: Error { start_span: Span, end_span: Span, message: "unsupported expression; enable syn\'s features=[\"full\"]" }', src/libcore/result.rs:1009:5
stack backtrace:

Is there anyway to ask syn what the quote!{}'d body should be? Since the parser is exact it should have one possible high level type?
And in my case, any idea what something should be in this case?

At the risk of stating the obvious -- the error message says to enable features = ["full"] on your Syn dependency to support parsing the full Rust grammar including block expressions. Once you enable the feature, that input will parse successfully.
Otherwise you could try comparing the token streams as strings by calling to_string() on both sides.

🤦♂ I read that error as set RUST_BACKTRACE=full. Which I did and did not end up helping!
I didn't realize this was a possibility because I've been able to parse things like Idents. I didn't know there were different classes of parseable expressions. I should have read more closely!
Thanks! Closing.


Phase curve methods return H as a Quantity, which AdlerData is confused by when writing out

AdlerData's writeout methods were not prepared to receive astropy Quantity objects, which results in H being written to the AdlerData database as a weird string.
Should probably have some sort of validation checks in the write-out method.

See also #149.


Landing image on mobile is too small

Adjust the size of the image for mobile to fit the screen width.

Fixed by 380609ff779b1dc0ab45207dcf596d90b011d9e5


Update create VM step navigation and disk create checks

Fixes: #1366
Creating a VM from a template with disks defined, and if the disks need to be cloned to a new storage domain, navigation buttons needed to be enabled differently.  Now, once on the storage domain wizard step:

The forward button is enabled ONLY when all of the disks are correct and no edit is active.

The back button is always enabled, including when:

an edit is active

no storage domain is available for the template disks

disk storage domains must be selected, but have not yet been selected (i.e. edits are active)

When no storage domains are available, and no disks have been defined by the selected template, the EmptyState place holder will now show a "cannot create a disk" message.  This message replaces the "Create Disk" button.

Active edit:

No SD available:

SD must be selected but has not yet been:

SD has been selected, everything OK, forward enabled:

Everything OK by default, no active edits, forward enabled:

NOTE - A user needs to have DiskCreator and DiskProfileUser permissions on a storage domain to be able to both create the disk (or clone a disk from another) and to attach the newly created disk to the VM.

@sjd78
Please check also the following scenario:

edit a NIC
trigger validation error (i.e. by duplicate name)
navigate back to Basic Settings
go back to Network Settings

Result: next button is disabled but the edited row is not visible and cannot be corrected.

@sjd78
Please check also the following scenario:
1. edit a NIC

2. trigger validation error (i.e. by duplicate name)

3. navigate back to Basic Settings

4. go back to Network Settings

Result: next button is disabled but the edited row is not visible and cannot be corrected.

Thanks for finding this one!  I now have the Networking step validate itself on entry in the same way the Storage step does.  Much better!


Kubernetes: Entity name is used instead of value of backstage.io/kubernetes-id annotation

Expected Behavior
The value of the entity annotation backstage.io/kubernetes-id should be used to lookup Kubernetes resources.
Current Behavior
The value of the entity's name is used to to lookup the Kubernetes resources.
Possible Solution
https://github.com/backstage/backstage/blob/master/plugins/kubernetes-backend/src/service/KubernetesFanOutHandler.ts#L61 should be removed and replaced by looking up the annotation value in the entity like https://github.com/backstage/backstage/blob/master/plugins/kubernetes-backend/src/service/KubernetesFanOutHandler.ts#L88 for backstage.io/kubernetes-label-selector

Believe it was fixed in #5053?


The location of e2e script

TBD

e2e resnet: tests/python/relax_e2e/test_resnet.py

Let's refer to this script for end-to-end tuning and remote measurement!
https://github.com/Hzfengsy/relax/blob/0ea51f34a0b2ced1101f109b10c39223b3c8d47c/tests/python/relax/e2e_autotir.py#L151-L236


Escaped characters eat a single following space

No &space

One & space

Two &  spaces

Gets rendered as

The same thing occurs for other escaped characters like < or >

Whitespaces have really proven to be quite tricky. I think this commit should take better care of them and fix this issue.

Looks like that fixes. Thanks!


Pass through minuteDivider into bottom sheet

Fixes issue #48

@wuzhendev Could I please get some feedback on the method _changeMinuteSelection as there looks like there would be a possible issue already in the code.

I was also wondering why the minuteDivider was being accessed using widget.minuteDivider rather than the field on the state object.


Rox 13506 add UI for extra fields in syslog notifier

Description
This PR adds the FE changes for the Extra Fields in the Syslog notifier integration.
It basically repeats the pattern for the same type of option in the Generic Webhook notifier integration. (If we do it a third time for yet another integration, we could consider if it's worth factoring out to a helper component, but that seems premature right now--especially with the extra handling required for an optional list of values.)
Note: this PR is pointed at the backend PR that adds the feature. If that one merges first, this one can be merged into the master branch.
Checklist

[ ] Investigated and inspected CI test results
[x] Unit test and regression tests added

Testing Performed
New fields in the create/edit form

Read-only view for the new fields

@vjwilson Looks like you might have to do a rebase


Uplift third_party/tt-metal to 34e10c321807d0b24fc3bd9c349a9a67c4e5741c 2024-12-28

This PR uplifts the third_party/tt-metal to the 34e10c321807d0b24fc3bd9c349a9a67c4e5741c

going to merge. passed tt-forge-fe CI here. Brings 2 tt-metal commits.


Stop testing with ansible devel

I've been tempted to do that in the past. Sometimes the CI is getting failures due to unrelated change in -devel and it's getting in our way. On the other side, knowing in advance that some change in next molecule version will break something is useful.
So, I'm not sure what to do or if there's an easy way to get regular -devel testing against main branch but not on PR.

@apatard You can set the test to be optional, so it runs on PR. Or you can even set it to only run when branch is master and set up a cron trigger for it. Then it won't block merges but can still yield useful warnings.

There's already a job schedule for the tox job, so the point is more to run the -devel check the way you're suggesting. I'll have to check the gha doc on how to do that. Unless @ssbarnea has time to update this PR to do it ?
(unrelated side note: I'm not getting the mails from the schedules for molecule-vagrant but that's a different matter)

OOps, you are right. that devel of molecule and not devel of ansible. Yep, we need to keep at least one running. I will update it.

At least my change proved that the issue was originating from devel and not previous release as tests passed.

You should be able to filter based on a if clause, only running the -devel tests when branch is equal to main. I know all of that information is passed through in the contexts, you'd just have to string together the proper conditional bits in the job workflow.

@ssbarnea Looks like that neither of us had time to update this PR to run testing with molecule devel only on main and not merge. Should this PR be closed ?


Fix the problem that the parameter content is inconsistent with the source code

Fix the problem that the parameter content is inconsistent with the source code
fix https://github.com/PaddlePaddle/docs/issues/4719

收到~


Unable to Link Companion Pet Profiles (WOTLK)

Battle/companion pets are currently unable to be used on Wrath of the Lich King as you can only link a companion profile to a renamed pet. Renaming companion pets is currently not available in Wrath of the Lich King Classic.

I'll try and take a look at this for our next release - the renaming requirement stems from a few limitations in the game, but we can probably remove it for Classic.


[KNI] gh actions: update for branch 4.14

Fix automation for branch 4.14

/cc @Tal-or @swatisehgal


Allow to push to multiple sources

Feature request
We have dev project and live addon project.
The code source is same.
We need an option to push somehow to dev project while developing, but there is no clasp push option to change destination.
Possible API (pseudocode): clasp push --destination_clasp_config=.devproject.clasp.json

Hello @kospl ,
maybe this command can be useful for you:
clasp setting scriptId new-id
https://github.com/google/clasp#setting
Or if you want to push multiple sources together, you can try this library that uses clasp:
https://github.com/fantonangeli/multi-clasp2

Thanks, I'll try it and post any results here.


Laravel 7 support

Problem 1
    - Conclusion: remove brozot/laravel-fcm 1.3.1
    - Conclusion: don't install brozot/laravel-fcm 1.3.1
    - Conclusion: don't install laravel/framework v7.0.2
    - Conclusion: don't install laravel/framework v7.0.1
    - Installation request for brozot/laravel-fcm ^1.3 -> satisfiable by brozot/laravel-fcm[1.3.0, 1.3.1].
    - Conclusion: don't install laravel/framework v7.0.0
    - brozot/laravel-fcm 1.3.0 requires illuminate/support 5.*|^6 -> satisfiable by laravel/framework[v6.17.1],

When version 7 support is expected?
https://github.com/brozot/Laravel-FCM/pull/174

+1

+1

+1

+1

+1

+1

+1

If anyone else have apps breaking, and just needs a workaround, you could use my fork:
https://github.com/apility/Laravel-FCM
composer require apility/laravel-fcm

@thomas-alrek I am getting a problem with your repo also.
here:
- Installation request for laravel/framework (locked at v7.2.0, required as ^7.0) -> satisfiable by laravel/framework[v7.2.0].

@mianaliasjad I think that might be a problem with your version constrains. Try to change the requirement in your composer.json file and run composer update
"require": {
    "laravel/framework": "^7.0"
}

@thomas-alrek can you tell please what exactly version I should use in "laravel/framework": "^7.0",?

@mianaliasjad You should not specify a specific version. As the error message states (locked at v7.2.0, required as ^7.0), you have your version locked at 7.2.0, but the dependency requires ^7.0

@thomas-alrek i have not specified a specific version. in composer.json file, my current version is "laravel/framework": "^7.0",

Omg bro, you have not updated your readme I was running $ composer require brozot/laravel-fcm  instead of $ composer require apility/laravel-fcm

+1
I have tested by manually installing this package to a laravel 7.9.2 project and it worked flawlessly.
Download this package and extract to vender/brozot/laravel-fcm.
Edit composer.json :
change "illuminate/support": "5.|^6", to "illuminate/support": "5.|^6|^7",
Copy all contents of vender/brozot/laravel-fcm/composer.json and add to vendor/composer/installed.json, add "version": "v1.3.1", "version_normalized": "1.3.1" after name.
Run below commands:
composer dump-autoload
chmod -R 775 vendor/brozot

+1
I have tested by manually installing this package to a laravel 7.9.2 project and it worked flawlessly.
Download this package and extract to vender/brozot/laravel-fcm.
Edit composer.json :
change "illuminate/support": "5.|^6", to "illuminate/support": "5.|^6|^7",
Copy all contents of vender/brozot/laravel-fcm/composer.json and add to vendor/composer/installed.json, add "version": "v1.3.1", "version_normalized": "1.3.1" after name.
Run below commands:
composer dump-autoload
chmod -R 775 vendor/brozot

This on local machine is ok but what to do for the production version where we might not be the person incharge and also they might not entertain this procedure ?

+1

+1

If anyone else have apps breaking, and just needs a workaround, you could use my fork:
https://github.com/apility/Laravel-FCM
composer require apility/laravel-fcm

Thanks

If anyone else have apps breaking, and just needs a workaround, you could use my fork:
https://github.com/apility/Laravel-FCM
composer require apility/laravel-fcm

hey, I installed your repo and its working fine in my local ubuntu 18.04 machine but there is a problem with my project  remote Centos server machine, this is top of my code
`<?php
namespace App\Jobs;
use App\FcmToken;
use App\Notification;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use LaravelFCM\Message\OptionsBuilder;
use LaravelFCM\Message\PayloadDataBuilder;
use LaravelFCM\Message\PayloadNotificationBuilder;
use FCM;
use Illuminate\Support\Facades\Log;
class SendNotificationJob implements ShouldQueue
`
and im trying to new optionbuilder like doc says:
$optionBuilder = new OptionsBuilder();
and i got this error in my laravel.log file
production.ERROR: Class 'LaravelFCM\Message\OptionsBuilder' not found {"exception":"[object] (Error(code: 0): Class 'LaravelFCM\Message\OptionsBuilder' not found at /public_html/api/app/Jobs/SendNotificationJob.php:65)

If anyone else have apps breaking, and just needs a workaround, you could use my fork:
https://github.com/apility/Laravel-FCM
composer require apility/laravel-fcm

hey, I installed your repo and its working fine on my local ubuntu 18.04 machine but there is a problem with my project on remote Centos server machine,
when code across with this line:
$optionBuilder = new OptionsBuilder();
i got this error in my laravel.log file
production.ERROR: Class 'LaravelFCM\Message\OptionsBuilder' not found {"exception":"[object] (Error(code: 0): Class 'LaravelFCM\\Message\\OptionsBuilder' not found at /public_html/api/app/Jobs/SendNotificationJob.php:65)
i've use LaravelFCM\Message\OptionsBuilder; top of my class but no idea why this happens just on remote server
Thanks for your help

Have you cleared the cache?

don't install laravel 7.2
I need help

For those of you using this package just to send notifications, I resolved creating a simple function to handle the process
trait FCMTrait {     protected $serverKey = "SERVER_KEY_GOES_HERE";     protected $endPoint = 'https://fcm.googleapis.com/fcm/send';     public function sendNotification ($data, $token) {         $data = json_encode($data);         $headers = array(             'Content-Type:application/json',             'Authorization: key=' . $this->serverKey         );         $ch = curl_init();         curl_setopt($ch, CURLOPT_URL, $this->endPoint);         curl_setopt($ch, CURLOPT_POST, true);         curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);         curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);         curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);         curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);         curl_setopt($ch, CURLOPT_POSTFIELDS, $data);         $result = curl_exec($ch);         curl_close($ch);         return $result;     } }
then you can use the trait everywhere you need inside the application.

Should this package update soon? Since this version not supported in Laravel 7.

Should this package update soon? Since this version not supported in Laravel 7.

have you tried this?
$ composer require apility/laravel-fcm

Should this package update soon? Since this version not supported in Laravel 7.

have you tried this?
$ composer require apility/laravel-fcm

Its weird, i tried many time with same error but today its worked, i did nothing, just sometime spam
$ composer require apility/laravel-fcm
Anw, thank for your rep

For those of you using this package just to send notifications, I resolved creating a simple function to handle the process
trait FCMTrait {
    protected $serverKey = "SERVER_KEY_GOES_HERE";
    protected $endPoint = 'https://fcm.googleapis.com/fcm/send';
    public function sendNotification ($data, $token) {
        $data = json_encode($data);
        $headers = array(
            'Content-Type:application/json',
            'Authorization: key=' . $this->serverKey
        );
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, $this->endPoint);
        curl_setopt($ch, CURLOPT_POST, true);
        curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
        curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
        $result = curl_exec($ch);
        curl_close($ch);
        return $result;
    }
}

then you can use the trait everywhere you need inside the application.

I found medium post about this too, but I couldn't find how to send topics notifications. Is there any way? IMO installing Laravel-FCM package is way too much

+1

darryldecode/cart:~4.0 Try To Thousands time to solve this error?
$ composer require "darryldecode/cart:~4.0"
./composer.json has been updated
Running composer update darryldecode/cart
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- hwi/oauth-bundle[dev-master, 1.2.0] require php-http/client-implementation ^1.0 -> could not be found in any version, but the following packages provide it:
- symfony/http-client Symfony HttpClient component
- php-http/guzzle6-adapter Guzzle 6 HTTP Adapter
- php-http/curl-client PSR-18 and HTTPlug Async client with cURL
- kriswallsmith/buzz Lightweight HTTP client
- php-http/mock-client Mock HTTP client
- php-http/socket-client Socket client for PHP-HTTP
- php-http/guzzle7-adapter Guzzle 7 HTTP Adapter
- php-http/guzzle5-adapter Guzzle 5 HTTP Adapter
- php-http/buzz-adapter Buzz HTTP Adapter
- voku/httpful A Readable, Chainable, REST friendly, PHP HTTP Client
- jorge-matricali/http-client A wrapper of libcurl that implements PSR-7 HTTP message interface.
- php-http/cakephp-adapter Cake adapter for PHP-HTTP
- code-tool/curl-client cURL client
- eonx-com/apiformats Package for working with API requests and responses in different formats
- windwalker/http Windwalker Http package
- php-http/react-adapter React HTTP Adapter
- swisnl/php-http-fixture-client Fixture client for PHP-HTTP
- windwalker/framework A Modern PHP framework.
- php-http/zend-adapter Zend Adapter for HTTPlug
- juststeveking/http-slim A slim psr compliant http client to provide better interoperability
... and 23 more.
Consider requiring one of these to satisfy the php-http/client-implementation requirement.
- hwi/oauth-bundle 1.2.x-dev is an alias of hwi/oauth-bundle dev-master and thus requires it to be installed too.
- Root composer.json requires hwi/oauth-bundle ^1.2 -> satisfiable by hwi/oauth-bundle[1.2.0, 1.2.x-dev (alias of dev-master)].
Potential causes:

A typo in the package name
The package is not available in a stable-enough version according to your minimum-stability setting
see https://getcomposer.org/doc/04-schema.md#minimum-stability for more details.
It's a private package and you forgot to add a custom repository to find it

Read https://getcomposer.org/doc/articles/troubleshooting.md for further common problems.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.


mask rcnn: "Tensor Reshape error", did anyone meet this problem

I get the following problem when trainning coco data, I use anaconda2(python2.7), i7 GTX960
2017-07-11 15:19:54.866372: W tensorflow/core/common_runtime/bfc_allocator.cc:217] Allocator (GPU_0_bfc) ran out of memory trying to allocate 2.05GiB. The caller indicates that this is not a failure, but may mean that there could be performance gains if more memory is available.
iter 0: image-id:0007932, time:4.556(sec), regular_loss: 0.202816, total-loss 2.1600(0.0296, 0.5545, 0.003872, 0.8789, 0.6931), instances: 5, batch:(17|89, 5|69, 5|5)
Traceback (most recent call last):
File "./train/train.py", line 223, in
train()
File "./train/train.py", line 219, in train
coord.join(threads)
File "/home/administrator/anaconda2/lib/python2.7/site-packages/tensorflow/python/training/coordinator.py", line 389, in join
six.reraise(*self._exc_info_to_raise)
File "/home/administrator/anaconda2/lib/python2.7/site-packages/tensorflow/python/training/queue_runner_impl.py", line 238, in _run
enqueue_callable()
File "/home/administrator/anaconda2/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1193, in _single_operation_run
target_list_as_strings, status, None)
File "/home/administrator/anaconda2/lib/python2.7/contextlib.py", line 24, in exit
self.gen.next()
File "/home/administrator/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/errors_impl.py", line 466, in raise_exception_on_not_ok_status
pywrap_tensorflow.TF_GetCode(status))
tensorflow.python.framework.errors_impl.InvalidArgumentError: Input to reshape is a tensor with 1 values, but the requested shape has 0
[[Node: Reshape_1 = Reshape[T=DT_INT32, Tshape=DT_INT32, _device="/job:localhost/replica:0/task:0/gpu:0"](Cast_4/_567, Reshape_1/shape)]]
[[Node: ReverseV2/_599 = _Recvclient_terminated=false, recv_device="/job:localhost/replica:0/task:0/cpu:0", send_device="/job:localhost/replica:0/task:0/gpu:0", send_device_incarnation=1, tensor_name="edge_277_ReverseV2", tensor_type=DT_FLOAT, _device="/job:localhost/replica:0/task:0/cpu:0"]]

Are you trying to run this code with Tensorflow 1.2? You should run it with TF1.1 See this #88

Thank insikk .


text area

Is it possible to add a textarea field trough the AccountsTemplates.addField method?

At the moment this is not supported.
But could be easily added...
would you be willing to prepare a PR if I point you the the files to be changed?

I could, altough I'm a beginner.
Thank you for your reply.

Please refer to the Working Locally guide to try to play around.
Here you have the list of allowed input types. You should add textarea
...you might be also interested in adding some configuration parameter (lines number?) to the current list here
you'll have to test what happens here where the template to display is choosed based on the input type.
Then, for all frameworks, you might need to add/modify something in the file where input field templates are defined.
This is more about a guide to add new input fields type, than a request for you to proceed.
Feel free to try, but please don't feel obliged to.
Let me know about any proceedings!

I think this could be solved with what proposed in #273.
Could you please give it a try?

Ok, this is a working example:
<template name="biographyInput">
  <div class="at-input field">
    <label for="at-field-{{_id}}">
      {{displayName}}
    </label>
    <textarea rows="4" id="at-field-{{_id}}" name="at-field-{{_id}}" {{disabled}}></textarea>
  </div>
</template>

AccountsTemplates.addField({
  _id: 'bio',
  type: 'text',
  displayName: "Short Biography",
  template:"biographyInput"
});

See also customInputFields/semantic-ui/textarea on the wiki.


Crashed after created OPU

branches:
FEAGI: structured-errors
BV: standardized_web_error_handling
Last seen on BV:

BV error:

Steps:

Load bare bones
Create a custom cortical area
Error displaying

resolved


Search: Investigate Search Results Ranking

We received a report of odd behavior in search results and were able to replicate it. The user was trying to find the June 2023 monthly public safety update, 2023-0363. They searched for "Monthly Update on Public Safety" (query was entered without quotes) which is the entry in the Subject field. Initially, 2023-0363 did not appear to be in the results. After sorting the results by date, 2023-0363 appeared nearly last in the results on the first page, following results which seem significantly less relevant:

Could you please investigate whether this is expected?

Two action items:

Add help text to the search bar specifying to search for "phrases in quotes"
Revisit this issue if Elasticseach migration not imminent


High memory usage

So I've noticed for a while that Alacritty memory usage is a bit higher than I would like it to be. So I tried to investigate where the memory is coming from. I usually expected Alacritty do be the main factor here, however I've noticed that a big chunk of the memory usage is allocated during window initialization.
I can investigate this myself a bit when I've got the time, but I first wanted to open an issue and check if anyone else has ever looked into this. Is glutin already optimized for memory usage or are there some performance gains left to be made?
I've run the window example in winit, the window example in glutin and Alacritty itself. Initially I used gdb to step through Alacritty to check for memory usage, however running the standalone applications should make sure that it's not Alacritty's fault.
Memory usage comparison:

Application
Memory Usage

Winit
7M+

Glutin
55M+

Alacritty
65M+

EDIT: This memory usage was recorded on a Linux system running X11/i3+compton.

Hey @chrisduerr sry for the late response.
So I took to investigating this issue, and I could successfully reproduce it. However, it's cause is not from us, but instead from mesa.
Here is a short C program which demonstrates that this is a mesa problem:
#include <GL/glx.h>

int main()
{
	Display* dpy = XOpenDisplay(0);
	const char* exts = glXQueryExtensionsString(dpy, DefaultScreen(dpy));
	while (true) {}
	XCloseDisplay(dpy);
}

The memory usage is caused by an internal call to GetGLXPrivScreenConfig. The majority of the memory usage can be attributed to this line on line 561 of loader.c, which on my computer successfully attempts to load /usr/lib/dri/radeonsi_dri.so:
         driver = dlopen(path, RTLD_NOW | RTLD_GLOBAL);

Here is a full backtrace.
#0  loader_open_driver (driver_name=driver_name@entry=0x100090e60 "radeonsi", out_driver_handle=out_driver_handle@entry=0x1000361b0,
    search_path_vars=search_path_vars@entry=0x7ffff73441d0 <search_path_vars>) at ../mesa/src/loader/loader.c:561
#1  0x00007ffff730fea2 in driOpenDriver (driverName=driverName@entry=0x100090e60 "radeonsi", out_driver_handle=out_driver_handle@entry=0x1000361b0)
    at ../mesa/src/glx/dri_common.c:108
#2  0x00007ffff7318365 in dri3_create_screen (screen=0, priv=0x1000328f0) at ../mesa/src/glx/dri3_glx.c:864
#3  0x00007ffff7304d39 in AllocAndFetchScreenConfigs (priv=0x1000328f0, dpy=0x100017910) at ../mesa/src/glx/glxext.c:823
#4  __glXInitialize (dpy=0x100017910) at ../mesa/src/glx/glxext.c:949
#5  __glXInitialize (dpy=dpy@entry=0x100017910) at ../mesa/src/glx/glxext.c:857
#6  0x00007ffff7300335 in GetGLXPrivScreenConfig (dpy=dpy@entry=0x100017910, scrn=scrn@entry=0, ppriv=ppriv@entry=0x7fffffffcc50, ppsc=ppsc@entry=0x7fffffffcc48)
    at ../mesa/src/glx/glxcmds.c:174
#7  0x00007ffff730089d in glXQueryExtensionsString (dpy=0x100017910, screen=0) at ../mesa/src/glx/glxcmds.c:1321
#8  0x00000001000011a6 in main () at mesa.cpp:9

I tested this against mesa-git. Here are the versions of what's installed on my pc:
pacman -Q | grep "mesa\|llvm\|clang\|glvnd\|vulkan\|amdgpu\|radeon\|libdrm\|amdvlk"
amdvlk-git r40.48d46fa-1
clang-svn 353932-1
clang-tools-extra-svn 353932-1
lib32-amdvlk-git r40.48d46fa-1
lib32-libdrm-git 6497.eba6609b-1
lib32-libglvnd 1.1.0-1
lib32-llvm-libs-svn 353942-1
lib32-llvm-svn 353942-1
lib32-mesa-git<PHONE_NUMBER>49997fd-1
lib32-vulkan-icd-loader 1.1.99+3022+e1eafa18e-1
lib32-vulkan-radeon-git<PHONE_NUMBER>49997fd-1
libdrm-git 6497.eba6609b-1
libdrm-git-debug 6497.eba6609b-1
libglvnd-git 1.1.0.r13.gf92208b-1
llvm-libs-svn 353932-1
llvm-ocaml-svn 353932-1
llvm-svn 353932-1
mesa-demos 8.4.0-1
mesa-git<PHONE_NUMBER>49997fd-1
mesa-git-debug<PHONE_NUMBER>49997fd-1
opencl-mesa-git<PHONE_NUMBER>49997fd-1
vulkan-headers 1:1.1.99-1
vulkan-icd-loader 1.1.99+3022+e1eafa18e-1
vulkan-radeon-git<PHONE_NUMBER>49997fd-1
vulkan-tools 1.1.96+6873+85ba793e-1
vulkan-validation-layers 1.1.96+8010+ebef1f33-1
xf86-video-amdgpu-git 485.5f91be7-1
xf86-video-amdgpu-git-debug 485.5f91be7-1

I'm afraid there is nothing we can do here. Please file a bug upstream @ the mesa devs.
cc @francesca64 Please close this issue.

Looks like that's just the overhead  necessary to load the drivers for using OpenGL.
Thanks for looking into this @ZeGentzy!


Send large readonly variables using the Nocopy API to reduce memory footprint and improve startup time

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

No body.

Original date: 2018-01-09 15:53:43

I think it'd be good to get started on this sooner than later since it may serve as a motivating case for the different modes of registration/rdma

Original date: 2018-04-06 00:51:02

Moving this after 6.9

Original date: 2018-09-07 15:22:41

This would be a good first use case for the zero copy broadcast API

Original date: 2018-10-10 15:57:14

Gerrit: ~~https://charm.cs.illinois.edu/gerrit/#/c/charm/+/4637/~~ https://github.com/UIUC-PPL/charm/commit/797b1f04a5fcc55d280a106714d380b11f5c18f6


Common Name (e.g. server FQDN or YOUR name) []:

openssl req -nodes -newkey rsa:4096 -keyout my.domain.com.key -out my.domain.com.csr
Filling in request form, for Common name, it asks me to insert FQDN (Which ends with DOT in the end, as per FQDN syntax). However if you fill this field with DOT in the end as FQDN syntax dictates (as: my.domain.com.), then the certificate authoroties (sectigo.com for example) give you error that "invalid domain name" when you submit this generated csr file. Removing the dot from the end made the csr valid for submission.
So maybe not even ask to put there FQDN, but just server name (FQDN, but without the dot). This "FQDN" there just causes confusion and failure.

FQDN (Which ends with DOT in the end, as per FQDN syntax)

Hi @D33M0N,
Could you cite an authoritative source for this? I just did a search and could not find any support for this assertion. The sources that I did find suggested otherwise. For example, RFC 1983, Internet Users' Glossary:

Fully Qualified Domain Name (FQDN)
The FQDN is the full name of a system, rather than just its
hostname.  For example, "venera" is a hostname and
"venera.isi.edu" is an FQDN.  See also: hostname, Domain Name
System.

Similarly, RFC 1594, FYI on Questions and Answers Answers to Commonly asked "New Internet User" Questions:

5.2  What is a Fully Qualified Domain Name?
  A Fully Qualified Domain Name (FQDN) is a domain name that
  includes all higher level domains relevant to the entity named.
  If you think of the DNS as a tree-structure with each node having
  its own label, a Fully Qualified Domain Name for a specific node
  would be its label followed by the labels of all the other nodes
  between it and the root of the tree.  For example, for a host, a
  FQDN would include the string that identifies the particular host,
  plus all domains of which the host is a part up to and including
  the top-level domain (the root domain is always null).  For
  example, atlas.arc.nasa.gov is a Fully Qualified Domain Name for
  the host at <IP_ADDRESS>.  In addition, arc.nasa.gov is the FQDN
  for the Ames Research Center (ARC) domain under nasa.gov.

https://en.wikipedia.org/wiki/Fully_qualified_domain_name

If OpenSSL is correctly including the name given, wouldn't the problem then be with the CAs not accepting it?  I suggest you take this up with them.

Marking as inactive, to be closed at the end of 3.4 dev barring further input


Merge Development into Master for v1.0.6 release

Chore
Description
Merge Development into Master for v1.0.6 release
Would you like to work on the issue?
Yes

Completed.


sup, help-me

how could I update my graphical interface from my kali rolling, xfce to a more updated and beautiful one like the current ones.

you can maybe add buster
i personally like that one

You can use the -r tag to specify a release.


Compactor: Added IsRetryableError to fetcher handling minio retryable errors.

Worker threads no longer exit on error, instead they collect non retryable errors into a multiError. Worker threads will retry retryable errors every 5 seconds without limitation.
Fix proposal for #7514

[x] I added CHANGELOG entry for this change.
[x] Change is not relevant to the end user.

Changes

Changed concurrent worker behavior in case of error in Exists call, they no longer exit on error, instead collect errors in a multiError and continue working.
Exists call error is now checked, and if it is a retry-able minio error, it will be retried indefinitely with a 5 second wait time between calls.

Verification
I have not yet. I have no repro for the original situation.

Ultimately this is a very minor patch for a very small part of the problem. I am not at all convinced that this is the right direction at all. It might be better to investigate if objstore itself can handle this under the hood, since refactoring every single objstore call would be a quite big undertaking. (this was just 1)

FWIW: i think minio-go already transparently retries without the client having much control over it: https://github.com/thanos-io/promql-engine/pull/477/files. But ultimately it feels like retrying should be a decision that the bucket client does.


Europe average item amount sold not pulling from api

just like in Topic,
idk if its devs issue with new update or what

nevermind , yesterday europe.albion-online-data.com was working now it need to be www.europe

Yes , i just realized now that whole api isn't working , sorry for problem

The api is definitely working. Again, not sure what you're talking about.