Debian: Python should be build against libncursesw5

Hi 👋, I've been playing around with the new Debian Stretch variants, and I've come across an issue. In these images, the Python curses module is built with libncurses-dev package, which includes ncurses but without wide-character support. libncursesw5-dev is the package that includes wide-character support (note the w). The Python packages in the Debian repos (on both Jessie and Stretch, across Python versions) are built against the latter package. Additionally, both Jessie and Stretch base images include libncursesw5 (several things are built against the lib), and not libncurses5.
This also results in a weird apt issue on Stretch (but for whatever reason, not Jessie), since the libncurses5 package is never explicitly installed:
❯ docker run --rm -it python:3.6.3-slim-stretch bash
root@05a9ad87176e:/# apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@05a9ad87176e:/# apt-get update
Get:1 http://security.debian.org stretch/updates InRelease [62.9 kB]
Ign:2 http://cdn-fastly.deb.debian.org/debian stretch InRelease
Get:3 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Get:4 http://cdn-fastly.deb.debian.org/debian stretch Release [118 kB]
Get:5 http://security.debian.org stretch/updates/main amd64 Packages [227 kB]
Get:6 http://cdn-fastly.deb.debian.org/debian stretch Release.gpg [2479 B]
Get:7 http://cdn-fastly.deb.debian.org/debian stretch-updates/main amd64 Packages [5841 B]
Get:8 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 Packages [9500 kB]
Fetched 10.0 MB in 4s (2306 kB/s)
Reading package lists...
root@05a9ad87176e:/# apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  libncurses5
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 294 kB disk space will be freed.
Do you want to continue? [Y/n]

I would normally make a PR to swap libncurses-dev for libncursesw5-dev (this seems to work fine), but that wouldn't solve things for the images based on the buildpack-deps images. Perhaps the library also needs to be changed in buildpack-deps?
Also note: I'm really not an expert on ncurses.

@tianon gentle ping on this if you have a moment. It seems likely that people will accidentally uninstall libncurses.
(Also, please lmk if @-mentioning you is completely annoying/inappropriate.)

Doh yep, Debian appears to use this for both Python 2 and 3.  Switching would definitely be appropriate IMO! :+1:

As for buildpack-deps, I think if both can be installed concurrently, that'd be ideal, but otherwise we need to find more examples of software being built against one or the other to determine which is more "popular".

