build(deps): bump npm from 9.5.1 to 9.8.1

Release notes :
https://github.com/npm/cli/blob/latest/CHANGELOG.md
This is a relatively big jump. If you think that it is safer to do it incrementally, we can do that too. Otherwise can we trust our tests
@jeffwidman Please let me know what you think and we can act accordingly

The failure is interesting. I'll take a look at it whenever I get a chance

See https://github.com/dependabot/dependabot-core/pull/7811


Licenses

Hello,
I read before that you will not be open sourcing the Marzipano Tool. I was curious if any open source packages were utilized in building the "Tool"? Thanks for this great resource.

Most of the code for the tool is not open sourced, but it does use a few open source libraries. See https://www.marzipano.net/tool/LICENSES.txt.


Converted most non-specific CLI usages to kubectl

There is no need for most of these tasks to use OC specifically as
almost everything can be done with kubectl OOTB. Those things that do
not work on kubectl are also now changed from generic $cli to oc.
Note: there is still work to be done here though as none of the $cli create
usages have been converted yet.

Talked about this in Slack a little but might as well record it here: I think we need to keep the multi-CLI support just in case a customer using OpenShift doesn't have kubectl installed.
I do think we can combine the kubernetes and openshift folders with minimal trouble, though. Pretty sure there's no need to use OpenShift-specific resources there.

I'll close this and switch to work on getting just the yamls fixed up.


Added gamma correction for better color accuaracy

I don't think we're there yet but I believe this changes gives a little bit more accurate colors.

For reference, this is related to #16.

Good idea. Don't know when I'll get around to this. I hope somewhere this week or next weekend.

I'm going to close this PR for now. If you'd like to update this in the future, please feel free to reopening.


[Firebase Remote Config] Task 'assembleAarRelease' not found in root project 'firebase_remote_config'.

I have application already publish in playstore and i need to check version of the app for auto update application feature. I use firebase_remote_config to save little information about versionBuild the application, after that i can compare it.
Everything is looking good in debug mode, but the problem is when i want build release the application using command flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi Or flutter build apk , Give me this error  :
Log Error
PS C:\Project Flutter\playstore_app\atur_semua_aktifitas> flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi
Parameter format not correct -
Note: C:\flutter\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_remote_config-0.3.0+3\android\src\main\java\io\flutter\plugins\firebase\firebaseremoteconfig\MethodCallHandlerImpl.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Running Gradle task 'assembleRelease'...
Removed unused resources: Binary resource data reduced from 404KB to 358KB: Removed 11%
Removed unused resources: Binary resource data reduced from 404KB to 358KB: Removed 11%
Removed unused resources: Binary resource data reduced from 404KB to 358KB: Removed 11%

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':system_setting:verifyReleaseResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > Android resource linking failed
     C:\Users\user\.gradle\caches\transforms-2\files-2.1\e6856c7cff7219f18cbbcc5d8d7cecec\core-1.1.0\res\values\values.xml:142:5-173:25: AAPT: error: resource android:attr/fontVariationSettings not found.

     C:\Users\user\.gradle\caches\transforms-2\files-2.1\e6856c7cff7219f18cbbcc5d8d7cecec\core-1.1.0\res\values\values.xml:142:5-173:25: AAPT: error: resource android:attr/ttcIndex not found.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 2m 40s
Running Gradle task 'assembleRelease'...
Running Gradle task 'assembleRelease'... Done                     161.0s (!)
The built failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetfier to solve the incompatibility.
Building plugin firebase_remote_config...
Running Gradle task 'assembleAarRelease'...
Running Gradle task 'assembleAarRelease'... Done                    3.5s

FAILURE: Build failed with an exception.

* What went wrong:
Task 'assembleAarRelease' not found in root project 'firebase_remote_config'.

* Try:
Run gradlew tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 3s

The plugin firebase_remote_config could not be built due to the issue above.
PS C:\Project Flutter\playstore_app\atur_semua_aktifitas>

After Searching in community , i got similiar problem with me like this about AAPT: error: resource android:attr/fontVariationSettings not found.. But although i change compileSDKVersion to 28, it's not clear the problem.
Build.gradle
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
    localPropertiesFile.withReader('UTF-8') { reader ->
        localProperties.load(reader)
    }
}

def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
    throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}

def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
    flutterVersionCode = '1'
}

def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
    flutterVersionName = '1.0'
}

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('key.properties')
if (keystorePropertiesFile.exists()) {
    keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}

android {
    compileSdkVersion 28

    sourceSets {
        main.java.srcDirs += 'src/main/kotlin'
    }

    lintOptions {
        disable 'InvalidPackage'
    }

    defaultConfig {
        // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
        applicationId "id.zeffry.atur_semua_aktifitas"
        minSdkVersion 16
        targetSdkVersion 28
        versionCode flutterVersionCode.toInteger()
        versionName flutterVersionName
    }

    signingConfigs {
       release {
           keyAlias keystoreProperties['keyAlias']
           keyPassword keystoreProperties['keyPassword']
           storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
           storePassword keystoreProperties['storePassword']
       }
   }
   buildTypes {
       release {
           signingConfig signingConfigs.release
           // Enables code shrinking, obfuscation, and optimization for only
           // your project's release build type.
           minifyEnabled true

           // Enables resource shrinking, which is performed by the
           // Android Gradle plugin.
           shrinkResources true

                       // Includes the default ProGuard rules files that are packaged with
            // the Android Gradle plugin. To learn more, go to the section about
            // R8 configuration files.
            proguardFiles getDefaultProguardFile(
                    'proguard-android-optimize.txt'),
                    'proguard-rules.pro'
       }
   }
}

flutter {
    source '../..'
}

dependencies {
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    implementation 'com.google.firebase:firebase-analytics:17.2.2'
}
apply plugin: 'com.google.gms.google-services'

Flutter Doctor -v
PS C:\Project Flutter\playstore_app\atur_semua_aktifitas> flutter doctor -v
[√] Flutter (Channel master, v1.18.0-6.0.pre.80, on Microsoft Windows [Version 10.0.18363.752], locale en-US)
    • Flutter version 1.18.0-6.0.pre.80 at C:\flutter\flutter
    • Framework revision cdac97c253 (2 days ago), 2020-04-17 23:25:01 -0400
    • Engine revision 204adaf268
    • Dart version 2.9.0 (build 2.9.0-1.0.dev 5b19445d9c)

[√] Android toolchain - develop for Android devices (Android SDK version 29.0.0)
    • Android SDK at C:\Users\user\AppData\Local\Android\Sdk
    • Platform android-29, build-tools 29.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
    • All Android licenses accepted.

[√] Android Studio (version 3.5)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 39.0.3
    • Dart plugin version 191.8423
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)

[√] VS Code (version 1.44.2)
    • VS Code at C:\Users\user\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.9.1

[√] Connected device (1 available)
    • Redmi Note 4 • 1a96d23a9904 • android-arm64 • Android 7.0 (API 24)

• No issues found!
PS C:\Project Flutter\playstore_app\atur_semua_aktifitas>

Hi @zgramming
Could you migrated to AndroidX and try again? AndroidX Migration

The built failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetfier to solve the incompatibility.

@TahaTesser  I was sure my project already migrate to AndroidX.
But this problem already solved, related this issue. The problem because, there is one dependencies in my project still compileSdk27, it will solved with change all compileSdk27 from all dependencies in my project to compileSdk28.

@TahaTesser
FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':firebase_remote_config:uploadArchives'.
> Could not publish configuration 'archives'
   > Could not write to file '/Users/ayushpgupta/.pub-cache/hosted/pub.dartlang.org/firebase_remote_config-0.4.0/android/build/poms/pom-default.xml'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.
-----------
* Where:
Script '/Users/ayushpgupta/development/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 897

* What went wrong:
Execution failed for task ':flutter:compileFlutterBuildRelease'.
> Process 'command '/Users/ayushpgupta/development/flutter/bin/flutter'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================

* Get more help at https://help.gradle.org

BUILD FAILED in 56s

Gradle task assembleAarRelease failed with exit code 0.

I am getting this error on running flutter build aar. Is this issue related with this current issue?

.pub-cache/hosted/pub.dartlang.org/firebase_remote_config-0.4.0/android/src/main/java/io/flutter/plugins/firebase/firebaseremoteconfig/MethodCallHandlerImpl.java

difficult?

/Users/shintasukusugita/.pub-cache/hosted/pub.dartlang.org/firebase_remote_config-0.4.0/android/src/main/java/io/flutter/plugins/firebase/firebaseremoteconfig/MethodCallHandlerImpl.java:45: 警告: [deprecation] FirebaseRemoteConfigSettingsのisDeveloperModeEnabled()は非推奨になりました
              "inDebugMode", firebaseRemoteConfigInfo.getConfigSettings().isDeveloperModeEnabled());
                                                                         ^
/Users/shintasukusugita/.pub-cache/hosted/pub.dartlang.org/firebase_remote_config-0.4.0/android/src/main/java/io/flutter/plugins/firebase/firebaseremoteconfig/MethodCallHandlerImpl.java:55: 警告: [deprecation] BuilderのsetDeveloperModeEnabled(boolean)は非推奨になりました
              new FirebaseRemoteConfigSettings.Builder().setDeveloperModeEnabled(debugMode).build();
                                                        ^
/Users/shintasukusugita/.pub-cache/hosted/pub.dartlang.org/firebase_remote_config-0.4.0/android/src/main/java/io/flutter/plugins/firebase/firebaseremoteconfig/MethodCallHandlerImpl.java:56: 警告: [deprecation] FirebaseRemoteConfigのsetConfigSettings(FirebaseRemoteConfigSettings)は非推奨になりました
          firebaseRemoteConfig.setConfigSettings(settings);
                              ^
/Users/shintasukusugita/.pub-cache/hosted/pub.dartlang.org/firebase_remote_config-0.4.0/android/src/main/java/io/flutter/plugins/firebase/firebaseremoteconfig/MethodCallHandlerImpl.java:127: 警告: [deprecation] FirebaseRemoteConfigのsetDefaults(Map<String,Object>)は非推奨になりました
          FirebaseRemoteConfig.getInstance().setDefaults(defaults);
                                            ^
警告4個

@zgramming  Do you know how to fix it?

@yourshinsuke are you already follow link in my above comment?
In my case,this problem because one of my packages still have CompileSDK27 ,after change it to CompileSDK28 my problem is solved.
I don't know your problem is similar with me or not

@zgramming Thank you for replying.
I've passed over your comment.
but, my android compileSdk setting is 29.
So, I might have to downgrade compileSdk to 28...

this my question:
FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':firebase_analytics:uploadArchives'.

Could not publish configuration 'archives'
Could not write to file '/Users/wanglong/.pub-cache/hosted/mirrors.tuna.tsinghua.edu.cn%47dart-pub/firebase_analytics-6.0.0/android/build/poms/pom-default.xml'.

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

Get more help at https://help.gradle.org

BUILD FAILED in 2s

update firebase_auth : 0.18.0+1 ，bad, before use firebase_auth : 0.16.0 is ok

@TahaTesser  execute  flutter build aar, fail

