Android release crashes upon start. Stuck for a few days. Please help. (adb logcat included)

Runs great in dev mode, release crashes upon start.
    "react": "15.3.2",
    "react-dom": "15.3.2",
    "react-native": "0.37.0",

adb logcat
01-21 05:00:50.625 13176 13176 W ResourcesManager: getTopLevelResources: /data/app/com.myclient-1/base.apk / 1.0 running in com.myclient rsrc of package com.myclient
01-21 05:00:50.625 13176 13176 W ResourcesManager: getTopLevelResources: /data/app/com.myclient-1/base.apk / 1.0 running in com.myclient rsrc of package com.myclient
01-21 05:00:50.655 13176 13176 D ReactNative: [CodePush] Loading JS bundle from "assets://index.android.bundle"
01-21 05:00:50.665 13176 13176 V fb-UnpackingSoSource: locked dso store /data/user/0/com.myclient/lib-main
01-21 05:00:50.665 13176 13176 I fb-UnpackingSoSource: dso store is up-to-date: /data/user/0/com.myclient/lib-main
01-21 05:00:50.665 13176 13176 V fb-UnpackingSoSource: releasing dso store lock for /data/user/0/com.myclient/lib-main
01-21 05:00:50.695 13176 13176 I art     : Thread[1,tid=13176,Native,Thread*=0xf4aa4500,peer=0x751586f0,"main"] recursive attempt to load library "/data/app/com.myclient-1/lib/arm/libfb.so"
01-21 05:00:50.695 13176 13176 D Activity: performCreate Call Injection manager
01-21 05:00:50.705 13176 13176 I InjectionManager: dispatchOnViewCreated > Target : com.myclient.MainActivity isFragment :false
01-21 05:00:50.705 13176 13176 D SecWifiDisplayUtil: Metadata value : SecSettings2
01-21 05:00:50.705 13176 13176 D ViewRootImpl: #1 mView = com.android.internal.policy.PhoneWindow$DecorView{aed1e72 I.E...... R.....ID 0,0-0,0}
01-21 05:00:50.705 13176 13199 D OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
01-21 05:00:50.715 13176 13196 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTRenderableViewManager
01-21 05:00:50.715 13176 13196 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTGroupShadowNode
01-21 05:00:50.715 13176 13196 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTShapeShadowNode
01-21 05:00:50.715 13176 13196 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTTextShadowNode
01-21 05:00:50.715 13176 13196 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTSurfaceViewManager
01-21 05:00:50.715 13176 13196 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTSurfaceViewShadowNode
01-21 05:00:50.725  3493  4537 D InputDispatcher: Focus entered window: 13176
01-21 05:00:50.725 13176 13196 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.picker.ReactDialogPickerManager
01-21 05:00:50.725 13176 13196 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.uimanager.LayoutShadowNode
01-21 05:00:50.725 13176 13196 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.drawer.ReactDrawerLayoutManager
01-21 05:00:50.725 13176 13196 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.picker.ReactDropdownPickerManager
01-21 05:00:50.725 13176 13196 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.scroll.ReactHorizontalScrollViewManager
01-21 05:00:50.725 13176 13196 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.image.ReactImageManager
01-21 05:00:50.735 13176 13196 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.modal.ReactModalHostManager
01-21 05:00:50.735 13176 13196 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.modal.ModalHostShadowNode
01-21 05:00:50.735 13176 13196 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.progressbar.ReactProgressBarViewManager
01-21 05:00:50.735 13176 13196 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.progressbar.ProgressBarShadowNode
01-21 05:00:50.735 13176 13196 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactRawTextManager
01-21 05:00:50.745 13176 13196 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactTextShadowNode
01-21 05:00:50.745 13176 13196 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.scroll.ReactScrollViewManager
01-21 05:00:50.745 13176 13196 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.slider.ReactSliderManager
01-21 05:00:50.745 13176 13196 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.slider.ReactSliderManager$ReactSliderShadowNode
01-21 05:00:50.745 13176 13196 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.switchview.ReactSwitchManager
01-21 05:00:50.745 13176 13199 D libEGL  : loaded /vendor/lib/egl/libGLES_mali.so
01-21 05:00:50.745 13176 13196 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.switchview.ReactSwitchManager$ReactSwitchShadowNode
01-21 05:00:50.745 13176 13196 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.frescosupport.FrescoBasedReactTextInlineImageViewManager
01-21 05:00:50.745 13176 13196 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.frescosupport.FrescoBasedReactTextInlineImageShadowNode
01-21 05:00:50.745 13176 13196 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.textinput.ReactTextInputManager
01-21 05:00:50.755 13176 13196 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.textinput.ReactTextInputShadowNode
01-21 05:00:50.755 13176 13196 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactTextViewManager
01-21 05:00:50.755 13176 13196 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.toolbar.ReactToolbarManager
01-21 05:00:50.755 13176 13196 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.view.ReactViewManager
01-21 05:00:50.765 13176 13196 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.viewpager.ReactViewPagerManager
01-21 05:00:50.765 13176 13199 D libEGL  : eglInitialize EGLDisplay = 0xeeb7f7c4
01-21 05:00:50.765 13176 13199 I OpenGLRenderer: Initialized EGL, version 1.4
01-21 05:00:50.765 13176 13199 D         : ro.exynos.dss isEnabled: 0
01-21 05:00:50.765 13176 13199 D mali_winsys: new_window_surface returns 0x3000,  [1440x2560]-format:1
01-21 05:00:50.765 13176 13196 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactVirtualTextViewManager
01-21 05:00:50.765 13176 13196 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.webview.ReactWebViewManager
01-21 05:00:50.765 13176 13196 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.recyclerview.RecyclerViewBackedScrollViewManager
01-21 05:00:50.775 13176 13196 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.swiperefresh.SwipeRefreshLayoutManager
01-21 05:00:50.775 13176 13176 D ViewRootImpl: MSG_RESIZED_REPORT: ci=Rect(0, 96 - 0, 0) vi=Rect(0, 96 - 0, 0) or=1
01-21 05:00:50.775 13176 13196 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.sbugert.rnadmob.RNAdMobBannerViewManager
01-21 05:00:50.775 13176 13196 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.github.xinthink.rnmk.MKTouchableManager
01-21 05:00:50.775 13176 13196 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.github.xinthink.rnmk.MKSpinnerManager
01-21 05:00:50.775 13176 13196 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.github.xinthink.rnmk.TickViewManager
01-21 05:00:50.785 13176 13176 W DisplayListCanvas: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
01-21 05:00:50.795 13176 13176 I Timeline: Timeline: Activity_idle id: android.os.BinderProxy@670c73c time:292438814
01-21 05:00:50.815 13176 13218 W InstanceID/Rpc: Found 10016
01-21 05:00:50.895 13176 13229 W ResourcesManager: getTopLevelResources: /data/app/com.google.android.gms-2/base.apk / 1.0 running in com.myclient rsrc of package com.google.android.gms
01-21 05:00:50.905 13176 13229 D ResourcesManager: For user 0 new overlays fetched Null
01-21 05:00:51.225 13176 13224 W ResourceType: No package identifier when getting value for resource number 0x00000000
01-21 05:00:51.555 13176 13225 E AndroidRuntime: FATAL EXCEPTION: mqt_native_modules
01-21 05:00:51.555 13176 13225 E AndroidRuntime: Process: com.myclient, PID: 13176
01-21 05:00:51.555 13176 13225 E AndroidRuntime: java.lang.NullPointerException: url == null
01-21 05:00:51.555 13176 13225 E AndroidRuntime:    at okhttp3.Request$Builder.url(Request.java:131)
01-21 05:00:51.555 13176 13225 E AndroidRuntime:    at com.facebook.react.modules.websocket.WebSocketModule.connect(WebSocketModule.java:88)
01-21 05:00:51.555 13176 13225 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)
01-21 05:00:51.555 13176 13225 E AndroidRuntime:    at com.facebook.react.bridge.BaseJavaModule$JavaMethod.invoke(BaseJavaModule.java:318)
01-21 05:00:51.555 13176 13225 E AndroidRuntime:    at com.facebook.react.cxxbridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:158)
01-21 05:00:51.555 13176 13225 E AndroidRuntime:    at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
01-21 05:00:51.555 13176 13225 E AndroidRuntime:    at android.os.Handler.handleCallback(Handler.java:739)
01-21 05:00:51.555 13176 13225 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:95)
01-21 05:00:51.555 13176 13225 E AndroidRuntime:    at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:31)
01-21 05:00:51.555 13176 13225 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:158)
01-21 05:00:51.555 13176 13225 E AndroidRuntime:    at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:196)
01-21 05:00:51.555 13176 13225 E AndroidRuntime:    at java.lang.Thread.run(Thread.java:818)
01-21 05:00:51.555 13176 13224 E ReactNativeJS: A remote enpdoint is required for a network layer
01-21 05:00:51.555  3493  6026 D InputDispatcher: Focus left window: 13176
01-21 05:00:51.555 13176 13224 E ReactNativeJS: Module AppRegistry is not a registered callable module (calling runApplication)
01-21 05:00:52.125 13176 13224 E ReactNativeJS: Module AppRegistry is not a registered callable module (calling unmountApplicationComponentAtRootTag)
01-21 05:00:52.125 13176 13176 D ViewRootImpl: #3 mView = null
01-21 05:00:54.765 13176 13225 I Process : Sending signal. PID: 13176 SIG: 9
01-21 05:00:54.795  3493  4138 W InputMethodManagerService: Got RemoteException sending setActive(false) notification to pid 13176 uid 10366
01-21 05:00:54.855  3493  4412 I ActivityManager: Process com.myclient (pid 13176)(adj 9) has died(84,858)

build.gradle
apply plugin: "com.android.application"
apply from: project(':react-native-config').projectDir.getPath() + "/dotenv.gradle"

import com.android.build.OutputFile

apply from: "../../node_modules/react-native/react.gradle"
apply from: "../../node_modules/react-native-code-push/android/codepush.gradle"

def enableSeparateBuildPerCPUArchitecture = false