Still needs fixing in the buildpack-deps images (library/buildpack-deps#69)


Ignite base application does not build: could not find play-services-gcm

Steps 1 and 2 of running generated app completed (with messages about npmconf and cross-spawn-asynch deprecation).
Step 3: Ran a Genymotion API 23, attempted to build with react-native run-android and received:

A problem occurred configuring project ':app'.
A problem occurred configuring project ':react-native-device-info'.
Could not resolve all dependencies for configuration ':react-native-device-info:_debugCompile'.
Could not find com.google.android.gms:play-services-gcm:8.3.0.

I tried a second time after remembering to change my build.gradle targetSdkVersion to 23 and received the same output. I'm guessing I need to update the play services version to the newest one, but I can't find where I need to do that.
ignite doctor
Computer
  Platform: darwin

Ignite
  Version: 1.5.0
  Path: /Users/nicosaki/.npm-packages/bin/ignite

Node
  Version: v6.2.1
  Path: /usr/local/bin/node

NPM
  Version: 3.10.5
  Path: /Users/nicosaki/.npm-packages/bin/npm

Yeoman
  Version: 1.8.4

React Native CLI
  Version: undefined

App
  React Native Version: 0.31.0

are you sure you have google play services downloaded with the android SDK manager?
Can you screenshot your SDK manager packages for us?

I updated everything on the sdk manger and tried a fresh base build from a new init, to the same result but much faster: Does it cache settings outside of the project folder?
Maybe my update fixed it but a cache is in the way?
(Apologies for my ignorance, I'm only a few days into learning React Native for my capstone.)

I fixed it and managed to build it.
However, the moment it's built on my emulator (react-native run-android) it crashes with a simple 'application has stopped' alert on the emulator. No error messages or anything.

Can you paste what happens from logcat when you experience this crash?
adb logcat
Fire that up.. start your app... and when it crashes, grab a bunch of lines from it.   That'll help narrow down the runtime problem.

Thank you for the help!
Below is the log from the moment I initiated with react-native run-android
I bolded the first line that looks problematic to my untrained eyes, and the problem seems to have occurred sometime after that point:
08-17 20:32:48.463   696  1583 D NetlinkSocketObserver: NeighborEvent{elapsedMs=132960, <IP_ADDRESS>, [525400123502], RTM_NEWNEIGH, NUD_STALE}
08-17 20:32:53.778  1634  1634 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
08-17 20:32:53.780  1634  1634 D AndroidRuntime: CheckJNI is OFF
08-17 20:32:53.802  1634  1634 D ICU     : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
08-17 20:32:53.819  1634  1634 E memtrack: Couldn't load memtrack module (No such file or directory)
08-17 20:32:53.820  1634  1634 E android.os.Debug: failed to load memtrack module: -2
08-17 20:32:53.821  1634  1634 I Radio-JNI: register_android_hardware_Radio DONE
08-17 20:32:53.836  1634  1634 D AndroidRuntime: Calling main entry com.android.commands.am.Am
08-17 20:32:53.877   696  1123 I UsageStatsService: User[0] Flushing usage stats to disk
08-17 20:32:53.918   696  1123 I UsageStatsDatabase: Time changed by +2s503ms. files deleted: 0 files moved: 6
08-17 20:32:53.931   696  1123 I UsageStatsService: User[0] Rollover scheduled @ 2016-08-18 20:00:00(1471564800000)
08-17 20:32:53.933  1634  1634 D AndroidRuntime: Shutting down VM
08-17 20:32:54.366  1643  1643 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
08-17 20:32:54.367  1643  1643 D AndroidRuntime: CheckJNI is OFF
08-17 20:32:54.378  1643  1643 D ICU     : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
08-17 20:32:54.391  1643  1643 E memtrack: Couldn't load memtrack module (No such file or directory)
08-17 20:32:54.391  1643  1643 E android.os.Debug: failed to load memtrack module: -2
08-17 20:32:54.391  1643  1643 I Radio-JNI: register_android_hardware_Radio DONE
08-17 20:32:54.400  1643  1643 D AndroidRuntime: Calling main entry com.android.commands.pm.Pm
08-17 20:32:54.406  1643  1643 I art     : System.exit called, status: 0
08-17 20:32:54.406  1643  1643 I AndroidRuntime: VM exiting with result code 0.
08-17 20:32:54.674  1653  1653 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
08-17 20:32:54.676  1653  1653 D AndroidRuntime: CheckJNI is OFF
08-17 20:32:54.690  1653  1653 D ICU     : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
08-17 20:32:54.706  1653  1653 E memtrack: Couldn't load memtrack module (No such file or directory)
08-17 20:32:54.706  1653  1653 E android.os.Debug: failed to load memtrack module: -2
08-17 20:32:54.707  1653  1653 I Radio-JNI: register_android_hardware_Radio DONE
08-17 20:32:54.719  1653  1653 D AndroidRuntime: Calling main entry com.android.commands.pm.Pm
08-17 20:32:54.727   106   106 I installd: free_cache(8888489) avail<PHONE_NUMBER>2
08-17 20:32:55.301  1653  1653 I art     : System.exit called, status: 0
08-17 20:32:55.301  1653  1653 I AndroidRuntime: VM exiting with result code 0.
08-17 20:32:55.562  1664  1664 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
08-17 20:32:55.564  1664  1664 D AndroidRuntime: CheckJNI is OFF
08-17 20:32:55.584  1664  1664 D ICU     : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
08-17 20:32:55.604  1664  1664 E memtrack: Couldn't load memtrack module (No such file or directory)
08-17 20:32:55.604  1664  1664 E android.os.Debug: failed to load memtrack module: -2
08-17 20:32:55.605  1664  1664 I Radio-JNI: register_android_hardware_Radio DONE
08-17 20:32:55.619  1664  1664 D AndroidRuntime: Calling main entry com.android.commands.pm.Pm
08-17 20:32:56.082   696   752 I ActivityManager: Start proc 1673:com.android.defcontainer/u0a4 for service com.android.defcontainer/.DefaultContainerService
08-17 20:32:56.501   696   752 I PackageManager.DexOptimizer: Running dexopt (dex2oat) on: /data/app/vmdl551776877.tmp/base.apk pkg=com.ingredientinspector isa=x86 vmSafeMode=false debuggable=true oatDir = /data/app/vmdl551776877.tmp/oat
08-17 20:32:56.539  1687  1687 W dex2oat : Unexpected CPU variant for X86 using defaults: x86
08-17 20:32:56.541  1687  1687 I dex2oat : /system/bin/dex2oat --debuggable
08-17 20:32:56.828  1687  1689 W dex2oat : Before Android 4.1, method int android.support.v7.internal.widget.ListViewCompat.lookForSelectablePosition(int, boolean) would have incorrectly overridden the package-private method in android.widget.ListView
08-17 20:32:59.664  1687  1687 I dex2oat : dex2oat took 3.125s (threads: 4) arena alloc=2MB java alloc=5MB native alloc=28MB free=2MB
08-17 20:32:59.778   696   710 I ActivityManager: Force stopping com.ingredientinspector appid=10060 user=-1: uninstall pkg
08-17 20:32:59.803   696   752 I PackageManager: Package com.ingredientinspector codePath changed from /data/app/com.ingredientinspector-2 to /data/app/com.ingredientinspector-1; Retaining data and using new
08-17 20:32:59.804   696   710 I ActivityManager: Force stopping com.ingredientinspector appid=10060 user=-1: replace pkg
08-17 20:32:59.804   696   752 W PackageManager: Code path for com.ingredientinspector changing from /data/app/com.ingredientinspector-2 to /data/app/com.ingredientinspector-1
08-17 20:32:59.804   696   752 W PackageManager: Resource path for com.ingredientinspector changing from /data/app/com.ingredientinspector-2 to /data/app/com.ingredientinspector-1
08-17 20:32:59.819   696   752 W PackageManager: Unknown permission com.google.android.c2dm.permission.RECEIVE in package com.ingredientinspector
08-17 20:32:59.835   696   752 W Settings: Setting install_non_market_apps has moved from android.provider.Settings.Global to android.provider.Settings.Secure, returning read-only value.
08-17 20:32:59.835   696   752 I art     : Starting a blocking GC Explicit
08-17 20:32:59.849   696   752 I art     : Explicit concurrent mark sweep GC freed 26452(1577KB) AllocSpace objects, 9(252KB) LOS objects, 33% free, 5MB/8MB, paused 327us total 13.209ms
08-17 20:32:59.852   696   752 W PackageManager: Couldn't remove dex file for package:  at location /data/app/com.ingredientinspector-2/base.apk, retcode=-1
08-17 20:32:59.852   106   106 E installd: Couldn't opendir /data/app/vmdl551776877.tmp: No such file or directory
08-17 20:32:59.855  1664  1664 I art     : System.exit called, status: 0
08-17 20:32:59.855  1664  1664 I AndroidRuntime: VM exiting with result code 0.
08-17 20:32:59.855   696   752 I ActivityManager: Force stopping com.ingredientinspector appid=10060 user=0: pkg removed
08-17 20:32:59.860   696   696 D JobSchedulerService: Receieved: android.intent.action.PACKAGE_REMOVED
08-17 20:32:59.873   696   773 I InputReader: Reconfiguring input devices.  changes=0x00000010
08-17 20:32:59.875   696   773 I InputReader: Reconfiguring input devices.  changes=0x00000010
08-17 20:32:59.876   696   773 I InputReader: Reconfiguring input devices.  changes=0x00000010
08-17 20:32:59.886   696   696 V WebViewFactory: webViewPackageName: com.android.webview
08-17 20:32:59.902   696  1097 I ActivityManager: Start proc 1696:com.android.gallery3d/u0a37 for broadcast com.android.gallery3d/.app.PackagesMonitor
08-17 20:32:59.937   696   709 W VoiceInteractionManagerService: no available voice recognition services found for user 0
08-17 20:32:59.961  1070  1070 D CarrierServiceBindHelper: Receive action: android.intent.action.PACKAGE_REMOVED
08-17 20:33:00.042  1070  1070 D CarrierServiceBindHelper: Receive action: android.intent.action.PACKAGE_ADDED
08-17 20:33:00.043  1070  1070 D CarrierServiceBindHelper: Receive action: android.intent.action.PACKAGE_REPLACED
08-17 20:33:00.044  1070  1070 D CarrierServiceBindHelper: mHandler: 3
08-17 20:33:00.044  1070  1070 D CarrierServiceBindHelper: mHandler: 3
08-17 20:33:00.044  1070  1070 D CarrierServiceBindHelper: mHandler: 3
08-17 20:33:00.044  1070  1070 D CarrierConfigLoader: mHandler: 9 phoneId: 0
08-17 20:33:00.099  1392  1392 W ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.startService:1221 android.content.ContextWrapper.startService:581 android.content.ContextWrapper.startService:581 com.android.keychain.KeyChainBroadcastReceiver.onReceive:12 android.app.ActivityThread.handleReceiver:2725
08-17 20:33:00.141   696   707 I ActivityManager: Start proc 1714:com.svox.pico/u0a50 for broadcast com.svox.pico/.VoiceDataInstallerReceiver
08-17 20:33:00.152   696  1097 I ActivityManager: Killing 1262:com.android.quicksearchbox/u0a53 (adj 15): empty #17
08-17 20:33:00.207   696  1123 I ActivityManager: Start proc 1728:com.android.quicksearchbox/u0a53 for broadcast com.android.quicksearchbox/.SearchWidgetProvider
08-17 20:33:00.209   696  1105 I ActivityManager: Killing 1405:com.android.dialer/u0a5 (adj 15): empty #17
08-17 20:33:00.236  1728  1728 W System  : ClassLoader referenced unknown path: /system/app/QuickSearchBox/lib/x86
08-17 20:33:00.243   696  1123 I ActivityManager: Killing 1448:com.android.managedprovisioning/u0a9 (adj 15): empty #17
08-17 20:33:00.608  1742  1742 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
08-17 20:33:00.609  1742  1742 D AndroidRuntime: CheckJNI is OFF
08-17 20:33:00.633  1742  1742 D ICU     : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
08-17 20:33:00.651  1742  1742 E memtrack: Couldn't load memtrack module (No such file or directory)
08-17 20:33:00.651  1742  1742 E android.os.Debug: failed to load memtrack module: -2
08-17 20:33:00.652  1742  1742 I Radio-JNI: register_android_hardware_Radio DONE
08-17 20:33:00.665  1742  1742 D AndroidRuntime: Calling main entry com.android.commands.am.Am
08-17 20:33:00.670   696   707 I ActivityManager: START u0 {flg=0x10000000 cmp=com.ingredientinspector/.MainActivity} from uid 0 on display 0
08-17 20:33:00.727  1742  1742 D AndroidRuntime: Shutting down VM
08-17 20:33:00.834  1752  1752 I art     : Late-enabling -Xcheck:jni
08-17 20:33:00.839   696   844 I ActivityManager: Start proc 1752:com.ingredientinspector/u0a60 for activity com.ingredientinspector/.MainActivity
08-17 20:33:00.885  1752  1766 I GMPM    : App measurement is starting up
08-17 20:33:00.890  1752  1766 E GMPM    : getGoogleAppId failed with status: 10
08-17 20:33:00.891  1752  1766 E GMPM    : Uploading is not possible. App measurement disabled
08-17 20:33:00.894   696  1085 I ActivityManager: START u0 {act=android.settings.action.MANAGE_OVERLAY_PERMISSION cmp=com.android.settings/.Settings$OverlaySettingsActivity} from uid 10060 on display 0
08-17 20:33:00.902  1752  1752 W unknown:React: Overlay permissions needs to be granted in order for react native apps to run in dev mode
08-17 20:33:00.917  1752  1752 V fb-UnpackingSoSource: locked dso store /data/user/0/com.ingredientinspector/lib-main
08-17 20:33:00.919  1752  1752 V fb-UnpackingSoSource: deps mismatch on deps store: regenerating
08-17 20:33:00.919  1752  1752 V fb-UnpackingSoSource: so store dirty: regenerating
08-17 20:33:00.939  1752  1752 D ApkSoSource: not allowing consideration of lib/x86/libfb.so: deferring to libdir
08-17 20:33:00.940  1752  1752 D ApkSoSource: not allowing consideration of lib/x86/libfolly_json.so: deferring to libdir
08-17 20:33:00.940  1752  1752 D ApkSoSource: not allowing consideration of lib/x86/libglog.so: deferring to libdir
08-17 20:33:00.940  1752  1752 D ApkSoSource: not allowing consideration of lib/x86/libglog_init.so: deferring to libdir
08-17 20:33:00.940  1752  1752 D ApkSoSource: not allowing consideration of lib/x86/libgnustl_shared.so: deferring to libdir
08-17 20:33:00.940  1752  1752 D ApkSoSource: not allowing consideration of lib/x86/libicu_common.so: deferring to libdir
08-17 20:33:00.940  1752  1752 D ApkSoSource: not allowing consideration of lib/x86/libimagepipeline.so: deferring to libdir
08-17 20:33:00.940  1752  1752 D ApkSoSource: not allowing consideration of lib/x86/libjsc.so: deferring to libdir
08-17 20:33:00.940  1752  1752 D ApkSoSource: not allowing consideration of lib/x86/libreactnativejni.so: deferring to libdir
08-17 20:33:00.940  1752  1752 D ApkSoSource: not allowing consideration of lib/x86/libreactnativejnifb.so: deferring to libdir
08-17 20:33:00.940  1752  1752 V fb-UnpackingSoSource: regenerating DSO store com.facebook.soloader.ApkSoSource
08-17 20:33:00.941  1752  1752 V fb-UnpackingSoSource: starting syncer worker
08-17 20:33:00.947  1752  1752 V fb-UnpackingSoSource: releasing dso store lock for /data/user/0/com.ingredientinspector/lib-main (from syncer thread)
08-17 20:33:00.947  1752  1752 V fb-UnpackingSoSource: not releasing dso store lock for /data/user/0/com.ingredientinspector/lib-main (syncer thread started)
08-17 20:33:01.050  1752  1774 D OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
08-17 20:33:01.054  1752  1752 D         : HostConnection::get() New Host Connection established 0xe99f3890, tid 1752
08-17 20:33:01.157  1752  1752 D AndroidRuntime: Shutting down VM
08-17 20:33:01.158  1752  1752 E AndroidRuntime: FATAL EXCEPTION: main
08-17 20:33:01.158  1752  1752 E AndroidRuntime: Process: com.ingredientinspector, PID: 1752
08-17 20:33:01.158  1752  1752 E AndroidRuntime: android.view.WindowManager$BadTokenException: Unable to add window android.view.ViewRootImpl$W@9c361db -- permission denied for this window type
08-17 20:33:01.158  1752  1752 E AndroidRuntime: 	at android.view.ViewRootImpl.setView(ViewRootImpl.java:591)
08-17 20:33:01.158  1752  1752 E AndroidRuntime: 	at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:310)
08-17 20:33:01.158  1752  1752 E AndroidRuntime: 	at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:85)
08-17 20:33:01.158  1752  1752 E AndroidRuntime: 	at android.app.Dialog.show(Dialog.java:319)
08-17 20:33:01.158  1752  1752 E AndroidRuntime: 	at com.facebook.react.devsupport.DevSupportManagerImpl.handleReloadJS(DevSupportManagerImpl.java:587)
08-17 20:33:01.158  1752  1752 E AndroidRuntime: 	at com.facebook.react.XReactInstanceManagerImpl$3$1.run(XReactInstanceManagerImpl.java:397)
08-17 20:33:01.158  1752  1752 E AndroidRuntime: 	at android.os.Handler.handleCallback(Handler.java:739)
08-17 20:33:01.158  1752  1752 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:95)
08-17 20:33:01.158  1752  1752 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:148)
08-17 20:33:01.158  1752  1752 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:5417)
08-17 20:33:01.158  1752  1752 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
08-17 20:33:01.158  1752  1752 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
08-17 20:33:01.158  1752  1752 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
08-17 20:33:01.168  1090  1280 E Surface : getSlotFromBufferLocked: unknown buffer: 0xe1242f50
08-17 20:33:01.188   696  1777 D OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
08-17 20:33:01.291   696  1777 I OpenGLRenderer: Initialized EGL, version 1.4
08-17 20:33:01.291   696  1777 D         : HostConnection::get() New Host Connection established 0xdd57c2a0, tid 1777
08-17 20:33:01.355  1292  1779 W AppStateAppOpsBridge: AppOp permission exists for package android of user 0 but package doesn't exist or did not request [Ljava.lang.String;@19ee9bb access
08-17 20:33:01.488  1292  1781 D OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
08-17 20:33:01.493  1292  1292 D         : HostConnection::get() New Host Connection established 0xe8bfb890, tid 1292
08-17 20:33:01.573   696  1777 W EGL_emulation: eglSurfaceAttrib not implemented
08-17 20:33:01.573   696  1777 W OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xdb853be0, error=EGL_SUCCESS
08-17 20:33:01.743  1292  1779 W AppStateAppOpsBridge: AppOp permission exists for package android of user 0 but package doesn't exist or did not request [Ljava.lang.String;@19ee9bb access
08-17 20:33:01.760   106   106 W installd: Failed to open /data/data/android: No such file or directory
08-17 20:33:01.871   696   708 W art     : Long monitor contention event with owner method=void com.android.server.wm.WindowAnimator$1.doFrame(long) from WindowAnimator.java:121 waiters=0 for 116ms
08-17 20:33:02.033  1292  1781 D libEGL  : loaded /system/lib/egl/libEGL_emulation.so
08-17 20:33:02.035  1292  1781 D libEGL  : loaded /system/lib/egl/libGLESv1_CM_emulation.so
08-17 20:33:02.042  1292  1781 D libEGL  : loaded /system/lib/egl/libGLESv2_emulation.so
08-17 20:33:02.048  1292  1781 D         : HostConnection::get() New Host Connection established 0xeec12510, tid 1781
08-17 20:33:02.321  1292  1781 I OpenGLRenderer: Initialized EGL, version 1.4
08-17 20:33:02.374   696   711 I Choreographer: Skipped 47 frames!  The application may be doing too much work on its main thread.
08-17 20:33:02.477  1292  1781 W EGL_emulation: eglSurfaceAttrib not implemented
08-17 20:33:02.477  1292  1781 W OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xeec135a0, error=EGL_SUCCESS
08-17 20:33:02.589  1292  1292 I Choreographer: Skipped 50 frames!  The application may be doing too much work on its main thread.
08-17 20:33:02.977   696   715 I ActivityManager: Displayed com.android.settings/.Settings$OverlaySettingsActivity: +1s836ms (total +2s152ms)
08-17 20:33:05.983   696  1583 D NetlinkSocketObserver: NeighborEvent{elapsedMs=150480, <IP_ADDRESS>, [525400123502], RTM_NEWNEIGH, NUD_REACHABLE}
08-17 20:33:13.725   696   710 W ActivityManager: Activity stop timeout for ActivityRecord{a09965b u0 com.ingredientinspector/.MainActivity t8}