wanglongdeMacBook-Pro:~ wanglong$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 1.20.4, on Mac OS X 10.14.6 18G103, locale
zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[✗] Xcode - develop for iOS and macOS
✗ Xcode installation is incomplete; a full installation is necessary for iOS
development.
Download at: https://developer.apple.com/xcode/download/
Or install Xcode via the App Store.
Once installed, run:
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -runFirstLaunch
✗ CocoaPods not installed.
CocoaPods is used to retrieve the iOS and macOS platform side's plugin
code that responds to your plugin usage on the Dart side.
Without CocoaPods, plugins will not work on iOS or macOS.
For more info, see https://flutter.dev/platform-plugins
To install:
sudo gem install cocoapods
[✓] Android Studio (version 4.0)
[✓] Connected device (1 available)
! Doctor found issues in 1 category.

 MethodCallHandlerImpl.java uses or overrides a deprecated API.

this my question:
FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':firebase_analytics:uploadArchives'.

Could not publish configuration 'archives'
Could not write to file '/Users/wanglong/.pub-cache/hosted/mirrors.tuna.tsinghua.edu.cn%47dart-pub/firebase_analytics-6.0.0/android/build/poms/pom-default.xml'.

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org

BUILD FAILED in 2s

using firebase_analytics 5.0.16 solved the problem
i think its going crash when use higher than that
i am using firebase version
firebase_core: ^0.5.3
firebase_analytics: ^5.0.16

@TahaTesser I was sure my project already migrate to AndroidX.
But this problem already solved, related this issue. The problem because, there is one dependencies in my project still compileSdk27, it will solved with change all compileSdk27 from all dependencies in my project to compileSdk28.

Hey @zgramming, thanks for confirming your issue has been resolved.


Allow the configuration of ensembl rest domain

We would like to be able to configure the domain to http://grch37.rest.ensembl.org/ so that we can use the older ensembl reference. However it looks like the domain is currently hardcoded to http://rest.ensembl.org/.

This is achievable by getting the reference to the rest object of the genomeBrowser and modifying it.
e.g:
let r = this.genomeBrowser.rest();
r.domain('some domain');
r.protocol('https');


Failure to repeat evaluation results.

I used: train_qlora.py to fine-tuned the model for llama 2-7b, and then used get_predict_qlora.sh ( the checkpoint is 10000) to get the results, but many of the outputs are empty, as shown below:

resulting in poor results when executing: evaluation.py, as follows:
                 easy                 medium               hard                 extra                all

count                248                  446                  174                  166                  1034
compare etype exec
=====================   EXECUTION ACCURACY     =====================
execution            0.109                 0.052                 0.006               0.006                 0.050
can you help me to check what went wrong?

I used: train_qlora.py to fine-tuned the model for llama 2-7b, and then used get_predict_qlora.sh ( the checkpoint is 10000) to get the results, but many of the outputs are empty, as shown below:

resulting in poor results when executing: evaluation.py, as follows:
                 easy                 medium               hard                 extra                all

count 248 446<PHONE_NUMBER> compare etype exec ===================== EXECUTION ACCURACY ===================== execution 0.109 0.052 0.006 0.006 0.050
can you help me to check what went wrong?

I also did an experiment with 10,000 steps with lora, and the effect did not improve. Instead, there was a large drop in effect similar to yours. Now I am also puzzled by the description of a classmate in the issue who trained 10,000 steps based on the default parameters and got a big improvement based on qlora. So,It is not recommended that you use qlora to train 10,000 steps. We are preparing to release the results of recent experiments as soon as possible.In our exp ,the result is better when step smaller 2500.

I used: train_qlora.py to fine-tuned the model for llama 2-7b, and then used get_predict_qlora.sh ( the checkpoint is 10000) to get the results, but many of the outputs are empty, as shown below:

resulting in poor results when executing: evaluation.py, as follows:
                 easy                 medium               hard                 extra                all

count 248 446<PHONE_NUMBER> compare etype exec ===================== EXECUTION ACCURACY ===================== execution 0.109 0.052 0.006 0.006 0.050
can you help me to check what went wrong?

I also did an experiment with 10,000 steps with lora, and the effect did not improve. Instead, there was a large drop in effect similar to yours. Now I am also puzzled by the description of a classmate in the issue who trained 10,000 steps based on the default parameters and got a big improvement based on qlora. So,It is not recommended that you use qlora to train 10,000 steps. We are preparing to release the results of recent experiments as soon as possible.In our exp ,the result is better when step smaller  than 2500.

when i use the chekpoint 2500, the result is :
                 easy                 medium               hard                 extra                all

count                248                  446                  174                  166                  1034
compare etype exec
=====================   EXECUTION ACCURACY     =====================
execution            0.194                0.076                0.029                0.006                0.085
what about yours？ @wangzaistone


compile 2019/01 monthly numbers

[x] create the users_pushes_2019_01 table
[x] run the update-db command (in progress)
[x] compile results into the spreadsheet

2019, 2019-q1 and 2019-01 numbers compiled and added to the sheet.


Rz misclosure

@rzinke do not see any issues.
Once item i would recommend to do in future is to come up with some unit tests to capture bugs in code changes. The "unit tests" we have for other programs are not really code checks, but program checks. There is an example for the 2-stage stitching on the unwrap branch which is a more of synthetic test where we know what goes in and needs to come out

Thanks, I'll take a look. Should I do the unit checks before you merge the pull request? I tested the code in both the command line, and in the ariaMisclosure_tutorial.ipynb and it works for both of those.

let merge it for now and them we can enhance during a next PR.


Stop packaging test files with the gem

It drastically reduces the size of the gem, from 1.9M to 32K. The default for new gems (created by bundler) is not to include test files. See bundler/bundler#3207

I'm sure I'd done this at some point previously, but then I've obviously screwed it up again. Thanks for the fix!

My pleasure, @pat! Thanks for the quick merge.

But if you use thoughtbot/factory_girl and have a dev dependency in other gem that uses them - it will be a big surprise 😄


Integration Test - Release - 2019/03/13 23:02:23

Auto create for integration test. AnotherAuthorUpdatedArticleFlow

@PRMergerTest2 : Thanks for your contribution! The author, @v-caxian, has been notified to review your proposed change.


Create new MQTT notify plugin

Motivation for changes:
Enable notification to an MQTT broker, because a plugin didn't exist yet to do so
Detailed changes:

New MQTT client notify using paho MQTT library
Allows user/pass authentication
Allows SSL/TLS certificate authentication

Addressed issues:
None
Implemented feature requests:
None, just my own needs so contribute to code base
Config usage if relevant (new plugin or updated schema):
    Example::
      notify:
        entries:
          via:
            - mqtt:
                broker_address: "iot.eclipse.org"
                topic: "flexget/notifications"
                [broker_port: 1883]
                [broker_timeout: 30]
                [broker_transport: ['tcp','websockets'] ]
                [broker_protocol: ['MQTTv31', 'MQTTv311'] ]
                [username: yourUsernameHere]
                [password: yourPasswordHere]
                [enable_encrypted_communication: True/False]
                [certificates:
                    broker_ca_cert: /path/to/pem/encoded/broker_ca_certificate.crt
                    client_cert: /path/to/pem/encoded/client_certificate.crt
                    client_key: /path/to/pem/encoded/client_certificate.key
                    validate_broker_cert: True/False
                    tls_version: ['tlsv1.2', 'tlsv1.1', 'tlsv1', '']
                ]
                [qos: [0,1,2] ]
                [retain: True/False]

Log and/or tests output (preferably both):
Test config (redacted servers)
            - mqtt:
                broker_address: '<IP_ADDRESS>'
                topic: 'flexget/notifications/latest'
                broker_port: 1883
                broker_protocol: 'MQTTv31' #the version of the MQTT protocol to use. Use either MQTTv31 or MQTTv311.
                username: 'mqttclient3'
                password: 'password'
                qos: 1
                retain: True
            - mqtt:
                broker_address: "mqtt.domain.com"
                topic: "flexget/notifications/latest"
                broker_port: 8883
                certificates:
                    broker_ca_cert: "C:/Users/User1/Documents/mqtt_test_certs/test_intermediateCA.ca.chain.crt"
                    client_cert: "C:/Users/User1/Documents/mqtt_test_certs/mqttclient3.local.crt"
                    client_key: "C:/Users/User1/Documents/mqtt_test_certs/mqttclient3.local.key"
                    validate_broker_cert: False
                qos: 1
                retain: True
            - mqtt:
                broker_address: "mqtt.domain.com"
                topic: "flexget/notifications/by_series/{% if series_name is defined %}{{series_name}}{% endif %}/{% if ((series_season is defined) and (series_season is number)) %}S{{ '%02d' % series_season }}{% endif %}{% if ((series_episode is defined) and (series_episode is number)) %}E{{ '%02d' % series_episode }}{% endif %}"
                broker_port: 8883
                certificates:
                    broker_ca_cert: "C:/Users/User1/Documents/mqtt_test_certs/test_intermediateCA.ca.chain.crt"
                    client_cert: "C:/Users/User1/Documents/mqtt_test_certs/mqttclient3.local.crt"
                    client_key: "C:/Users/User1/Documents/mqtt_test_certs/mqttclient3.local.key"
                    validate_broker_cert: False
                qos: 1
                retain: True
            - mqtt:
                broker_address: "mqtt.domain.com"
                topic: "flexget/notifications/by_timestamp/{{now.strftime('%Y.%m.%d_%H.%M.%S')}}/{% if series_name is defined %}{{series_name}}{% endif %} {% if ((series_season is defined) and (series_season is number)) %}S{{ '%02d' % series_season }}{% endif %}{% if ((series_episode is defined) and (series_episode is number)) %}E{{ '%02d' % series_episode }}{% endif %}"
                broker_port: 8883
                certificates:
                    broker_ca_cert: "C:/Users/User1/Documents/mqtt_test_certs/test_intermediateCA.ca.chain.crt"
                    client_cert: "C:/Users/User1/Documents/mqtt_test_certs/mqttclient3.local.crt"
                    client_key: "C:/Users/User1/Documents/mqtt_test_certs/mqttclient3.local.key"
                    validate_broker_cert: False
                qos: 1
                retain: True