def enableProguardInReleaseBuilds = false

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"

    defaultConfig {
        applicationId "com.myclient"
        minSdkVersion 16
        targetSdkVersion 22
        versionCode 1
        versionName "1.0"
        ndk {
            abiFilters "armeabi-v7a", "x86"
        }
        manifestPlaceholders = [manifestApplicationId: "${applicationId}",
                                onesignal_app_id: "xxxx8b7f-xx6c-xx1f-xx8b-xxxxx11e0364",
                                onesignal_google_project_number: "xxxxxxxx8932"]
    }
    signingConfigs {
      release {
        storeFile file(MYCLIENT_RELEASE_STORE_FILE)
        storePassword MYCLIENT_RELEASE_STORE_PASSWORD
        keyAlias MYCLIENT_RELEASE_KEY_ALIAS
        keyPassword MYCLIENT_RELEASE_KEY_PASSWORD
      }
    }
    splits {
        abi {
            reset()
            enable enableSeparateBuildPerCPUArchitecture
            universalApk false  // If true, also generate a universal APK
            include "armeabi-v7a", "x86"
        }
    }
    buildTypes {
        release {
            minifyEnabled enableProguardInReleaseBuilds
            proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
            signingConfig signingConfigs.release
        }
    }
    // applicationVariants are e.g. debug, release
    applicationVariants.all { variant ->
        variant.outputs.each { output ->
            // For each separate APK per architecture, set a unique version code as described here:
            // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
            def versionCodes = ["armeabi-v7a":1, "x86":2]
            def abi = output.getFilter(OutputFile.ABI)
            if (abi != null) {  // null for the universal-debug, universal-release variants
                output.versionCodeOverride =
                        versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
            }
        }
    }
}

dependencies {
    compile project(':react-native-hockeyapp')
    compile project(':react-native-code-push')
    compile project(':react-native-image-crop-picker')
    compile project(':react-native-vector-icons')
    compile project(':react-native-material-kit')
    compile project(':react-native-image-picker')
    compile project(':react-native-config')
    compile project(':react-native-admob')
    compile project(':react-native-onesignal')
    compile project(':react-native-push-notification')
    compile fileTree(dir: "libs", include: ["*.jar"])
    compile "com.android.support:appcompat-v7:23.0.1"
    compile "com.facebook.react:react-native:+"  // From node_modules
}

// Run this once to be able to run the application with BUCK
// puts all compile dependencies into folder libs for BUCK to use
task copyDownloadableDepsToLibs(type: Copy) {
    from configurations.compile
    into 'libs'
}

I have tried:
#Clean everything possible

# watchman
watchman watch-del-all