Window permission error?  Strange.

What are you using for a VM?
What version of Android (api level)?
Does this problem exist with just a fresh react-native init AndroidApp or just ignite?
Are you using any other 3rd party libraries in your app? like ones that have to do with lock screen stuff?

Genymotion is the emulator I'm using, running API 23 (I've tried two versions of 23 on Geny, same outcome).
Problem exists for fresh react-native init and fresh ignite new.
The app I'm trying to build is a fresh ignite app, whose only change was to the android/app/build.settings targetSdkVersion changed to 23.

Can you try creating a new Genymotion app with api 22?  In 23 the permissions system changed drastically, and some googling seems to reveal Android 6 + React Native + Redbox as a potential issue.
We've already ruled out Ignite, so let's see if we can rule out some more.

It built! Yay!
Thank you for your guidance, I've been struggling with this for far too long.
You are appreciated!


WithoutHeaders deny packets without the target header

Is this the right place to submit this?

[X] This is not a security vulnerability or a crashing bug
[X] This is not a question about how to use Istio

Bug Description
According to https://istio.io/latest/docs/reference/config/networking/virtual-service/#HTTPMatchRequest, withoutHeaders deny packets when a header is matched with a matching rule among withoutHeaders. However, in practical test, I find that withoutHeaders deny the packets without the target header. This should be an inconsistency between documentation and actual behavior.
For example, as configuration below, curl -H"host:www.example.com" http://<IP_ADDRESS>:80 cannot get productpage service in 1.20 release and 1.22 alpha. After I remove withoutHeaders, it is OK.
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
  name: vs