Log file output (redacted servers a bit)
020-03-13 16:27:21 VERBOSE  mqtt          task_trakt_shows Credential passwords s are redacted to protect the innocent...
020-03-13 16:27:21 VERBOSE  mqtt          task_trakt_shows Auth credentials: username=[mqttclient3] password sha256 hash is "0b14d501a594442a01c6859541bcb3e816d183d32937b851835442f69d5c94e"
020-03-13 16:27:21 VERBOSE  mqtt          task_trakt_shows You can validate them yourself by calculating the sha256 hex digest of your password string (google is your friend if you do not know how to do this)
020-03-13 16:27:21 VERBOSE  mqtt          task_trakt_shows Note: a password that is not provided (i.e. blank) will hash to "e3b0c44298fc1c149afbf4c8996fb92427a41e4649b934ca495991b7852b855"
020-03-13 16:27:21 VERBOSE  mqtt          task_trakt_shows Connecting to <IP_ADDRESS>:1883
020-03-13 16:27:21 VERBOSE  mqtt          task_trakt_shows Sending CONNECT (u0, p0, wr0, wq0, wf0, c1, k30) client_id=b''
020-03-13 16:27:21 VERBOSE  mqtt          task_trakt_shows Connected to MQTT broker
020-03-13 16:27:21 VERBOSE  mqtt          task_trakt_shows Publishing message [Episode Aired: S99E01   {Series Title Redacted} - Episode Title:   {Episode Title Redacted} air date:               2020.03.08] to topic [aewadafsfe/latest]
020-03-13 16:27:21 VERBOSE  mqtt          task_trakt_shows Sending PUBLISH (d0, q1, r1, m1), 'b'flexget/notifications/latest'', ... (100 bytes)
020-03-13 16:27:21 VERBOSE  mqtt          task_trakt_shows Notification sent to broker, waiting for callback response to confirm publishing success - rc=(0, 1)
020-03-13 16:27:21 VERBOSE  mqtt          task_trakt_shows Received CONNACK (0, 0)
020-03-13 16:27:21 VERBOSE  notify        task_trakt_shows Successfully sent a notification to `mqtt`
020-03-13 16:27:21 VERBOSE  mqtt                          Received PUBACK (Mid: 1)
020-03-13 16:27:21 VERBOSE  mqtt          task_trakt_shows TLS version is _SSLMethod.PROTOCOL_TLSv1_2
020-03-13 16:27:21 VERBOSE  mqtt                          MQTT on_publish callback -  message was successfully published to broker as messageID=1
020-03-13 16:27:21 VERBOSE  mqtt          task_trakt_shows TLS cert_required=VerifyMode.CERT_NONE
020-03-13 16:27:21 VERBOSE  mqtt                          Sending DISCONNECT
020-03-13 16:27:21 VERBOSE  mqtt                          MQTT on_disconnect callback - disconnected with result code 0 [Connection Accepted]
020-03-13 16:27:21 VERBOSE  mqtt          task_trakt_shows Connecting to mqtt.domain.com:8883
020-03-13 16:27:21 VERBOSE  mqtt          task_trakt_shows Sending CONNECT (u0, p0, wr0, wq0, wf0, c1, k30) client_id=b'4WaybXA3OXZWt7JxbbY3g9'
020-03-13 16:27:21 VERBOSE  mqtt          task_trakt_shows Connected to MQTT broker
020-03-13 16:27:21 VERBOSE  mqtt          task_trakt_shows Publishing message [Episode Aired: S99E01   {Series Title Redacted} - Episode Title:   {Episode Title Redacted} air date:               2020.03.08] to topic [flexget/notifications/latest]
020-03-13 16:27:21 VERBOSE  mqtt          task_trakt_shows Sending PUBLISH (d0, q1, r1, m1), 'b'flexget/notifications/latest'', ... (100 bytes)
020-03-13 16:27:21 VERBOSE  mqtt          task_trakt_shows Notification sent to broker, waiting for callback response to confirm publishing success - rc=(0, 1)
020-03-13 16:27:21 VERBOSE  mqtt          task_trakt_shows Received CONNACK (0, 0)
020-03-13 16:27:21 VERBOSE  notify        task_trakt_shows Successfully sent a notification to `mqtt`
020-03-13 16:27:21 VERBOSE  mqtt                          Received PUBACK (Mid: 1)
020-03-13 16:27:21 VERBOSE  mqtt          task_trakt_shows TLS version is _SSLMethod.PROTOCOL_TLSv1_2
020-03-13 16:27:21 VERBOSE  mqtt          task_trakt_shows TLS cert_required=VerifyMode.CERT_NONE
020-03-13 16:27:21 VERBOSE  mqtt                          MQTT on_publish callback -  message was successfully published to broker as messageID=1
020-03-13 16:27:21 VERBOSE  mqtt          task_trakt_shows Connecting to mqtt.domain.com:8883
020-03-13 16:27:21 VERBOSE  mqtt                          Sending DISCONNECT
020-03-13 16:27:21 VERBOSE  mqtt                          MQTT on_disconnect callback - disconnected with result code 0 [Connection Accepted]
020-03-13 16:27:21 VERBOSE  mqtt          task_trakt_shows Sending CONNECT (u0, p0, wr0, wq0, wf0, c1, k30) client_id=b'5jIiSJc06SepuskMjpidGA'
020-03-13 16:27:21 VERBOSE  mqtt          task_trakt_shows Connected to MQTT broker
020-03-13 16:27:21 VERBOSE  mqtt          task_trakt_shows Publishing message [Episode Aired: S99E01   {Series Title Redacted} - Episode Title:   {Episode Title Redacted} air date:               2020.03.08] to topic [flexget/notifications/by_series/{Series Title Redacted}/S99E01]
020-03-13 16:27:21 VERBOSE  mqtt          task_trakt_shows Sending PUBLISH (d0, q1, r1, m1), 'b"flexget/notifications/by_series/{Series Title Redacted}/S99E01"', ... (10 bytes)
020-03-13 16:27:21 VERBOSE  mqtt          task_trakt_shows Notification sent to broker, waiting for callback response to confirm publishing success - rc=(0, 1)
020-03-13 16:27:21 VERBOSE  mqtt          task_trakt_shows Received CONNACK (0, 0)
020-03-13 16:27:21 VERBOSE  notify        task_trakt_shows Successfully sent a notification to `mqtt`
020-03-13 16:27:21 VERBOSE  mqtt                          Received PUBACK (Mid: 1)
020-03-13 16:27:21 VERBOSE  mqtt          task_trakt_shows TLS version is _SSLMethod.PROTOCOL_TLSv1_2
020-03-13 16:27:21 VERBOSE  mqtt                          MQTT on_publish callback -  message was successfully published to broker as messageID=1
020-03-13 16:27:21 VERBOSE  mqtt          task_trakt_shows TLS cert_required=VerifyMode.CERT_NONE
020-03-13 16:27:22 VERBOSE  mqtt                          Sending DISCONNECT
020-03-13 16:27:22 VERBOSE  mqtt          task_trakt_shows Connecting to mqtt.domain.com:8883
020-03-13 16:27:22 VERBOSE  mqtt                          MQTT on_disconnect callback - disconnected with result code 0 [Connection Accepted]
020-03-13 16:27:22 VERBOSE  mqtt          task_trakt_shows Sending CONNECT (u0, p0, wr0, wq0, wf0, c1, k30) client_id=b'4I34j21VA4XARV8uos2Gyu'
020-03-13 16:27:22 VERBOSE  mqtt          task_trakt_shows Connected to MQTT broker
020-03-13 16:27:22 VERBOSE  mqtt          task_trakt_shows Publishing message [Episode Aired: S99E01   {Series Title Redacted} - Episode Title:   {Episode Title Redacted} air date:               2020.03.08] to topic [flexget/notifications/by_timestamp/2020.03.13_16.27.21/{Series Title Redacted} S99E01]
020-03-13 16:27:22 VERBOSE  mqtt          task_trakt_shows Sending PUBLISH (d0, q1, r1, m1), 'b"flexget/notifications/by_timestamp/2099.01.01_01.01.01/{Series Title Redacted} S99E01"', ... (100 bytes)
020-03-13 16:27:22 VERBOSE  mqtt          task_trakt_shows Notification sent to broker, waiting for callback response to confirm publishing success - rc=(0, 1)
020-03-13 16:27:22 VERBOSE  mqtt          task_trakt_shows Received CONNACK (0, 0)
020-03-13 16:27:22 VERBOSE  notify        task_trakt_shows Successfully sent a notification to `mqtt`
020-03-13 16:27:22 VERBOSE  mqtt                          Received PUBACK (Mid: 1)
020-03-13 16:27:22 VERBOSE  mqtt                          MQTT on_publish callback -  message was successfully published to broker as messageID=1
020-03-13 16:27:22 VERBOSE  mqtt                          Sending DISCONNECT
020-03-13 16:27:22 VERBOSE  mqtt                          MQTT on_disconnect callback - disconnected with result code 0 [Connection Accepted]

To Do:

[ ] More validation with other brokers?
[ ] Current code is non-blocking, but there's an option to make the MQTT publishing calls blocking. input on which method to use?
[ ] Tweak code to fit project as needed/suggested by maintainers

@liiight - Sorry I disappeared for so long.  Figured I should finally clean this up and merge to project.  I think I've addressed all the requests, let me know if there's other issues/suggestions you want me to address.

@liiight - Sorry I disappeared for so long. Figured I should finally clean this up and merge to project. I think I've addressed all the requests, let me know if there's other issues/suggestions you want me to address.

just couple cleanups, welcome back :)

@paranoidi - requested changes made

@paranoidi LGTM

@paranoidi LGTM

Yeah, just one thing about error logging caught my eye. Other than that. Seems good!
@numericOverflow  thanks!

Looking forward for this plugin

not stale, TODO eventually

Let's merge this in, it's been pending too long.

Awesome job, sorry it took so long to merge this

Maybe I spoke too soon, it doesn't seem to work.
@numericOverflow Issue #3533
Can you help a bit with that?


[0.8] Fix bespoke element constructors

Fixes #1151

cc @sjmiles @kevinpschaaf

Fixed in https://github.com/Polymer/polymer/commit/24a29141ca7001ba2f0e4f97795a82bbc9e77620 (didn't take PR #1152 as the implementation has changed a bit). Note the API change, such that the custom constructor need not call document.createElement and return the element.  This will be done automatically; the user constructor should only configure the instance (this).


Implement refresh tokens

Is your feature request related to a problem? Please describe.
I'd like a way to be able to refresh my bearer token without re-logging in.
Describe the solution you'd like
We need to implement a feature to enable the use of refresh tokens.
Describe alternatives you've considered
n/a
Additional context
https://www.rfc-editor.org/rfc/rfc6749#section-1.5

Hi @erzohrakhan, I can get you the details soon. I'll get back as soon as I can.


[context] Authentication callback with IE

Issue and Steps to Reproduce
When using IE 11 to perform authentication.
Once the user has submitted the third-party login form with valid credentials, the browser redirects the user to a /authentication/not-authenticated?message=No matching state found in storage URL.
A message is displayed : Authentification Vous n'êtes pas authentifié.
However, the access_token has been successfully retrieved as it is stored in the sessionStorage and added in API calls.
If the user types the requested URL, then the library works as expected.
Versions

oidc-client : 1.5.1
@axa-fr/react-oidc-context : 1.2.0
@axa-fr/react-oidc-context-fetch : 1.2.0
isomorphic-fetch : 2.2.1
es6-promise : 4.2.6

Screenshots

Expected

The browser should redirect to the URL called before the authentication
A valid access_token should be present in the sessionStorage

Actual

The browser redirect to /authentication/not-authenticated?message=No matching state found in storage and display Vous n'êtes pas authentifié.
A valid access_token is present in the sessionStorage
The browser console display the following error message : OidcClient.processSigninResponse: No matching state found in storage

Additional Details

Workflow

Access to a URL which need authentication

Browser redirects the user to the SSO Login form