# ios
rm -rf ios/build/ModuleCache/*

# android
rm -rf android/build
rm -rf android/app/build
rm -rf $HOME/.gradle/caches/

# javascript
rm -rf node_modules/
yarn cache clean

# Fresh install
yarn

# clear react temp files (keep this last clean step)
rm -rf $TMPDIR/react-*

react-native link

then:
    "clean-android-prod": "cd android && ./gradlew clean && rm -rf build && cd app && rm -rf build && cd ../..",
    "build-android-prod": "export ENVFILE=.env.prod && cd android && ./gradlew assembleRelease --stacktrace --info && cd ..",
    "install-android-prod": "cd android && ./gradlew installRelease --stacktrace --info && cd ..",

Okay, so I ended up wiping the entire project and recloning it from GitHub.
When I tried to start the app again via react-native run-android, I started getting an error:

url == null

I then realized the reason my app wasn't starting was because I didn't add the .env files back (because I just wiped it, cloned it, and I'm not committing my .env files).
This led me to conclude that in my release build, my .env wasn't being set properly. I'm actually running a command like this:
    "clean-android-prod": "cd android && ./gradlew clean && rm -rf build && cd app && rm -rf build && cd ../..",
    "build-android-prod": "export ENVFILE=.env.prod && cd android && ./gradlew assembleRelease --stacktrace --info && cd ..",
    "install-android-prod": "cd android && ./gradlew installRelease --stacktrace --info && cd ..",

    "full-android-prod": "npm run clean-android-prod && npm run build-android-prod && npm run install-android-prod",

I changed it to this:
    "clean-android-prod": "cd android && ./gradlew clean && rm -rf build && cd app && rm -rf build && cd ../..",
    "build-android-prod": "export ENVFILE=.env.prod && cd android && ./gradlew assembleRelease --stacktrace --info && cd ..",
    "install-android-prod": "export ENVFILE=.env.prod && cd android && ./gradlew installRelease --stacktrace --info && cd ..",
    "full-android-prod": "export ENVFILE=.env.prod && npm run clean-android-prod && npm run build-android-prod && npm run install-android-prod",

It's not clear to me where or where I don't need export ENVFILE=.env.prod &&, so I just put it everywhere...
I also added this to my ProGuard:
-keep class com.kosuclient.BuildConfig { *; }

because https://github.com/luggit/react-native-config#problems-with-proguard.
Btw, I use Apollo GraphQL, and url == null seemed to come from
const networkInterface = createNetworkInterface({ uri: Config.GRAPHQL_URL });

(because my .env config wasn't getting to my release properly).
Crazy stuff.

Pro tips for posting here and on Stack Overflow:

Post in one forum one at a time, rather than posting in several places at the same time
Your Stack Overflow question did the right thing in acknowledging this cross-post, but not the other way around. So, if it had been solved there and not here, GitHub readers may have made a duplicate effort in resolving it
Furthermore, on Stack Overflow, a link to another forum is not a self-contained question. Everything necessary to answer the question needs to be in the question itself (though cross-post declarations are still required, and live pasteboards such as SQL Fiddle and JS Fiddle are welcome additionally).

Note also that succinct and description titles are good in both places. "Please help" and "I'm stuck" is begging, and does not belong anywhere in a question or bug report.
Hope that feedback helps!


Cancel End User Discussion AMER and EMEA groups

Remove from Meetup.com
Talk to APAC hosts (Reese posted in the private hosts channel)
Create message in Slack channel
[Dan] Cancel calendar events

I've cancelled EMEA and AMER events, but APAC is still ongoing. From discussions on Slack, it looks like it'd make sense to cancel those too and focus on feedback sessions or user panels.

Remove APAC sessions from OpenTelemetry discussion group page.

Thanks @ankit01-oss, bringing some context into this issue from Slack conversations:

Mainly because it has turned into a support query forum, and not leading to much feedback for otel contributors

This is aligns with the main reasons behind the cancellation of EMEA and AMER and the overall context provided in https://github.com/open-telemetry/community/issues/2052.
As with that issue, I'd urge maintainers or end-users to raise issues in https://github.com/open-telemetry/sig-end-user to organise specific, focused Q&A/feedback panels with end-users and maintainers. We should be able to accommodate APAC times too!

I've already done all of these tasks (this issue was created well after the initial discussion).
Assuming Dan has canceled the calendar event we can close this one.

I'd wait to close it until https://github.com/open-telemetry/opentelemetry.io/pull/4450 is merged

I've just cancelled the APAC event in the OTel Public Calendar. @musingvirtual do we still have the APAC event in meetup.com?
@ankit01-oss do you think we need to communicate this in Slack? We have done so already for the other groups (see this message)

All merged, events cancelled and website updated.


Update .rubocop.ruby3-rails7.yml

Why the change?
The current (mostly default) rubocop config restricts the line length to 120 characters. While this is a reasonable config for code lines it is not (all the time) for comment lines. Especially not for auto generated lines by the annotate gem (schema comments).
What changes?
The cop Layout/LineLength: DOCS
From
Layout/LineLength:
  Enabled: true

It is enabled by default so not having the cop configured is implicitly enabling the cop).
To
Layout/LineLength:
  Enabled: true
  AllowedPatterns: ['(\A|\s)#']

@aifinyo-ag/backoffice please discuss this proposal until Friday 12.07.2024. If you have not participated until then I will assume your acceptance of this change an merge it. Feel free to discuss the change afterwards with the team.

Halte ich für eine gute Idee.

Merge after 3 weeks waiting time and multiple calls to action.


Set CDROM back to client device on existing VM

I am having an issue setting an existing cdrom with an ISO mounted back to client device. vSphere shows a reconfiguration attempt but it errors with invalid configuration for device '0'.  Is there a way to set an existing drive back to client device so that there is no longer an ISO mounted?

When I look at an existing VM of mine that is set to use a client device (I reconfigured from the UI),
it looks something like
device = vim.vm.device.VirtualCdrom()
device.backing = vim.vm.device.VirtualCdrom.RemoteAtapiBackingInfo(deviceName='', useAutoDetect=False)
device.connectable = vim.vm.device.VirtualDevice.ConnectInfo(startConnected=True, connected=False, allowGuestControl=True)

You could try doing a reconfigure with the above (setting the key as appropriate in your case) and seeing if that works.

device.backing = vim.vm.device.VirtualCdrom.RemoteAtapiBackingInfo(deviceName='', useAutoDetect=False)
dev_changes = []
dev_changes.append(device)
spec = vim.vm.ConfigSpec()
spec.deviceChange = dev_changes
task = vm_obj.ReconfigVM_Task(spec=spec)

Thank you for the help!  Should I be using something other than deviceChange?  I keep receiving the below error.
TypeError: For "deviceChange" expected type vim.vm.device.VirtualDeviceSpec, but got vim.vm.device.VirtualCdrom

Yes, you need to use a DeviceSpec, which includes the device as well as what change to do with the device (add/edit/remove).
device.backing = vim.vm.device.VirtualCdrom.RemoteAtapiBackingInfo(deviceName='', useAutoDetect=False)
dev_spec = vim.vm.device.VirtualDeviceSpec(device=device, operation='edit')
dev_changes = [dev_spec]
spec = vim.vm.ConfigSpec()
spec.deviceChange = dev_changes
task = vm_obj.ReconfigVM_Task(spec=spec)

THANK YOU!!!! That is the piece I was missing.


Android Basics: tip-calculator

URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-training-tip-calculator?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-2-pathway-1%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-training-tip-calculator#2
In which task and step of the codelab can this issue be found?
3. view binding last para
Describe the problem
in the para
"Note: The name of the binding class is generated by converting the name of the XML file to camel case and adding the word "Binding" to the end. Similarly, the reference for each view is generated by removing underscores and converting the view name to camel case. For example, activity_main.xml becomes ActivityMainBinding, and you can access @id/text_view as binding.textView."
it should be PacalCase instead of camel Case
Steps to reproduce?

Go to...
Click on...
See error...

Versions
Android Studio version:
API version of the emulator:
Additional information
Include screenshots if they would be useful in clarifying the problem.

Duplicate of #102, #126, #164

@aatirmizi
Thank you for reaching out to us. The issue is fixed and published:
https://developer.android.com/codelabs/basic-android-kotlin-training-tip-calculator?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-2-pathway-1%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-training-tip-calculator#2


Arrays in request parameters.

@rhelms current I added clients to testing generated wsdl. Almost all things are ok, but is problem with arrays in requests. I think your changes make some issues with it. For properly arrays is needed to construct wsdl like:
 <xsd:complexType name="ArrayOfEmployees">
            <xsd:complexContent>
               <xsd:restriction base="soapenc:Array">
                  <xsd:attribute ref="soapenc:arrayType" arrayType="ns:Employee[]" />
               </xsd:restriction>
            </xsd:complexContent>
</xsd:complexType>

and this piece of wsdl generate correct array of employees.
But after changes with Document literal wrapper it products:
<xsd:complexType name="ArrayOfEmployeesList">
            <xsd:sequence>
               <xsd:element minOccurs="0" maxOccurs="unbounded" name="employeesList" nillable="true" type="ns:Employee" />
            </xsd:sequence>
</xsd:complexType>

which generates something like this:
stdClass Object
(
    [employeesList] => Array
        (
            [0] => stdClass Object
                (
                    [id] => 1
                    [department] => IT
                )

            [1] => stdClass Object
                (
                    [id] => 2
                    [department] => Logistic
                )

        )

)

and this is incorrect array, must be like this:
Array
        (
            [0] => stdClass Object
                (
                    [id] => 1
                    [department] => IT
                )

            [1] => stdClass Object
                (
                    [id] => 2
                    [department] => Logistic
                )

        )

Have you any idea how to fix it?
You can test clients using shell command ./clinet in wsdl-creator/examples/Clients

New annotations, provided.


Lack of mirror

In what area(s)?
tests/e2e/bindings/bindings_test.go:106 test will pull docker.io/dapriotest/e2e-binding_input:latest image
but dockerhub is no mirror image

/c @yaron2

ping @artursouza


ssl error on ipad 1

So this is the error i have received... i dont know what caused it or how. I have checked my discord account and it is not banned or having issues, I just recently had this issue earlier today, any way to fix it?

Check the releases tab


Update Composer dependencies (2022-01-23-00-11)

Visual regression test passed!
View the visual regression test report


Add exercise for nvidia-talk

Here is a first draft for the exercise.
Let me know what  you think @stavros11 @igres26

Thanks @andrea-pasquale, looks good to me. I have the following comments.

In functions.py will only contain a single function for plotting, how about we just define it directly in the notebook, eg. in one of the first cells? This may make distributing it easier as we only need to send a single file and not worry about imports which may break if someone messes up the directories.
I like the example of finding the 11...1 state as it is very simple and scalable, but maybe we could include a more useful example at the end of the tutorial, after the performance comparisons. @igres26 could have some ideas, otherwise we can also use the exact cover or 3SAT problems we already have in qibo examples.
Regarding the hands-on tutorial, are we going to use the notebooks that are already on main, or are you planning to create a new one based on them?

Thanks @andrea-pasquale, looks good to me. I have the following comments.

In functions.py will only contain a single function for plotting, how about we just define it directly in the notebook, eg. in one of the first cells? This may make distributing it easier as we only need to send a single file and not worry about imports which may break if someone messes up the directories.
I like the example of finding the 11...1 state as it is very simple and scalable, but maybe we could include a more useful example at the end of the tutorial, after the performance comparisons. @igres26 could have some ideas, otherwise we can also use the exact cover or 3SAT problems we already have in qibo examples.
Regarding the hands-on tutorial, are we going to use the notebooks that are already on main, or are you planning to create a new one based on them?

Thanks for the review.

In functions.py will only contain a single function for plotting, how about we just define it directly in the notebook, eg. in one of the first cells? This may make distributing it easier as we only need to send a single file and not worry about imports which may break if someone messes up the directories.

Fixed.

I like the example of finding the 11...1 state as it is very simple and scalable, but maybe we could include a more useful example at the end of the tutorial, after the performance comparisons. @igres26 could have some ideas, otherwise we can also use the exact cover or 3SAT problems we already have in qibo examples.

Yeah, probably we could. For the time being if you agree and would like to send them this first version and we can say that we will send an updated one later.

Regarding the hands-on tutorial, are we going to use the notebooks that are already on main, or are you planning to create a new one based on them?

Probably I will not touch them. If you want, since you are covering that part, feel free to edit them. Probably we need to add something related to the method controlled_by.
Let me know if this version of the notebook (after removing the file functions.py works for you) so that we can already merge to main.

Let me know if this version of the notebook (after removing the file functions.py works for you) so that we can already merge to main.

Thanks for the updates, yes it works for me, including the GPU backends, so it should be fine to merge. The only potential issue is that in performance comparisons we probably need to go to >20 qubits to see the GPU performing better, but there is nothing we can do about this, they need to adjust the qubit range according to their resources.

Probably I will not touch them. If you want, since you are covering that part, feel free to edit them. Probably we need to add something related to the method controlled_by.

So are you planning to send them as they are or are you only sending the exercise for now? Since the tutorial time is 30 minutes, I would probably just create a single notebook with the most important pieces from the existing ones and include the controlled_by. I can do this.

Only the exercise for now. Since it is the only thing that they need to run on their machines. At this point I will do it tomorrow.

I agree with the single notebook for the tutorial.
By the way, do you think that I should also in the notebook a few lines in order to install cupy / nvidia?
Or should I just tell them by email @stavros11 ?


scipy.signal.resample: fails when the smaller array size is even

Originally reported on SO here.
It seems that scipy.signal.resample() makes errors when downsampling to an even number of points. For example, if we upsample a function to a multiple of the original points and then downsample again, we should get the original function back.
from scipy import signal
import numpy as np

def test_resample(n1,n2): # upsample from n1 to n2 points and back
    x1=np.arange(n1)
    y1=np.sin(x1)
    y2,x2=signal.resample(y1,n2,x1)
    y3,x3=signal.resample(y2,n1,x2)
    print np.allclose(y1,y3)

But this fails when the lower number of points is even:
test_resample(10,20)
    False

test_resample(11,22)
    True

test_resample(11,33)
    True

The problem occurs at the downsampling step. The errors are large, at least several percent for functions I tested.
I found the bug in the code for resample(), see these lines:
sl[axis] = slice(0, (N + 1) // 2)
Y[sl] = X[sl]
sl[axis] = slice(-(N - 1) // 2, None)
Y[sl] = X[sl]
y = fftpack.ifft(Y, axis=axis) * (float(num) / float(Nx))

These lines copy the FFT of the input function X to the FFT of the output function Y. Suppose we are downsampling and the number of points in the output spectrum, N, is even. Then Y[N/2] ends up containing the component of X at frequency -N/2. However, the subsequent IFFT expects that this should hold the sum of the positive and negative frequency components, namely X[N/2]+X[-N/2]. This can be solved by adding a few lines for the special condition like this:
sl[axis] = slice(0, (N + 1) // 2)
Y[sl] = X[sl]
sl[axis] = slice(-(N - 1) // 2, None)
Y[sl] = X[sl]
if N%2==0: # low number of points is even. So far we have set Y[-N/2]=X[-N/2]
    if N<Nx: # if downsampling
        sl[axis] = slice(N//2,N//2+1,None) # select the component at frequency N/2
        Y[sl]+=X[sl] # add the component of X at N/2
    elif N<num: # if upsampling
        sl[axis] = slice(num-N//2,num-N//2+1,None) # select the component at frequency -N/2
        Y[sl]/=2 # halve the component at -N/2
        temp=Y[sl]
        sl[axis] = slice(N//2,N//2+1,None) # select the component at +N/2
        Y[sl]=temp # set that equal to the component at -N/2
y = fftpack.ifft(Y, axis=axis) * (float(num) / float(Nx))

So far this seems to work fine for my private version of resample(). Some professional should fix the scipy code.

Update 4/9/17:
signal.resample() fails also on upsampling, for the same reason. However, the bug does not affect the real part of the output for real-valued input (which is why I missed it at first). By inspecting the imaginary parts the bug becomes apparent. For example:
a=np.array([1.+0.j,0.+0.j])
print signal.resample(a,4)

leads to
[ 1.0+0.j   0.5-0.5j  0.0+0.j   0.5+0.5j]

This is wrong, because a has no imaginary part, and therefore its upsampled version should not either.
Again, this behavior is fixed by the code correction suggested above.

Some professional should fix the scipy code.

@markusmeister can you try it? You've already done the work to 1) identify the fix and 2) make a few small test cases that fail on master but pass with your changes. So now it's a matter of wrangling with git and GitHub to submit the PR.

@Eric89GXL I'm a beginner at this but happy to give it a try. 1) Could you point me to some instructions/FAQs on the process? 2) Will someone experienced (yourself?) look over the results?

Yep, any pull request you make will be reviewed before merging.
The SciPy contributing instructions are here:
https://docs.scipy.org/doc/scipy-0.18.1/reference/hacking.html
Feel free to google for GitHub / Git tutorials if you're unfamiliar with it.

Closed by f4426cc


bugfixing the AVX2 Extract8+16 codes, where there's lines like [...]

Tfloat patch 4: bugfixes for AVX2 FAST_FLOAT Extract8+16 implementations https://github.com/tesseract-ocr/tesseract/pull/3494
Extract from https://github.com/tesseract-ocr/tesseract/pull/3490 - bugfixing the AVX2 Extract8+16 codes, where there's lines like __m256d scale01234567 = _mm256_loadu_ps(scales), i.e. loading float vectors into double vector types. Extract from https://github.com/tesseract-ocr/tesseract/pull/3490.
Note: next pullreq is a reduced version of this: less code duplication for bleeding edge tfloat branch.

Note: https://github.com/tesseract-ocr/tesseract/pull/3495 is this one (https://github.com/tesseract-ocr/tesseract/pull/3494) PLUS FAST_FLOAT condition only applied to the ExtractXYZ calls, as the others are good to go with only their prototype adjusted from double --> TFloat. Hence https://github.com/tesseract-ocr/tesseract/pull/3495 is only moving code compared to this one, no code change. (I don't know what diff tools you use, but thus this one (https://github.com/tesseract-ocr/tesseract/pull/3494) would be easier to diff/review, and then verify that https://github.com/tesseract-ocr/tesseract/pull/3495 is only copy/cut/paste work, resulting in a much larger diff)

[Edit: here's how this one's diff looks over at my place with BeyondCompare as diff visualizer: at least for me, much easier to 'read' than github's webview:

Will adjust this one to match https://github.com/stweil/tesseract/pull/2#issuecomment-878902740 and formatting style as well.

@stweil: code reformatted according to editor spec file.


DOM structure is not correct.

Description
I'm submitting a question.

I'm just running the example on README.MD, and the result is not as expected.
My view is like this:
        html! {
            // Render your model here

{"Hello Github"}

            {for (0..3).map(|n|{
                html! {

{n}

                }
            })}
            <button onclick=|_| Msg::DoIt,>{ "Click me!" }</button>
        }

All that h3 and button should be outside of the h1.
Expected Results

Hello Github

0

1

2
<button>Click me!</button>

Actual Results

Hello Github

0

1

2
<button>Click me!</button>

Context (Environment)

Rust: rustc 1.29.0-nightly (254f8796b 2018-07-13)

yew: v0.5.0

target: wasm32-unknown-emscripten

cargo-web: vX.X.X
I don't have cargo-web.

browser if relevant

Turns out that the first element is the root element, everything else is mounted under it.

Is this actually documented anywhere? Cause it's rather confusing. You get really nasty errors if your first element is a component.

@Deedasmi And u get really nasty errors if your last element is a component as well.


fix display of comments while in save mode

:tada: This PR is included in version 1.2.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.2.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


language server

Did you consider a language server? It seems like language servers are a major advantage that new development environments can utilize now.

Thank you for the interest. I think that developer tools are a large enough topic on their own, and that does not align with the pedagogical goals of this project. That's something that should likely live in another repo.

Thank you for the interest. I think that developer tools are a large enough topic on their own, and that does not align with the pedagogical goals of this project. That's something that should likely live in another repo.


fix: improve instanceof checks to support custom transformers

This commit updates two instanceof checks to instead check
the constructor name. This is done to better support custom
transformers. Because custom transformers import/require
potentially different copies of the transformer modules,
the instanceof checks do not work. This required v2 custom
transformers to rely on NODE_PATH hacks and other
workarounds.
Fixes: https://github.com/aws-amplify/amplify-cli/issues/9362

Codecov Report

Merging #9970 (8a76661) into master (3df3af0) will increase coverage by 0.04%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master    #9970      +/-   ##
==========================================
+ Coverage   54.17%   54.21%   +0.04%
==========================================
  Files         835      834       -1
  Lines       46117    46068      -49
  Branches     9839     9835       -4
==========================================
- Hits        24982    24975       -7
+ Misses      19144    19105      -39
+ Partials     1991     1988       -3

Impacted Files
Coverage Δ

...phql-transformer-core/src/cdk-compat/file-asset.ts
16.00% <0.00%> (-3.24%)
:arrow_down:

...ansformer-core/src/cdk-compat/stack-synthesizer.ts

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

closing in favor of https://github.com/aws-amplify/amplify-cli/pull/10188 as this change cannot be rebased due to @cjihrig's fork of amplify-cli no longer existing.


Remove unused keys and consistent order across translations

Purpose
Keys are currently out of order, some moved around
Summary of Changes
Side Effects / Testing Notes
Ticket
N/A
Reviewer Checklist

[ ] meets requirements
[ ] easy to understand
[ ] DRY
[ ] testable and includes test(s)
[ ] changes described in CHANGELOG.md

Coverage remained the same at 55.508% when pulling 0765d89e23b50d97ad772ad3573d5bbdb7c2d70f on binoculars:cleanup/translation-keys into 7d1fdecdcae1d62a4d7a909df4f7937bec71a982 on CenterForOpenScience:develop.


Properties of images for the best result

face_recognition version:
Python version:
Operating System:

Description
Using images to train the Model with face_recognition
Query
What are all  the similar properties (i.e : Image size, resolution) all the image should have So, that  face_recognition gives the best results.

Basically, the bigger the face area in the image, the better. So if each face area within the image is a few hundred pixels square, you will get the best results. Smaller faces have less detail and will be less accurate.
The size of the total image itself doesn't matter much for accuracy (since just the face area is what matters), but larger image sizes will make the whole system run much more slowly.

I have hundreds of face pictures in 120x160 pixel dimension, they are all portrait pictures (clear view of face with same background).
Do you foresee any issues with face detection for 120x160 pixel images?

Hi, I am working face recognisation, while upload my images it showing error like
ValueError: operands could not be broadcast together with shapes (1,2) (128,) , how I have to rectify it

I have hundreds of face pictures in 120x160 pixel dimension, they are all portrait pictures (clear view of face with same background). Do you foresee any issues with face detection for 120x160 pixel images?

@akeilox did you ever test using those small images? I really would like some recommended sizes but cannot find any info.
I'm sure bigger is more accurate but I am looking for the sweet-spot.

@julianadormon I didnt get to it


Update README.md

Update typo on gradle dependency.

Current coverage is 83.25% (diff: 100%)

No coverage report found for master at d72f98f.

Powered by Codecov. Last update d72f98f...6a5099e


Subsequent deployments of appservice plan using bicep failes with specific params.

Bicep version
Bicep CLI version 0.7.4 (5afc312467)
Describe the bug
I get internal server error on subsequent deploys of an app serviceplan, when elsasticscaleenabled and maximumElasticworkerCount is enabled
To Reproduce
First deployment of this code works
Subsequent failes
resource appInsights 'Microsoft.Insights/components@2020-02-02' existing = {
  name: appInsightsName
}

resource appServicePlan 'Microsoft.Web/serverfarms@2022-09-01' = {
  name: appServicePlanName
  location: location
  sku: environmentName == 'prod' ?  {
    name: 'P0v3'
    tier: 'Premium0V3'
  } : {
    name: 'B1'
    tier: 'Basic'

  }
  kind: 'linux'
  properties: {
    reserved: true
    elasticScaleEnabled: environmentName == 'prod' ? true : false
    maximumElasticWorkerCount: environmentName == 'prod' ? 5 : 1
  }
}

Additional context
When commenting out the two properties, it works as expected
resource appInsights 'Microsoft.Insights/components@2020-02-02' existing = {
  name: appInsightsName
}

resource appServicePlan 'Microsoft.Web/serverfarms@2022-09-01' = {
  name: appServicePlanName
  location: location
  sku: environmentName == 'prod' ?  {
    name: 'P0v3'
    tier: 'Premium0V3'
  } : {
    name: 'B1'
    tier: 'Basic'

  }
  kind: 'linux'
  properties: {
    reserved: true
    // Enable these on first deployment - then disable again
    // elasticScaleEnabled: environmentName == 'prod' ? true : false
    // maximumElasticWorkerCount: environmentName == 'prod' ? 5 : 1
  }
}

Error Message
"message":"The resource write operation failed to complete successfully, because it reached terminal provisioning state 'Failed'.","details":[***"code":"DeploymentFailed","target":"/subscriptions/***/resourceGroups/GLSDK-RG-HSC-Legacy-prod/providers/Microsoft.Resources/deployments/deployAppService","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.","details":[***"code":"InternalServerError","message":"There was an unexpected InternalServerError.  Please try again later.  x-ms-correlation-request-id: 1abe9ae3-0543-4b16-8e40-a547c7696fbc"***]***]***]***