spec:
  hosts:
    - www.example.com
  http:
    - match:
        - withoutHeaders:
            header1:
              exact: "value1"
      route:
        - destination:
            host: productpage.default.svc.cluster.local

Version
client version: 1.20.0
control plane version: 1.20.0
data plane version: 1.20.0 (5 proxies)

client version: 1.22-alpha.0554fb92631497bf4d0e7017b85fbaec834d0297
control plane version: 1.22-alpha.0554fb92631497bf4d0e7017b85fbaec834d0297
data plane version: 1.22-alpha.0554fb92631497bf4d0e7017b85fbaec834d0297 (5 proxies)

Additional Information
No response

If the fields configured in withoutHeaders are not found in the request header, istio will match according to "present_match".  see https://www.envoyproxy.io/docs/envoy/v1.24.1/api-v3/config/route/v3/route_components.proto#config-route-v3-ratelimit-action-headervaluematch
In this case, I think the missing header should be treated as empty for matching. see https://www.envoyproxy.io/docs/envoy/v1.24.1/api-v3/config/route/v3/route_components.proto#config-route-v3-headermatcher


How does MMDNN implement the "retrain" part?

Platform (like ubuntu 16.04/win10):
Python version:
Source framework with version (like Tensorflow 1.4.1 with GPU):
Destination framework with version (like CNTK 2.3 with GPU):
Pre-trained model path (webpath or webdisk path):
Running scripts:
Since i saw mmdnn have the ability to "retain" a model, i do not really got how it works.
Does it mean we still can train our model on the mmdnn's IR or what ?

Sorry, didn't quite get your question. i am afraid that one can not train on the IR level, but once the model is transferred to another framework, then you can just use the model anyway you like.


Stream.GroupBy Tasks

Add/complete more functionalities for GroupBy

[x] Add GroupByInt tests with more scenarios
[x] Add support for GroupBy(field-name) / tests
[ ] Add support for GroupBy(function{})
[x] More tests for additional enhancements

GroupBy(function{}) can be revisited later.


chore(deps): upgrade dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-main" workflow

Codecov Report

Merging #451 (81b1845) into main (5114594) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #451   +/-   ##
=======================================
  Coverage   95.69%   95.69%
=======================================
  Files           1        1
  Lines         395      395
  Branches       53       53
=======================================
  Hits          378      378
  Misses         17       17

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Init tldr repo

tldr init now clone the tldr-pages repository when selected repository folder is empty, otherwise try to update it using git pull.
Solves #35

I think we'd better keep it simple and stupid. the repo should be cloned first and then install tldr.py, that's clarified in the install guide.
Besides, I've add a install script #44 to make it easy to prepare the environment. Thank you any way. 👍


strings: TrimLeft() returns unexpected value

What is the URL of the page with the issue?
https://go.dev/play/p/5iv2wx09xc9
What is your user agent?
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36
Screenshot

What did you do?
During debugging my program, I've noticed this unexpected behavior.
What did you see happen?
func main() {
	fmt.Println(strings.TrimLeft(
		"/kubernetes/kubernetes/release-1.30/api/openapi-spec/v3/apis__authentication.k8s.io__v1_openapi.json",
		"/kubernetes/kubernetes/release-1.30/api/openapi-spec/v3/",
	))
	// Expected: "apis__authentication.k8s.io__v1_openapi.json"
	// Actual:   "__authentication.k8s.io__v1_openapi.json"
}

What did you expect to see?
Wrote in the "What did you see happen?" section.
Now I am using filepath.Base() instead.
https://go.dev/play/p/sIBOz9OmLuV

TrimLeft takes a list of unicode codepoints to remove, this code is identical to:
func main() {
	fmt.Println(strings.TrimLeft(
		"/kubernetes/kubernetes/release-1.30/api/openapi-spec/v3/apis__authentication.k8s.io__v1_openapi.json",
		"/kuberntsla-1.30piocv",
	))
}

You want:

To remove a prefix, use TrimPrefix instead.


Fix capitalization.

Changes
Classic Git. Committed the wrong capitalization for the file. :octocat:
For review: @sergii-tkachenko

:+1:


Bump identity framework version

$Subject
Related PRs

https://github.com/wso2/carbon-identity-framework/pull/4301

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/3328032920

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/3328032920
Status: failure

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/3328949904

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/3328949904
Status: failure

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/3329890449
Status: failure

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/3333677416

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/3333677416
Status: success


Escaped characters do not match

I have made the following grammar description:
Program <- Move (S* Move)*;
Move <- "R"/"U"/"F"/"L"/"D"/"B";
S <- " "/"\n";

I expected, that this grammar would be able to fully parse the following input String:
input = "R\nB";

However the returned MemoTable only contained matches for "R" and "B", but not for the entire sequence "R\nB".
I noticed that MetaGrammar instantiates a CharSeq object with the following argument for parameter str:
"\nn";

Notice, that there is an extra 'n' character after '\n'.
I suspect, that there is a problem in method unescapeString of class MetaGrammar.
It looks like, method unescapeString only consumes the backslash, but not the character that follows after the backslash.
I was able to get the desired result, by adding the line "i++; // consume escaped character" to method unescapeString.
    private static String unescapeString(String str) {
        StringBuilder buf = new StringBuilder();
        for (int i = 0; i < str.length(); i++) {
            char c = str.charAt(i);
            if (c == '\\') {
                if (i == str.length() - 1) {
                    // Should not happen
                    throw new IllegalArgumentException("Got backslash at end of quoted string");
                }
                buf.append(unescapeChar(str.substring(i, i + 2)));
                i++; // consume escaped character
            } else {
                buf.append(c);
            }
        }
        return buf.toString();
    }

This wasn't thoroughly tested before -- thanks for the bug report, and for digging in to find the fix! Committed to master.


docker images ImagePullBackOff