User login with valid credentials

Brower redirects to /authentication/callback URL with params

scope
realm
state
access_token (valid access_token)
token_type
expires_in

Browser redirects to /authentication/not-authenticated?message=No matching state found in storage

OIDC configuration

 "oidc": {
    "client_id": "xxxx",
    "redirect_uri": "http://localhost:3000/authentication/callback",
    "response_type": "token",
    "post_logout_redirect_uri": "http://localhost:3000/",
    "scope": "openid profile email",
    "authority": "xxx",
    "silent_redirect_uri": "http://localhost:3000/authentication/silent_callback",
    "automaticSilentRenew": false,
    "loadUserInfo": false,
    "triggerAuthFlow": false
  }

I'am on it Sebastien !

Sébastien, how many time do you have to fix this issue? It is working with pure oidc in vannila js, I still have to test it on the demo of this package.

The sooner, the better :smile:
Update: We've got the same issue with Firefox (65.0)

Hi guys,
Was this issue fixed in https://github.com/AxaGuilDEv/react-oidc/pull/168? If so can you please close this issue? I did notice this issue previously when I built a prototype using this library. I'm considering using this for the real thing and was about to raise this same issue with you. It would be awesome if this had already been fixed :) :+1:

(Btw, this was occurring for me using Chrome, so definitely not browser specific)

It should be fixed. By the last release. @Sebo100 do you confirm it is working now?

@guillaumechervetaxa I've tried with the version 1.3.1-alpha.0 and it does not work better

Any update on this one? Would be great if this fix could go in soon...

I will be back the 27 March, @Sebo1000 or @youf-olivier are you able to look at this bug?

@Sebo1000 @youf-olivier is there any update on this?

@Sebo1000 @youf-olivier are you working on this problem? May be not? Any news will be polite :p

Sorry.
We are on It. But the problem seems to be more complex than you thought.

I found the problem.
I Will fix it in the coming days.

Hi @oyouf
I just tried this fix out locally, and it does solve the issue in the URL. However, I am now seeing this component rendered every time:

Is there a way to not show the above component?

Is the component block the flow (have you your application after that?) ? Or you just want to customize/hide this temporary loading component  ?

Hi @youf-olivier
The flow is not broken - I get back into the application as expected. I would just like to be able to customise or hide the temporary loading component. I know other components are possible to hide, but I couldn't see a mechanism for hiding this one.
I raised an issue for this here: https://github.com/AxaGuilDEv/react-oidc/issues/181

Yes I saw It but I really wanted to be sure :)

#26

We're facing the same issue in IE 11.0.09. The browser is just stuck in not authenticated page

Im still having this issue come up with I am trying to format my app to work on ie11
Has anyone found a solution to this?


Add unit tests for ActionElement

Summary
Related to #264. Adds test for ActionElement.
Implementation details
Adds unit tests.
How to validate this change
If the test looks like it makes sense and it is passing CI no further testing needed.

:green_heart: Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS

Expand to view the summary

Build stats

Start Time: 2023-02-01T04:15:55.193+0000

Duration: 3 min 8 sec

:robot: GitHub comments
Expand to view the GitHub comments

To re-run your PR in the CI, just comment with:

/test : Re-trigger the build.

/test all : Re-trigger the build for all the stages.


[YUNIKORN-790] Implement MaxApplications enforcement

What is this PR for?
Adding maxApplication implementation for Yunikorn queue.
This PR includes and updates existing wip https://github.com/apache/yunikorn-core/pull/384
What type of PR is it?

[ ] - Bug Fix
[x] - Improvement
[ ] - Feature
[ ] - Documentation
[ ] - Hot Fix
[ ] - Refactoring

Todos
NA
What is the Jira issue?
https://issues.apache.org/jira/browse/YUNIKORN-790
How should this be tested?

local test passed by running "make test" in Yunikorn-core and Yunikorn-shim repos(refer to screenshot)

2.Local test result: (launched 1000 Spark jobs to 5 Yunikorn queues on k8s cluster which has 85 nodes)

Total duration and Performance looks good.
Each Yunikorn queue set maxApplication to 12, I queried running jobs number every minute, didn't exceed the limit (12*5 queues= 60).
load test<EMAIL_ADDRESS>Questions:
NA

I am not sure which PR is the one you are working on. The email pointed back to this PR:
config validation code for the resources of a queue compared to its parent is here https://github.com/apache/yunikorn-core/blob/master/pkg/common/configs/configvalidator.go#L79

I am not sure which PR is the one you are working on. The email pointed back to this PR: config validation code for the resources of a queue compared to its parent is here https://github.com/apache/yunikorn-core/blob/master/pkg/common/configs/configvalidator.go#L79

I merged two PRs together. Please only review this one.

updated, please review.

I have some concerns regarding some pieces of the code, please take a look at those, thanks.

Thanks for reviewing the code. I have updated them and addressed all your comments. Please take another look.

Hi @manirajv06 Can you take a look? I saw @wilfred-s requested a review from you 11 days ago.

Thanks @craigcondit for reviewing the PR.
I updated your comments about combining the methods.
canRun code is outdate, please review incAllocatingAcceptedAppsIfCanRun method

Thank you @craigcondit. I addressed comments.
@wilfred-s @pbacsko please take a look when you have time, thanks!

@lixmgl / @pbacsko / @manirajv06 / @craigcondit
Please check PR #455. I ported the changes to master and moved the logic into the queue code.
I added unit tests and one full cycle test into the partition.
I think I have covered all the cases.

@lixmgl / @pbacsko / @manirajv06 / @craigcondit Please check PR #455. I ported the changes to master and moved the logic into the queue code. I added unit tests and one full cycle test into the partition. I think I have covered all the cases.

PR https://github.com/apache/yunikorn-core/pull/455 LGTM.
Thanks for the refactoring and full cycle tests @wilfred-s
Happy late Thanksgiving :)
Can you merge my PR first then add your PR?

Can we merge this PR to master first then add your PR?

This PR formed the basis under my port. We can merge the ported PR in one go. @craigcondit will handle the proper attribution to you when we commit the change. I just did some cleanup and the port :-)

Can we merge this PR to master first then add your PR?

This PR formed the basis under my port. We can merge the ported PR in one go. @craigcondit will handle the proper attribution to you when we commit the change. I just did some cleanup and the port :-)

I see, sounds good. Thanks @wilfred-s and @craigcondit !

Closed in favor of #455.


DSA 3.2.1 Greedy Algorithms - Introduction

Description 📜
Included an audio file on the introduction to the greedy algorithm, along with a summarised documentation for the same.
Fixes #5916

Type of change 📝

[x] Audio (Should be in mp3 format Includes speech clarity, Concise ,Low distortion)
[ ] Vi#deo (Animations, screen-recordings, presentations and regular explanatory films are all possibilties etc)
[ ] Doc#umentation (Content Creation in the form of codes or tutorials)
[ ] Other (If you choose other, Please mention changes below)

Domain of Contribution 📊

[ ] Android Dev #(Flutter)
[ ] Android Dev #(Java)
[ ] Android Dev #(Kotlin)
[ ] Backend Dev #(Java)
[ ] Backend Dev #(.NET)
[ ] Backend Dev #(PHP)
[ ] Backend Dev #(Python)
[ ] C/#CPP
[ ] Competitive #Programming
[ ] Cyber #Security
[x] DSA
[ ] Data#base
[ ] Datascience with #Python
[ ] Datascience with #R
[ ] Frontend Dev #HTML/CSS/JS
[ ] Frontend Dev #React/Angular/Vue
[ ] Go#lang
[ ] Interview #Prep
[ ] Java_#Domain
[ ] JavaScript_#Domain
[ ] ME#RN
[ ] Machine #Learning
[ ] Open #Source
[ ] Python_#Domain
[ ] Ru#st
[ ] Statis#tics
[ ] UI/#UX

Checklist ✅

[x] I follow Contributing Guidelines & Code of conduct of this project.
[x] I have performed a self-review of my own code or work.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] My changes generates no new warnings.
[x] I'm GWOC'21 contributor

Hey @nimisha-yadav ! Please have a look at my PR.

@Elisha-s you've been contributing well, I would encourage you to contribute to few more issues, all the best :)


FIXfix column map for offset next_array_item_rowid order

Proposed changes
Issue Number: close #xxx

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 48.84 seconds
stream load tsv:          555 seconds loaded<PHONE_NUMBER>9 Bytes, about 128 MB/s
stream load json:         20 seconds loaded<PHONE_NUMBER> Bytes, about 112 MB/s
stream load orc:          65 seconds loaded<PHONE_NUMBER> Bytes, about 16 MB/s
stream load parquet:          31 seconds loaded 861443392 Bytes, about 26 MB/s
insert into select:          29.9 seconds inserted 10000000 Rows, about 334K ops/s
storage size:<PHONE_NUMBER>3 Bytes

run buildall

run buildall

run clickbench

run buildall

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 47.41 seconds
stream load tsv:          540 seconds loaded<PHONE_NUMBER>9 Bytes, about 132 MB/s
stream load json:         20 seconds loaded<PHONE_NUMBER> Bytes, about 112 MB/s
stream load orc:          65 seconds loaded<PHONE_NUMBER> Bytes, about 16 MB/s
stream load parquet:          31 seconds loaded 861443392 Bytes, about 26 MB/s
insert into select:          29.6 seconds inserted 10000000 Rows, about 337K ops/s
storage size:<PHONE_NUMBER>3 Bytes

run buildall

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 45.63 seconds
stream load tsv:          557 seconds loaded<PHONE_NUMBER>9 Bytes, about 128 MB/s
stream load json:         20 seconds loaded<PHONE_NUMBER> Bytes, about 112 MB/s
stream load orc:          65 seconds loaded<PHONE_NUMBER> Bytes, about 16 MB/s
stream load parquet:          31 seconds loaded 861443392 Bytes, about 26 MB/s
insert into select:          29.1 seconds inserted 10000000 Rows, about 343K ops/s
storage size:<PHONE_NUMBER>4 Bytes


problem handling preflight 'OPTIONS' reqeusts

Hey
It seems that the plugin forwards 'OPTIONS' preflight requests to apollo-server, I'm getting the error "Apollo Server supports only GET/POST requests.".
I'm using "@as-integrations/hapi": "^1.0.1", with "@apollo/server": "^4.2.2",
My server is "@hapi/hapi": "^21.1.0",
I'm registering the plugin on the hapi sever like this:
server.register({         plugin: require('@as-integrations/hapi'),         options: {             apolloServer,             context:,             postRoute: {                 options: {                     cors: {                         origin: ['*'],                     }                 }             },             getRoute: {                 options: {                     cors: {                         origin: ['*'],                     }                 }             }         }     });
Browser requests fails with the error mentioned above.
When I'm deleting the route for OPTIONS defined by the plugin everything works well.
What am I doing wrong?
Thanks a lot!
Dean

Apollo Server itself does not handle CORS (though our standalone server does and our documentation for the express middleware describes how to install the CORS middleware).
Ultimately, an OPTIONS request should not be passed to Apollo Server. Either the plugin needs to be responsible for handling CORS or it should be documented how users are expected to configure CORS within their Hapi instance so that OPTIONS requests are handled correctly.