Is the github error message i recieve
This only happens in the "deploy to prod" part where the params are true

This looks to be a Microsoft.Web Resource Provider bug. I'll route this to the correct team, but if you would like to streamline a solution, please open a support ticket for the Web RP team.


[Bug]: test "failures" has a misleading definition

Overview
The definition of "failures" is misleading: https://github.com/brooklyn-data/dbt_artifacts/blob/main/models/docs.md?plain=1#L184.  It makes it sound like a field that is either 1 or 0, but failures can be much higher than 0 if multiple records fail the test.
How to reproduce

Read the docs on "failures"
Query your dbt artifacts data:
SELECT * FROM dbt-artifacts.mart__dbt_artifacts.fct_dbt__test_executions
where failures > 1 LIMIT 10;

Expected behaviour
The docs should indicate that failures can be greater than 0.  I'm not sure the best possible description, but maybe something like: "A single test execution can have multiple failures if multiple rows had incorrect results."
Environment
Results of running dbt --version:
1.6

@Stephen986 happy to accept a PR with a definition you propose


Fixed compiling on mac

Please note that the launcher is currently almost impossible to use on macOS

Good to have such patch. Now it will be possible to someday try to make travis macos build.

@bauen1 Well, launcher is kinda messy, it works bad in many ways.


Chips Autocomplete

I tried to use Materialize chips with aucomplete functionality as show in http://materializecss.com/chips.html.
I tried :

But autocomplete does not work. I didn't found any documentation for this. Is this provided by the actual version ?
Thank you for your great job.

This feature is only available in the latest version (98): https://github.com/Dogfalo/materialize#changelog ( committed here - https://github.com/Dogfalo/materialize/commit/83e6ba03487c8ad3d7aefb32af3a6beee725a29b)
Currently, angular2-materialize only supports 97. The upgrade to v98 is tracked here: https://github.com/InfomediaLtd/angular2-materialize/issues/221

Okay. Thank you very much !

@RadouaneRoufid the latest version now uses v0.98 of Materialize and you can find there a sample of using chips autocomplete:
@Component({
    selector: "chips",
    template: `

    `
})
export class Chips {

  autocompleteInit = {
    autocompleteOptions: {
      data: {
        'Apple': null,
        'Microsoft': null,
        'Google': null
      },
      limit: Infinity,
      minLength: 1
    }
  };

Hello,
I, too am using this control, but I cannot see an example of how to get the values from it. I tried:
  public personInit = {
    placeholder: '+Tag',
    autocompleteOptions: {
      data: { 'Apple': null },
      onAutocomplete: (val) => {
        console.log(val);
      },
      limit: Infinity,
      minLength: 1
    },

  };

However, the Autocomplete event is never fired.

@carol-braileanu you can find the available events here: http://materializecss.com/chips.html
Sample code:

autocompleteInit = {
    autocompleteOptions: {
      data: {
        'Apple': null,
        'Microsoft': null,
        'Google': null
      },
      limit: Infinity,
      minLength: 1
    }
  };

  add(chip) {
    console.log("Chip added: " + chip.tag);
  }

  delete(chip) {
    console.log("Chip deleted: " + chip.tag);
  }

  select(chip) {
    console.log("Chip selected: " + chip.tag);
  }

Thank you for your info. Is it also possible to set IDs for the autocomplete items? At this moment the only solution I see is to get the names and match them in the database by name.


[Bug]: Unnecessary characters in Password reset link message

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
When a user clicks on Reset password in the Profile page, the user is logged out and redirected to sign-in page where a message is displayed as in the image. The message contains characters that are not required to be displayed (refer image)

Expected Behavior: A password reset link has been sent to<EMAIL_ADDRESS>Steps To Reproduce

Go to https://release.app.appsmith.com/user/login
Sign in with valid credentials
On top right corner click on 'Your account' > Edit profile
Click on Reset Password and observe the notification.

Environment
Release
Version
Cloud

This has been fixed.


Unable to build for intel mac architecture

Encountering the following error when trying to build apple-sys with screencapture-kit feature
Non floating-type complex? Type(_Complex _Float16, kind: Complex, cconv: 100, decl: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None), canon: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None)), Type(_Float16, kind: Float16, cconv: 100, decl: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None), canon: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None))

I've done some research and found out that the error is due to an older version of bindgen i.e 0.63 which does not have support for Float16.
Updating bindgen to 0.69 fixes the issue.
Here's a fork in which it works -> https://github.com/Pranav2612000/apple-sys
I'll also open a PR if you want to merge those changes.