How do you make docker images build locally available to microk8s docker daemon?
Cannot find any documentation about that.
microk8s docker registry is only in --edge and that is unstable, I am running --beta version

Hi @safderali5 ,
I guess you are not interested in using a public repository to upload your images so I will skip this approach.
If you are on microk8s --beta at the moment you have to first build the image and get it into the docker daemon microk8s uses. This is done like this:
# Lets get a Docker file first
wget https://raw.githubusercontent.com/nginxinc/docker-nginx/ddbbbdf9c410d105f82aa1b4dbf05c0021c84fd6/mainline/stretch/Dockerfile

# And build it
/snap/microk8s/current/usr/bin/docker -H unix:///var/snap/microk8s/current/docker.sock build -t kjackal/nginx:testlocal .

Here I am using the docker client shipped with microk8s (/snap/microk8s/current/usr/bin/docker). Any client is fine as long as you point it to the socket where microk8s is listening on: -H unix:///var/snap/microk8s/current/docker.sock. With -t you can set a tag to your image so you can reference it later.
After building the image you can start a deployment but you have to make sure you do not try to pull a new image from DockerHub:
microk8s.kubectl run localnginx --image=kjackal/nginx:testlocal --image-pull-policy='Never'

In the --edge channel along with the private registry we also introduced an easier way to access the docker client. You can now build a new image with:
microk8s.docker build -t kjackal/nginx:testlocal .

If you want to use the local registry you can do this:
microk8s.enable registry
microk8s.docker build -t localhost:32000/nginx:testlocal .
microk8s.docker push localhost:32000/nginx:testlocal
microk8s.kubectl run localregnginx --image=localhost:32000/nginx:testlocal

Thanks


test: Using Firestore local emulator in test.

Until now, firestore-simple has been using a real Firestore for testing, which has caused instability, especially for tests using the onSnapshot method.
Since v7 now supports the Firestore web SDK, I decided to use the Firestore local emulator testing feature provided by @firebase/testing.
In addition, with a little hack, the Admin SDK can also use a local emulator. So I rewrote the entire test to use local emulator to stabilize entire test.

Fix test script for using local emulator
Fix test util module for using local emulator
Fix firestore types
Remove admin firestore dependency from web sdk package
Remove jest-circus that provided test retry feature, but local emulator is enough stable
Fix CI

Currently, uploading code coverage feature was removed. But it will be back at next PR.

 落ちやすいテストはエミュにする -> CI再整備


Convention for deployments

Hi,
Based on what I understand of the CoreOS toolset, I've come up with a strategy to deploy my applications (which consists out of several services / units). I'm curious about the opinion and workflow of others that have more experience with deploying applications with Fleet. There are other tools out there that perhaps orchestrate this more smoothly, but I'd like to understand whats going on before using it, hence I'm following this approach for now, most likely moving to Kubernetes or $SOME_OTHER_TOOL later on.
Anyway, let's move on to the strategy:
I have a cluster:

of 7+ machines
10+ units in a HA setting (with a Conflicts=%p*.service)

The "global" services I've running are:

Auto discovery of load-balancer backends, and
Auto discovery of DNS