Makes sense. I may need to make some adjustments then. Thanks @trevor-scheer

I've just pushed v1.1.1 which has default CORS enabled, but which can also be overridden. @deanshmuel give the new version a whack and let me know if this resolves your issue

This is unrelated but I got here because this is the only hit on the search require('@as-integrations/hapi')
If you are trying to use as-integrations/hapi with CommonJS, require('@as-integrations/hapi') doesn't work. Use this instead: plugin: require('@as-integrations/hapi').default

Hi
sorry for the late response.
I eventually solved the issue by cloning the repo and deleting the route for 'OPTIONS' it sets on the Hapi-server.
I handle all of the cors request straight on the server as documented in Hapi docs

@terrisgit There is a default export for the package. Do you happen to have a test project you could share that I can use to see what you are seeing? There are a number of configurations that could be causing the issue, including babel setup, etc.

@deanshmuel you definitely shouldn't have to clone and patch for the options settings. Did you ever try v1.1.1, which has the fix for CORS overriding? If that's not working for you, I'd like to find the issue and get it fixed. Thanks!

@arimus I'm using commonjs - in other words there is no "type: module" in package.json. It's an old project that has hundreds of require statements.

@terrisgit got it. Yeah, depending on your setup you may have to do exactly what you are doing now. Just for reference, here's a thread about default exports and babel. Some build systems have monkey-patched to make it cleaner on the importing side. Not sure that I can easily do anything that won't have downstream consequences, but I'll look into it some more.
https://stackoverflow.com/questions/33704714/cant-require-default-export-value-in-babel-6-x
I'll create a new issue for this to track and document. Keeping this thread open for @deanshmuel to get back on the OPTIONS issue

By the way, 1.1.1 and cors are working fine for me, and I need it

@arimus you can definitely close the issue, I bumped the version to 1.1.1 and it works pretty well.
Thanks a lot!

Thanks @deanshmuel, appreciate the feedback!


[QUESTION] How to use a named docker volume

Question
Hi,
I'm trying to deploy Dashy on my docker cluster, however for that I need to be able to use a named volume for persistent storage.
I saw in your documentation an exemple of docker compose but with a direct file mapping for persistence.
I tried this
  dashy:
    image: lissy93/dashy
    container_name: BattleStation_Dashy
    # Pass in your config file below, by specifying the path on your host machine
    volumes:
      - persistent-Dashy:/public/
    # Set any environmental variables
    environment:
      - NODE_ENV=production
    # Specify your user ID and group ID. You can find this by running `id -u` and `id -g`
      - UID=500
      - GID=500
    # Specify restart policy
    restart: unless-stopped
    # Configure healthchecks
    healthcheck:
      test: ['CMD', 'node', '/app/services/healthcheck']
      interval: 1m30s
      timeout: 10s
      retries: 3
      start_period: 40s
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.battleStation_dashy_web.entrypoints=web"
      - "traefik.http.routers.battleStation_dashy_web.rule=Host(`XXXXXXXXX`)"
      - "traefik.http.routers.battleStation_dashy_websecure.entrypoints=websecure"
      - "traefik.http.routers.battleStation_dashy_websecure.tls=true"
      - "traefik.http.routers.battleStation_dashy_websecure.rule=Host(`XXXXXXXX`)"

Is there a way to specify the path of the config storage ? maybe with and ENV variable ?
PS : I reposted the question as I did't see a way to reopen the previous one auto closed by your bot :-)
Category
Setup and Deployment
Please tick the boxes

[X] You are using a supported version of Dashy (check the first two digits of the version number)
[X] You've checked that this question hasn't already been raised
[X] You've checked the docs and troubleshooting guide
[X] You agree to the code of conduct

So you should be able to create a volume, with a name (--name flag), then reference that volume within your compose, just by it's name (instead of path). And what you've done looks correct to me.
However, unless your volume contains the contents of the public/ directory, the app isn't going to run. Your best bet is to just pass in the conf.yml file as the volume, instead of the entire directory.
(I know that structure isn't ideal, I do plan on updating it sometime, but it would be a breaking change, so need to handle it carefully)

I also think we need a volume mount to /app/public,  as it holds all the configurations such as:

conf.yml
item-confs
index.html (this needs to be editable to set the site's Title, it is by default set to Dashy)
favicon.ico and other logos etc.

The main issue is, as far as I know it, named volume can only be mapped to a folder an not to an individual file. This require also that the folder it map to in the container be empty.
In most non hyper-local environment, you can only define named volume (as the container is not on a defined host and therefor is not allowed to map to a real path) and the volume start empty (and is not meant to be accessible other than via container.
I see 2 possibles solutions :

Move config to /public/config/config.yml

Pro :

Allow easy mapping of folder to volume

Con :

Config file need to be created by the server if empty / not existing
Need extra check by the app to not break compatibility (if /public/config.yml exist, use it, of not use /public/config/config.yml)

Bootstrap /public/ folder on launch if empty folder

Pro :

easier solution of the 2 to implement ?

Con :

Extra static files stored in volume instead of the container
Require extra bootscript for the container to check for empty folder and copy from build folder
Need to retarget build output folder to other template folder (/public-template/ for exemple)
Problematic for upgrade ?

As you said, the priority should be non breaking change :-)
I will try on my side to extend your container with a custom dockerfile, maybe I can play with symlink to retarget the configfile elsewhere, we'll see.

I just saw your latest commits, especially this one
It seem indeed that targeting the right folder fix the issue. The bootstraping from a empty folder work fine by targetting /app/public
You can probably consider my previous comment null and void :-) (and I will close this issue now that the documenation is fixed)
Thanks for this great tool ^^

Ohhh, I'm sorry I should have noticed in your original question that the app was missing 🤦
I'm not sure why this was ever removed from the docs in https://github.com/Lissy93/dashy/commit/40a56ceb583712418c541e3ef838f0de2de99882 by StevKast 🤔
But this was raised in #601, and I added it back in
Feel free to reach out if you need anything else :)