Command-line input not being read properly

What steps will reproduce the problem?

Command-line input is read from the input box with F5 but not with select and F9 or with Ctrl+Enter if code is in a Spyder cell.

I tried thinking on an example where a selection or code cell could use the value there but I could not came with an example. Taking that into account I guess command-line arguments only make sense when running a full file as @ccordoba12 said.
Maybe an example of how a code selection or cell could use the command line input option could help us understand better what @pscobey wants to achieve? Could it be that the feature is something like a way to setup a context/namespace where selected code or code cells run?

Hello Daniel,
Thanks to you and Carlos for the follow-up.
I think you're right ... Spyder can handle
command-line parameters with no problem
as long as there is just one program that uses
them in the current file.
So let me explain how I encountered the "problem".
I am teaching Python using a zyBooks online text,
and I typically put several program examples from
a given chapter section in a single file, each one
within a Spyder cell. This is very convenient and
time-saving when I'm instructing online, and had
worked very well till I had two separate programs
in two Spyder cells, both of which used command-
line parameters.
If I ran the "file" then both programs in both cells
ran and both used the same command-line parameters.
But ... if I tried to run a cell by itself, no luck.
Anyway, now I know what's going on, so I can deal
with it accordingly.
Thanks again for your help!
Spyder is a great tool for teaching Python online.
Best regards,
Porter Scobey
Department of Mathematics and Computing Science
Saint Mary's University
923 Robie Street
Halifax, NS, Canada
B3H 3C3
Tel:<PHONE_NUMBER>
Web: http://cs.smu.ca/~porter

From: Daniel Althviz Moré @.>
Sent: Friday, March 17, 2023 4:18 PM
To: spyder-ide/spyder @.>
Cc: Porter Scobey @.>; Mention @.>
Subject: Re: [spyder-ide/spyder] Command-line input not bein read properly (Issue #20696)
I tried thinking on an example where a selection or code cell could use the value there but I could not came with an example. Taking that into account I guess command-line arguments only make sense when running a full file as @ccordoba12https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fccordoba12&data=05|01|porter.scobey%40smu.ca|2188b53a55f54a42110008db271c6fb0|060b02ae57754360abbae2e29cca6627|1|0|638146775301512676|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=SHJbw%2FFuL1aSJ9d3DDSCkl08sCwrnRpIUS3ezzzKYTM%3D&reserved=0 said.
Maybe an example of how a code selection or cell could use the command line input option could help us understand better what @pscobeyhttps://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fpscobey&data=05|01|porter.scobey%40smu.ca|2188b53a55f54a42110008db271c6fb0|060b02ae57754360abbae2e29cca6627|1|0|638146775301512676|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=9W7iQn64TkFik2Br4Gcqi%2FD83ccYk3a2eJqmPgdS7n8%3D&reserved=0 wants to achieve? Could it be that the feature is something like a way to setup a context/namespace where selected code or code cells run?
—
Reply to this email directly, view it on GitHubhttps://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fspyder-ide%2Fspyder%2Fissues%2F20696%23issuecomment-1474298976&data=05|01|porter.scobey%40smu.ca|2188b53a55f54a42110008db271c6fb0|060b02ae57754360abbae2e29cca6627|1|0|638146775301512676|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=4krF%2BYK%2BP7yG%2FmH7RQ47HRTB1w9KbXHopvw%2F%2FT2FHiU%3D&reserved=0, or unsubscribehttps://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACBKD5ZCW2UW2OIYOVKB2H3W4S2JRANCNFSM6AAAAAAV5UZ5SE&data=05|01|porter.scobey%40smu.ca|2188b53a55f54a42110008db271c6fb0|060b02ae57754360abbae2e29cca6627|1|0|638146775301512676|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=PX6UhyPhdIIHkeD2cn1w1n1QOaS%2B0xV7LjQMJfN88%2Bo%3D&reserved=0.
You are receiving this because you were mentioned.Message ID: @.***>

Putting multiple "scripts" that each expect to receive command input all within file  will of course not actually work normally with a regular Python interpreter, and isn't really how things are intended to work in Spyder, but it's perfectly possible to make it work. You have a few options; here a couple (from most to least recommended).
The better design is to ensure your code for each "program" is inside a function, which can take an optional parameter with a list of CLI args to parse (instead of just reading sys.argv by default), which is useful for more than just this particular unusual situation. For example, if you're using argparse with code like this:
import argparse

def program_1():
    parser = argparse.ArgumentParser()
    parser.add_argument("test_arg_1")
    parser.add_argument("--test-arg-2")
    print(parser.parse_args())

Then, you can modify it to accept a parameter with the argv you want it to parse, as a list:
import argparse

def program_1(argv=None):
    parser = argparse.ArgumentParser()
    parser.add_argument("test_arg_1")
    parser.add_argument("--test-arg-2")
    print(parser.parse_args(argv))

If argv is not passed when program_1 is called (either in the file, or from the Console), it will still read from sys.argv as normal, but if a list of args is passed, then it will parse that instead:
>>> program_1(argv=["test_val_1", "--test-arg-2", "test val 2"])
Namespace(test_arg_1='test_val_1', test_arg_2='test val 2')

You could also have it convert argv to an argv list if it is passed as a string:
import argparse
import shlex

def program_1(argv=None):
    if isinstance(argv, str):
        argv = shlex.split(argv)
    parser = argparse.ArgumentParser()
    parser.add_argument("test_arg_1")
    parser.add_argument("--test-arg-2")
    print(parser.parse_args(argv))

so you could also do
>>> program_1(argv="test_val_1 --test-arg-2 'test val 2'")
Namespace(test_arg_1='test_val_1', test_arg_2='test val 2')

This would not only allow you to handle this situation, but also allow you and your students to easily import, run and test your programs from the Python interpreter and other modules without having to re-run a whole new Python process or do other hacks.
But speaking of "other hacks"—there is one other option, that wouldn't require modifying any code even if your program is written directly at the __main__ level. You can just manually set sys.argv with the arguments you want prior to running your code (though I don't recommend it as its more hacky, less flexible, wipes out what the actual sys.argv was, is lower level and is prone to mistakes). I.e.
import shlex
import sys

# As a list
args = ["test_val_1", "--test-arg-2", "test val 2"]
sys.argv = [""] + args

# As a string
args = "test_val_1 --test-arg-2 'test val 2'"
sys.argv = [""] + shlex. split(args)

Thanks very much for all the suggestions, but I'm
teaching first-year students, so I think I'd just better
go back to first principles and run each program
separately ... 🙂
Porter
Porter Scobey
Department of Mathematics and Computing Science
Saint Mary's University
923 Robie Street
Halifax, NS, Canada
B3H 3C3
Tel:<PHONE_NUMBER>
Web: http://cs.smu.ca/~porter

From: C.A.M. Gerlach @.>
Sent: Friday, March 17, 2023 10:57 PM
To: spyder-ide/spyder @.>
Cc: Porter Scobey @.>; Mention @.>
Subject: Re: [spyder-ide/spyder] Command-line input not being read properly (Issue #20696)
Putting multiple "scripts" that each expect to receive command input all within file will of course not actually work normally with a regular Python interpreter, and isn't really how things are intended to work in Spyder, but it's perfectly possible to make it work. You have a few options; here a couple (from most to least recommended).
The better design is to ensure your code for each "program" is inside a function, which can take an optional parameter with a list of CLI args to parse (instead of just reading sys.argv by default), which is useful for more than just this particular unusual situation. For example, if you're using argparse with code like this:
import argparse
def program_1():
parser = argparse.ArgumentParser()
parser.add_argument("test_arg_1")
parser.add_argument("--test-arg-2")
print(parser.parse_args())
Then, you can modify it to accept a parameter with the argv you want it to parse, as a list:
import argparse
def program_1(argv=None):
parser = argparse.ArgumentParser()
parser.add_argument("test_arg_1")
parser.add_argument("--test-arg-2")
print(parser.parse_args(argv))
If argv is not passed when program_1 is called (either in the file, or from the Console), it will still read from sys.argv as normal, but if a list of args is passed, then it will parse that instead:

program_1(argv=["test_val_1", "--test-arg-2", "test val 2"])
Namespace(test_arg_1='test_val_1', test_arg_2='test val 2')

You could also have it convert argv to an argv list if it is passed as a string:
import argparse
import shlex
def program_1(argv=None):
if isinstance(argv, str):
argv = shlex.split(argv)
parser = argparse.ArgumentParser()
parser.add_argument("test_arg_1")
parser.add_argument("--test-arg-2")
print(parser.parse_args(argv))
so you could also do

program_1(argv="test_val_1 --test-arg-2 'test val 2'")
Namespace(test_arg_1='test_val_1', test_arg_2='test val 2')

This would not only allow you to handle this situation, but also allow you and your students to easily import, run and test your programs from the Python interpreter and other modules without having to re-run a whole new Python process or do other hacks.
But speaking of "other hacks"—there is one other option, that wouldn't require modifying any code even if your program is written directly at the main level. You can just manually set sys.argv with the arguments you want prior to running your code (though I don't recommend it as its more hacky, less flexible, wipes out what the actual sys.argv was, is lower level and is prone to mistakes). I.e.
import shlex
import sys
As a list
args = ["test_val_1", "--test-arg-2", "test val 2"]
sys.argv = [""] + args
As a string
args = "test_val_1 --test-arg-2 'test val 2'"
sys.argv = [""] + shlex. split(args)
—
Reply to this email directly, view it on GitHubhttps://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fspyder-ide%2Fspyder%2Fissues%2F20696%23issuecomment-1474581584&data=05|01|porter.scobey%40smu.ca|511dcf3739964b1e69df08db2754158a|060b02ae57754360abbae2e29cca6627|1|0|638147014315728072|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=HLVi%2BsxP8yhunRDKp1XDw7SOpUJ%2FPF2zZ27QiJSY8Rk%3D&reserved=0, or unsubscribehttps://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACBKD5ZMS5HJWCZSR7K5B23W4UI7LANCNFSM6AAAAAAV5UZ5SE&data=05|01|porter.scobey%40smu.ca|511dcf3739964b1e69df08db2754158a|060b02ae57754360abbae2e29cca6627|1|0|638147014315728072|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=dpyOG%2F3znXs%2FPiJTBQoU1y4L%2Fkv048F%2F1bprrzx4x6c%3D&reserved=0.
You are receiving this because you were mentioned.Message ID: @.***>

@pscobey, I'm glad you understand better now what's happening here and that you decided to change the way you're teaching Python with Spyder to sort it out.
Given that I think there's nothing else to discuss about it, I'm going to close this issue.