Practically everything that doesn't come with CoreOS is running in Docker containers. All Docker images are continuously built and pushed to a repository. Part of my unit files include a pull to update the image to the latest (semver) version.
Assuming I have two services running of each responsibility (let's say..  user for example)
When I want to deploy a new minor version (aka a rolling update) I now do the following:

For each affected service
fleetctl destroy user@1 && fleetctl start user@1

When I want to deploy a new major version, I now do the following:

For each affected service
fleetctl start<EMAIL_ADDRESS># (I start two additional of the same service type)
I monitor and validate correctness
I shutdown services 1 and 2: `fleetctl destroy<EMAIL_ADDRESS>
This gives me an overview of which service has been update. The next time an update is scheduled I increment the service identifiers again. So after the previous sequence, there should never be a user@1 or user@2 service loaded.
Another idea I'm playing with is to actually specify a version and a number designator for a service. Instead of the frequently illustrated numerical value. For example:
`fleetctl start<EMAIL_ADDRESS><EMAIL_ADDRESS>
This makes things a bit more explicit about what version is running and this approach could be used with full semver version designators, but also for partial's<EMAIL_ADDRESS>staying on 2.1.*).
So, any thoughts / tips?

This is an interesting idea; I've been trying to figure out how I'll do rolling upgrades, since unit files themselves are idempotent.  I like the use of the instance as a version identifier, although it still has to be unique (unless you use metadata to place a global templated unit, if that even works like I understand it).  I've been rolling around the idea of just using A and B services; only one would exist in the fleet cluster at a time, but it would be a way to stand up B and shut down A without an outage.

I came across this post and thought I'd share how I plan on accomplishing what you describe. My goal was to use the semver of our artifacts as the unit template instance identifier to quickly validate what we had running in our cluster. When we build an artifact and package it in a container, it is tagged with the semantic version in docker registry.
Initially the plan was to create a new unit file per version, but that wouldn't be very efficient. Instead I took the following approach.
[Unit]
Description=Alarm Service
After=docker.service
Requires=docker.service

[Service]
TimeoutStartSec=0
User=core
Restart=on-failure
ExecStartPre=-/usr/bin/docker kill service_alarm-%i
ExecStartPre=-/usr/bin/docker rm service_alarm-%i
ExecStartPre=/bin/sh -c '/usr/bin/docker pull quay.io/my/service_alarm:$(/bin/echo %i | cut -f 1 -d "-")'
ExecStart=/bin/sh -c '/usr/bin/docker run --name service_alarm-%i \
... #truncated for brevity
quay.io/wellawareinc/service_alarm:$(/bin/echo %i | cut -f 1 -d "-")'
ExecStop=/usr/bin/docker stop service_alarm-%i

[X-Fleet]
<EMAIL_ADDRESS>
With this I can now start n versions of a container as @Dynom indicated above by specify the semantic version appended with '-' and a count or a '-' and whatever else for that matter.
fleetctl start<EMAIL_ADDRESS><EMAIL_ADDRESS>
We now can quickly identify what's running and where:
$ fleetctl list-units
<EMAIL_ADDRESS>7c762f5c.../x.x.x.x   active          running
<EMAIL_ADDRESS>63cc3e29.../x.x.x.y  active          running

@jessegonzalez Great idea, thanks for sharing

That is in fact what I'm using now. So yeah, that works (-:
Instead of following semver, I stick with build-numbers. For one because it's easy and it holds all the information I need. Our CI solution pushes new Docker images to a repository, it tags them with the buildnumber.

@jessegonzalez I'm using environment variables (on the client, not on the server) rather than to specify it like the fleetctl start service@<version tag> approach you're doing. A nice idea though!


add L, R, A, P, S, I text labels to canvas.

This will be a new shader right?

We can do this with Multi-channel signed distance field fonts. MRIcroGL uses this library. However, this library includes a demo in OpenGL, so is probably very easy to support.


chore: Rename Topology.RestrictGenTopology to Topology.RestrictGen

The predicate will soon be renamed from RestrictGenTopology to Topology.IsRestrictGen.

bors merge


Wildcards

The note says
Instead of a wildcard (*) you can open only your specific tenant URL, for example, based on the screenshot above you can open: mod244533.us.portal.cloudappsecurity.com. Does that also hold for the other wildcards, or only for those for the portal access?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 96223442-ff3d-c101-214f-2240ac42d53b
Version Independent ID: 56fead2d-d0ba-ce69-e931-5b91ed43c736
Content: Network requirements
Content Source: CloudAppSecurityDocs/network-requirements.md
Service: defender-for-cloud-apps
GitHub Login: @dcurwin
Microsoft Alias: dacurwin

Thank you for your comment. We'll investigate and get back to you.

Thanks for your question. It only applies to portal access, and we updated the note to reflect that.


fix TypedList error throwing and add comprehensive test suite

List.__contains__ should handle all exception types
TypedList.index should throw a ValueError instead of a KeyError
comprehensive test suites should be added for all custom lists

as brought up in https://github.com/napari/napari/pull/306#issuecomment-497146532

Note this no longer be needed after #1444 and followup PRs using the new evented list


Use RawTable  API in hash join

Which issue does this PR close?

Closes #826
Rationale for this change

Simplifies the code by not having to use IdHasher and the raw entry api, allows to experiment with different way of detecting collisions later (not included).
Performance looks to be unchanged on TPC-H benchmark queries.
What changes are included in this PR?

Are there any user-facing changes?

I will review this carefully tomorrow


font sizes are all wrong under the button

[ ] Hosted by the Centre… should be 16pt
[ ] In Partnership… and bellow should be 14pt

Based on the design in invisio I have different numbers. I think I should stick to the design fonts.


Strange behavior when creating tags/tag types in binaryview_finalized_event

Version and Platform (required):

Binary Ninja Version: 3.2.3826-dev
OS: OSX
OS Version: Catalina
CPU Architecture amd64

Bug Description:
adding tag types in the callback provided to BinaryViewType.add_binaryview_finalized_event doesn’t work. It seems like it works but it doesn’t show up in the list of tag_types in the UI. To add to the confusion if you use that tag_type to create tags in a bv.add_analysis_completion_event callback, the tags will show up in the tags list but the type will still not show up in the tag_type list in the UI. Tags also don’t show up in the UI if they are added in the former callback
Expected Behavior:
Either the tags (& types) fail to be created at all or more preferably everything is created like normal

Fixed in a prior version to 4.2.6245-dev.


Checking for leftover text

When a form is invalid, I make my submit button opaque like so:
<button type="submit" ng-class="(!form_name.$valid) ? 'opacity2' : ''">

However when:

Tag box is focused: form is valid with ng-valid-leftover-text
Tag box us unfocused: form is invalid with ng-invalid-leftover-text

Is there a way to check to see if there is leftover text so I can add that to my ng-class to make it so it's opaque. Obviously when I click on the button it won't submit since it unfocuses from the tag box but I don't want to give the user the impression that the form is valid with leftover text.

Sorry for not replying sooner.
As of v3.0 you can access the inner's input value by using the text option:
<tags-input ng-model="tags" text="text"></tags-input>

See this plunker.

This issue was selected to be spring-cleaned by a script. More information can be found here.
If anyone thinks this was a mistake and this issue should be reopened, please leave a message below explaining why. Before doing so, please consider reading the CONTRIBUTING file.


Improve Game Import

Problem
When auto-importing data (e.g. on updating the game library), the extension currently isn't able to distinguish the right game when there are multiple search results, even if the search result contains an entry that is clearly identical to the game currently searched for. For every game, there will a popup dialog open, even if it could select the proper result by simply comparing the name
Solution
Have the extension try to distinguish the right entry when there are multiple search results found. This will limit user interaction and improve the data importet a lot.You might run all the search results through a simple function to compare the name found with the game name and if there is a clear match, choose that entry automatically

If you use this option, the plugin will get the data with the best match:


App does not build

Steps to reproduce
I just wish the app could run and also connect to the watch
Actual results
I keep getting this error:I keep getting:
Launching lib/main.dart on Watch SE in debug mode...
Upgrading AppFrameworkInfo.plist
Updating project for Xcode compatibility.
Upgrading project.pbxproj
Upgrading Runner.xcscheme
Adding input path to Thin Binary build phase.
Watch companion app found.
Xcode build done.                                            3.7s
Failed to build iOS app
Uncategorized (Xcode): Failed to build workspace Runner with scheme Runner.
Could not build the application for the simulator.
Error launching application on Watch SE.
Exited (1).
https://github.com/Sahcode01/Flutter_watch_connection
Logs
I keep getting this error:I keep getting:
Launching lib/main.dart on Watch SE in debug mode...
Upgrading AppFrameworkInfo.plist
Updating project for Xcode compatibility.
Upgrading project.pbxproj
Upgrading Runner.xcscheme
Adding input path to Thin Binary build phase.
Watch companion app found.
Xcode build done.                                            3.7s
Failed to build iOS app
Uncategorized (Xcode): Failed to build workspace Runner with scheme Runner.
Could not build the application for the simulator.
Error launching application on Watch SE.
Exited (1).
https://github.com/Sahcode01/Flutter_watch_connection
Flutter Doctor output
No issue at all

@Sahcode01
Can you provide flutter doctor -v ? And also run flutter run -v and provide the entire verbose log ?
The log will be huge so you can put that in a textfile and share it here.


How to make a clickable and interactive task list?

Hi, I am currently managing a point project in my Remarkable, what I am doing now is the following. I put a list in the template of boxes to mark completed tasks and I write in each line each important step to achieve, the thing is that this time that step is divided into 10 more steps that also have boxes to mark as completed, my methodology is in each step to finish each small part of the page and when I complete it I go to the next step. Now that remarkable  2 has linkable sentences I would like to know if someone can pass me a template of this style where clicking on one of the tasks takes me to another page with all the tasks in which it is divided, it would be cleaner and more simplified for me to work.
Kodi nox

Not sure how this relates to Leaflet-MiniMap?

From your description I am struggeling to see how your problem relates to the leaflet minimap plugin at all. Could you please elaborate?


Eigenvalues did not converge

Hi,
I am trying to follow the Quick Example from the documentation on Read the docs. I have a data frame of daily returns indexed by date. However when I execute S = risk_models.sample_cov(df)
I get the following error:
numpy.linalg.linalg.LinAlgError: Eigenvalues did not converge

I am running numpy version 1.14.6
Thanks,
Markus

Hi @mcbrain78,
Thanks for raising this issue. I've never seen the error before - could you maybe share a sample of the data or the code you are using? I'll have a go at troubleshooting.
Cheers,
Robert

Hi Robert,
I think I've managed to track the first error down to incompatible packages, but now I get another error. I'm also using zipline and that puts quite some constraints on the environment. To run a proper test, I've created now a completely clean new virtual env with Python 3.8.3 and the packages list at the bottom of the reply.
I've imported a returns dataframe from a csv which looks like this:
ADBE      ADSK       CRM  ...      QLYS        RP      WDAY
0   -0.015389 -0.015430 -0.014372  ... -0.007047 -0.014246 -0.011529
1    0.010066 -0.000275  0.005311  ...  0.035484  0.013986 -0.002103
2   -0.004983 -0.007426 -0.003703  ...  0.011776 -0.008736 -0.000383
3    0.005271  0.005819  0.005847  ... -0.027649 -0.006030 -0.005750
4    0.013634  0.010193  0.010967  ...  0.011400  0.007933  0.016965
..        ...       ...       ...  ...       ...       ...       ...
247  0.000840 -0.006237  0.000912  ... -0.049331 -0.003968  0.001700
248 -0.001175  0.003037 -0.007293  ...  0.028584  0.002213 -0.005454
249  0.000672  0.000807  0.013223  ... -0.008123  0.000442  0.004387
250  0.005525  0.014885  0.000363  ... -0.003879  0.032230  0.008978
251 -0.009837 -0.021225 -0.005979  ...  0.002596 -0.041916 -0.016715
I then ran the following code
mu = pypfopt.expected_returns.mean_historical_return(df2)
sample_cov = pypfopt.risk_models.sample_cov(df2, returns_data=True)
ef = pypfopt.efficient_frontier.EfficientFrontier(mu, sample_cov)
weights = ef.max_sharpe()
And got this result:
ERROR in LDL_factor: Error in KKT matrix LDL factorization when computing the nonzero elements. The problem seems to be non-convex
ERROR in osqp_setup: KKT matrix factorization.
The problem seems to be non-convex.
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\Markus\anaconda3\envs\pypfopt_test\lib\site-packages\pypfopt\efficient_frontier.py", line 212, in max_sharpe
self._solve_cvxpy_opt_problem()
File "C:\Users\Markus\anaconda3\envs\pypfopt_test\lib\site-packages\pypfopt\base_optimizer.py", line 217, in _solve_cvxpy_opt_problem
opt.solve()
File "C:\Users\Markus\anaconda3\envs\pypfopt_test\lib\site-packages\cvxpy\problems\problem.py", line 290, in solve
return solve_func(self, *args, **kwargs)
File "C:\Users\Markus\anaconda3\envs\pypfopt_test\lib\site-packages\cvxpy\problems\problem.py", line 571, in _solve
solution = self._solving_chain.solve_via_data(
File "C:\Users\Markus\anaconda3\envs\pypfopt_test\lib\site-packages\cvxpy\reductions\solvers\solving_chain.py", line 195, in solve_via_data
return self.solver.solve_via_data(data, warm_start, verbose,
File "C:\Users\Markus\anaconda3\envs\pypfopt_test\lib\site-packages\cvxpy\reductions\solvers\qp_solvers\osqp_qpif.py", line 113, in solve_via_data
solver.setup(P, q, A, lA, uA, verbose=verbose, **solver_opts)
File "C:\Users\Markus\anaconda3\envs\pypfopt_test\lib\site-packages\osqp\interface.py", line 32, in setup
self._model.setup(*unpacked_data, **settings)
ValueError: Workspace allocation error!
Package         Version

certifi         2020.6.20
cvxpy           1.0.31
cycler          0.10.0
dill            0.3.2
ecos            2.0.7.post1
future          0.18.2
kiwisolver      1.2.0
matplotlib      3.3.0
multiprocess    0.70.10
numpy           1.19.1
osqp            0.6.1
pandas          1.1.0
Pillow          7.2.0
pip             20.1.1
pyparsing       2.4.7
pyportfolioopt  1.2.4
python-dateutil 2.8.1
pytz            2020.1
scipy           1.5.2
scs             2.1.2
setuptools      49.2.0.post20200714
six             1.15.0
wheel           0.34.2
wincertstore    0.2

I was having a very similar error, and I eventually found out that 2 rows of my huge DataFrame had the assets prices values equal to 0, which was a mistake. Erasing those rows did the trick for me.

Thanks, that helped! So I could narrow down the bug:
When I work with a "returns" data frame like this:
df2 = df.pct_change()
mu = pypfopt.expected_returns.mean_historical_return(df2)
sample_cov = pypfopt.risk_models.sample_cov(df2, returns_data=True)
ef = pypfopt.efficient_frontier.EfficientFrontier(mu, sample_cov)
weights = ef.max_sharpe()
I get the above error. Dropping all 0 values removes the problem but leaves only ~1/5 of rows and the weights are obviously off.
When I use a data frame with prices data instead, then I don't have the 0 values and therefor no error.

Glad to hear everything is resolved! Don't hesitate to reopen this issue if you are still having problems.
Cheers,
Robert

Also having this error, quite odd that 0 return data should cause such an issue as that is completely feasible.

@SoundsSerious I believe the problem here 0s in the prices dataframe (and thus infinities in the returns dataframe).
In any case, I think the cause of #297 is more likely to be dataframe formatting

@robertmartin8 Yea i think it has alot to do with how the dataframe is formatted. I found some of my models had nans for the most recent values (late to update the data) and that was also throwing it off. The performance data I'm using is formatted as percent return so its a little to closer to zero in general. Padding the cumulative performance with 1 has helped, its on me to find the trailing NaN's


How to load assembly from powershell

I have noticed you have set base64 value in registry,then load this base64 code from powershell
How did  you do that???
I tried these commands ,
powershell -ExecutionPolicy Bypass -NoProfile -WindowStyle Hidden -NoExit -Command [System.Reflection.Assembly]::Load([System.Convert]::FromBase64String("BASE64CODE").EntryPoint.Invoke($Null,$Null)

powershell -ExecutionPolicy Bypass -NoProfile -WindowStyle Hidden -NoExit -Command [System.Reflection.Assembly]::Load([System.Convert]::FromBase64String(BASE64CODE).EntryPoint.Invoke($Null,$Null)

Please give direct powershell command to load a base64 code.

https://github.com/NYAN-x-CAT/Dropless-Malware/blob/master/Dropless-Malware/Dropless-Malware/Program.cs#L54

Tell me the platform which you use most,
I will contact you there,
For a while, I contacted you on twitter

this method work for me on Asyncrat but when test it on Quarsor rat thats not work

lol. Its been a year.
@mose3c see line#13
replace Main(string[] args) with Main(), then command will work.

lol. Its been a year.
@mose3c see line#13 replace Main(string[] args) with Main(), then command will work.

ty


New Check - database compatibility mode

using dbatools cmdlet to test database compatibility level matches that of the server

Test-DbaDatabaseCompatibility -SqlInstance server1

Awesome - Thanks Jess :-)


[doc] Update the default path used by the configuration

Seems like some changes made for the 3.3 compatibility (https://github.com/quarkiverse/quarkus-logging-manager/pull/229) weren't reflected in the doc.

https://github.com/all-contributors
please add @PierreBtz  for documentation

@all-contributors please add @PierreBtz for documentation


Resume token not set for third party auth providers

Hi,
in our app, we have classic password accounts as well as Facebook and Twitter accounts. For that we implemented our own login handlers for the oAuth process.
We discovered an issue with react-native-meteor, that with Facebook and Twitter login handlers the resume token is not written to the async store. This caused some issues with Meteor.userId() returning null after changes to the connection. So we added the key to the async store on our own. The code for this looks something like this:
export const authFacebook = (error, result) => {
  return (dispatch) => {
    if (error) {
      // Error handling
    } else if (result.cancelled) {
      // Error handling
    } else {
      const Data = Meteor.getData()
      AccessToken.getCurrentAccessToken()
        .then((res) => {
          if (res) {
            Meteor.call('login', { facebook: res }, (err, result) => {
              if (!err) {
                AsyncStorage.setItem(USER_TOKEN_KEY, result.token, (err) => {
                  if (err) console.log('token write error: ', err)
                });
                Data._tokenIdSaved = result.token
                Meteor._userIdSaved = result.id
                dispatch(authSetUserId())
                dispatch(authSuccess())
              } else {
                LoginManager.logOut()
                // Error handling
              }
            })
          }
        })
    }
  }
}

This works fine and userId is set.
However we have some very rare cases now, in which the userId got lost later in the process. We don't know the exact circumstances when this happens, but after some time in the app (and probably some connection changes) the userId is null again. Is there any scenario where the the userId is cleared by react-native-meteor? Is there any way we could work around this? Is there a fix?
Thank you!
Georg

This issue has been occurring for us as well.
Regardless of the form of authentication, it seems that in some instances Meteor.userId() will return null. It does not seem very predictable, and when I use  Meteor.collection('users').find(), the user exists in the collection with the correct _id.

I have found a way around the issue of reconnects where the userId is set to null:
let wasDisconnected = false;
if (!Meteor.status().connected) {
    wasDisconnected = true;
}
Meteor.waitDdpConnected(() => {
    if (wasDisconnected) {
        Meteor._loadInitialUser().then(() => {
            // your code here which requires userId to be set correctly
        });
    } else {
        // your code here which requires userId to be set correctly
    }
});

_loadInitialUser() comes from the Meteor.connect() function.

I was now able to circle back to the issue and do some more digging. I'm still not able to reproduce the issue so I implemented a fix based an my analysis of react-native-meteor. In my startup saga I do something like this:
const selectUser = (state) => {
  return Selectors.getUser(state, state.auth.userId)
}
const selectUserToken = (state) => {
  return Selectors.getUserToken(state)
}

const USER_TOKEN_KEY = 'reactnativemeteor_usertoken'

export function * startup (api, action) {
  const user = yield select(selectUser)

  if (user) {
    const userToken = yield select(selectUserToken)
    const storedToken = yield call(getStoredToken)

    if (userToken !== storedToken) {
      const setToken = yield call(setUserToken, userToken)
    }
  }
}

const getStoredToken = () => {
  return new Promise(function (resolve, reject) {
    AsyncStorage.getItem(USER_TOKEN_KEY, (error, result) => {
      if (error) resolve(error)
      else resolve(result)
    })
  })
}

const setUserToken = (token) => {
  return new Promise(function (resolve, reject) {
    AsyncStorage.setItem(USER_TOKEN_KEY, token, (error) => {
      if (error) resolve(error)
    })
  })
}

So I store the Meteor userToken in my own Auth store too. On startup I check, if the reactnativemeteor_usertoken is still present. If not, I set it again from my copy.
I'm not 100% sure if this a reliable fix, but from my tests so far it looks fine.


Update adding-a-new-ssh-key-to-your-github-account.md

Why:

When I reached this particular repo, for learning purpose I found out that there were some font related problems. I thought of editing that so that I can learn how to contribute to other repositories!

@AthmikaU Thanks so much for opening a PR! I'll get this triaged for review ✨


feat: caching LookupSet implementation

Closes #586
The interface matches std::collections::HashSet without the functions that require being aware of all values in the set. The implementation relies on LookupMap for all the heavy lifting.

Also, do you mind adding a CHANGELOG.md entry for this? We try to keep up with breaking or feature changes like this with the PR

@austinabell judging by your remarks (which are fair), I am guessing we can't actually avoid implementing LookupSet properly (and not use LookupMap internally as I am doing right now) if we want to have a (reasonably) optimal solution?

@itegulov Think you could just override the map.flush() call and implement your own for LookupSet. That's where the env::storage_write and env::storage_remove calls happens. Maybe this requires you exposing LookupMap.cache to pub(crate) though. This is probably the nice part about everything being deferred till Drop::drop

@ChaoticTempest this might help with insert/remove cost (although, as I mentioned in another thread, I am confused how exactly that would work), but I don't think it will help with lookup efficiency since that actually happens in LookupSet::contains and not LookupSet::flush.

@austinabell judging by your remarks (which are fair), I am guessing we can't actually avoid implementing LookupSet properly (and not use LookupMap internally as I am doing right now) if we want to have a (reasonably) optimal solution?

Yeah, let's just do in a follow up PR though, this is a valid solution for now and is under an unstable API

@itegulov Think you could just override the map.flush() call and implement your own for LookupSet. That's where the env::storage_write and env::storage_remove calls happens. Maybe this requires you exposing LookupMap.cache to pub(crate) though. This is probably the nice part about everything being deferred till Drop::drop

The extra gas costs are on reads though, not writes. These calls will be the same regardless, there just might be slightly more computation to serialize zero bytes through borsh, but this probably gets optimized away anyway. Am I misunderstanding the suggestion?


Fix: TokenScript attribute fetching (actually most smart contract function calls) not working anymore, so TokenScript views display NaN #1652

Fixes #1652
This was because too many calls are made. Since the Ethereum block time is > 10s as of now, the (simple) solution is to cache the values for a few seconds (3).
This is only reproducible on a device, not in the simulator
This took a long time to fix. Lots of debugging code written and very slow tweak-verify-build cycle because I was sent down the rabbit hole at https://github.com/AlphaWallet/web3swift/pull/1 (which is hard to test because I had to rebuild the project after each tweak in the pod) mistaking that it was the cause.
··•··
To reproduce the problem, trigger 1000s of smart contract calls fairly quickly.

Can I have a build with this fix?


Trying to assign value of type 'HboxContainer' to a variable of type 'LineEdit'

Im running macos mojave, and Im seeing this error

If I change stock_bar_path to be a LineEdit (such as $SpacialLineEdit2) then it runs normally

Fixed by af9f07adde3aa621b63c00365cfdfbad088bbf8b


feat: disable GSheet generate page button on empty data

Description

Disable Generate new page button if the selected sheet does not contain any data
Update button label from Generate page to Generate new page because this the label on Action datasources page.

PR fixes following issue(s)
Fixes #26045
Media
https://github.com/appsmithorg/appsmith/assets/1757421/b198da71-d2ce-4de5-be69-7deac67d35bb
Type of change

New feature (non-breaking change which adds functionality)

Testing

How Has This Been Tested?

[x] Manual
Will add cypress test case later post consultation with the QA team. Issue raised to track it.

Test Plan

Add Testsmith test cases links that relate to this PR

Issues raised during DP testing

Link issues raised during DP testing for better visiblity and tracking (copy link from comments dropped on this PR)

Checklist:
Dev activity

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] PR is being merged under a feature flag

QA activity:

[x] Speedbreak features have been covered
[x] Test plan covers all impacted features and areas of interest
[x] Test plan has been peer reviewed by project stakeholders and other QA members
[x] Manually tested functionality on DP
[ ] We had an implementation alignment call with stakeholders post QA Round 2
[ ] Cypress test cases have been added and approved by SDET/manual QA
[ ] Added Test Plan Approved label after Cypress tests were reviewed
[ ] Added Test Plan Approved label after JUnit tests were reviewed

/ok-to-test

/build-deploy-preview skip-tests=true

/ok-to-test


Bug at  : /api/get-version-info

Bug at : util/system.go:GetVersionInfoFromFile
I build dokcer image with Jenkins, when I request the api /api/get-version-info , got response
{
    "status": "error",
    "msg": "open /home/jenkins/agent/workspace/casdoor/casdoor/version_info.txt: no such file or directory",
    "sub": "",
    "name": "",
    "data": null,
    "data2": null
}

Cause analysis
It looks like the problem is: the function runtime.Caller(0) gets the absolute path at compile time, not the runtime

@bestHAI when building Casdoor's docker image, the Dockerfile should write the version information into version_info.txt and put it inside Docker image, so Casdoor can read it:
https://github.com/casdoor/casdoor/blob/5e4ba4f3380900de1e65947a5aa6c7a5bd2c4fa1/Dockerfile#L12
If you don't do this, you will encounter that error


Frozen fruits game

🛠 Issue 607
Closes #607
Description
I have designed a game in which the user has to shoot with the fruit loaded in the shooter and if the shoot ends up having a group of at least 3 fruits of the same kind, they all pop . There are total 100 levels in this game from easy to moderate to difficult .
Type of change

[x] New feature (non-breaking change which adds functionality)

Checklist:

[x] I have made this from my own
[x] I have taken help from some online resourses
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] My changes generate no new warnings
[x] The title of my pull request is a short description of the requested changes.

ATTACH SCREEN-SHOTS / DEPLOYMENT LINK

Same Project:
https://github.com/pkubiak/frozen-fruits


Upload the assets to release [Python][Cpp]

https://github.com/RaulTrombin/navigator-lib/releases/tag/0.0.4

I've tested the Cpp files here:
https://github.com/RaulTrombin/navigator-cpp-example


Buttons small devices

Thanks for picking up this issue! Could we accomplish this with just CSS, versus needing to pass in a styles object based on the number of words? The height of the button should automatically grow with its contents, versus needing to set the font size in response to the number of words it will contain.

@SheaBelsky okay, will do that

@SheaBelsky check if please

Great, how does this look on desktop devices? Could you post a screenshot of it?

@SheaBelsky

Looks great to me! Thank you so much for picking this up!