Yeah, I goofed and had a misunderstanding when I was troubleshooting on my own cluster. I got mixed up about how this containers dockerfile is not defining a volume vs how a lot of the linuxserver.io volumes. For example the last line of this file: https://github.com/linuxserver/docker-sonarr/blob/master/Dockerfile.
Sorry for breaking things :( @Lissy93


Fix missing unittests in docs

Found using https://github.com/dlang/dmd/pull/14527.

Updated. There are some more to fix but I've stalled on this right now so marked as ready.

I think private undocumented symbols should be ignored when matching a documented unittest to a symbol (https://issues.dlang.org/show_bug.cgi?id=17678). So I've removed four changes that should be unnecessary if that is implemented.


Linking libraries on Android

Question how to "link a library"  in android?  What are the steps involved?
I know about rnpm and this does the 'magic' for you.
But how to do this manual , to check if its working?
I like to have a explainatory page like IOS has,
so it can be explained how to fix library links.
Example: https://facebook.github.io/react-native/docs/linking-libraries-ios.html
Label: Documentation request.

Hi @cablegunmaster!
Yeah, indeed, this page is missing. Usually, on Android you don't have a "standard" path - every library may require some specific installation steps, so it's hard to write a one-fits-all doc about it. If you have a vision how it can be done, we would be glad to review your PR.

Hi there! This issue is being closed because it has been inactive for a while.
But don't worry, it will live on with ProductPains! Check out its new home: https://productpains.com/post/react-native/linking-libraries-on-android
Product Pains has been very useful in highlighting the top bugs and feature requests:
https://productpains.com/product/react-native?tab=top
Also, if this issue is a bug, please consider sending a pull request with a fix.


OAuth2::Error is not really helpful

Hey
I tried to do simple token refresh stubbing today, but the lib made it tough.
client = OAuth2::Client.new(
  'CLIENT_ID',
  'CLIENT_SECRET',
  authorize_url: 'https://appcenter.intuit.com/connect/oauth2',
  site: 'https://appcenter.intuit.com/connect/oauth2',
  token_url: 'https://oauth.platform.intuit.com/oauth2/v1/tokens/bearer'
)

token = OAuth2::AccessToken.new(
  client,
  'ACCESS_TOKEN',
  refresh_token: 'REFRESH_TOKEN'
)

You can ignore those URLs. Then I do token.refresh! in a test. Here's a brief version of that.
RSpec.describe 'quickbooks_online/token', type: :feature do
  before do
    stub_request(:post, "https://oauth.platform.intuit.com/oauth2/v1/tokens/bearer").
    with(
      body: {"client_id"=>"CLIENT_ID", "client_secret"=>"CLIENT_SECRET", "grant_type"=>"refresh_token", "refresh_token"=>"REFRESH_TOKEN"},
      headers: {
        'Accept'=>'*/*',
        'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3',
        'Content-Type'=>'application/x-www-form-urlencoded',
        'User-Agent'=>'Faraday v0.15.4'
      }).
    to_return(
      status: 200,
      body: "{\"token_type\":\"bearer\",\"expires_in\":3600,\"refresh_token\":\"NEW_REFRESH_TOKEN\",\"x_refresh_token_expires_in\":1569480516,\"access_token\":\"NEW_ACCESS_TOKEN\"}",
      headers: {}
    )
  end

  context '#refresh' do
    subject { token.refresh! } # token comes from code above

    it { expect(subject.access_token).to eq('NEW_ACCESS_TOKEN') }
  end
end

But all I got is this error
     OAuth2::Error:
       {"token_type":"bearer","expires_in":3600,"refresh_token":"NEW_REFRESH_TOKEN","x_refresh_token_expires_in":1569480516,"access_token":"NEW_ACCESS_TOKEN"}

So stubbing works fine, but whats up with the error? Does it make sense to you?
After digging I came across this client.rb#L148. You just return generic error with response body. Thats not very helpful.
Then after putting bunch of debugger statements I noticed that response.parsed returned nil But still couldn't figure out why. After going deeper into response class, I noticed that parser was nil, so it couldn't pick up correct parser. This is where I stopped trying to figure out how oauth2 picks up parser and just tried to set Content-Type response header.
headers: {
  'Content-Type'=>'application/json'
}

And that was it.
I think it would be way better to raise some meaningful error here response.rb#L70 instead of just returning nil and then raising generic OAuth2::Error with response body.

Interesting.
https://stackoverflow.com/questions/40998133/content-type-for-token-request-in-oauth2
What you had initially, 'Content-Type'=>'application/x-www-form-urlencoded', is definitely correct, and 'Content-Type'=>'application/json' is definitely wrong.
Looks like this is possibly a bug.


how to dispose a JClass

Is there any built-in method for disposing a jclass from jpype? Or setting value null for garbage collector

The JClass is a cached instance shared by all objects of the class and thus will persist until the jvm is exited.  Objects created from JClass live with the same scope as the python object.  Thus any python method that removes a Python object (del, local scoping, or set to a new value) will schedule the item for garbag collection.  There are no garentees when it will be collected.  But there are ways to force the collection.  You can find examples of this in our leak check test cases under 'test/jpypetests'.

Thank you


No support for ssconf

Currently it s not possible to manage dynamic SS configurations (ssconf://xxx). Do you have any plans to support those?

Apologies for the late reply, I'm a bit overworked at the moment :)
I'm not sure if the baseline CLI supports it (I think it does, as it should be implemented at the SDK level), but if it does, then I'll add support for it here as well for sure, as it's just a matter of tweaking a few lines here and there!


[Question] License?

I am using this in an application at work, and we have strict legal requirements about the components we use. I am not able to find any licensing information about grunt-mocha-istanbul.

it's MIT, I put it in package.json but forgot to add a license file :)

Thanks!


Align sideway seperator line with the inner side of the tabs

I cannot solve it. Because there are two probable ways. One way is canceling the borders of the panel manager, and using the borders of the content part. But the height of the content part would change while scrolling. It is inefficient f I used jQuery to fix the height of the div with adding the length of scrollTop(). Another way is using the tab part to overlap part of the left and the bottom border to make the line look like at the inner side. However, the similar problem exists on the tab part while scrolling.
I fixed the css style a little bit to make it look better. Let me know if you have any idea to solve this problem.

Would it be possible to make the tabs floating on the left, and just make the panel body narrower in width? In that case you can keep all the borders.
Suppose the side panel body is 200px wide and is positioned at "left: 0px". The you can make the tab floating -30px "left: -30px". Because the tabs are floating, they do not interfere with the side panel at all. The side panel body will determine its borders at left=0px and left=200px, so that you don't have a vertical line stroke downwards.

I tried this way and I am sorry that it doesn't work. The transparent problem solved but the height of the panel content still remain, so that the bottom border would move on while scrolling.

Even though we can split the panel tab from the panel content and float the panel tab to the left, but we need scrollbar to the whole panel manager. The only way to keep the bottom border all the time is using the bottom border of the panel manager, because the height of the panel content wouldn't increase while scrolling without the control of JS.

I might be missing sth. What if the side panel has fixed size and the tabs are floating and appended to its left? I don't think the tab would affect the scrolling of the side panel body.

It possible as I mentioned before. We can use jQuery scrollTop() to fix the
height of panel body dynamically while scrolling. But it is not intuitive
and it would consume a lot of computing resources.
On Saturday, 7 November 2015, Bowen Yu<EMAIL_ADDRESS>wrote:

I might be missing sth. What if the side panel has fixed size and the tabs
are floating and appended to its left? I don't think the tab would affect
the scrolling of the side panel body.
—
Reply to this email directly or view it on GitHub
https://github.com/ViDA-NYU/genotet/issues/6#issuecomment-154635756.

--
With kind regards,
------------------------------------------------------------
Liana Yang
New York University (NYU)
E-mail: shauroshanying<EMAIL_ADDRESS>http://gmail.com

I mean I still didn't get why making the tabs floating will result in a scroll problem. Maybe you can leave it for now and I will take a closer look tmrw.

The scrollbar would control the element it belongs to. The panel body would
move up and down while scrolling the panel tab, because the scrollbar
cannot only control the panel tab (expect set the scrollbar to the panel
tab seperately near it). Thus the only way to keep the panel body
relatively static to the screen is to fix its height. However, fixing the
height of panel body dynamically is just like applying gas pedal and break
at the same time. Wasting resources like this doesn't make any sense.
Thus, I think it is meaningless.
On Saturday, 7 November 2015, Liana Yang<EMAIL_ADDRESS>wrote:

It possible as I mentioned before. We can use jQuery scrollTop() to fix
the height of panel body dynamically while scrolling. But it is not
intuitive and it would consume a lot of computing resources.
On Saturday, 7 November 2015, Bowen Yu<EMAIL_ADDRESS><javascript:_e(%7B%7D,'cvml','notifications@github.com');>> wrote:

I might be missing sth. What if the side panel has fixed size and the
tabs are floating and appended to its left? I don't think the tab would
affect the scrolling of the side panel body.
—
Reply to this email directly or view it on GitHub
https://github.com/ViDA-NYU/genotet/issues/6#issuecomment-154635756.

--
With kind regards,
------------------------------------------------------------
Liana Yang
New York University (NYU)
E-mail: shauroshanying<EMAIL_ADDRESS>http://gmail.com

--
With kind regards,
------------------------------------------------------------
Liana Yang
New York University (NYU)
E-mail: shauroshanying<EMAIL_ADDRESS>http://gmail.com

I'm not saying that we shall control the scroll dynamically. But if the panel body is a sibling of the tabs, and the scroll is on the panel body only, the scroll should not affect the tabs at all. It won't be necessary to scroll the tabs...

I took a brief look on my phone and it is the case that the tabs are inside the slider div. however I believe they shouldn't...

I tried move them outside and the problem still exists.......
Maybe we can leave it now temporarily and move on to the expression view
asap......
On Saturday, 7 November 2015, Bowen Yu<EMAIL_ADDRESS>wrote:

I took a brief look on my phone and it is the case that the tabs are
inside the slider div. however I believe they shouldn't...
—
Reply to this email directly or view it on GitHub
https://github.com/ViDA-NYU/genotet/issues/6#issuecomment-154646518.

--
With kind regards,
------------------------------------------------------------
Liana Yang
New York University (NYU)
E-mail: shauroshanying<EMAIL_ADDRESS>http://gmail.com

Ok I'll try to fix it.


Default callback for Metalsmith.build()

Someone smarter than me might be able to come up with a more elegant solution than mine, I've give what I have.  The build function only works if you pass it a callback, which is somewhat unintuitive.  This change accepts your callback, but if you don't provide one, it inserts a default callback which simply throws any errors returned.
Generators are a new thing for me, and I feel like my changes are tacky and ugly, defacing some very elegant code.  However, in my tests, they do seem to work, which is more important than elegance.  If anyone has a way to improve this and provide the same functionality with more elegance, I'll be your biggest fan.

:+1: on this. It's really weird that in the project webpage everywhere build() is used without providing a callback. At least on GitHub the examples use a callback.
Few days ago a friend tried Metalsmith… but he switched for Jekyll as the builds where not working. I suspect that it has something to do with this… :-)

I think this breaks the generator use?

Yeah, I believe it does, so I think we should pass on this PR. If anything, this is probably an issue that unyield should solve.

I wish I knew how to apply unyield to this.  I'm really struggling with generators

Hmm, I just looked at unyield's code, but it doesn't look like this will be an option.
But I think I'll stick to my point that it's not that hard to add function () {} to your metalsmith invocation. If you really want to be more clean, just defined a function noop() {} somewhere in your file and pass that instead.

If metalsmith eventually uses Promises instead of generators, that will fix this issue too, fwiw.


Re-license as MIT?

This code has been extracted from:

https://github.com/lvarvel/cacheddownloader/commit/505a1fd
https://github.com/lvarvel/cacheddownloader/ which bears APL2.0

It seems very heavy to require APL2.0 on this little bit of code. It would be much better to relicense this as MIT, but only the original authors can do that.
@mavenraven, @lvarvel, @jvshahid: (original authors) are you willing to relicense this code as MIT?
If so, just say so here. I will add you as collaborators and ask that you make one commit removing APL2.0 and adding MIT License.
Thank you

We are working with our legal team to make the change. We will get back to you as soon as we get the green light.

@jvshahid thank you very much for taking the time, and for the update.

Hey @jbenet,
Sorry, we're not going to be able to re-license the code. Let me know if you're interested in pairing on rewriting it.

bummer to hear. at the moment we're compatible with apache 2 so i dont have a strong need. happy to help bust something out though


Less use of 'this' keyword.

Instead of writing this code:
class Test
{
	private num: number;

	public doSomething(): void
	{
                //Unnecessary this keyword
		this.num = 1;
	}

	public doSomething2(): void
	{
		let num: number = 2;

		this.num = num;
	}
}

write this code:
class Test
{
	private num: number;

	public doSomething(): void
	{
		num = 1;
	}

	public doSomething2(): void
	{
		let num: number = 2;

		this.num = num;
	}
}

and compile to this:
var Test = (function () {
	Clock.prototype.doSomething = function () {
        	this.num = 1;
	};
	Clock.prototype.doSomething2 = function () {
		var num = 2;
        	this.num = num;
	};
    return Clock;
}());

Would that be possible?

This isn't C#. I mean js doesn't have static binding. what if you want to use a global variable or closured variable but you have a field with the same name? C# doesn't have to worry, it doesn't have globals or inline classes. but js is different. The compiler can give you a quick fix when it finds no deceleration but sees a field. But doing it automatically is way too error prone. take this example:
// shadowed by public foo;
const foo = 'foo';

class Bar {
   public foo;

   public baz() {
     // no way to access const foo
     return foo;
  }
}

or:
function (stuff: string) {

  return class Blah {
    stuff: public;

    function a() {return stuff}; // cannot ever access stuff:string
  }

}

This has already been suggested, of course. See #679


added six module for py3 compatibility; migrated all code

Tested with 2.7.6 and 3.4.3. Haven't tested every method, but request generation and response json parsing works fine so I foresee no problems.

Hey @robin900 - thx for taking the time to get this project up to speed and compatible with Python 3. I have some light feedback and if you don't mind addressing, I'll get this merged asap.

Docstrings: Would you mind adding some docstrings for the new _totext() and _tobytes() functions?
utils.py:  Would you mind moving these two fcns to a utils.py module (mixpanel_query/utils.py)? I understand these fcns are currently only used in the modules in which they are declared, but this IMO, change would help keep the project organized as it grows.

Thx again for the work and the PR -- I appreciate your help :)

@thesmallestduck @frifri -- would you mind reviewing these changes when you get a minute?

@robin900 Thanks for that PR.
other than @cooncesean feedback, this looks good to me.

Would you want to create a live Mixpanel account, with whatever email address you prefer as the login, and seed some events in it, so that we can have a test suite that hits a live Mixpanel account? I have a tox.ini and a unittest-based test suite ready to go if you are willing to make an MXP account, put some events in, and add the _secret and _key to the test file. I'll make a separate PR for those.

commit pushed. should be ready to merge. if you could make a PyPI release soon I can remove my git+ssh urls for mixpanel-query-py from all my projects :)
BTW, my next PR will have a tox.ini and a test suite (very basic). But the test suite will fail because it doesn't have a valid key/secret for a Mixpanel account for testing.

Huge - thx @robin900; we'll merge today and release to PyPi; I'll update this thread once that has been done.
As for tests, do you think we could get away with using mock for the suite -- or do you think the library is so dependent on Mixpanel integration that its necessary to hit their service and check for results. I'd hate to have a failing test suite b/c Mixpanel is slow or unresponsive. Hit back with any thoughts you have.

Haven't tested locally, but reads good. Thanks for doing this @robin900

@robin900 Release 0.1.6 is on PyPi -- can you pip install and assert it works as expected?


how to costumize json result?

Hello @iSarabjitDhiman i would like to ask how can i customize the json result to get only id content date of ceation number of likes and retweet and url of the post intead of the whole thing thanks!!

If you are using the async-await branch, use the following :
from tweeterpy import TweeterPy
from tweeterpy import util