FTSO_lena

Thanks for your contribution. However, there are two issues PR that needs to be resolved in a new one:

You may only add your own entry, never modify existing entries, timestamp or versioning (https://github.com/TowoLabs/ftso-signal-providers/pull/2/commits/cf1f162c6b8e06521b40773e92e38f457b4decbc)
The address and filename must be all lowercase.


Soundness issues (3)

And another one. I am opening a new issue since I'm not quite sure they are related (one is during the drop, the other during normal usage).
let dev0 = CudaDevice::new(0).unwrap();
let dev1 = CudaDevice::new(1).unwrap();
let slice = dev0.htod_copy(vec![1.0; 10]).unwrap();
let out = dev0.dtoh_sync_copy(&slice).unwrap();

This panicks with error:
thread 'tests::dummy' panicked at 'called `Result::unwrap()` on an `Err` value: DriverError(CUDA_ERROR_INVALID_VALUE, "invalid argument")', src/lib.rs:103:47
stack backtrace:
   0: rust_begin_unwind
             at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/panicking.rs:578:5
   1: core::panicking::panic_fmt
             at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/panicking.rs:67:14
   2: core::result::unwrap_failed
             at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/result.rs:1687:5
   3: core::result::Result<T,E>::unwrap
             at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/result.rs:1089:23
   4: cudarc::tests::dummy
             at ./src/lib.rs:103:19
   5: cudarc::tests::dummy::{{closure}}
             at ./src/lib.rs:99:16
   6: core::ops::function::FnOnce::call_once
             at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/ops/function.rs:250:5
   7: core::ops::function::FnOnce::call_once
             at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

My understanding is that since Device::new(1) has been created, cuda global context is actually now targetting device 1, meaning the device_ptr for slice is actually invalid.
The only "simple" fix I see is protecting every safe operation by result::ctx::set_current(cu_primary_ctx)?;.
Is that correct ?
If that's the case, wouldn't a sort of Mutex::lock() be more effective at preventing this kind of issue ?
Happy to try and provide PRs for fixes.
Related: https://github.com/coreylowman/cudarc/issues/160
https://github.com/coreylowman/cudarc/issues/108

The only "simple" fix I see is protecting every safe operation by result::ctx::set_current(cu_primary_ctx)?;. Is that correct ?

Yes, making this fix resolves both this panic and #160.


Red dot with suspicious transaction message appears on "Assign cards"

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

Version Number:
Reproducible in staging?: needs reproduction
Reproducible in production?: needs reproduction
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @AndrewGable
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1704402195601959
Action Performed:

Open app
go to settings > Wallet
Click on "Expensify card" in the "Assigned cards"

Expected Result:
Card details displayed
Actual Result:
Red dot with suspicious transaction message appears. Clicking on Inbox shows me no transactions to review as suspicious.
Workaround:
unknown
Platforms:

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

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

Screenshots/Videos
Add any screenshot/video evidence

View all open jobs on GitHub

Looks like a dupe of https://github.com/Expensify/App/issues/33923


Error when import xml file in version 2.7 and 2.8

java.lang.ArrayIndexOutOfBoundsException: 0
at com.google.refine.importers.tree.XmlImportUtilities.findRecord(XmlImportUtilities.java:298)
at com.google.refine.importers.tree.XmlImportUtilities.importTreeData(XmlImportUtilities.java:263)
at com.google.refine.importers.tree.TreeImportingParserBase.parseOneFile(TreeImportingParserBase.java:222)
at com.google.refine.importers.XmlImporter.parseOneFile(XmlImporter.java:202)
at com.google.refine.importers.tree.TreeImportingParserBase.parseOneFile(TreeImportingParserBase.java:120)
at com.google.refine.importers.tree.TreeImportingParserBase.parse(TreeImportingParserBase.java:86)
at com.google.refine.importing.ImportingUtilities.previewParse(ImportingUtilities.java:956)
at com.google.refine.importing.DefaultImportingController.doUpdateFormatAndOptions(DefaultImportingController.java:185)
at com.google.refine.importing.DefaultImportingController.doPost(DefaultImportingController.java:93)
at com.google.refine.commands.importing.ImportingControllerCommand.doPost(ImportingControllerCommand.java:62)
at com.google.refine.RefineServlet.service(RefineServlet.java:177)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
at org.mortbay.servlet.UserAgentFilter.doFilter(UserAgentFilter.java:81)
at org.mortbay.servlet.GzipFilter.doFilter(GzipFilter.java:132)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:938)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
16:11:30.539 [          org.mortbay.log] /command/core/importing-controller (1ms)

can you provide a sample xml file and the procedure you import the file?

This is the xml file  it dosen't import completed

Tried your file. I have no problem to load it. Did you use mouse to select whole document before creating the project? or you just select part of it so it only extract that block of xml?

I can't recreate the error, but I would note that from what I can see this XML file doesn't work well in OpenRefine because it isn't a single hierarchical document, but rather contains 51 different types on thing each with it's own properties. From what I can see there are relationships defined between the entities described in the document based on 'id'. So this single file seems to me to be like a set of tables from a relational database, rather than a single table.
Loading this into OpenRefine doesn't work well as it can't be easily represented as a single table of data. In fact, OpenRefine ends up putting data in the same row which should be in separate rows, and groups rows together as 'records' when it shouldn't. There are also a large number of columns in the project because of all the different types.
The issue you've encountered loading the xml aside, you may want to consider what you are trying to achieve with this data in OpenRefine, and whether it will work for you. The OpenRefine Google Group is a good place to ask questions about the best approaches to different data and data structures, based on what you are trying to achieve.

I have no problem with this file when I selected with my mouse on the whole document element
<Documento version='1'>

The import and record view will be very slow to use because of technical details that we plan to fix later next year, but for now, its still usable, just slow and sluggish.

Hi everyone,
faced the same issue. sure there is no problem when using workspace. this happens when using OpenRefine API.

@Hossein-Gholami A few things:

Please don't piggy back on unrelated (and closed) bug reports
If you've got an issue with a current release of OpenRefine, please create an issue  with all the appropriate details requested in the template
OpenRefine doesn't have any APIs documented for external use (except for the extension APIs). The client/server protocol is an internal interface.


add search option

@hodgestar I created the search option and the test for it can you have look at it :)

Left some comments. Generally looks good.
Apologies for leaving comments in the compiled file rather than in the source .js file.

Thanks @hodgestar done all the changes

@saeedmb8 One traditionally asks for a re-review after making changes. :)

Left a few more comments. Let's just make sure we address them in a future change somehow (some of this code is going away shortly).


Add windows support for python

This PR is meant to fix the virtual env folder structure in windows problem.
In windows system, the executable binary files is venv/Scripts/a.exe

@elijahr Could you take a look at this PR and if it looks good to you, can you release a new lintball npm package ?

I find there's lint issue in this PR

I had this commit id to fix it https://github.com/qiaozha/lintball/commit/7e38f0348eae02954715289e444d86072e483681 but the PR already got merged

@qiaozha Yeah, it was just some trailing whitespace in one of the files, I removed it in 3969551c9b9fad5bd59fb01da1f33a56d303582c.
The macOS tests were already failing on the devel branch, not related to your changes. I've disabled them for now and am just running tests with Ubuntu. I will revisit macOS later, I think the bash version is just out of date.
I'm waiting on tests to pass here: https://github.com/elijahr/lintball/actions/runs/536189558
Then I will tag v1.2.0 and publish to npm. I'll let you know here once that is done.

@qiaozha I see there was some checks for yamllint - thanks, I'll cherry-pick that commit.

@elijahr Thank you so much for the quick response

@qiaozha you're welcome. Thanks again for the contribution! I've released 1.2.1 to npm.

Thanks :)


Hotbar switching no longer displays name as tooltip

Regression after https://github.com/lensapp/lens/pull/4679
The tooltip which should show up when switching hotbars via the arrows no longer shows up in 5.5.2

Hi Nokel, is there a way by which the icon uploaded or the clustername can be displayed on the hotbar in the format Environment-KC-Region e.g. UT-KC-USE2 instead of the current Profile like Format which displays only 3 characters.


com.github.navasmdc:MaterialDesign:1.5@aar Switch View Out of Date

HI All - I'm running into this bug were the compiled gradle version of com.github.navasmdc:MaterialDesign:1.5@aar appears to be out of date when diff'ed to Switch.java view in this repo. more precisely public void setChecked(boolean) does not match the current version of master in this repo.
Is therefore for this reason that my version does not properly reset the "eventCheck" member variable which is causing a bug to my build due the check done at line 101 in onTouchEvent.
Could the source code be out of date in JCenter? Would it be possible to update the latest version of master to jcenter?
the below code snippet is what I'm currently getting from JCenter:
public void setChecked(boolean check) {
        this.invalidate();
        this.check = check;
        this.ball.animateCheck();
    }

However master in this repo is at:
public void setChecked(boolean check) {
		invalidate();
		this.check = check;
		this.eventCheck = check;
		ball.animateCheck();
	}

note how JCenter is currently missing this.eventCheck = check; which is causing undesired behaviour. as onCheckListener.onCheck will not be called a second time until the switch is manually set to false.
Thoughts?

Would it be possible to update JCenter with the latest version of master @here? help would be greatly appreciated :)

@navasmdc could you please help / advise? it be great if you could update JCenter.

nvm I was able to figure this out. thanks!


applying transformer on all placeholders

Is there a way to apply a transformer to all arguments? I need this because the template string is user provided so I need a way to treat the replacements without forcing the user to write the transformer's name for each placeholder.

The library doesn't provide this functionality, but you may be able to attain it with a wrapper:
const format = require('string-format');

const transformers = {
  upper: s => s.toUpperCase(),
};

const formatWith = (f, args) => format('{} {} {}', ...args.map(f));

const formatWithByName = (name, args) => formatWith(transformers[name], args);

formatWith(transformers.upper, ['foo', 'bar', 'baz']);
// => "FOO BAR BAZ"
formatWithByName('upper', ['foo', 'bar', 'baz']);
// => "FOO BAR BAZ"

I'm not sure exactly what you have in mind, though, so this may or may not be useful. :)

Nice approach, but it think it won't be useful in my case. It's because the argument is actually a nested Object and dot notation will be used in the template string.
I've already got a way to process each value inside the object, so my problem is with unexpected property names. If the user try to access a property that doesn't exists string-format will just return an empty string:
format = require("string-format");

data = {
  a: {name: "A name"}
}

format("a.name: '{a.name}'", data); // "A name"

format("a.otherProp: '{a.otherProp}'", data); // empty string

format("b.name: {b.name}", data); // Error (expected)