twitter = TweeterPy()
# get tweets or other data
data = twitter.get_user_tweets("elonmusk",total=50)

# get data by keys from the nested python dict, just pass in the dataset and the key name you want to extract.

# NOTE : THERE MIGHT BE MULTIPLE KEYS WITH THE SAME NAME. SAY ID (IT COULD BE ID OF TWEET OR A USER OR A THREAD CONVERSATION ETC. ) TRY TO PASS A UNIQUE KEY, OR JUST PASS A DATASET WITH UNIQUE KEYS.
usernames = util.find_nested_key(data,"screen_name")

If you are using the master branch. Just define the following code in your project and use it as a normal function.

def find_nested_key(dataset=None, nested_key=None):
     def get_nested_data(dataset, nested_key, placeholder):
         if isinstance(dataset, list) or isinstance(dataset, dict) and dataset:
             if isinstance(dataset, list):
                 for item in dataset:
                     get_nested_data(item, nested_key, placeholder)
             if isinstance(dataset, dict):
                 if nested_key in dataset.keys():
                     placeholder.append(dataset.get(nested_key))
                 for item in dataset.values():
                     get_nested_data(item, nested_key, placeholder)
         return placeholder
     return get_nested_data(dataset, nested_key, [])

usernames = find_nested_key(data,"full_text")

thank you for your hard if i can ask you how much tweets can i scrap by month
and  a second question when i use pip install i install from the master branch how can i switch to the async-await branch?

thank you for your hard if i can ask you how much tweets can i scrap by month
and  a second question when i use pip install i install from the master branch how can i switch to the async-await branch?

To check the rate limits, just use the async-await branch and pretty much all of the functions have an argument "return_rate_limit". Just set it to True. Take a look at this #12  .It will return the hourly api rate limits, you can also google twitter api rate limits and you will get an idea of the requests you can make a day.
NOTE : If the rate limit is like 2000 per day that doesnt mean you can get only 2000 tweets a day. It mean you can make 2000 requests a day. The data you can get depends on the type of data you are requesting for. Say if you are requesting for user_data, each request returns data for each user so that will be 2000 in this case. But in case of tweeets, sometimes each request returns 30-50 or other times it does return like 100 tweets in a day. So its better you keep an eye on those rate limits. The best way is to make a request and then request for the api limit stats to check how many requests did it cost.
# to check rate limits for user friends.

twitter.get_friends('',follower=True,return_rate_limit=True)

# to check limits for user tweets.

twitter.get_user_tweets('',return_rate_limit=True)

# it will return the total number of api calls allowed and the remaining api calls. You can get an idea from there.

Check this guide to switch to the async-await branch.

twitter api rate limits

i am actually using .get_user_media so if i use get_user_tweets what the differebce between the twO?