Trying to access b.name throws a TypeError (which is expected and properly handled). But accessing a.otherProp will just fail silently.
I think will fork the library. Thanks for the help anyway :)

Should I fork masteror tokenizer?

Fork master, I would say.
You're welcome to submit a pull request with your changes, though I won't necessarily accept it. The goal is to complete work on #2 and have the behaviour match Python's as closely as possible. Don't hold your breath for that, though. ;)


Update lockfile

Renovate can execute some user defined command after upgrade tasks.
(But, it only be recognited on self-hosted renovate only...)
If we can use it as updating deno.lock, add its config to this repo.
ref: https://docs.renovatebot.com/configuration-options/#postupgradetasks

Thank you so much for making this! It works so well.
I was able to get this working well enough by running deno in GHA and amending the commit that Renovate creates.
https://github.com/shepherdjerred/homelab/blob/0554e0508e1ba49dd5725dbc994ede7755112b16/.github/workflows/renovate.yaml#L23-L24
example PR: https://github.com/shepherdjerred/homelab/pull/1072

Thank you for the information. 🙏🏻


Error when user joins server

The guildMemberAdd event gives an error and in some cases even crashes the bot due to bad code. Fixed in a dev version of the bot, the change will probably only be pushed in bot version 4.0.0.

I think this one has been fixed


pagebreak filter does not work when converting latex to to docx

I tried converting the sample md file using the pagebreak filter.
pandoc --to docx --lua-filter=pagebreak.lua -o sample.docx sample.md

The resulting docx file has no page break:

Tried with both pandoc 2.7.3 and <IP_ADDRESS>.

This is the expected output. Compare with the sample.md file and scroll down in the created docx: there is a second page (and a third).
Please reopen if there really isn't more contents, then also include the software used to open the file.

This is the expected output. Compare with the sample.md file and scroll down in the created docx: there is a second page (and a third).
Please reopen if there really isn't more contents, then also include the software used to open the file.

D'oh! You're totally correct, sorry for not actually scrolling through the output. My bad.
I realized the problem is not converting markdown to docx but latex to docx:
Here is an example latex file sample_latex.tex:
\documentclass{article}
\begin{document}

this is the first page

\newpage

and this is the second page

\end{document}

When I run pandoc --to docx --lua-filter=pagebreak.lua -o sample_latex.docx sample_latex.tex,
this is the output in MS Word:

MS Word v 16.44 on Mac OSX 10.15.7
pandoc v <IP_ADDRESS>

D'oh! You're totally correct, sorry for not actually scrolling through the output. My bad.
I realized the problem is not converting markdown to docx but latex to docx:
Here is an example latex file sample_latex.tex:
\documentclass{article}
\begin{document}

this is the first page

\newpage

and this is the second page

\end{document}

When I run pandoc --to docx --lua-filter=pagebreak.lua -o sample_latex.docx sample_latex.tex,
this is the output in MS Word:

MS Word v 16.44 on Mac OSX 10.15.7
pandoc v <IP_ADDRESS>

Ah yes, that makes sense. Pandoc drops unknown TeX commands when reading LaTeX. You can still get the expected result by adding --from=latex+raw_tex.

Ah yes, that makes sense. Pandoc drops unknown TeX commands when reading LaTeX. You can still get the expected result by adding --from=latex+raw_tex.

Thanks! That fixed it.
If you don't mind another question, I'm still a little confused though... what is the difference between --from=latex and --from=latex+raw_tex? I don't understand why one would need to "extend" latex since \newpage is already standard latex.

Thanks! That fixed it.
If you don't mind another question, I'm still a little confused though... what is the difference between --from=latex and --from=latex+raw_tex? I don't understand why one would need to "extend" latex since \newpage is already standard latex.

Yes it's standard latex, but because \newpage doesn't correspond to anything in the pandoc AST, pandoc can ignore it or pass it through as raw tex.  It only does the latter if you explicitly enable raw_tex, which isn't on by default for latex input.

Yes it's standard latex, but because \newpage doesn't correspond to anything in the pandoc AST, pandoc can ignore it or pass it through as raw tex.  It only does the latter if you explicitly enable raw_tex, which isn't on by default for latex input.

I see, thanks for the explanation.

I see, thanks for the explanation.


Kube file bumper update

@rberg2 I approved it but just found a problem. The devmode k8s yaml file doesn't include the devmode engine. https://github.com/hyperledger/sawtooth-core/blob/master/integration/sawtooth_integration/docker/test_devmode_engine_liveness.yaml#L70 Here is an example of use of the devmode engine.


[TASK] Missing asset type, asset retrieval by ID and wrong param order

A few issue with asset retrieval and deployment.
From the description of the pull request I made to address this:
https://github.com/Accenture/sfmc-devtools/pull/143

Asset.definition is missing typeMapping entry for .ai
Method Asset._readExtendedFileFromFS was being called with wrong parameters order
Changed the filter in Asset to use type ids instead of type names, which solves the 10k limit at the source.

There appear to be measures taken to work around a limitation of 10k assets when using certain filter. It did not allow me to retrieve more than 10k. But I have an app that use this API in a similar manner, so I knew there was no 10k limit when using type ids.
Closing note
This is not part of this issue. I am simply pointing out code that might not be executed anymore.
Maybe you would like to rewrite this part of the code since the first 'if' should never be true anymore?
lib\metadataTypes\Asset.js:231
if (response.body.message && response.body.message.includes('all shards failed')) {
    // When running certain filters, there is a limit of 10k on ElastiCache.
    // Since we sort by ID, we can get the last ID then run new requests from there
    options.json.query = {
        leftOperand: {
            property: 'assetType.id',
            simpleOperator: 'in',
            value: subtypeIds,
        },
        logicalOperator: 'AND',
        rightOperand: {
            property: 'id',
            simpleOperator: 'greaterThan',
            value: items[items.length - 1].id,
        },
    };
    lastPage = 0;
    moreResults = true;
} else if (response.body.page * response.body.pageSize < response.body.count) {
    moreResults = true;
    lastPage = Number(response.body.page);
} else {
    moreResults = false;
}

this seems to be 2 topics in one: 1 bug & 1 enhancement. let's aim to split this up into multiple ones going forward ;-)

hi @fbellgr  - a friend of the project actually found a case in which we could push the number of retrieved assets from 10k to 23.050:
before:

after:

I was told the UI stated something around 32k though. Any thoughts? ;-)

Hi @JoernBerkefeld
Are you asking me a question, or referring to me? ;) I can't tell.
You seem to be describing what my pull request does, which is eliminating the 10k limit.
I don't know of any limit in Content Builder. I don't use it very much. I think I have a little under 32k images in the account I am currently working on. I'd have to look at other accounts we have. I don't know when that will happen.
Regards

Actually I was asking ;-)
But in the meantime I realized that the standard settings im mcdev exclude binary files while of course content builder shows the overall total. When we did the above test, we didn't change the default retrieve list to actually include those...
I suppose I forgot how my own solution works 😅


BUG: Fix auto batch size for HF model

Description
The current way the batch size is determined underestimates the length of a normal typical prompt. This results in too larges batches and therefore OOM errors.
Proposed solution
Enhance _determine_batch_size method in FlowJudgeHFModel to determine the batch side considering the actual dataset, instead of an estimation

Fixed in https://github.com/flowaicom/flow-judge/pull/9


Adding custom tags to tracking

I have a requirement to add custom tags to the events getting logged from my angular application like shown below. Is it possible currently?

Hi @tutujohngeorge. Thanks to your feedback.
But unfortunately it's not possible yet. I'm going to add the custom tags in the #34 issue. However if you decided to develop it yourself it would be great. I always glad the new pull requests from community.


Spaces in the primary key do not allow you to edit that row

Hi,
I have a primary key which is just a string, such as "Foo And Bar". When I try to edit that row in the AdminBro UI I receive a 400 error.

Totally agree, there is a task in the backlog which is about this exact problem: #544
Right now there is no other way if fixing that otherwise than adding the second primary, sequential key.
I will close this task since it duplicates it.


dev_compiler: Non-nullable type annotation syntax

This is the dev_compiler-specific issue for #27231. That issue has the details.

should only need to plumb through the option, as we'll get the parsing "for free" from analyzer: https://github.com/dart-lang/sdk/issues/27232

DDC has all analyzer flags now.
presumably we'll need to investigate again once CFE replaces analyzer.


Add support for non-ascii input bindings

I do not know English (use translator). I find it hard to formulate their thoughts in English. If something (in the text below) is unclear or questionable, please give a leading question. I will try to describe more.
I started developing the game "first person" and faced a problem. Godot does not support international keyboard control. That is, the control works only when the English keyboard layout. Or I did not find the opportunity to make the control does not depend on the keyboard layout.
In the window "Projekt Settings", tab "Input Map" - it is not possible to add non-Latin characters. But even if such a possibility was - it did not solve the problem. Languages very much and can't foresee everything.
For a moment hope gave:
class_input
bool is_key_pressed ( int scancode )
(Table scancode: https://github.com/godotengine/godot/wiki/class_@global-scope)
But it is not the keyboard codes are, the codes of entered characters. As a result, all the same error, switching the keyboard layout leads to a complete breakdown of control in the game to Godot.
This is a very serious error for develop international games. The necessary mechanism for scanning the keyboard (key codes), not that it introduces characters.

(Note: I'm not a C++ programmer, this is just my opinion as a game user and developer)
There are generally two ways to handle input in games:

the "Windows way": display all keys as QWERTY ones (eg. an AZERTY user presses Z, and sees W in a key configuration dialog)
the "UNIX way": display all keys as keyboard-layout specific ones (eg. and AZERTY user presses Z, and sees Z in a key configuration dialog)

Each has their upsides and downsides:

the "Windows way" works on more keyboard layouts than the "UNIX way" does, but it may be confusing to users.
the "UNIX way" actually shows which key the user has pressed in the configuration dialog, and can thus be much less confusing.

Note: I call it the "UNIX way" because it's generally how input is handled in games, but SDL2 actually behaves like the "Windows way", even on GNU/Linux or BSD. This can be seen in games like Team Fortress 2.

@Calinou  Or, go the "smart way": display characters by their keyboard layout, and if the keyboard layout changes, let the underlying button stay the same, but the characters displayed change. I know that this works on X11, dunno about other platforms.

The current way godot handles this is a bit... bad.
First of all, what the code internally refers to scancode is just wrong. See this link for a terminology overview (lead paragraph is enough), and wikipedia uses scancode for the harware level code as well: wiki page for scancode.
And secondly, yes, unfortunately there is no way to just sit there and listen for key presses of arbitrary scan coes, to find out which key to listen for.
And thirdly, godot should have a way to enable you to listen to raw keycodes (map not applied) too, not just to what godot calls "scancodes".

godot works this way due to long ago relying on SDL
https://www.libsdl.org/release/SDL-1.2.15/docs/html/guideinputkeyboard.html
it should be changed to a single u32 key nowadays, the same way as Qt does.
this might get fixed in the future.
On Sat, Nov 28, 2015 at 6:22 PM, est31<EMAIL_ADDRESS>wrote:

The current way godot handles this is a bit... bad.
First of all, what the code internally refers to scancode is just wrong.
See this link https://wiki.archlinux.org/index.php/Extra_keyboard_keys
for a terminology overview (lead paragraph is enough), and wikipedia uses
scancode for the harware level code as well: wiki page for scancode
https://en.wikipedia.org/wiki/Scancode.
And secondly, yes, unfortunately there is no way to just sit there and
listen for key presses of arbitrary scan coes, to find out which key to
listen for.
And thirdly, godot should have a way to enable you to listen to raw
keycodes (map not applied) too, not just to what godot calls "scancodes".
—
Reply to this email directly or view it on GitHub
https://github.com/godotengine/godot/issues/2915#issuecomment-160336324.

another problem is, as far as I remember, X11 will only give you unicode on
keypress, and many scancodes can lead to a single unicode.
On Sat, Nov 28, 2015 at 6:38 PM, Juan Linietsky<EMAIL_ADDRESS>wrote:

godot works this way due to long ago relying on SDL
https://www.libsdl.org/release/SDL-1.2.15/docs/html/guideinputkeyboard.html
it should be changed to a single u32 key nowadays, the same way as Qt
does. this might get fixed in the future.
On Sat, Nov 28, 2015 at 6:22 PM, est31<EMAIL_ADDRESS>wrote:

The current way godot handles this is a bit... bad.
First of all, what the code internally refers to scancode is just wrong.
See this link https://wiki.archlinux.org/index.php/Extra_keyboard_keys
for a terminology overview (lead paragraph is enough), and wikipedia uses
scancode for the harware level code as well: wiki page for scancode
https://en.wikipedia.org/wiki/Scancode.
And secondly, yes, unfortunately there is no way to just sit there and
listen for key presses of arbitrary scan coes, to find out which key to
listen for.
And thirdly, godot should have a way to enable you to listen to raw
keycodes (map not applied) too, not just to what godot calls "scancodes".
—
Reply to this email directly or view it on GitHub
https://github.com/godotengine/godot/issues/2915#issuecomment-160336324
.

Having a single u32 key includes the problem: which one to take?
E.g. if you press the key "c" on the keyboard, it can either result in "c" or in "C" depending on whether caps lock is on and shift is pressed. Or think of ctrl / alt combinations. Best is to send an event with:

The key (u32) with all keyboard modifiers
The key (u32) without all keyboard modifiers
A list of bools for the specific keyboard modifiers (shift, alt, ctrl, etc) whether they are pressed as well

Good time of day.
This issue was given the status of a "feature proposal". It's probably not the most urgent task for the developers of Godot. But let me ask:

it is included in the existing development plan?
can we expect its implementation in the next versions Godot?

Many thanks!

Fixed by #18020.


Send signal to all implementations of interface

My goal is notifying all instances of types implementing specific interface.
public class MyInstaller : MonoInstaller
{
    SignalBusInstaller.Install(Container);

    // Non-MonoBehaviour works like a charm:
    Container.BindInterfacesAndSelfTo<SomeEventHandlerImplementation>().AsSingle();

    Container.BindSignal<MySignal>()
        .ToMethod<ISomeEventHandler>(handler => handler.OnSomeEvent)
        .FromResolve();
}

The problem is sending signal to MonoBehaviour, bound via ZenjectBinding with BindTypes.AllInterfaces:
ZenjectException: Found multiple matches when only one was expected for type 'ISomeEventHandler'.
Object graph:

So what is the best way to approach desired behaviour?

This is happening because FromResolve is designed to only find one match.  If you want to bind to multiple matches, you need to use FromResolveAll.  So you could change it to this:
Container.BindSignal<MySignal>()
    .ToMethod<ISomeEventHandler>(handler => handler.OnSomeEvent)
    .From(x => x.FromResolveAll().AsCached());

I've also just added a helper method FromResolveAll so you can do this as a shortcut now:
Container.BindSignal<MySignal>()
    .ToMethod<ISomeEventHandler>(handler => handler.OnSomeEvent)
    .FromResolveAll();


fix relation rModel invalid

Coverage decreased (-0.03%) to 92.961% when pulling 8e8b4ed4d79031fcd4895b882c698ac9aa1e98a3 on eurekao:master into 61b24d9ac7939cadc8fefdf48e6bbfa62541b354 on 75team:master.

Coverage decreased (-0.007%) to 92.983% when pulling 61af05787b5cbea6f78a0828026506333942e450 on eurekao:master into 61b24d9ac7939cadc8fefdf48e6bbfa62541b354 on 75team:master.

请使用 eslint src 检查下编码规范。


403 forbidden when running the server

I built the docker container, have my API KEYS, START LIKE THIS:
docker run -e "OPENAI_API_KEY=$OPENAI_API_KEY" -e "QDRANT_API_KEY=$QDRANT_API_KEY" -it -p 8000:8000 ontology-matching-services-backend-app:latest
curl -X 'GET' \
  'http://<IP_ADDRESS>:8000/get_ontology_matches/?text=This%20test%20was%20used%20for%20the%20initial%20screening%20of%20dams%20and%20virgin%20female%20mice.%20In%20addition%2C%20outside%20of%20the%20spontaneous%20home%20cage%20behaviours%2C%20we%20specifically%20monitored%20pup%20retrieval%20every%2024%E2%80%89h%20by%20the%20virgin%20females.%20We%20placed%20the%20female%20mouse%20to%20be%20tested%20in%20a%20behavioural%20arena%20%2838%20%C3%97%2030%20%C3%97%2015%20cm%29%20containing%20bedding%20and%20nesting%20material%3B%20the%20female%20was%20alone%2C%20without%20contact%20with%20other%20animals.%20Each%20animal%20was%20given%2020%E2%80%89min%20to%20acclimatize%20before%20each%20testing%20session%20began.%20The%20entire%20litter%20%28ranging%20from%203%20to%207%20P1%E2%80%934%20pups%29%20were%20grouped%20in%20a%20corner%20of%20the%20arena%20and%20covered%20with%20nesting%20material%2C%20and%20the%20adult%20female%20given%20an%20additional%202%20min%20of%20acclimatization%20%28pup%20group%20size%20did%20not%20affect%20retrieval%20behaviour%3B%20Extended%20Data%20Fig.%202c%29.%20One%20pup%20was%20removed%20from%20the%20nest%20and%20placed%20in%20an%20opposite%20corner%20of%20the%20arena.%20The%20experimental%20female%20was%20given%202%20min%20per%20trial%20to%20retrieve%20the%20displaced%20pup%20and%20return%20it%20back%20to%20the%20nest%3B%20if%20the%20displaced%20pup%20was%20not%20retrieved%20within%202%20min%2C%20the%20pup%20was%20returned%20to%20the%20nest%20and%20the%20trial%20was%20scored%20as%20a%20failure.%20If%20the%20pup%20was%20successfully%20retrieved%2C%20the%20time%20to%20retrieval%20was%20recorded%20and%20the%20trial%20was%20scored%20as%20a%20success.%20Another%20pup%20was%20then%20taken%20out%20of%20the%20nest%2C%20placed%20away%20from%20the%20nest%20%28varying%20the%20position%20of%20the%20isolated%20pup%20relative%20to%20the%20nest%20from%20trial%20to%20trial%29%2C%20and%20the%20next%20trial%20was%20begun.%20After%20ten%20trials%2C%20pups%20were%20placed%20back%20into%20their%20home%20cage%20with%20their%20dam.%20We%20used%20an%20ultrasonic%20microphone%20%28Avisoft%29%20to%20verify%20that%20isolated%20pups%20vocalized%20during%20testing&ontology=behavior' \
  -H 'accept: application/json'
{"detail":"Unexpected Response: 403 (Forbidden)\nRaw response content:\nb'{\"error\":\"forbidden\"}'"}%

The QDRANT_API_KEY is specific to our cluster so the forbiden access makes sense.


Recipe validation fails

When trying to submit a recipe over turbiniactl, the recipe validation fails:
turbiniactl -P ./temp/recipe.yaml googleclouddisk -d disk-name
2021-11-19 09:48:04 [INFO] Turbinia version: 20211018
2021-11-19 09:48:16 [INFO] Disabling non-allowlisted jobs configured to be disabled in the config file: binaryextractorjob, bulkextractorjob, dfdeweyjob, hindsightjob, photorecjob, jenkinsanalysisjob, volatilityjob
2021-11-19 09:48:16 [INFO] Loading recipe file from ./temp/recipe.yaml
Traceback (most recent call last):
File "/usr/local/bin/turbiniactl", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.9/site-packages/turbinia/turbiniactl.py", line 824, in main
recipe_dict = recipe_helpers.load_recipe_from_file(
File "/usr/local/lib/python3.9/site-packages/turbinia/lib/recipe_helpers.py", line 60, in load_recipe_from_file
success, _ = validate_recipe(recipe_dict)
File "/usr/local/lib/python3.9/site-packages/turbinia/lib/recipe_helpers.py", line 161, in validate_recipe
if not task_loader.check_task_name(proposed_task):
File "/usr/local/lib/python3.9/site-packages/turbinia/task_utils.py", line 82, in check_task_name
for task in TASK_LIST:
NameError: name 'TASK_LIST' is not defined
Bug is also present in master branch, this should be "self.TASK_LIST":
https://github.com/google/turbinia/blob/54c2a03566422efffcc93197661d6e5da319e591/turbinia/task_utils.py#L82
Would send a PR myself, but still getting approvals to contribute :)

Thanks for the report.  I fixed this in https://github.com/google/turbinia/pull/944 and added some tests for this file as well.


[flexible-ipam] Add e2e test option

/test-all

Please correct me if I misunderstand. I see that there's enableAntreaIPAMIfSet before many testcases so we can configure them in the CI script before go test.

Please correct me if I misunderstand. I see that there's enableAntreaIPAMIfSet before many testcases so we can configure them in the CI script before go test.

Yes, it will detect the flag, which should be set in AntreaIPAM e2e env, and then enable AntreaIPAM if detected.


[macOS] Fix ⌘ + . + other modifier triggering twice.

⌘ + . require a special handler, but it should only handle exact key combination, not any with ⌘ and . in it.
Fixes https://github.com/godotengine/godot/issues/63947

Thanks!

Cherry-picked for 3.6.