using createdat=util.find_nested_key(user_tweets,"created_at")
['Wed Sep 30 19:02:27 +0000 2009', 'Thu Jul 27 09:21:51 +0000 2023', i got date of creation of post and date of creation of the account how can i get only date of creation of post?

As I mentioned earlier, there might be multiple keys in a single dataset, "created_at" key is used for the users and also for the tweets as well. You can just use a for loop. The nested location of creation_at for tweets is at ['content']['itemContent']['tweet_results']['result']['legacy'].
So the quick fix in your case is:
[util.find_nested_key(tweet['content']['itemContent']['tweet_results']['result']['legacy'],"created_at") for tweet in user_tweets[0]['data']]

As I mentioned earlier, there might be multiple keys with the similar name in a single dataset, "created_at" key is used for the users and also for the tweets as well. You can just use a for loop. The nested location of creation_at for tweets is at ['content']['itemContent']['tweet_results']['result']['legacy'].
So a quick fix in your case is:
user_tweets = twitter_user_tweets("elonmusk",total=20)
[util.find_nested_key(tweet['content']['itemContent']['tweet_results']['result']['legacy'],"created_at") for tweet in user_tweets[0]['data']]

if is it possible to know where is the data list or dictionnary that contains all the keys just to know for example what is the keys to use to have only the url of the post or id of the post . and thanks for being up to date

As I mentioned earlier, there might be multiple keys with the similar name in a single dataset, "created_at" key is used for the users and also for the tweets as well. You can just use a for loop. The nested location of creation_at for tweets is at ['content']['itemContent']['tweet_results']['result']['legacy'].
So a quick fix in your case is:
user_tweets = twitter_user_tweets("elonmusk",total=20)
[util.find_nested_key(tweet['content']['itemContent']['tweet_results']['result']['legacy'],"created_at") for tweet in user_tweets[0]['data']]

if is it possible to know where is the data list or dictionnary that contains all the keys just to know for example what is the keys to use to have only the url of the post or id of the post . and thanks for being up to date

Hey @ihabpalamino
You can take a look at the official Twitter API website if they have posted some sample responses. Otherwise you gonna have to navigate through the response yourself to understand those key, values pairs. Just grab one of the results from the list, other results are quite similar most of the times.
I just updated the find_nested_key function. Now it take nested_key as a tuple as well. Its easier this way to deal with multiple similar keys. Check the usage here
Let me know if this is what you wanted.

thanks but stay cant get url of each post that direct me to see the tweet

thanks but stay cant get url of each post that direct me to see the tweet

Twitter doesn't send the direct url to tweets in this dataset. You will have to create it on your own.
The tweets url structure is :
https://www.twitter.com/username/status/tweet_id

user_tweets = twitter.get_user_tweets("elonmusk",total=10)

for user in user_tweets:
    for tweet in user["data"]:
        tweet_id = util.find_nested_key(tweet,("tweet_results","result","rest_id"))
        username = util.find_nested_key(tweet,("user_results","result","legacy","screen_name"))
        if tweet_id and username:
            print(f"https://www.twitter.com/{username}/status/{tweet_id}")

Assuming this is what you were looking for, I am closing the issue.


[BUG] Koord Scheduler Exception due to CSIStorageCapacity v1 Incompatibility

What happened:
failed to list *v1.CSIStorageCapacity: the server could not find the requested resource
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
k8s v1.23.13 with koordinator v1.3.0
Anything else we need to know?:
Under k8s v1.23.13, the output of kubectl api-resources --api-group=storage.k8s.io:
NAME                   SHORTNAMES   APIVERSION               NAMESPACED   KIND
csidrivers                          storage.k8s.io/v1        false        CSIDriver
csinodes                            storage.k8s.io/v1        false        CSINode
csistoragecapacities                storage.k8s.io/v1beta1   true         CSIStorageCapacity
storageclasses         sc           storage.k8s.io/v1        false        StorageClass
volumeattachments                   storage.k8s.io/v1        false        VolumeAttachment

The v1 version of CSIStorageCapacity was introduced in 1.24.
Environment:

App version: v1.3.0
Kubernetes version (use kubectl version): v1.23.13
Install details (e.g. helm install args):
Node environment (for koordlet/runtime-proxy issue):

Containerd/Docker version:
OS version:
Kernal version:
Cgroup driver: cgroupfs/systemd

Others:

Yes. koord-scheduler uses k8s scheduler framework v1.24, which uses v1.CSIStorageCapacity.
In order to be compatible with kubernetes v1.22, v1.24 and other lower versions, koord-scheduler adds feature-gate CompatibleCSIStorageCapacity and DisableCSIStorageCapacityInformer.
CompatibleCSIStorageCapacity will enable a custom CSIStorageCapacity informer, which will internally convert v1beta1.CSIStorageCapacity to v1.CSIStorageCapacity in memory
DisableCSIStorageCapacityInformer is used to disable CSIStorageCapacity informer. Versions below k8s v1.22 need to enable FeatureGate
So you can try enabling the feature gate CompatibleCSIStorageCapacity in koord-scheduler.


changed some structure of the profile js and html page

For the second commit, it asked me to either move the Microblaug.iml file or commit it. I did not touch it though it is the same as Jonathan's.


fix: installation of dependencies on Windows

Description
Installing the dependencies was giving me the following error:
Bad state: No element #0      ListMixin.firstWhere (dart:collection/list.dart:167:5) #1      FileExtractor.extract (package:umbra_cli/src/workers/file_extractor.dart:26:26) ...
I managed to track the problem to the fact that the FileExtractor was expecting a file named "install/bin/glslc" in the archive, but the actual name is "install/bin/glslc.exe" (for Windows). Also, the file was being saved as "glslc" and not as "glslc.exe", as it should on Windows.
I just added the ".exe" to the end of the file names, when installing the dependencies and the platform is Windows. Creating and generating the shaders is working for me now.
Type of Change

[ ] ✨ New feature (non-breaking change which adds functionality)
[x] 🛠 Bug fix (non-breaking change which fixes an issue)
[ ] ❌ Breaking change (fix or feature that would cause existing functionality to change)
[ ] 🧹 Code refactor
[ ] ✅ Build configuration change
[ ] 📝 Documentation
[ ] 🗑 Chore

Sure! I changed the test.


Suggest fnm instead of nvm (rust FTW)

Updated readme 🦀

I somehow hadn't seen fnm before, but it's a much nicer tool than nvm. Thank you!


done Backend PD (with fix after done UI)

error UI:

error nav to ProjectDetail:

change UI:
X button change to red color; close button change to light gray color

to fix error nav to ProjectDetail: (update SQL)

wrong name col. it should look like this

Comment all line SecretKeyController.java


[fix][broker] Skip topic auto-creation for ExtensibleLoadManager internal topics

Motivation

For our load data system topics such as, non-persistent://pulsar/system/loadbalancer-broker-load-data, allowAutoTopicCreationType=partitioned causes other broker's producer creation to incorrectly create a new partitioned topic (although we pre-create the system topics as non-partitioned topics). Because of this, the leader broker cannot collect all brokers' load data as the other brokers publish the load data in different topics(partitioned topics).
For non-persistent topics, Producer creation incorrectly creates a new partitioned topic, although the topic was created as a non-partitioned topic before.
Producer creation first fetches the partitionMedatadata from the broker, and when fetching this partitionMedatadata, brokers automatically create a new one with the conditions like the below code. The problem is that the broker serving handlePartitionMetadataRequest might not be the owner broker (I don't see checkBundleOwnership in the handlePartitionMetadataRequest code path.) Hence, the topicExists condition in the below code can become false, if  not owner, and create a new partitioned topic (by default).
https://github.com/apache/pulsar/blob/master/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/BrokerService.java#L3167-L3175
Modifications
Skip to auto-create ExtensibleLoadManager internal system topics, as we precreate them now.
Verifying this change

added a test case to cover this logic.

Does this pull request potentially affect one of the following parts:

If the box was checked, please highlight the changes

[ ] Dependencies (add or upgrade a dependency)
[ ] The public API
[ ] The schema
[ ] The default values of configurations
[ ] The threading model
[ ] The binary protocol
[ ] The REST endpoints
[ ] The admin CLI options
[ ] The metrics
[ ] Anything that affects deployment

Documentation

[ ] doc
[ ] doc-required
[x] doc-not-needed
[ ] doc-complete

Matching PR in forked repository
PR in forked repository:

Could be related to the increased flakiness of ExtensibleLoadManagerTest.testIsolationPolicy, #20608


add plumbing for event flags

CODAL supports executing an event under different concurrency/queueing models.  This change exposes the CODAL events flags as a default parameter.  No change of behavior for existing targets.  For example of use, see
https://makecode.com/_1xWL07DrvM23

we can't use the enum name because of cpp.ts limitations (and other things, I imagine)


assume that disco server is always at 8989 if the port is not specified

Closed in favour of #29 as the tests did not pass this one.


Left Padding Function in LCD Configs

Problem summary
Instead of 7 Segment Devices we have no "Left Padding " - Option in a LCD Config
MF Version
7.5.2
Steps to reproduce

Create a Output Config and use Preset "DATE- Seconds Local Time"
Create a Outptu Config for a LCD Display.
Use as Placeholder1 the First "Data Config" above... For example Symbol %
Define in Display Field for Example " TEST: %%"

Expected result
Seconds shown on Real Clocks like 00...01...02...03...04
Actual result
Without the Left Padding it is shown as 0...1....2....3...4.  ( Looks not good)
Further details
Same Problem in Lots of other situations.
A Course of 87 Degrees is shown on Real Displays as 087 ...   Speeds also shown like 065 kt.
Left Padding is needed here in same situations like its used on 7 Seg Displays.
(Whatever we need no Left Padding-Space Option.... This is already included automaticly.)
Improvisional Solution
As i reported in a other Issue #206 we can use a trick here.
A Value of 4 Characters length like 1234 is on LCD shown with only 3 Placeholders like %%% finaly as 234  ( The Leading Number(s) is/are terminated)
In this Situation a simple ADD Transform Helps.
In Example of SECONDS we Add 100 to the Value $+100
Now Raw Value is 0-59 ....   Calculated Value = 100-159
With only 2 Placeholders the Left "hundret Part" is not shown.... But Now a Number like 5 seconds is technical 105 ....  And Without "1"  the Display show correctly "01"
This work for all Values....  You just need to ADD a Value so the Number increase by 1 Diggit.
For example Course got 3 Diggits...  So Add 1000 result in 1000-1359
ALT have 5 Diggits ... So Add 100.000 result in 100.000 - 145.000 for example.
Summary
Maby you agree with me that the "improvisional Solution" is Still the final workflow.
But Maby you think already about a GUI Integration.
Here we will need a "Left Padding" Option for every Placeholder.
Maby a Checkbox Right of the "Choose Placeholder" Tab where we can already set Config, Symbol and so on.
Just think about, please !
[Issue created by Pizman82: 2019-03-18]
[Last updated on bitbucket: 2019-09-08]

This can be done now with the new modifiers UI. See #1249


Bug: r at eval:10:13 has no type

The following triggers it
class A

  def initialize @ivar
    meth
  end

  def meth
    r = self.class.new(5)

    puts "#{r.@ivar}"
  end

end

a = A.new(6)

But this works:
class A

  def initialize @ivar
  end

  def meth
    r = self.class.new(5)

    puts "#{r.@ivar}"
  end

end

a = A.new(6)
a.meth

Is it because the type is only assigned after running the initializer?

I'm not sure, but shouldn't your first example result in an endless loop?
E.g. initialize ----> meth ---> initialize ---> meth ---> initialize ---> meth ---> ....
in which case the error message might be improved but not much else to do imo (Or I have a thinking error regarding the code)

Yeah, it's mostly about improving the message, I believe. Right? :D

Contrived better example? No endless loop in this case.
class A

  def initialize @ivar
    if @ivar > 2
      meth
    end
  end

  def meth
    r = self.class.new(1)

    puts "#{r.@ivar}"
  end

end

a = A.new(6)

Definitely contrived, but still a bug :-)

Similar code:
class Foo
  def foo
    crash.foo
  end
end

def crash
  x = Foo.allocate
  x.foo
  x
end

crash

The recursiveness of this makes the AfterTypeInferenceTransformer doesn't work well (note to ourselves).

👍


Add INMET.on

Fix #29

Codecov Report
Attention: Patch coverage is 25.00000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 46.83%. Comparing base (33b8231) to head (f58f6df).

Files with missing lines
Patch %
Lines

src/inmet.jl
25.00%
3 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #30      +/-   ##
==========================================
- Coverage   48.01%   46.83%   -1.19%
==========================================
  Files           4        4
  Lines         479      474       -5
==========================================
- Hits          230      222       -8
- Misses        249      252       +3

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


EACCES: permission denied, scandir '/lost+found' and also on others:EACCES: permission denied, scandir '/root'

i try to run astro build run and it seems after some debugging that astro-compress is the reason,what to do,package,json:{
"name": "website",
"type": "module",
"version": "0.0.1",
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro",
"lint": "prettier --write  "**/*.{js,jsx,ts,tsx,md,mdx,astro}""
},
"dependencies": {
"@astrojs/prefetch": "^0.4.0",
"@astrojs/sitemap": "^3.0.2",
"astro": "^3.3.2",
"astro-compress": "^2.0.15",
"astro-google-fonts-optimizer": "^0.2.2",
"astro-purgecss": "^3.2.1",
"astrojs-service-worker": "^1.1.0"

},
"devDependencies": {
"prettier": "^3.0.3",
"prettier-plugin-astro": "^0.12.0"
}
}
astro.config.mjs:import { defineConfig } from 'astro/config';
import compress from "astro-compress";
import serviceWorker from "astrojs-service-worker";
// https://astro.build/config
import prefetch from "@astrojs/prefetch";
import sitemap from '@astrojs/sitemap';
import purgecss from 'astro-purgecss';
// https://astro.build/config
export default defineConfig({
site: "https://mysite",
integrations: [serviceWorker(), compress(), prefetch(), sitemap(),
purgecss({
fontFace: true,
keyframes: true,
safelist: ['random', 'yep', 'button', /^nav-/],
blocklist: ['usedClass', /^nav-/]
})]
}); (it shows the same with the latest version)

i dont know if it is useful or not,when i use astro-compress 2.0.12 it works

Can reproduce. Running<EMAIL_ADDRESS>Getting this error when building: Error: EACCES: permission denied, scandir '/lost+found'

Yes, there have been issues with the latest versions and they're deprecated for now use 2.0.15 as the latest one https://www.npmjs.com/package/astro-compress?activeTab=versions

They are now also unpublished, I forgot I can do that.

I'm closing this as those versions will not be re-published.

Also, I would like to leave this here, if you don't mind. 😌
– If anyone is using Cloudflare (like I do), Netlify or some similar platform and has upgraded astro-compress to > v2.0.15 (prior to those versions being unpublished), you will get the same error as mentioned here, on your host/platform.
The only fix for now is - as mentioned - to downgrade to v2.0.15 and your builds will work again. 🥳👋🏼

mentioned here, on your host/platform.\n\nThe only fix

Yes, I was forced to use 2.0.13


Smt connection with designspace

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

76 of 164 (46.34%)  changed or added relevant lines in 12 files are covered.
128 unchanged lines in 3 files lost coverage.
Overall coverage decreased (-2.5%) to 89.146%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

smt/applications/ego.py
3
4
75.0%

smt/applications/mfk.py
3
4
75.0%

smt/applications/mixed_integer.py
3
4
75.0%

smt/problems/hierarchical_goldstein.py
3
4
75.0%

smt/problems/mixed_cantilever_beam.py
3
4
75.0%

smt/problems/neural_network.py
3
4
75.0%

smt/problems/problem.py
3
4
75.0%

smt/surrogate_models/gpx.py
3
4
75.0%

smt/surrogate_models/krg_based.py
3
4
75.0%

smt/utils/kriging.py
3
4
75.0%

Files with Coverage Reduction
New Missed Lines
%

smt/utils/design_space.py
18
85.75%

smt/surrogate_models/krg_based.py
35
89.72%

smt/utils/test/test_design_space.py
75
59.82%

Totals

Change from base Build<PHONE_NUMBER>5:
-2.5%

Covered Lines:
6677

Relevant Lines:
7490

💛  - Coveralls


Rename notificationsRoom to chat-room in oneview-configuration.json

Rename the field notificationsRoom  in oneview-configuration.json to chatRoom and use something like 'slack-channel-hipchat-room-flowdock-room' as the example value.  Find all of the occurrences of notificationsRoom  and replace with chatRoom.

Done


A button to reset the level during pause

R is to return but I think maybe we have...

m - menu
r - restart
q - quit

This issue was implemented in dsn_levels #222


There is one problem in gurbani now api. ਬੰਨੑਾ  in japji sahib. correct is ਬੰਨਾ

Describe the bug
waheguru g ka khalsa waheguru g ki fateh. there is one problem in gurbani now api. ਬੰਨੑਾ  in japji sahib. i have shared some images , check this api https://api.gurbaninow.com/v2/banis/1 , and check correct images also. check incorrect and correct images and update on server.

Environment
No response

Hello ji, thank you for opening this issue. The Shabad OS Database line you're referring to is here:
https://github.com/shabados/database/blob/next/data/Sri Guru Granth Sahib Ji/0001.json#L305C36-L305C36
It is set to "jy bMnw purIAw Bwr" which in Unicode is "ਜੇ ਬੰਨਾ ਪੁਰੀਆ ਭਾਰ".
The link you're checking is by GurbaniNow. They used to use Shabad OS in the past, but it seems they've gone their own way the past year (without notifying us). Sorry for any confusion.
For better follow up, I recommend you message @sarabveer or contact the GurbaniNow team from their website: https://gurbaninow.com/about


Upload issue to github?

Any chance we can get support for uploading the .clue file as an issue on github?

Hello @hhanesand
Thanks for your feature request!
It seems like a relly great idea. This is definitely will be useful for projects hosted on GitHub.
Right now @andrea-prearo is helping with Swift migration of the Clue core. I'll add this feature to the roadmap. So we can tackle it right after migration.
Do you have any other suggestions? 🙂

No, not much else from me 👍
Cool project!


[PR Testing] Look at input configs to see if they test relevant code

Team, please look at the tests you have created and verify if you are testing relevant configs. Once you are confident that the configs are correct (and useful) please comment here. We will close this issue once all assignees have commented.

Closing


Only report as being offline if a request fails

In response to https://github.com/microsoft/vscode/issues/141762, I think this error should only be raised when a request actually fails. I have a network setup where my host operating system reports it doesn't have network connectivity, but it can actually reach the internet just fine through a configured proxy.
I believe moving the online check to the onerror would result in a more accurate error flow:
https://github.com/microsoft/vscode/blob/a9288be67bab4e9c4dbe62207f01fafc2bdaadcb/src/vs/base/parts/request/browser/request.ts#L12-L14
https://github.com/microsoft/vscode/blob/a9288be67bab4e9c4dbe62207f01fafc2bdaadcb/src/vs/base/parts/request/browser/request.ts#L30
Obligatory xkcd for my unique situation: https://xkcd.com/1172/

As mentioned by @deepak1556 here I expect navigator.onLine shall provide right info whether VS Code can connect to internet or not.
@deepak1556 Is it possible to get this info from the error instead of navigator.onLine ?